:root {
  /* Maroon Color Palette - Professional Government Theme */
  --primary-maroon: #8B0000;
  --primary-maroon-light: #A52A2A;
  --primary-maroon-lighter: #CD853F;
  --primary-maroon-dark: #660000;
  --primary-maroon-darker: #4A0000;
  --primary-maroon-accent: #8B0000E6;
  --primary-text: #2C2C2C;
  --primary-border: #8B0000;
  
  /* Secondary Colors */
  --secondary-gold: #DAA520;
  --secondary-gold-light: #F4D03F;
  --accent-cream: #FDF2E9;
  --accent-gray: #F8F9FA;
  --success-green: #28A745;
  --warning-orange: #FD7E14;
  --info-blue: #17A2B8;
  
  /* Text Colors */
  --text-primary: #2C2C2C;
  --text-secondary: #6C757D;
  --text-muted: #ADB5BD;
  --text-white: #FFFFFF;
  
  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-light: #FEFEFE;
  --bg-dark: #343A40;
  
    /* Font Sizes - Using rem for better scalability */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.5rem;     /* 24px */
    --font-size-xl: 2rem;       /* 32px */
    --font-size-xxl: 3rem;      /* 48px */
    --font-size-xxxl: 4rem;     /* 64px */
    
    /* Responsive Font Sizes */
    --h1-desktop: var(--font-size-xxxl);
    --h1-tablet: var(--font-size-xxl);
    --h1-mobile: var(--font-size-xl);
    
    --h2-h3-desktop: var(--font-size-xxl);
    --h2-h3-tablet: var(--font-size-xl);
    --h2-h3-mobile: var(--font-size-lg);
    
    --h4-desktop: var(--font-size-lg);
    --h4-tablet: var(--font-size-md);
    --h4-mobile: var(--font-size-base);
    
    --h5-desktop: var(--font-size-md);
    --h5-tablet: var(--font-size-base);
    --h5-mobile: var(--font-size-sm);
    
    --p-desktop: var(--font-size-base);
    --p-tablet: var(--font-size-sm);
    --p-mobile: var(--font-size-sm);
  
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-bolder: 900;
  
    /* Line Heights */
    --line-height-base: 1.5;
    --line-height-tight: 1.2;
  
    /* Letter Spacing */
    --letter-spacing-normal: normal;
    --letter-spacing-wide: 0.05em;
  }
  
  @font-face {
    font-family: 'Nirmala';
    src: url('../fonts/Nirmala.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  body {
    font-family: 'Nirmala', sans-serif;
    font-size: var(--font-size-md);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    /* max-width: 1440px; */
    margin: auto;
    /* padding: 0 12px; */
  }

  /* Base responsive font scaling */
  html {
    font-size: 16px; /* Base font size for rem calculations */
  }

  @media screen and (max-width: 1200px) {
    html {
      font-size: 15px;
    }
  }

  @media screen and (max-width: 768px) {
    html {
      font-size: 14px;
    }
  }

  @media screen and (max-width: 480px) {
    html {
      font-size: 13px;
    }
  }
  
  img {
    width: 100%;
    max-width: 100% ;
    object-fit: contain ;
  }
  
  h1  {
    font-weight: var(--font-weight-bold);
    font-size: var(--h1-desktop);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--primary-maroon);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom:  0.6em;
    
  }

   h2, h3 {
    font-weight: var(--font-weight-bold);
    font-size: var(--h2-h3-desktop);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--primary-maroon);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom:  0.6em;
    
  }
  /* Tablet Styles - 1146px and below */
  @media screen and (max-width: 1146px) {
    h1, h1.content-title {
      font-size: var(--h1-tablet) !important;
    }
    
    h2, h3, h2.content-title, h3.content-title {
      font-size: var(--h2-h3-tablet) !important;
    }
    
    h4, h4.content-title, h4.mb-3 {
      font-size: var(--h4-tablet) !important;
    }
    
    h5, h5.content-subtitle, h5.mb-0, h5.text-muted, .text-muted h5 {
      font-size: var(--h5-tablet) !important;
    }
    
    p {
      font-size: var(--p-tablet);
    }
    
    body {
      font-size: var(--font-size-base);
    }
  }

  /* Mobile Styles - 768px and below */
  @media screen and (max-width: 768px) {
    h1, h1.content-title {
      font-size: var(--h1-mobile) !important;
    }
    
    h2, h3, h2.content-title, h3.content-title {
      font-size: var(--h2-h3-mobile) !important;
    }
    
    h4, h4.content-title, h4.mb-3 {
      font-size: var(--h4-mobile) !important;
    }
    
    h5, h5.content-subtitle, h5.mb-0, h5.text-muted, .text-muted h5 {
      font-size: var(--h5-mobile) !important;
    }
    
    p {
      font-size: var(--p-mobile);
    }
    
    body {
      font-size: var(--font-size-sm);
    }
  }

  /* Extra Small Mobile - 480px and below */
  @media screen and (max-width: 480px) {
    h1, h1.content-title {
      font-size: var(--font-size-lg) !important;
    }
    
    h2, h3, h2.content-title, h3.content-title {
      font-size: var(--font-size-md) !important;
    }
    
    h4, h4.content-title, h4.mb-3 {
      font-size: var(--font-size-base) !important;
    }
    
    h5, h5.content-subtitle, h5.mb-0, h5.text-muted, .text-muted h5 {
      font-size: var(--font-size-sm) !important;
    }
    
    p {
      font-size: var(--font-size-xs);
    }
  }
  
  h4 {
    font-weight: var(--font-weight-bold);
    font-size: var(--h4-desktop);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--primary-maroon-dark);
    margin: 0.4em auto;
  }
  
  h5 {
    font-weight: var(--font-weight-bold);
    font-size: var(--h5-desktop);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--primary-maroon-dark);
    margin: 0.2em auto;
  }
  
  p {
    font-size: var(--p-desktop);
    font-weight: var(--font-weight-normal);
  }

  /* Additional specificity for common class combinations */
  h4.mb-3, h4.content-title {
    font-size: var(--h4-desktop);
  }

  h5.content-subtitle, h5.mb-0, h5.text-muted {
    font-size: var(--h5-desktop);
  }

  /* Override Bootstrap text-muted for responsive behavior */
  /* .text-muted h5, h5.text-muted {
    font-size: var(--h5-desktop) !important;
  } */
  
  a {
    text-decoration: none;
  }

  /* Bottom Nav Styles */
  @keyframes gradientAnimation {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  .col-lg-6.col-md-12 {
    position: relative;
    padding-bottom: 20px; /* Optional, to add some space below content */
  }
  
  .col-lg-6.col-md-12 img {
    display: block;
    width: 100%; /* Make sure image is responsive */
    height: auto; /* Keep the aspect ratio intact */
    margin-top: 20px; /* Optional, to add space above the image */
  }
  
  .alert {
    margin-bottom: 20px;
  }
  
  .content-title {
    margin-bottom: 10px;
  }
  
  .content-subtitle {
    margin-bottom: 15px;
  }
  
  .preloader {
    position: fixed;
    inset: 0;
    background-color: var(--primary-maroon-dark); /* Modern maroon background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }
  
  .spinner {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-gold);
    animation: bounce 1.4s infinite ease-in-out;
  }
  
  .dot1 {
    animation-delay: 0s;
  }
  .dot2 {
    animation-delay: 0.2s;
  }
  .dot3 {
    animation-delay: 0.4s;
  }
  
  @keyframes bounce {
    0%, 80%, 100% {
      transform: scale(0.8);
      opacity: 0.5;
    }
    40% {
      transform: scale(1.2);
      opacity: 1;
    }
  }
  
  /* Smooth hide */
  .preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  
  #header {
    background: var(--primary-maroon);  /* Primary maroon */
    background: -webkit-linear-gradient(to right, var(--primary-maroon-dark), var(--primary-maroon), var(--primary-maroon-light)); 
    background: linear-gradient(to right, var(--primary-maroon-dark), var(--primary-maroon), var(--primary-maroon-light));
    /* padding:  1.2em; */
    padding-top: 0;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
  }
  
  
  .animated-text-header {
    background: linear-gradient(90deg, var(--secondary-gold-light), var(--text-white), var(--accent-cream));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 4s ease infinite;
    line-height: 1.2;
    margin: 0;
  }

   .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    min-height: 80vh;
    text-align: center;
    background: url('/static/images/s1.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
  }

  /* Glassmorphism Overlay */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
  }

  .hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInDown 1s ease forwards;
  }

  .hero p {
    margin: 1rem 0 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0.9;
  }

  .hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.4s ease forwards;
  }

  .hero-btns a {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hero-btns a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4);
  }

  /* Animations */
  @keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2rem;
    }
    .hero p {
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .hero {
      padding: 2rem 1rem;
    }
    .hero h1 {
      font-size: 1.8rem;
    }
    .hero p {
      font-size: 0.95rem;
    }
    .hero-btns {
      flex-direction: column;
    }
  }

  .info-section {
    background-color: rgba(0, 0, 0, 0.06);
    padding:  0.6em 0em;
    text-align: justify;
  }
  .info-section p{
    text-align: justify;
  }


  .contact-info {
    display: flex;
    flex-wrap: wrap; /* Makes it responsive */
    gap: 15px; /* Space between items */
    /* margin-right: 1.2em; */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between items */
    font-size: var(--font-size-base);
    color: #ffffff; /* Adjust text color */
}

