/* Base styles and variables */
:root {
  --primary-color: #0d5c91;
  --secondary-color: #ffa500;
  --dark-color: #1a2a3a;
  --light-color: #f5f8fa;
  --grey-color: #e0e0e0;
  --text-color: #333;
  --text-light: #777;
  --border-radius: 4px;
  --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  --font-headings: 'Montserrat', 'Roboto', sans-serif;
}

/* Reset and basic styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

ul {
  list-style-type: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

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

.btn-secondary:hover {
  background-color: #e89500;
  color: var(--dark-color);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--dark-color);
  border: 1px solid var(--dark-color);
}

.btn-tertiary:hover {
  background-color: var(--grey-color);
}

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

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

.logo img {
  max-height: 60px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
}

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

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

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/1.jpg') center/cover;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Page Headers */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/2.jpg') center/cover;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

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

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

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

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

.post-card {
  background: 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 5px 25px rgba(0, 0, 0, 0.15);
}

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

.post-content {
  padding: 1.5rem;
}

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

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

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

/* Blog Posts Page */
.blog-posts {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.full-grid {
  margin-top: 0;
}

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

.post-meta span {
  display: flex;
  align-items: center;
}

.post-meta .date:before {
  content: '📅';
  margin-right: 0.3rem;
}

.post-meta .category:before {
  content: '📂';
  margin-right: 0.3rem;
}

.post-meta .author:before {
  content: '👤';
  margin-right: 0.3rem;
}

/* Individual Post Page */
.post-header {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/3.jpg') center/cover;
  color: white;
  padding: 5rem 0;
}

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

.post-header .post-meta {
  color: #ddd;
  justify-content: center;
}

.post-content {
  padding: 4rem 1rem;
  background-color: white;
}

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

.post-featured-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.post-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.post-body h2:first-child {
  margin-top: 0;
}

.post-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

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

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

.post-author {
  display: flex;
  align-items: center;
  background-color: var(--light-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 3rem 0;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.5rem;
}

.author-info h3 {
  margin-bottom: 0.5rem;
}

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

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

.post-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-section {
  margin-bottom: 2.5rem;
  background-color: var(--light-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.sidebar-section h3 {
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--grey-color);
}

.related-posts .related-post {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grey-color);
}

.related-posts .related-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.related-posts img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-right: 1rem;
}

.categories-list li {
  margin-bottom: 0.5rem;
}

.categories-list a {
  display: flex;
  align-items: center;
}

.categories-list a:before {
  content: '▸';
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.sidebar-form {
  display: flex;
  flex-direction: column;
}

.sidebar-form input {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--grey-color);
  border-radius: var(--border-radius);
}

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

.newsletter h2 {
  color: white;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

#newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

#newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

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

/* Countdown Section */
.countdown {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.countdown h2 {
  color: white;
  margin-bottom: 2rem;
}

#countdown-timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-item span:first-child {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.countdown-label {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* About Page */
.about-intro {
  padding: 5rem 0;
}

.about-intro .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  color: var(--primary-color);
  margin-top: 2.5rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

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

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

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

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

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

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

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

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

.team-member h3 {
  margin: 1rem 0 0.3rem;
}

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

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

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

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

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

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

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

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

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

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

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

.partners-section {
  padding: 5rem 0;
  background-color: var(--light-color);
  text-align: center;
}

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

.partner {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.partner:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.partner img {
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.partner p {
  margin-bottom: 0;
  font-weight: 500;
}

.cta-section {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Contact Page */
.contact-section {
  padding: 5rem 0;
}

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

.contact-info {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.info-icon {
  color: var(--primary-color);
  margin-right: 1rem;
  min-width: 24px;
}

.info-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

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

.social-section {
  margin-top: 2rem;
}

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

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

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

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

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

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

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

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

.form-group textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

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

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

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-top: 2rem;
}

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

.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid var(--grey-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background-color: var(--light-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
  border-top: 1px solid var(--grey-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

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

.close-modal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

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

.thank-you-message svg {
  margin-bottom: 1.5rem;
}

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

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

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 5rem 0 1rem;
}

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

.footer-about img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-legal ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a,
.footer-legal a {
  color: #ddd;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--secondary-color);
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  color: #ddd;
}

.footer-contact ul li i {
  margin-right: 0.7rem;
  color: var(--secondary-color);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social 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: white;
  transition: var(--transition);
}

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

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

/* Cookies Banner */
.cookies-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1500;
}

.cookies-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .about-intro .container {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .post-content .container {
    grid-template-columns: 1fr;
  }
  
  .post-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  #newsletter-form {
    flex-direction: column;
  }
  
  #newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  #newsletter-form button {
    border-radius: var(--border-radius);
  }
  
  #countdown-timer {
    gap: 1rem;
  }
  
  .countdown-item span:first-child {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 1.5rem;
  }
  
  nav ul li {
    margin: 0 0.75rem;
  }
  
  .cookies-content {
    flex-direction: column;
  }
  
  .cookies-buttons {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero,
  .page-header {
    padding: 4rem 0;
  }
  
  .countdown-item span:first-child {
    font-size: 1.5rem;
  }
  
  .countdown-label {
    font-size: 0.8rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
}
