/* Image Carousel & Gallery (Light Mode + Dark Blue Theme) */
:root {
    --background: #f0f4f8;
    --content-bg: #ffffff;
    --primary: #1e3a8a;
    --primary-light: #3b5998;
    --accent: #2563eb;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 10px 30px rgba(0,0,0,.15);
    --font: 'Poppins', sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font);
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  /* Navbar */
  .navbar {
    background-color: var(--content-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    width: 100%;
  }
  
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .navbar-brand {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
  }
  
  .navbar-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .navbar-nav a {
    text-decoration: none;
    color: var(--primary-light);
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .navbar-nav a:hover {
    color: var(--accent);
  }
  
  footer {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    background-color: var(--primary);
    color: var(--content-bg);
    margin-top: auto;
  }
  
  /* Content Container */
  .centered-container {
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }
  
  .section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    margin-top: 40px;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
  }
  
  .centered-container:hover .section-title::after {
    width: 100px;
  }
  
  /* Carousel */
  .carousel-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--accent);
    background: var(--content-bg);
    padding: 10px;
    margin: 0 auto;
  }
  
  .carousel-slide {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 10px;
  }
  
  .carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: center;
    border-radius: 12px;
    transition: box-shadow 0.4s ease-in-out;
  }
  
  .carousel-slide img:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent);
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background 0.3s ease;
  }
  
  .carousel-btn:hover {
    background: var(--content-bg);
  }
  
  .prev-btn {
    left: 10px;
    border-radius: 50%;
  }
  
  .next-btn {
    right: 10px;
    border-radius: 50%;
  }
  
  /* Gallery */
  .gallery-container {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    border-radius: 14px;
    background-color: var(--content-bg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 auto;
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .gallery-item:hover .gallery-overlay {
    opacity: 1;
  }
  
  .gallery-title {
    color: var(--content-bg);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
  }
  
  /* ============================ */
  /* MOBILE RESPONSIVENESS    */
  /* ============================ */
  @media (max-width: 768px) {
    .navbar .container {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
      padding: 0 1rem;
    }
  
    .navbar-nav {
      flex-direction: column;
      gap: 0.5rem;
    }
    
    /* Carousel text sidebar styling for mobile */
    .carousel-item-with-text {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
    }
  
    .carousel-item-with-text img {
      height: 300px;
      width: 100%;
    }
  
    .carousel-text-sidebar {
      width: 100%;
      text-align: center;
    }
  
    /* Gallery styling for mobile */
    .gallery-container {
      /* Updated grid to force one column per row on mobile */
      grid-template-columns: 1fr;
      gap: 15px;
      padding: 10px;
    }
  }