.contact-item i {
    color: #ffffff; /* Adjust icon color */
    font-size: var(--font-size-md);
}

.contact-item a {
    text-decoration: none;
    color: inherit; /* Keeps the text color consistent */
}

  .contact-item a:hover {
    text-decoration: none;
    color: var(--secondary-gold);
    
  }  .slider-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .slider-content {
    display: flex;
    width: fit-content;
  }
  
  .slider-track {
    display: flex;
    flex-wrap: nowrap;
    animation: slide 15s linear infinite;
  }
  
  .slider-item {
    padding: 15px 30px;
    font-size: var(--font-size-base);
    color: #333;
    border-right: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    color: #ffffff !important;
  
  }
  
  .slider-item .icon {
    margin-right: 10px;
    color: var(--secondary-gold);
  }
  
  /* Smooth scrolling effect */
  @keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
  }
  
  /* Pause on hover */
  .slider-container:hover .slider-track {
    animation-play-state: paused;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .slider-item {
        padding: 10px 15px;
        font-size: var(--font-size-sm);
    }
  }
  
  .Section .container {
    margin-bottom: 1.2em;
    margin-top: 1.2em;
    padding: 1.2em;
  }
  
  .news .row .col-sm-6 {
    margin-bottom: 1.2em;
  }
  
  .secn-btn {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-maroon-dark));
    color: white;
    padding: 12px 24px;
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .secn-btn:hover {
    background: linear-gradient(135deg, var(--primary-maroon-light), var(--primary-maroon));
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
    color: white;
    transform: translateY(-2px);
  }

  .secn-btn svg:hover {
    color: var(--sky-blue-accent);
  }
  .secn-btn:hover i{
    color: var(--sky-blue-accent);
  }
  .primary-btn {
    padding: 8px 16px;
    font-size: var(--font-size-md);
    font-weight: 500;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
  }
  
  /* Responsive button styles */
  @media screen and (max-width: 768px) {
    .secn-btn, .primary-btn {
      font-size: var(--font-size-base);
      padding: 6px 12px;
    }
    
    .contact-item {
      font-size: var(--font-size-sm);
    }
    
    .contact-item i {
      font-size: var(--font-size-base);
    }
  }
  
  @media screen and (max-width: 480px) {
    .secn-btn, .primary-btn {
      font-size: var(--font-size-sm);
      padding: 4px 8px;
    }
  }
  
  .primary-btn:hover {
    background: linear-gradient(135deg, #0056b3, #003d82);
    box-shadow: 0 6px 15px rgba(0, 91, 187, 0.5);
    color: white;
  }
  
  .download-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
  }
  
  .download-btn:hover {
    background-color: #0056b3;
  }
  
  nav a:hover {
    color: var(--sky-blue-dark) ;
  }
  nav a:active {
    color: var(--sky-blue-darker) !important;
  }
  
