/* =============================================================================
   File: style.css
   Description: Main stylesheet for blogs with reset, base styles, and component-specific styling.
   Font: Using "Poppins" from Google Fonts.
============================================================================= */

/* -------------------------- Import Google Fonts -------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* ------------------------- Page Specific Styles -------------------------- */

/* BLOG DETAIL PAGE */
#blog-detail {
  margin-top: 5rem;
}

/* BLOGS MAIN SECTION */
#blogs-main {
  margin-top: 5rem;
  font-family: "Poppins", sans-serif;
}

#blogs-h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #002659;
}

#blogs-h2 {
  font-family: "Poppins", sans-serif;
  color: black;
  font-weight: 600;
  font-size: 1.3rem;
}

#blogs-header {
  text-align: center;
  font-family: "Poppins", sans-serif;
  margin-bottom: 20px;
}

p {
  font-family: "Poppins", sans-serif;
}

/* ------------------------- Container Layouts ----------------------------- */
.blogs-container {
  width: 95%;
  max-width: 850px;
  margin: 40px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.blogs-container-main {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 20px;
}

/* ------------------------- Hero Section ----------------------------- */
.blogs-hero {
  position: relative;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.blogs-hero-content {
  padding: 30px;
  color: white;
  width: 100%;
}

.blogs-hero h1 {
  font-size: 2.2rem;
  margin: 10px 0 20px;
  line-height: 1.3;
  max-width: 80%;
}

/* ------------------------- Divider ----------------------------- */
.blogs-divider {
  height: 4px;
  width: 40px;
  background-color: #8a2be2;
  margin: 0 auto 30px;
  border-radius: 2px;
}

/* ------------------------- Articles Grid ----------------------------- */
.blogs-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* ------------------------- Article Cards ----------------------------- */
.blogs-article-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
  border: 1px solid #f0f0f0;
}

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

.blogs-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

.blogs-card-content {
  padding: 10px;
}

.blogs-card-content h2 {
  font-size: 1.1rem;
  margin: 10px 0 15px;
  line-height: 1.4;
}

/* ------------------------- Tags ----------------------------- */
.blogs-tag {
  display: inline-block;
  background-color: #6c5ce7;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ------------------------- Author Info ----------------------------- */
.blogs-author {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.blogs-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.blogs-author-info {
  display: flex;
  flex-direction: column;
}

.blogs-author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #97989F;
}

.blogs-author-name-hero {
  font-weight: 600;
  font-size: 0.9rem;
  color: #000000;
}

.blogs-date {
  font-size: 0.8rem;
  color: #97989F;
}

/* ------------------------- Responsive Design ----------------------------- */
@media (max-width: 992px) {
  .blogs-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blogs-hero h1 {
    max-width: 100%;
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .blogs-hero {
    height: 350px;
  }
}

@media (max-width: 576px) {
  .blogs-articles-grid {
    grid-template-columns: 1fr;
  }

  .blogs-hero {
    height: 300px;
  }

  .blogs-hero h1 {
    font-size: 1.5rem;
  }

  .blogs-container,
  .blogs-container-main {
    padding: 15px;
  }
}

/* ------------------------- Blog Detail Styles ----------------------------- */
.blog-title {
  color: #002659;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
}

.blog-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
}

.blog-meta .separator {
  margin: 0 5px;
}

.blog-meta .social-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Mobile-specific adjustments for blog-meta */
@media (max-width: 576px) {
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-meta .social-icons {
    margin-top: 5px;
  }

  .separator {
    display: none;
  }
}

.author {
  color: #002659;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.bd-h2 {
  color: #002659;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.blog-header-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin: 20px 0;
}

.blog-blue-circle-image {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  margin: 10px 10px 10px 0;
}

.blog-content-divider {
  height: 2px;
  width: 100%;
  background-color: #0029df;
  margin: 0 auto 1rem;
  border-radius: 2px;
}

/* ------------------------- Vertical Separator ----------------------------- */
.separator {
  width: 2px;
  height: 100%;
  margin: 0 1rem;
}

/* ------------------------- Research Training Card ----------------------------- */
.research-training-card {
  position: relative;
  background: url('/static/blogs/images/rt_2025_waitlist_banner.jpg') no-repeat center center;
  background-size: cover;
  color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.research-training-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.research-training-card p {
  font-size: 1.1rem;
  margin: 0 0 15px 0;
  width: 100%;
}

/* Waitlist button override for training card */
.research-training-card .waitlist-btn {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 8px 20px;
  margin-top: 10px;
  align-self: flex-start;
}

.research-training-card .waitlist-btn:hover {
  background-color: #ffffff;
  color: #1a2a6c;
}



/* ------------------------- Copy URL Section ----------------------------- */
.copy-url-section {
  text-align: center;
  margin-top: 10px;
  animation: fade-in 1s ease-in-out;
}

.copy-url-btn {
  background-color: #004AAD;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.copy-url-btn:hover {
  background-color: #0021b5;
}

.copy-message {
  display: none;
  margin-left: 10px;
  font-size: 14px;
  color: green;
}

/* ------------------------- Waitlist Button ----------------------------- */
.waitlist-btn {
  display: inline-block;
  background-color: #004AAD;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 20px;
}

.waitlist-btn:hover {
  background-color: #005bb5;
  color: #ffee00
}

.styled-divider {
  border: 0;
  border-top: 3px solid #e5e5e5;
  margin: 40px 0;
}

/* ------------------------- Upcoming Event Card ----------------------------- */
.upcoming-event-card {
  padding: 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin: 4rem auto;
  text-align: center;
  max-width: 650px;
  transition: box-shadow 0.3s ease;
}

.upcoming-event-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Event Badge */
.upcoming-event-card .event-badge {
  display: inline-block;
  background: #e0ebff;
  color: #004aad;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* Title */
.upcoming-event-card h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #004aad;
}

/* Description */
.upcoming-event-card p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* Call-to-Action Button */
.upcoming-event-card .waitlist-btn {
  display: inline-block;
  background: #004aad;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.upcoming-event-card .waitlist-btn:hover {
  background: #00337a;
  transform: scale(1.05);
}


/* ------------------------- Social Icons ----------------------------- */
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.social-icons a {
  text-decoration: none;
  color: #333;
  margin: 0 5px;
  font-size: 20px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #007bff;
}

.social-icons span {
  display: inline-block;
}

/* ------------------------- Animations ----------------------------- */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoom-in {
  from {
    transform: scale(1.05);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}