/* Base Styles */
:root {
  --primary-color: #0e76fd;
  --primary-dark: #0a5cc2;
  --secondary-color: #2edaff;
  --accent-color: #ff9500;
  --text-color: #333333;
  --text-light: #777777;
  --bg-color: #ffffff;
  --bg-light: #f5f9ff;
  --bg-dark: #0a1f3d;
  --border-color: #e1e8f0;
  --success-color: #28a745;
  --error-color: #dc3545;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

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 {
  list-style: none;
}

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

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

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
}

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

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

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

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

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

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

nav ul {
  display: flex;
  gap: 24px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 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);
  font-weight: 600;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #102a4c 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

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

.featured-posts h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2rem;
  font-weight: 700;
}

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

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

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

.post-content {
  padding: 24px;
}

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

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

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: 4px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 8px;
}

/* Call to Action Section */
.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

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

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  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;
  background-color: var(--accent-color);
  padding: 0 24px;
}

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

/* Did You Know Section */
.did-you-know {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.did-you-know h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2rem;
}

.facts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.fact {
  background: white;
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fact-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.fact p {
  margin: 0;
  flex: 1;
}

/* Current Time Section */
.current-time {
  padding: 24px 0;
  background-color: var(--bg-dark);
  color: white;
}

.time-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.time-display h3 {
  margin: 0;
  font-weight: 600;
}

#current-time {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Footer Styles */
footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 64px 0 32px;
}

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

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -8px;
  left: 0;
}

.footer-column p {
  opacity: 0.8;
  margin-bottom: 16px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

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

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

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

.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(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-dark);
  color: white;
  padding: 16px;
  z-index: 1000;
  display: none;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

/* Blog Page Styles */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #102a4c 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 64px 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.blog-image {
  width: 100%;
  height: 250px;
}

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

.blog-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.blog-card h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.blog-card p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.blog-card .read-more {
  margin-top: auto;
}

/* Single Post Page */
.blog-post {
  padding: 64px 0;
}

.post-header {
  margin-bottom: 32px;
}

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

.post-meta {
  display: flex;
  gap: 24px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.post-featured-image {
  margin-bottom: 32px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

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

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

.post-content p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 48px 0 24px;
}

.post-content h3 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
}

.post-content ul, 
.post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-content ul li, 
.post-content ol li {
  margin-bottom: 8px;
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.tag {
  background-color: var(--bg-light);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.9rem;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 64px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.prev-post,
.next-post {
  max-width: 45%;
}

.prev-post a,
.next-post a {
  display: flex;
  flex-direction: column;
}

.prev-post span,
.next-post span {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.related-posts {
  margin-top: 64px;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 32px;
}

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

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

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

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

.related-card h3 {
  padding: 16px;
  font-size: 1.2rem;
}

.related-card .read-more {
  display: block;
  text-align: center;
  padding: 12px;
  background-color: var(--bg-light);
}

/* Disclaimer Box */
.disclaimer {
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  margin: 32px 0;
  font-size: 0.9rem;
}

/* About Page */
.about-story {
  padding: 64px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-mission {
  padding: 64px 0;
  background-color: var(--bg-light);
}

.mission-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.mission-box {
  background: white;
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.mission-box h3 {
  margin-bottom: 16px;
  color: var(--primary-color);
}

.team-section {
  padding: 64px 0;
}

.team-section h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2rem;
}

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

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

.team-member:hover {
  transform: translateY(-5px);
}

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

.team-member h3 {
  margin: 16px 0 8px;
  font-size: 1.3rem;
}

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

.team-member .social-icons {
  justify-content: center;
  margin: 16px 0;
}

.about-stats {
  padding: 64px 0;
  background-color: var(--bg-dark);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 8px;
}

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

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

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

.icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: var(--primary-color);
}

.details h3 {
  margin-bottom: 8px;
}

.details p, 
.details a {
  color: var(--text-light);
}

.social-connect {
  margin-top: 32px;
}

.social-connect h3 {
  margin-bottom: 16px;
}

.contact-form-container {
  background: white;
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

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

.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(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.map-section {
  padding: 64px 0;
  background-color: var(--bg-light);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 32px;
}

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

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

.popup-content {
  background: white;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  padding: 32px;
  text-align: center;
  position: relative;
}

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

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.checkmark-circle {
  stroke: var(--success-color);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke: var(--success-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.popup-body h2 {
  color: var(--success-color);
  margin-bottom: 16px;
}

/* Media Queries */
@media (max-width: 992px) {
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 24px;
  }
  
  .prev-post,
  .next-post {
    max-width: 100%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 12px;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  .blog-card {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  header .container {
    flex-direction: column;
    gap: 16px;
  }
  
  nav ul {
    gap: 16px;
  }
  
  .hero {
    padding: 48px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .facts-container {
    grid-template-columns: 1fr;
  }
  
  .time-display {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
  }
}