.latest-gallery {
    background-color: #f8f9fa;
}

.info-section {
    padding: 4rem 0;
}

.gallery h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
}

.secn-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.secn-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.carousel-inner {
    border-radius: 15px !important;
    overflow: hidden;
}

.carousel-item img {
    height: 520px;
    object-fit: cover;
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    border-radius: 50% !important;
    padding: 15px !important;
    width: 40px !important;
    height: 40px !important;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    border: 2px solid #fff;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #007bff !important;
    border-color: #007bff !important;
    transform: scale(1.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .secn-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .info-section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 200px;
    }
    
    .gallery h2 {
        font-size: 1.8rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 35px !important;
        height: 35px !important;
        padding: 12px !important;
    }
}

/* Smooth transitions */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Custom shadow */
.shadow-custom {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
  
  .profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
  }
  
  .notice-alert .container {
    margin: 0;
  }
  
  .notice-alert {
    background: var(--primary-maroon);  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, var(--primary-maroon), var(--primary-maroon-light), var(--primary-maroon-dark));/* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, var(--primary-maroon), var(--primary-maroon-light), var(--primary-maroon-dark)); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    padding:  0em 2em;
  }
  
  .news .card-title{
    margin-top:  1em;
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-wide);
    color: #fff;
  }
  
  .news .card-text{
    color: #fff;
  }
  
  .news-card {
    background-color: #008000;
    transition: background-color 0.5s ease, color 0.5s ease;
  }
  .news-card-1 {
    background-color: #0981D1;
    transition: background-color 0.5s ease, color 0.5s ease;
  }
  
  .news-card-2 {
    background-color: #FFAA1D;
    transition: background-color 0.5s ease, color 0.5s ease;
  }
  .news-card-3 {
    background-color: #660000;
    transition: background-color 0.5s ease, color 0.5s ease;
  }
  
  .card:hover {
    background-color: white !important;
    color: black !important;
  }
  
  .vision .vision-img {
    width: 100px;
    object-fit: contain;
  }
  
  /* Ensure text and icons remain visible on hover */
  .news-card:hover i,
  .news-card:hover h5,
  .news-card:hover p {
    color: black !important;
  }
  .news-card-1:hover i,
  .news-card-1:hover h5,
  .news-card-1:hover p {
    color: black !important;
  }
  .news-card-2:hover i,
  .news-card-2:hover h5,
  .news-card-2:hover p {
    color: black !important;
  }.news-card-3:hover i,
  .news-card-3:hover h5,
  .news-card-3:hover p {
    color: black !important;
  }

  .main-section {
    position: relative;
    background: url('/static/images/image1.webp') center / cover no-repeat;
    padding: 60px 0;
    color: white;
    overflow: hidden;
  }
  
  /* Glassmorphism overlay */
  .main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 9, 137, 0.365); /* light transparent overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
  }
  
  /* Content inside stays above the overlay */
  .main-section > * {
    position: relative;
    z-index: 2;
  }
  

