/* Base Styles & Variables
-------------------------------------------------- */
:root {
  --primary-color: #5271ff;
  --primary-dark: #3f5ae0;
  --secondary-color: #ff7f50;
  --text-color: #333;
  --light-text-color: #666;
  --body-bg: #fff;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  --accent-color: #7b68ee;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

/* Typography & Base Elements
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

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

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--body-bg);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--light-bg);
  position: relative;
}

blockquote p {
  margin-bottom: 0.5rem;
  font-style: italic;
  font-size: 1.1rem;
}

blockquote cite {
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

code {
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  background-color: var(--light-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

pre {
  background-color: #f5f5f5;
  padding: 1.5rem;
  overflow-x: auto;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Container & Layout
-------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 5rem 0;
}

.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  margin-bottom: 3rem;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  margin-bottom: 0;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Header & Navigation
-------------------------------------------------- */
header {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 0 0 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active {
  background-color: rgba(82, 113, 255, 0.1);
}

/* Hero Section
-------------------------------------------------- */
.hero {
  padding: 6rem 0;
  background-color: #f9f9ff;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  margin-right: 2rem;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--light-text-color);
}

/* Buttons
-------------------------------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Features Section
-------------------------------------------------- */
.features {
  background-color: white;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(82, 113, 255, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--light-text-color);
  margin-bottom: 0;
}

/* Posts Grid
-------------------------------------------------- */
.posts-preview {
  background-color: var(--light-bg);
}

.posts-preview h2,
.blog-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
}

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

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-content {
  padding: 1.5rem;
}

.post-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--light-text-color);
  margin-bottom: 1rem;
}

.post-date, .post-author, .post-category {
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  transition: var(--transition);
}

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

.view-all {
  text-align: center;
  margin-top: 3rem;
}

/* Blog Posts Detail
-------------------------------------------------- */
.blog-post {
  padding: 3rem 0 5rem;
}

.post-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-featured-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--box-shadow);
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-content h2,
.post-content h3 {
  margin-top: 2.5rem;
}

.post-tags {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.post-tags span {
  font-weight: 600;
}

.post-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-tags a {
  display: inline-block;
  background-color: var(--light-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  color: var(--text-color);
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-navigation {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.back-to-blog {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.back-to-blog svg,
.prev-post svg,
.next-post svg {
  width: 20px;
  height: 20px;
}

.next-prev {
  display: flex;
  gap: 1.5rem;
}

.prev-post,
.next-post {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* About Page
-------------------------------------------------- */
.about-intro {
  margin-bottom: 3rem;
}

.about-intro .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.about-content {
  flex: 2;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.values-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.values-list li strong {
  display: block;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.team {
  background-color: var(--light-bg);
  padding: 5rem 0;
}

.team h2 {
  text-align: center;
}

.team-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

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

.team-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.team-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  margin-bottom: 0.25rem;
}

.team-card p {
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
}

.team-card p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-card .social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.team-card .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--light-bg);
  transition: var(--transition);
}

.team-card .social-icons a:hover {
  background-color: var(--primary-color);
}

.team-card .social-icons svg {
  width: 18px;
  height: 18px;
  fill: var(--text-color);
  transition: var(--transition);
}

.team-card .social-icons a:hover svg {
  fill: white;
}

/* Contact Page
-------------------------------------------------- */
.contact-content {
  padding-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  padding-right: 2rem;
}

.contact-info h2,
.contact-form-container h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  background-color: rgba(82, 113, 255, 0.1);
  border-radius: 50%;
  margin-right: 1rem;
  color: var(--primary-color);
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.info-text p {
  margin-bottom: 0;
  font-size: 1rem;
}

.social-media {
  margin-top: 2.5rem;
}

.social-media h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-bg);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: var(--text-color);
  transition: var(--transition);
}

.social-icons a:hover svg {
  fill: white;
}

.contact-form-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.contact-form,
.complaint-form {
  display: grid;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(82, 113, 255, 0.1);
}

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

.form-group button {
  justify-self: start;
}

.complaint-section {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.complaint-section h2 {
  margin-bottom: 1rem;
}

.complaint-section p {
  max-width: 700px;
  margin-bottom: 2rem;
}

.complaint-form {
  max-width: 800px;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

/* Quote Future Section
-------------------------------------------------- */
.quote-future {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.quote-future h2 {
  color: white;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.quote-future blockquote {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.25rem;
  padding: 2rem;
}

.quote-future blockquote p {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.7;
}

.quote-future blockquote cite {
  font-size: 1rem;
  opacity: 0.9;
}

/* Footer
-------------------------------------------------- */
footer {
  background-color: #2a2a2a;
  color: white;
  padding: 5rem 0 2rem;
}

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

.footer-info .footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-info p {
  opacity: 0.8;
}

.footer-contact h3,
.footer-links h3,
.footer-social h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-contact h3:after,
.footer-links h3:after,
.footer-social h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-contact address {
  font-style: normal;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: white;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-social .social-icons a {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-social .social-icons svg {
  fill: white;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.legal-links a {
  color: white;
  opacity: 0.8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.legal-links a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.copyright {
  opacity: 0.6;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Cookie Consent
-------------------------------------------------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-color);
  color: white;
  padding: 1rem 0;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cookie-content p {
  margin-bottom: 1rem;
  margin-right: 2rem;
}

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

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-cookie {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn-cookie.accept:hover {
  background-color: #218838;
}

.btn-cookie.configure {
  background-color: var(--warning-color);
  color: var(--text-color);
}

.btn-cookie.configure:hover {
  background-color: #e0a800;
}

.btn-cookie.reject {
  background-color: var(--error-color);
  color: white;
}

.btn-cookie.reject:hover {
  background-color: #c82333;
}

/* Modal
-------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1010;
}

.modal-content {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light-text-color);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text-color);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  color: var(--success-color);
}

.modal-icon svg {
  width: 40px;
  height: 40px;
}

.modal h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modal p {
  margin-bottom: 2rem;
}

.close-btn {
  padding: 0.8rem 2rem;
}

/* Responsive Design
-------------------------------------------------- */
@media screen and (max-width: 991px) {
  html {
    font-size: 14px;
  }
  
  .hero-content,
  .hero-image {
    flex: 1 100%;
  }
  
  .hero-content {
    margin-right: 0;
    margin-bottom: 3rem;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-content,
  .about-image {
    flex: 1 100%;
  }
  
  .about-content {
    order: 2;
  }
  
  .about-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 576px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 0.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .modal-content {
    width: 90%;
    padding: 2rem 1.5rem;
  }
}
