/* blog.css */

/* Import fonts and base styles are handled globally */
/* Using your color variables from :root in style.css */

.blog-hero {
  background-color: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 4rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  animation: fadeInDown 0.8s ease forwards;
  
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1.2px;
  color: #fff; /* white color */
  margin-top: 20px;
}

.blog-hero p {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

/* Blog posts container */
/*.blog-posts {*/
/*  max-width: 1200px;*/
/*  margin: 3rem auto 6rem auto;*/
/*  padding: 0 1rem;*/
/*  display: grid;*/
/*  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));*/
/*  gap: 2.5rem;*/
/*}*/

/* Individual post cards */
/*.post-card {*/
/*  background-color: var(--light);*/
/*  border-radius: 8px;*/
/*  box-shadow: 0 4px 14px rgba(0,0,0,0.08);*/
/*  overflow: hidden;*/
/*  cursor: pointer;*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  transition: transform 0.3s ease, box-shadow 0.3s ease;*/
/*  outline-offset: 3px;*/
/*/}/*/

/*/.post-card:focus,/*/
/*/.post-card:hover {/*/
/*  transform: translateY(-6px);*/
/*  box-shadow: 0 8px 28px rgba(0,0,0,0.15);*/
/*  outline: none;*/
/*/}/*/

/*/.post-card img {/*/
/*  width: 100%;*/
/*  height: 180px;*/
/*  object-fit: cover;*/
/*  transition: transform 0.5s ease;*/
/*/}/*/

/*/.post-card:hover img,/*/
/*/.post-card:focus img {/*/
/*  transform: scale(1.05);*/
/*/}/*/

/*/.post-content {/*/
/*  padding: 1.5rem 1.5rem 2rem 1.5rem;*/
/*  flex-grow: 1;*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  justify-content: space-between;*/
/*/}/*/

/*/.post-content h2 {/*/
/*  font-family: 'Poppins', sans-serif;*/
/*  font-weight: 600;*/
/*  font-size: 1.5rem;*/
/*  margin-bottom: 0.6rem;*/
/*  color: var(--primary);*/
/*/}/*/

/*/.post-content p {/*/
/*  font-family: 'Open Sans', sans-serif;*/
/*  font-weight: 400;*/
/*  font-size: 1rem;*/
/*  line-height: 1.5;*/
/*  color: var(--dark);*/
/*  flex-grow: 1;*/
/*  opacity: 0.9;*/
/*/}/*/

/*/.blog-posts {/*/
/*  display: grid;*/
/*  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));*/
/*  gap: 2rem;*/
/*  padding: 3rem 1rem;*/
/*  background-color: #f9f9f9;*/
/*}*/

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 1rem;
  background-color: #f9f9f9;
  align-items: center; /* Optional: center posts horizontally */
}


/*.post-card {*/
/*  background: #fff;*/
/*  border-radius: 16px;*/
/*  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);*/
/*  overflow: hidden;*/
/*  transition: transform 0.3s ease, box-shadow 0.3s ease;*/
/*  cursor: pointer;*/
/*  outline: none;*/
/*}*/


/*/.post-card:hover,/*/
/*/.post-card:focus {/*/
/*  transform: translateY(-6px);*/
/*  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);*/
/*}*/

/*/.post-content {/*/
/*  padding: 1.5rem;*/
/*/}/*/

.blog-container {
    width: 70%;
    align-items: center;
}

.blog-snippet {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.5rem 5px;
  border-radius:20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.blog-snippet:hover {
  background-color: #fafafa;
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.snippet-text {
  flex: 1;
}

.snippet-text .author-name {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.4rem;
}

.snippet-text h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.6rem;
}

.snippet-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.8rem;
}

.snippet-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.highlights {
  padding-left: 1.2rem;
  margin: 0;
}

.highlights li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #555;
}

.snippet-img img {
  width: 160px;
  height: 100px;
  object-fit: contain;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .blog-snippet {
    flex-direction: column;
    align-items: flex-start;
  }

  .snippet-img img {
    width: 100%;
    height: auto;
    margin-top: 1rem;
  }
}




.post-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  outline: none;
  max-width: 900px;
  width: 100%;
}

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

.post-card img {
  width: 250px;
  height: auto;
  object-fit: cover;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.post-content {
  flex: 1;
  padding: 1.5rem;
}


.post-content h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.post-content h3 {
  font-size: 1.1rem;
  color: #0A2463;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin-left: 1.5rem;
  color: #444;
  margin-bottom: 1rem;
}

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

.post-content figure {
  margin: 1.5rem 0;
  text-align: center;
}

.post-content figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.post-content figcaption {
  font-size: 0.875rem;
  color: #777;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .post-content {
    padding: 1rem;
  }

  .post-content h2 {
    font-size: 1.25rem;
  }

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


/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 36, 99, 0.85); 
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background-color: var(--light);
  max-width: 900px;
  width: 100%;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
  color: var(--accent);
  outline: none;
}

#modalTitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#modalBody {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--dark);
}

#modalBody img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

#modalBody ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

#modalBody ul li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

#modalBody p {
  margin-bottom: 1rem;
}

#modalBody strong {
  font-weight: 700;
}

#modalBody em {
  font-style: italic;
}

#modalBody a {
  color: var(--primary);
  text-decoration: underline;
}

#modalBody a:hover {
  color: var(--accent);
}


 Footer 
.footer {
  background-color: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 1.5rem 1rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  user-select: none;
}




/* Footer Styling for blog.html */

.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

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

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

.footer h3 {
  color: var(--light);
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
  position: relative;
  padding-bottom: var(--space-sm);
}

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

.footer ul li {
  margin-bottom: var(--space-sm);
}

.footer ul li a {
  color: var(--light);
  opacity: 0.8;
  transition: all var(--transition-normal);
}

.footer ul li a:hover {
  opacity: 1;
  color: var(--secondary);
  padding-left: var(--space-sm);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.footer-contact p i {
  margin-right: var(--space-sm);
  color: var(--secondary);
}

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

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive tweaks */

@media (max-width: 600px) {
  .footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-info p {
    max-width: 100%;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2.25rem;
  }
  .blog-posts {
    grid-template-columns: 1fr;
    margin: 2rem auto 4rem auto;
  }
  .post-card img {
    height: 160px;
  }
  .modal-content {
    padding: 1.5rem 1.8rem;
  }
}

/* Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  } to {
    opacity: 1;
  }
}