.vision-mission-container {
    background: linear-gradient(to left, var(--primary-maroon), var(--primary-maroon-light), var(--primary-maroon-dark));
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dragon-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    /* background-image: url('/static/images/flagbg.jpg'); */
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
}

.stats-container {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 40px 0;
    margin-top: 40px;
}

.stats-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-item:last-child {
    border-right: none;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 2px solid #3aeaf3;
    background-color: rgba(0, 0, 0, 0.4);
}

.icon-circle i {
    font-size: 2rem;
    color: #68d1eb;
}

.stats-number {
    font-size: 2.0rem;
    font-weight: bold;
    margin-bottom: 0;
}

.stats-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.unit {
    font-size: 1.2rem;
    vertical-align: super;
    margin-left: 5px;
}
  
     .services {
      padding: 50px 0;
      background-color: #e8eaec;
    }
    
    .service-container {
      justify-content: center;
    }
    
    .service-item {
      margin-bottom: 30px;
    }
    
    .service-box {
      border-radius: 10px;
      padding: 30px 20px;
      text-align: center;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      background-size: cover;
      background-position: center;
      color: #fff;
    }
    
    .service-box::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      transition: all 0.3s ease;
      z-index: 1;
    }
    
    .service-box:hover::before {
      background: rgba(0, 0, 0, 0.7);
    }
    
    .service-box .content {
      position: relative;
      z-index: 2;
    }
    
    .service-box:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
    
    .service-icon {
      width: 40px;
      height: auto;
      margin-bottom: 15px;
      transition: all 0.3s ease;
      filter: brightness(0) invert(1);
    }
    
    .service-box:hover .service-icon,
    .service-box:hover i {
      transform: scale(1.2);
    }
    
    .service-box i {
      margin-bottom: 15px;
      transition: all 0.3s ease;
      color: #fff;
    }
    
    .service-box h4 {
      margin-bottom: 15px;
      font-weight: 600;
      color: #fff;
      transition: all 0.3s ease;
    }
    
    .read-more {
      color: #fff;
      background-color: rgba(13, 110, 253, 0.7);
      text-decoration: none;
      font-weight: 500;
      position: relative;
      transition: all 0.3s ease;
      opacity: 0;
      transform: translateY(20px);
      padding: 8px 15px;
      border-radius: 5px;
    }
    
    .service-box:hover .read-more {
      opacity: 1;
      transform: translateY(0);
    }
    
    .read-more:hover {
      background-color: rgba(13, 110, 253, 0.9);
      color: #fff;
      text-decoration: none;
    }
    
    #road-service {
      background-image: url('/static/images/services/roads.jpg');
    }
    
    #sports-service {
      background-image: url('/static/images/services/sports.jpg');
    }
    
    #preschool-service {
      background-image: url('/static/images/services/preschool.jpg');
    }
    
    #street-light-service {
      background-image: url('/static/images/services/street.jpg');
    }
    
    #market-service {
      background-image: url('/static/images/services/market.jpg');
    }
    
    #library-service {
      background-image: url('/static/images/services/library.jpg');
    }
    
    #recycling-service {
      background-image: url('/static/images/services/recycle.jpg');
    }
    
    #health-service {
      background-image: url('/static/images/services/health.jpg');
    }
    
    #town-hall-service {
      background-image: url('/static/images/services/hall.jpg');
    }
    
    /* Extra small devices (portrait phones) */
    @media (max-width: 575.98px) {
      .service-box {
        padding: 20px 15px;
      }
      
      .service-icon {
        max-width: 50px;
      }
    }
    
    /* Small devices (landscape phones) */
    @media (min-width: 576px) and (max-width: 767.98px) {
      .service-box {
        padding: 25px 15px;
      }
      
      .service-icon {
        max-width: 60px;
      }
    }
    
    /* Medium devices (tablets) */
    @media (min-width: 768px) and (max-width: 991.98px) {
      .service-icon {
        max-width: 70px;
      }
    }
  
  .chairman-section h2{
    color: #fff !important;
  }
  
  .chairman-section h5{
    color: #d4f1f9 !important;
  }
  
  .quote-icon {
    font-size: 3.125rem; /* 50px converted to rem */
    color: #fff
  }
  
  .chairman-section {
    background: linear-gradient(90deg, #023265, #0f024de4, #01264d);
    background-size: 300% 300%;
    animation: gradientAnimation 6s ease infinite;
    color: #fff !important;
    border-radius: 4px;
  }
  
  .chairman-text {
    font-size: var(--font-size-md);
    font-style: italic;
  }

  /* Responsive styles for chairman section */
  @media screen and (max-width: 768px) {
    .quote-icon {
      font-size: 2.5rem; /* Smaller on mobile */
    }
    
    .chairman-text {
      font-size: var(--font-size-base);
    }
  }

  .info-img {
    width: 100%;
  }
  
  .animated-text {
    background: linear-gradient(90deg, var(--primary-maroon), var(--primary-maroon-light), var(--secondary-gold));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 4s ease infinite;
    line-height: 1.2;
  }
  
  @keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
  }
  
  @media (max-width: 600px) {
    .animated-text {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
  }

  .moving-left {
  animation: moveLeft 4s infinite alternate ease-in-out;
  width: 90%;
}

.moving-right {
  animation: moveRight 4s infinite alternate ease-in-out;
}

@keyframes moveLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20px); }
}

