/*-----------------------------
      Nav Bar
------------------------------*/
.block-header-2--nav{
   padding-left: 2rem;
}

/* ----------------------------
   Card Grid (Getting Started)
-----------------------------*/
header.header-2, nav.header-2 {
padding-left: 2rem;
padding-right: 1rem;
margin-left: auto;
margin-right: auto;
max-width: 1200px;
}

@media (min-width: 768px) {
  header.header-2, nav.header-2 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card-grid .card {
  flex: 1 1 300px;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
/* Card Grid Container */
.card-grid-container {
  padding-left: 1rem;   /* horizontal breathing room */
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}

/* Optional: increase padding on larger screens */
@media (min-width: 768px) {
  .card-grid-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ----------------------------
   News Carousel
-----------------------------*/
/* News vertical scroll */
.news-carousel {
  max-height: 400px;
  overflow-y: auto; 
  overflow-x: hidden;
  padding-right: 10px;
  display: block;
}
.carousel-item {
  margin-bottom: 1.5rem; 
}

/* Remove bottom margin for the last item */
.news-carousel .carousel-item:last-child {
  margin-bottom: 0;
}

}

/* Optional: style the scrollbar */
.news-carousel::-webkit-scrollbar {
  width: 8px;
}

.news-carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.news-carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.news-carousel::-webkit-scrollbar-thumb:hover {
  background: #555;
}


/* ----------------------------
   Video Grid
-----------------------------*/
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-card {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0.5rem;
}

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

.video-card img {
  width: 100%;
  display: block;
  border-radius: 5px;
}

.video-card h4 {
  margin: 0.5rem 0 0;
}
/* ----------------------------
   Video Card Text Alignment
-----------------------------*/
.video-card h4 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.video-card .video-date {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.video-card .video-content {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

.video-card a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #0066cc;
  text-decoration: none;
}

.video-card a:hover {
  text-decoration: underline;
}

/* ----------------------------
   Modal / Lightbox
-----------------------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
}

.modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: -10px; right: -10px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  font-weight: bold;
  width: 30px; height: 30px;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
}
/* ----------------------------
   Section Spacing
-----------------------------*/
/* Mimic Bootstrap mt-5, mb-5 for top/bottom spacing */
.section-container {
  margin-top: 3rem;   /* mt-5 equivalent */
  margin-bottom: 3rem; /* mb-5 equivalent */
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Optional: add responsive padding */
@media (min-width: 768px) {
  .section-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ----------------------------
   Section Spacing
-----------------------------*/
/* Mimic Bootstrap mt-5, mb-5 for top/bottom spacing */
.section-container {
  margin-top: 3rem;   /* mt-5 equivalent */
  margin-bottom: 3rem; /* mb-5 equivalent */
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Optional: add responsive padding */
@media (min-width: 768px) {
  .section-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ----------------------------
   Section Headers (updated)
-----------------------------*/
.block-section-header {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 1200px;
  padding: 0 1rem;
}

.block-section-header h2,
.block-section-header .header {
  font-size: 2rem; 
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5rem;
}

.block-section-header .subheader {
  font-size: 1.2rem;
  font-weight: 400;
  color: #555;
}

.block-section-header h2::after,
.block-section-header .header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #0066cc;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}



/* ----------------------------
   News Vertical Scroll
-----------------------------*/
.news-carousel {
  max-height: 400px;      /* Set max height as needed */
  overflow-y: auto;       /* Enable vertical scroll */
  padding-right: 10px;    /* Prevent content under scrollbar */
}

/* Scrollbar styling */
.news-carousel::-webkit-scrollbar {
  width: 8px;
}

.news-carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.news-carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.news-carousel::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* ----------------------------
   Video Grid Fixes
-----------------------------*/
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
  padding: 0.5rem;
  min-height: 350px; /* ensures uniform height */
}

.video-card iframe,
.video-card img {
  width: 100%;
  height: 200px;        /* fixed height for alignment */
  object-fit: cover;    /* crops video or image nicely */
  border-radius: 5px;
}

.video-card h4 {
  margin: 0.5rem 0 0;
  text-align: center;
  flex-shrink: 0;
}

.video-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* Optional: add hover effect for videos */
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-card {
    min-height: auto;
  }
  .video-card iframe,
  .video-card img {
    height: 180px;
  }
}

