/* Global Styles & Variables */
:root {
  --primary-color: #1e4b7a;
  --secondary-color: #3a7ca5;
  --accent-color: #d4a017;
  --text-color: #333333;
  --light-text: #7a7a7a;
  --bg-color: #ffffff;
  --light-bg: #f7f9fc;
  --border-color: #e1e8ed;
  --header-height: 80px;
  --footer-bg: #283c54;
  --success-color: #2ecc71;
  --error-color: #e74c3c;
  --warning-color: #f39c12;
  --info-color: #3498db;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
  font-size: 16px;
}

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

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

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

ul, ol {
  list-style-position: inside;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

button, .button, .cta-button, .submit-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

button:hover, .button:hover, .cta-button:hover, .submit-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Reading Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}

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

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

nav a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover:after, nav a.active:after {
  width: 100%;
}

nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  background-color: var(--light-bg);
  padding: 4rem 0;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

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

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.cta-button {
  font-size: 1.1rem;
  padding: 12px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Editor's Note Section */
.editors-note {
  background-color: #f8f9fa;
  padding: 3rem 0;
  margin: 2rem 0;
}

.editor-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.editor-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--box-shadow);
}

.editor-text {
  flex: 1;
}

.editor-text p:last-child {
  margin-bottom: 0;
}

/* Featured Posts Section */
.featured-posts {
  padding: 4rem 0;
}

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

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

.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);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.post-content p {
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

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

.view-all {
  text-align: center;
}

.view-all-button {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.view-all-button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

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

.testimonial-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.testimonial {
  flex: 0 0 calc(50% - 1rem);
  scroll-snap-align: start;
}

.testimonial-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-content:before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  color: rgba(30, 75, 122, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content p {
  position: relative;
  padding-left: 2rem;
  font-style: italic;
}

.testimonial-author {
  margin-top: 1.5rem;
}

.testimonial-author p {
  font-style: normal;
  padding-left: 0;
  margin-bottom: 0;
}

/* Newsletter Section */
.newsletter {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

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

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0 30px;
}

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

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  color: white;
  padding-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-column h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

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

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

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column a:hover {
  color: white;
}

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

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

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

.copyright {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(40, 60, 84, 0.95);
  padding: 1.5rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  color: white;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

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

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

.cookie-btn.customize {
  background-color: white;
  color: var(--primary-color);
}

.cookie-btn.reject {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.cookie-more-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-more-info a {
  color: white;
  text-decoration: underline;
}

/* Blog Page Styles */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

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

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 0;
}

.blog-posts {
  padding: 4rem 0;
}

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

.post-meta .category {
  color: var(--primary-color);
  font-weight: 600;
}

/* Individual Blog Post Styles */
.blog-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.post-featured-image {
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.post-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-image {
  margin: 2.5rem 0;
}

.image-caption {
  text-align: center;
  color: var(--light-text);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  font-style: italic;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.tag {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

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

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

/* About Page Styles */
.about-mission {
  padding: 4rem 0;
}

.mission-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.mission-text {
  flex: 1;
}

.mission-image {
  flex: 1;
}

.mission-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.value-icon {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.value-card h3 {
  margin-bottom: 1rem;
}

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

.team-section {
  padding: 4rem 0;
}

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

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

.team-member {
  text-align: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 5px solid white;
  box-shadow: var(--box-shadow);
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--light-text);
  margin-bottom: 1rem;
}

.team-member p:nth-child(3) {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

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

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

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

.credentials h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

/* Contact Page Styles */
.contact-content {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info h2 {
  margin-bottom: 2rem;
}

.contact-details {
  margin-top: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text h3 {
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.contact-text p {
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.social-connect h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

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

.contact-form-container h2 {
  margin-bottom: 2rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

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

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 75, 122, 0.1);
}

.contact-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-form .checkbox-group input {
  width: auto;
  margin-top: 0.3rem;
}

.contact-form .checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  width: 100%;
  margin-top: 1rem;
}

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

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

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.faq-item {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

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

.modal-content {
  background-color: white;
  margin: auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 500px;
  width: 90%;
  position: relative;
}

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

.thank-you-message {
  text-align: center;
}

.thank-you-message svg {
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.thank-you-message h2 {
  margin-bottom: 1rem;
}

.thank-you-message p {
  margin-bottom: 2rem;
}

.close-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .mission-content {
    flex-direction: column;
  }
  
  .post-header h1 {
    font-size: 2.4rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .hero {
    flex-direction: column;
    padding: 2rem 0;
  }
  
  .hero-content {
    order: 2;
    text-align: center;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .editor-content {
    flex-direction: column;
    text-align: center;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-slider {
    flex-direction: column;
    gap: 2rem;
  }
  
  .testimonial {
    flex: 0 0 100%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .section-container {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .blog-post {
    padding: 1rem;
  }
}
