:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #777;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-gray);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  width: 100%;
  height: 4px;
  background: var(--medium-gray);
  z-index: 1000;
  top: 0;
}

.progress-bar {
  height: 4px;
  background: var(--accent-color);
  width: 0;
}

/* Header */
.header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px 0;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}

.logo img {
  height: 40px;
  margin-right: 10px;
  border-radius: 5px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main {
  padding: 60px 0;
}

.post-preview {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
}

.post-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
  height: 250px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-preview:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 25px;
}

.post-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.post-meta {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.post-meta span {
  margin-right: 15px;
}

.post-excerpt {
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  color: var(--primary-color);
}

/* Single Post */
.post-header {
  text-align: center;
  margin-bottom: 30px;
}

.post-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.post-detail {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.post-content h2 {
  color: var(--primary-color);
  margin: 30px 0 15px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* Sidebar */
.sidebar {
  background-color: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.sidebar h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--medium-gray);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar ul li a:hover {
  color: var(--secondary-color);
}

/* Calculator */
.calculator {
  background-color: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.calculator h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.calculator-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.calculator-form input,
.calculator-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--medium-gray);
  border-radius: 5px;
  margin-bottom: 15px;
}

.calculator-form button {
  width: 100%;
  padding: 12px;
}

.calculator-result {
  margin-top: 20px;
  padding: 15px;
  background-color: var(--light-gray);
  border-radius: 5px;
  display: none;
}

.calculator-result.show {
  display: block;
}

/* About Page */
.about-hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-section {
  padding: 60px 0;
}

.about-content {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.about-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
}

.team-section {
  text-align: center;
  margin-bottom: 40px;
}

.team-section h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member-info {
  padding: 20px;
}

.team-member-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-member-info p {
  color: var(--dark-gray);
}

.team-member-bio {
  margin-top: 10px;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-block;
  margin: 0 5px;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--secondary-color);
}

/* Contact Page */
.contact-section {
  padding: 60px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-info h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
}

.contact-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 15px;
  width: 20px;
  color: var(--secondary-color);
}

.contact-text {
  flex: 1;
}

.contact-form {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 5px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 15px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
  border-radius: 5px;
}

.footer-about p {
  margin-bottom: 20px;
  color: #ecf0f1;
}

.footer-links h3,
.footer-social h3,
.footer-newsletter h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ecf0f1;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 5px 0 0 5px;
}

.newsletter-form button {
  padding: 0 15px;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: #2980b9;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ecf0f1;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-text {
  margin-right: 20px;
}

.cookie-text p {
  margin-bottom: 10px;
}

.cookie-text a {
  color: var(--secondary-color);
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.btn-accept {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-customize, 
.btn-decline {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-accept:hover {
  background-color: #2980b9;
}

.btn-customize:hover, 
.btn-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(-50px);
  transition: all 0.3s;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--dark-gray);
  background: none;
  border: none;
  cursor: pointer;
}

.modal-title {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    background-color: var(--primary-color);
    width: 100%;
    padding: 20px;
    flex-direction: column;
    transition: 0.4s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 0 0 15px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .cookie-consent {
    flex-direction: column;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .btn-secondary {
    margin-left: 0;
  }
  
  .post-preview {
    margin-bottom: 20px;
  }
  
  .post-header h1 {
    font-size: 1.8rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
    margin-bottom: 5px;
  }
}