@keyframes moveRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(20px); }
}
  
  .footer h5 {
    color: var(--accent-cream);
  }
  
  .footer-logo {
    width: 45%;
    height: 45%;
  }
  
  .table-custom {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
  }
  .table-custom thead {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-maroon-light));
    color: white;
  }
  
  .rounded-circle {
  }

  /* Add responsiveness to the stats-number font size */
@media (max-width: 1200px) { /* for small screens (e.g., tablets and below) */
    .stats-number {
        font-size: 1.7rem; /* Adjust the font size for smaller screens */
    }
}

@media (max-width: 1000px) { /* for small screens (e.g., tablets and below) */
    .stats-number {
        font-size: 1.3rem; /* Adjust the font size for smaller screens */
    }
}

@media (max-width: 576px) { /* for very small screens (e.g., phones) */
    .stats-number {
        font-size: 1.5rem; /* Adjust the font size even further for smaller devices */
    }
}

/* Modern Professional Enhancements */
/* Card Improvements */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 16px 48px rgba(139, 0, 0, 0.2);
    transform: translateY(-4px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-maroon-light));
    color: white;
    border: none;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-maroon-light));
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-maroon-dark), var(--primary-maroon));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-gold), var(--secondary-gold-light));
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border: 2px solid var(--primary-maroon);
    color: var(--primary-maroon);
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-maroon);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.alert-info {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(165, 42, 42, 0.05));
    color: var(--primary-maroon-dark);
    border-left: 4px solid var(--primary-maroon);
}

