/* Base Styles */
:root {
  --primary-color: #e60000;
  --secondary-color: #002868;
  --accent-color: #ffd700;
  --background-color: #ffffff;
  --light-bg-color: #f5f5f5;
  --dark-bg-color: #333333;
  --text-color: #333333;
  --light-text-color: #6c757d;
  --border-color: #e6e6e6;
  --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-secondary: 'Georgia', serif;
  --font-size-base: 16px;
  --font-size-increased: 18px;
  --container-width: 1140px;
  --border-radius: 4px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

body.font-increased {
  font-size: var(--font-size-increased);
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

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

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

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

ul, ol {
  padding-left: 20px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--secondary-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1.2rem;
}

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

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

.btn-primary:hover {
  background-color: #cc0000;
  color: white;
}

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

.btn-secondary:hover {
  background-color: #001f52;
  color: white;
}

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

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

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

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

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

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

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

.font-size-toggle button {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.font-size-toggle button:hover {
  background-color: var(--light-bg-color);
}

.font-size-toggle svg {
  margin-right: 8px;
}

/* Hero Section */
.hero {
  background-color: var(--secondary-color);
  color: white;
  padding: 5rem 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 40, 104, 0.8), rgba(0, 40, 104, 0.8)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Featured Posts */
.featured-posts {
  padding: 5rem 0;
  background-color: var(--light-bg-color);
}

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

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

.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 8px 20px rgba(0, 0, 0, 0.15);
}

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

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

/* Expert Interview */
.expert-interview {
  padding: 5rem 0;
  background-color: white;
}

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

.interview-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

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

.expert-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.expert-title {
  font-style: italic;
  color: var(--light-text-color);
  margin-bottom: 1.5rem;
}

.interview-text p {
  margin-bottom: 1.5rem;
}

.interview-text strong {
  color: var(--secondary-color);
}

/* CTA Section */
.cta {
  background-color: var(--secondary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

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

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

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

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

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

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

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

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

.blog-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 2rem;
}

.blog-content h2 {
  margin-top: 0;
  font-size: 1.75rem;
}

.blog-meta {
  color: var(--light-text-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Single Post Styles */
.post-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0;
}

.post-meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.post-meta span {
  margin-right: 1rem;
}

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

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  max-width: 800px;
  margin: 4rem auto;
}

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

.post-body ul, .post-body ol {
  margin-bottom: 1.5rem;
}

.post-tags {
  margin: 3rem 0 1.5rem;
}

.post-tags a {
  display: inline-block;
  background-color: var(--light-bg-color);
  padding: 5px 10px;
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: 3px;
  font-size: 0.875rem;
}

.post-share {
  margin: 1.5rem 0 3rem;
  display: flex;
  align-items: center;
}

.post-share span {
  margin-right: 1rem;
  font-weight: 600;
}

.post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--light-bg-color);
  border-radius: 50%;
  margin-right: 8px;
}

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

.post-author-bio {
  display: flex;
  padding: 2rem;
  background-color: var(--light-bg-color);
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
}

.post-author-bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 2rem;
}

.author-details h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--light-text-color);
}

.author-details h4 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

.related-posts h3 {
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

.related-card h4 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1rem;
}

.related-card a {
  display: block;
  padding: 0 1rem 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* About Page Styles */
.about-hero {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.about-intro {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

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

.about-text h2 {
  margin-top: 0;
}

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

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

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

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

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

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.team-card h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.25rem;
}

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

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

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

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--light-bg-color);
  border-radius: 50%;
  margin: 0 5px;
}

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

.testimonials {
  padding: 5rem 0;
}

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

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  padding: 2rem;
  background-color: var(--light-bg-color);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

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

.testimonial-content p::before {
  content: '"';
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: -1rem;
}

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

.testimonial-author p {
  margin-bottom: 0.25rem;
}

/* Contact Page Styles */
.contact-hero {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.contact-section {
  padding: 5rem 0;
}

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

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

.info-item {
  display: flex;
  margin-bottom: 2rem;
}

.info-item svg {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.info-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

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

.social-connect h3 {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
}

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

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

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

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

.form-group {
  margin-bottom: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

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

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

.form-group textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  grid-column: 1 / -1;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.map-section {
  padding-bottom: 5rem;
}

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

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thank You Popup */
.thank-you-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.thank-you-popup.visible {
  display: flex;
}

.thank-you-content {
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
}

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

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

.thank-you-content h2 {
  margin-top: 0;
}

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

/* Footer */
footer {
  background-color: var(--dark-bg-color);
  color: white;
  padding: 4rem 0 2rem;
}

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

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

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

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

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

.footer-links a {
  color: white;
  opacity: 0.8;
}

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

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact svg {
  margin-right: 10px;
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-social .social-icons {
  margin-top: 1rem;
}

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

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

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

.cookie-banner.visible {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.cookie-more-info {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .interview-container {
    grid-template-columns: 1fr;
  }
  
  .expert-image {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .blog-card {
    grid-template-columns: 1fr;
  }
  
  .blog-card img {
    height: 250px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }
  
  .nav-links {
    margin: 1rem 0;
  }
  
  .nav-links li:first-child {
    margin-left: 0;
  }
  
  .font-size-toggle {
    margin-top: 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: var(--border-radius);
  }
  
  .newsletter-form button {
    margin-top: 1rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .post-author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .post-author-bio img {
    margin: 0 auto 1.5rem;
  }
}

@media (max-width: 576px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links li {
    margin: 0.5rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .post-featured-image {
    height: 250px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo img {
    margin: 0 auto 1rem;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .footer-social .social-icons {
    justify-content: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--light-bg-color);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}