/* Badge Enhancements */
.badge {
    border-radius: 20px;
    padding: 0.5em 1em;
    font-weight: 600;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-maroon-light));
}

/* Form Enhancements */
.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-maroon);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.2);
}

/* Section Dividers */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-maroon), var(--secondary-gold), var(--primary-maroon));
    border: none;
    border-radius: 2px;
    margin: 3rem 0;
}

/* Professional Spacing */
.section-padding {
    padding: 4rem 0;
}

.section-margin {
    margin: 3rem 0;
}

/* Modern Typography */
.display-title {
    font-weight: 700;
    color: var(--primary-maroon);
    margin-bottom: 2rem;
    position: relative;
}

.display-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-maroon), var(--secondary-gold));
    border-radius: 2px;
}

/* Professional Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-maroon-dark), var(--primary-maroon));
    color: white;
    padding: 3rem 0 2rem;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-gold);
    text-decoration: none;
}

/* Modern Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--secondary-gold) !important;
}

.navbar-nav .nav-link:active,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.show {
  color: var(--secondary-gold) !important;
}
/* Responsive Image Enhancements */
img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Professional Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Modern Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Professional Focus States */
*:focus {
    outline: 2px solid var(--primary-maroon);
    outline-offset: 2px;
}

/* Enhanced Responsive Design */
@media (max-width: 991px) {
    .section-padding {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-section, .modern-hero, .heritage-hero, .vision-hero, .library-hero, .chairman-hero {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .vision-mission-card, .chairman-card, .heritage-card, .service-feature-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .btn-primary, .btn-secondary, .btn-outline-primary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
    
    .carousel-control-prev, .carousel-control-next {
        /* width: 12%; */
        margin: 10px;
        height: calc(100% - 20px);
        /* top: 10px; */
    }
}