/* ===============================================
   Navigation Styles
   =============================================== */

* {
    font-family: 'poppins', sans-serif;
}

:root {
    --primary-navy: #2a1570;
    --secondary-color: #c0c0c0;
    --accent-orange: #f1785d;
    --border-light: rgba(34, 46, 68, 0.15);
    --call-red: #c53030;
    --dark-color: #1a1a2e;
    --light-beige: #fdf6f0;
    --light-beige2: #7576cc;
    --transition: all 0.3s ease;
}

h3 {
    font-family: 'Josefin Sans', sans-serif !important;
}

.navbar {
    min-height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 15px;
}

.navbar-brand {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.custom-logo {
    max-width: 70px;
    height: auto;
    object-fit: contain;
}

.nav-link {
    position: relative;
    margin: 0 5px;
    padding: 25px 0 !important;
    color: var(--primary-navy);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    min-height: 80px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-orange) !important;
}

.nav-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown-menu {
    border: 1px solid var(--accent-orange) !important;
    border-radius:0px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Subtle shadow */
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0; /* Adjusted padding */
    margin-top: 5px; /* Slight offset from nav-link */
}

.dropdown-item {
    color: var(--primary-navy) !important;
    font-size: 16px;
    padding: 8px 20px; /* Adjusted padding for better spacing */
    transition: var(--transition);
    border-radius: 6px; /* Subtle rounding */
}

.dropdown-item:hover {
    color: var(--accent-orange) !important;
    background-color: rgba(241, 120, 93, 0.2) !important; /* Lighter --accent-orange background */
    text-shadow: 0 0 2px rgba(241, 120, 93, 0.5); /* Subtle text shadow */
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid var(--accent-orange);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(217,145,106,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Offcanvas Styles */
.offcanvas {
    max-width: 75%;
}

.offcanvas-body .nav-link {
    padding: 15px 0 !important;
    min-height: auto;
}

/* Utility Classes */
.transition-all {
    transition: var(--transition);
}

.z-index-1030 {
    z-index: 1030;
}

/* Button Styles */
.btn-luxe {
    position: relative;
    overflow: hidden;
    background: var(--accent-orange) !important;
    color: var(--light-beige);
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    font-size: 14px;
    z-index: 1;
}

/* .btn-luxe:hover {
    background: var(--light-beige) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--dark-color);
} */

/* .btn-luxe::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
    z-index: -1;
} */

.btn-luxe:hover::after {
    animation: ripple 1s ease-out;
}

.btn-reg {
    position: relative;
    overflow: hidden;
    background: var(--light-beige2) !important;
    color: #f5f5f5;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    font-size: 14px;
    z-index: 1;
}

/* .btn-reg:hover {
    background: var(--light-beige) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--dark-color);
}

.btn-reg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
    z-index: -1;
} */

.btn-reg:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Responsive adjustments for tablets and smaller screens */
@media (max-width: 991.98px) {
    .navbar {
        background: #f5f5f5 !important;
        min-height: 60px;
    }

    .navbar-brand {
        height: 60px;
    }

    .custom-logo {
        max-width: 60px;
    }

    .nav-link {
        font-size: 14px;
        padding: 10px 0 !important;
        min-height: auto;
    }

    .nav-link:after {
        display: none;
    }

    .navbar-collapse {
        background: #f5f5f5;
        padding: 15px;
        margin-top: 10px;
        border-top: 1px solid rgba(234, 88, 12, 0.2);
        box-shadow: inset 0 10px 10px -10px rgba(234, 88, 12, 0.1);
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.9) !important;
        border: none !important;
        border-radius: 8px; /* Slightly smaller radius */
        font-size: 14px; /* Reduced from 16px */
        padding: 6px 0; /* Reduced padding */
        margin-left: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    }

    .dropdown-item {
        font-size: 14px; /* Reduced from 16px */
        padding: 6px 15px; /* Reduced padding */
        border-radius: 4px; /* Slightly smaller radius */
    }

    .dropdown-item:hover {
        background-color: rgba(241, 120, 93, 0.15) !important; /* Adjusted for mobile */
        text-shadow: none; /* Remove text shadow for mobile */
    }

    .navbar-nav {
        padding-top: 0.5rem;
    }

    .nav-item {
        margin-bottom: 3px;
    }

    .offcanvas {
        max-width: 80%;
    }

    .btn-luxe,
    .btn-reg {
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* Responsive adjustments for mobile phones */
@media (max-width: 576px) {
    .navbar {
        min-height: 50px;
    }

    .navbar-brand {
        height: 50px;
    }

    .custom-logo {
        max-width: 50px;
    }

    .nav-link {
        font-size: 13px;
        padding: 8px 0 !important;
    }

    .dropdown-menu {
        font-size: 13px; /* Further reduced */
        padding: 4px 0; /* Further reduced padding */
        margin-left: 5px;
        border-radius: 6px; /* Smaller radius */
          /* background:none !important; */

    }

    .dropdown-item {
        font-size: 13px; /* Further reduced */
        padding: 5px 12px; /* Further reduced padding */
    }

    .navbar-collapse {
        padding: 10px;
        margin-top: 5px;
    }

    .navbar-nav {
        padding-top: 0.25rem;
    }

    .nav-item {
        margin-bottom: 2px;
    }

    .btn-luxe,
    .btn-reg {
        font-size: 11px;
        padding: 6px 12px;
    }

    .navbar-toggler {
        padding: 0.4rem;
    }
}

/* Desktop and large screen adjustments */
@media (min-width: 992px) {
    .nav-link {
        margin: 0 15px;
        font-size: 16px;
    }

    .dropdown-menu {
        position: absolute;
        font-size: 16px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .btn-luxe,
    .btn-reg {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Large screens (e.g., 1200px and above) */
@media (min-width: 1200px) {
    .nav-link {
        margin: 0 20px;
        font-size: 17px;
    }

    .dropdown-menu {
        font-size: 17px;
    }

    .dropdown-item {
        font-size: 17px;
        padding: 10px 22px; /* Slightly larger padding */
    }

    .custom-logo {
        max-width: 80px;
    }

    .btn-luxe,
    .btn-reg {
        font-size: 15px;
        padding: 12px 22px;
    }
}



/*<!--
    =============================================
    Banner Styles
    =============================================

-->*/

/* Existing styles (unchanged) */
.hero-section {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.img-overlay {
    background: rgba(0, 0, 0, 0.247);
    z-index: 1;
}

.slide-number {
    right: 10px;
    bottom: 50px;
    font-size: 3rem;
    font-weight: 300;
    z-index: 2;
    opacity: 0.8;
}

.social-icons {
    right: 5px;
    bottom: 40%;
    z-index: 2;
}

.right-widgets {
    /* background: var(--light-beige); */
    background: rgba(255, 255, 255, 0.2);
    /* background: var(--light-beige); */
    backdrop-filter: blur(10px);
    /* border-radius: 0.5rem; */
    box-shadow: 0 0 12px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
}

.right-widgets button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem;
    justify-content: center;
    align-items: center;
    color: var(--accent-orange);
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    width: 2rem;
    height: 2rem;
}

.right-widgets button:hover {
    color: var(--accent-orange);
    background: var(--light-beige);
    transform: scale(1.1);
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    opacity: 1;
    transition: background 0.3s ease;
}

.carousel-indicators .active {
    background: white;
}

/* New styles for toggle button and social menu */
.toggle-btn {
    background: transparent;
    color: var(--accent-orange);
    border-radius: 50%;
    /* Circular like social icons */
}

.toggle-btn:hover {
    background: var(--accent-orange);
    color: var(--light-beige);
}

/* Social menu styles */
.social-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Matches .right-widgets gap */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
        min-height: 150px;
    }

    .slide-number {
        right: 5px;
        bottom: 40px;
        font-size: 1.5rem; /* smaller than desktop */
    }

    .social-icons {
        right: 5px;
        bottom: 100px;
    }

    .right-widgets {
        background: rgba(255, 255, 255, 0.2);
        /* background: var(--light-beige); */
        backdrop-filter: blur(10px);
        /* background: var(--light-beige); */
        border-radius: 0.5rem;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.5rem;
        right: 10px;
        z-index: 10;
    }

    .right-widgets button {
        width: 2rem;
        height: 2rem;
        padding: 0.5rem;
    }

    /* Hide social menu by default in mobile view */
    .social-menu {
        display: none;
        margin-top: 0.75rem;
        /* Space between toggle button and menu */
    }

    /* Show social menu when active */
    .social-menu.active {
        display: flex;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    .right-widgets button i {
        font-size: 0.9rem; /* reduce icon size */
    }
}

@media (max-width: 576px) {
    .right-widgets {
        padding: 0.4rem;
        gap: 0.5rem;
        right: 5px;
        top: 15px;
    }

    .right-widgets button {
        width: 2rem;
        height: 2rem;
        padding: 0.3rem;
    }

    .slide-number {
         font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }

    .social-icons {
        bottom: 120px;
        right: 5px;
    }
    .right-widgets button i {
        font-size: 0.8rem; /* adjust icons further */
    }

    /* Ensure social menu remains hidden by default and toggles correctly */
    .social-menu {
        margin-top: 0.5rem;
    }
}

/* Ensure full visibility on larger screens */
@media (min-width: 769px) {
    .social-menu {
        display: flex !important;
        /* Always visible */
    }

    .toggle-btn {
        display: none;
        /* Hide toggle button on larger screens */
    }
}





/*<!--
    =============================================
    3 info card Styles
    =============================================
-->*/

.service-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: var(--light-beige);
    padding: 20px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

/* .service-card:hover {
    transform: translateY(-5px);
} */

.icon-container {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-right: 15px;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
}

.card-content {
    flex-grow: 1;
}

.card-title {
    font-size: 1.5rem;
    color: #2a2a2a;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.card-title span.count {
    font-weight: bold;
    margin-right: 5px;
}

.card-text {
    color: #666;
    font-size: 1rem;
    margin: 0;
    text-align:justify;
}

.highlight-card {
    background: linear-gradient(135deg, #d9916a77, #d9916a);
    color: #fff;
}

.highlight-card .icon-container {
    color: #fff;
    border-color: #fff;
}

.highlight-card .card-title,
.highlight-card .card-text {
    color: #fff;
}

.image-container img {
    max-width: 100%;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        text-align: center;
        padding: 15px; /* reduce padding */
    }

    .icon-container {
        margin-right: 0;
        margin-bottom: 10px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem; /* smaller icon size */
    }

    .card-title {
        font-size: 1.2rem; /* smaller title */
    }

    .card-title span.count {
        font-size: 1.3rem; /* slightly bigger than title for emphasis */
    }

    .card-text {
        font-size: 0.9rem; /* reduce paragraph font size */
    }
}

@media (max-width: 576px) {
    .icon-container {
        width: 50px;
        height: 50px;
        font-size: 1.2rem; /* even smaller icons */
    }

    .card-title {
        font-size: 1rem; /* shrink further */
    }

    .card-title span.count {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.8rem; /* smallest for very small phones */
    }
}



/*<!--
    =============================================
    About Styles
    =============================================*/

.sahodaya-section {
    background: linear-gradient(135deg, var(--light-beige) 0%, rgba(245, 245, 245, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.badge-custom {
    background-color: var(--accent-orange);
    color: white;
    /* letter-spacing: 1.5px; */
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.text-center .display-4::after {
    left: 50%;
    transform: translateX(-50%);
}

.lead {
    color: var(--primary-navy) !important;
    font-weight: 500;
    border-left: 4px solid var(--accent-orange);
    padding-left: 15px;
}

.text-muted {
    color: var(--primary-navy) !important;
    opacity: 0.8;
    line-height: 1.8;
}

.btn-custom {
    background-color: transparent;
    color: var(--primary-navy);
    /* border: 1px solid var(--primary-navy); */
    border-radius: 30px;
    padding: 5px 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-navy);
    transition: all 0.3s ease;
    z-index: -1;

}

.btn-custom:hover::before {
    width: 100%;
}

.btn-custom:hover {
    color: white;
}

.img-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.img-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.img-container img {
    transition: all 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.03);
}

.stats-badge {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 20px;
    left: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 5px 20px rgba(217, 145, 106, 0.3);
    }

    100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

.stats-badge span {
    color: var(--primary-navy);
    font-weight: 700;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-navy);
    color: white;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}


.btn-custom:hover .icon-wrapper {
    background: white;
    color: var(--primary-navy);
}

.about-text {
     text-align: justify !important;
    font-size:15px; /* default */
    line-height: 2;
}

@media (max-width: 992px) {
    .display-6 {
        font-size: 2rem;
    }

    .img-container {
        margin-top: 30px;
    }
}


/* Tablet and below */
@media (max-width: 768px) {
    .badge-custom {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .display-6 {
        font-size: 1.6rem; /* reduce heading size */
    }

    .lead {
        font-size: 1rem; /* smaller lead text */
        padding-left: 10px;
    }

    .text-muted {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .stats-badge {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
     .sahodaya-section .text-muted {
        font-size: 0.9rem;  /* slightly smaller */
        line-height: 1.6;
    }
    .about-text {
        font-size: 0.9rem;
    }
}

/* Very small devices */
@media (max-width: 576px) {
      .sahodaya-section .text-muted {
        font-size: 0.8rem;  /* smallest on phones */
        line-height: 1.5;
    }


    .lead {
        font-size: 0.9rem;
    }

    .text-muted {
        font-size: 0.85rem;
    }

    .badge-custom {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .stats-badge {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .icon-wrapper {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
     .about-text {
        font-size: 0.85rem;
    }
}



/*<!--
    =============================================
    Upcoming Events  &  Announcements Styles
    =============================================*/


.section-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-family: 'Roboto Slab', serif;
    color: var(--accent-orange);
    letter-spacing: 0.05em;
    font-weight: 600;
    position: relative;
    /* display: inline-block; */
    margin-bottom: 5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}


.event-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 2px dashed var(--border-light);
}

.event-date {
    min-width: 70px;
    text-align: center;
    margin-right: 20px;
    background: var(--primary-navy);
    color: white;
    border-radius: 8px;
    padding: 10px 5px;
    line-height: 1.2;
}

.event-date span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.event-date .day {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 4px;
}

.event-content {
    flex: 1;
}

.event-title {
    color: var(--primary-navy);
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-details {
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.5;
}



.news-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 2px dashed var(--border-light);
}

.news-date {
    min-width: 120px;
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 0.95rem;
    padding-right: 1rem;
}

.news-content {
    flex: 1;
}

.news-title {
    color: var(--primary-navy);
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-excerpt {
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    color: var(--accent-orange);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

.view-calendar-btn {
    position: relative;
    overflow: hidden;
    background: var(--accent-orange) !important;
    color: var(--light-beige);
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    font-size: 14px;
    z-index: 1;
    margin-top: 1rem;
}

.view-calendar-btn:hover {
    background: var(--light-beige);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.view-calendar-btn i {
    margin-left: 8px;
}

/* Ripple effect */
.view-calendar-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
    z-index: -1;
}

.view-calendar-btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

@media (max-width: 767px) {

    .event-item,
    .news-item {
        flex-direction: column;
    }

    .event-date {
        margin-bottom: 1rem;
        margin-right: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 60px;
    }

    .news-date {
        width: 100%;
        margin-bottom: 0.5rem;
        padding-right: 0;
    }

    .section-header {
        padding: 25px;
    }
}

.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7576cc, #a29bfe, #6c5ce7);
    background-size: 200% 100%;
    animation: float 3s ease-in-out infinite, sparkle 3.5s linear infinite;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%);
    padding: 5px 10px;
    /* Reduced padding for smaller size */
    font-size: 14px;
    /* Smaller font size to scale content */
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

@keyframes shine-overlay {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.new-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent);
    animation: shine-overlay 3.5s linear infinite;
}

@media (max-width: 767px) {
    .view-calendar-btn {
        min-width: 150px;
        /* Smaller width for mobile */
        padding: 8px 15px;
        /* Slightly less padding for mobile */
        font-size: 12px;
        /* Smaller font size for mobile */
    }
}

@media (max-width: 767px) {
    /* Section Titles */
    .section-title {
        font-size: 1rem; /* smaller section heading */
    }

    /* Events */
    .event-title {
        font-size: 1rem;   /* was 1.2rem */
    }
    .event-details {
        font-size: 0.85rem; /* was 0.95rem */
    }
    .event-date span {
        font-size: 0.7rem;
    }
    .event-date .day {
        font-size: 1.1rem; /* was 1.4rem */
    }

    /* News */
    .news-title {
        font-size: 1rem; /* was 1.2rem */
    }
    .news-excerpt {
        font-size: 0.85rem; /* was 0.95rem */
    }
    .news-date {
        font-size: 0.85rem; /* was 0.95rem */
    }

    /* Buttons */
    .view-calendar-btn {
        font-size: 12px;   /* smaller button text */
        padding: 8px 14px;
    }
}




/*<!--
    =============================================
        <!--  Board Members  styles-->
    =============================================*/


/* Scroll animation classes remain the same */
.board-member-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.board-member-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay remains the same */
.board-member-item:nth-child(1) {
    transition-delay: 0.1s;
}

.board-member-item:nth-child(2) {
    transition-delay: 0.2s;
}

.board-member-item:nth-child(3) {
    transition-delay: 0.3s;
}

.board-member-item:nth-child(4) {
    transition-delay: 0.4s;
}

.board-member-item:nth-child(5) {
    transition-delay: 0.5s;
}

.board-member-item:nth-child(6) {
    transition-delay: 0.6s;
}

.board-member-item:nth-child(7) {
    transition-delay: 0.7s;
}

.board-member-item:nth-child(8) {
    transition-delay: 0.8s;
}

/* Slower hover effect */
.boardmember-details {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    /* Slower transition */
}

.boardmember-details:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15) !important;
    /* Softer shadow */
}

.boardmember-details::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(255, 153, 51, 0) 0%,
            rgba(255, 153, 51, 0.08) 20%,
            rgba(255, 153, 51, 0.15) 40%,
            rgba(255, 153, 51, 0.08) 60%,
            rgba(255, 153, 51, 0) 80%);
    transform: translateX(-100%) translateY(100%);
    transition: all 1s ease-in-out;
    /* Slower transition (1s) with smooth easing */
    z-index: -1;
}

.boardmember-details:hover::before {
    transform: translateX(100%) translateY(-100%);
}
.image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Tablets */
@media (max-width: 767px) {
    .image-container {
        width: 150px;
        height: 150px;
    }
}

/* Small phones */
@media (max-width: 576px) {
    .image-container {
        width: 100px;
        height: 100px;
    }
}



.boardmember-details:hover .image-container {
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.3);
    /* More subtle shadow */
    transition: all 0.5s ease;
    /* Slower transition */
}

.boardmember-details h6 {
    font-size: 0.95rem;
}

.boardmember-details p {
    font-size: 0.85rem;
    color: #555;
}


/* Board Member Text Styles */
.boardmember-details h5,
.boardmember-details .member-name {
    font-size: 1rem; /* default desktop */
    font-weight: 600;
}

.boardmember-details p,
.boardmember-details .member-role {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}



/* ===============================================-->
    <!--  Cluster Bearers  -->
    <!-- ===============================================-->

 */

/* ===============================================
   Cluster Bearers - Full Styling
   =============================================== */



/* Calendar-inspired tabs */
.cluster-bearers-tabs-container {
    margin-bottom: 2rem;
    position: relative;
}

.cluster-bearers-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    border-bottom: none;
    padding: 0.5rem;
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
    white-space: nowrap;
    background-color: var(--light-gray);
}

.cluster-bearers-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 1;
}

.cluster-bearers-tabs .nav-link {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
    border: none;
    border-radius: 6px;
    background-color: transparent;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cluster-bearers-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: var(--transition);
}

.cluster-bearers-tabs .nav-link:hover {
    color: var(--primary-color);
}

.cluster-bearers-tabs .nav-link.active {
    color: var(--accent-color);
    /* background-color: var(--light-beige); */
}

.cluster-bearers-tabs .nav-link.active::before {
    background-color: var(--accent-color);
}

/* Scrollbar styling for tabs */
.cluster-bearers-tabs::-webkit-scrollbar {
    height: 6px;
}

.cluster-bearers-tabs::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* Sidebar for calendar-like navigation */
.sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 0.5rem 0;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.sidebar li:hover {
    color: var(--accent-color);
}

/* Member card layout */
.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.member-card.layout-a {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, white 0%, var(--light-beige) 100%);
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(1, 46, 92, 0.12);
    /* border: 1px solid var(--accent-orange); */
    position: relative;
}


.member-card.layout-a .profile-section {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    z-index: 2;
}

.member-card.layout-a .content-section {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.member-card:hover .profile-image {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-image-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #898AC4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-beige2);
}

.initial {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.cluster-name {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.cluster-name i {
    margin-right: 0.5rem;
    color: var(--accent-orange);
}

.designation {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    gap: 0.8rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon {
    width: 32px;
    height: 32px;
    background: var(--light-beige);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-size: 0.9rem;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.7rem;
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.empty-state-card {
    border-radius: 16px;
    padding: 1rem;
    background: var(--light-beige);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.empty-state-card i {
    animation: subtle-pulse 2s infinite ease-in-out;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ===========================
   Responsive Adjustments
   =========================== */

/* Tablet (≤768px) */
@media (max-width: 768px) {
    .cluster-bearers-tabs-container {
        margin-bottom: 1.5rem;
    }

    .cluster-bearers-tabs {
        gap: 0.3rem;
        padding: 0.4rem;
        justify-content: flex-start;
    }

    .cluster-bearers-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
        border-radius: 5px;
    }

    .member-card.layout-a {
        flex-direction: column;
        min-height: auto;
    }

    .member-card.layout-a .profile-section {
        top: 0.5rem;
        right: 0.5rem;
        width: 70px;
        height: 70px;
    }

    .profile-image,
    .profile-image-placeholder {
        width: 60px;
        height: 60px;
    }

    .member-name {
        font-size: 1.1rem;
    }

    .cluster-name {
        font-size: 0.75rem;
    }

    .designation {
        font-size: 0.8rem;
    }

    .info-label {
        font-size: 0.6rem;
    }

    .info-value {
        font-size: 0.75rem;
    }

    .info-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Small phones (≤576px) */
@media (max-width: 576px) {
    .cluster-bearers-tabs-container {
        margin-bottom: 1rem;
    }

    .cluster-bearers-tabs {
        gap: 0.2rem;
        padding: 0.3rem;
        justify-content: flex-start;
    }

    .cluster-bearers-tabs .nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
        border-radius: 5px;
    }

    .member-card.layout-a .profile-section {
        width: 60px;
        height: 60px;
    }

    .profile-image,
    .profile-image-placeholder {
        width: 50px;
        height: 50px;
    }

    .initial {
        font-size: 1.5rem;
    }

    .member-name {
        font-size: 1rem;
    }

    .cluster-name {
        font-size: 0.7rem;
    }

    .designation {
        font-size: 0.75rem;
    }

    .info-label {
        font-size: 0.55rem;
    }

    .info-value {
        font-size: 0.7rem;
    }

    .info-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .content-section {
        padding: 1rem;
    }

    .empty-state-card {
        padding: 0.8rem;
    }
}

/* Extra small phones (≤400px) */
@media (max-width: 400px) {
    .cluster-bearers-tabs .nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .member-card.layout-a .profile-section {
        width: 50px;
        height: 50px;
    }

    .profile-image,
    .profile-image-placeholder {
        width: 40px;
        height: 40px;
    }

    .initial {
        font-size: 1.2rem;
    }

    .member-name {
        font-size: 0.9rem;
    }

    .content-section {
        padding: 0.8rem;
    }
}
/* ===========================
   Responsive font adjustments
   =========================== */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
    .cluster-bearers-tabs .nav-link {
        font-size: 0.9rem;   /* slightly smaller */
        padding: 0.5rem 1rem; /* reduce padding */
    }
    .member-name {
        font-size: 1.2rem;  /* smaller than 1.5rem */
    }

    .cluster-name {
        font-size: 0.8rem;
    }

    .designation {
        font-size: 0.85rem;
    }

    .info-label {
        font-size: 0.65rem;
    }

    .info-value {
        font-size: 0.8rem;
    }
    .nav-item {
        margin-bottom: 0px !important;
    }
}

/* Small phones (≤ 576px) */
@media (max-width: 576px) {
     .cluster-bearers-tabs .nav-link {
        font-size: 0.8rem;   /* smaller text */
        padding: 0.4rem 0.8rem; /* tighter spacing */
    }
    .member-name {
        font-size: 1rem; /* even smaller */
    }

    .cluster-name {
        font-size: 0.75rem;
    }

    .designation {
        font-size: 0.8rem;
    }

    .info-label {
        font-size: 0.6rem;
    }

    .info-value {
        font-size: 0.75rem;
    }
}

/* ===============================================
    <!--  Special Invitee Member  -->
    <!-- ===============================================-->

 */

.member-card.layout-c {
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 12px 45px rgba(26, 26, 46, 0.15);
    border: 1px solid var(--light-beige, #898AC4);
    position: relative;
    min-height: 320px;
}

.member-card.layout-c::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    /* background: linear-gradient(135deg, var(--light-beige2, #f5f5d5) 0%, #8a8bd88f 100%); */
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.member-card.layout-c .profile-section {
    position: relative;
    z-index: 2;
    padding: 2rem 2rem;
    text-align: center;
    /* color: var(--light-beige2); */
}

.member-card.layout-c .content-section {
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem 1.5rem;
    /* background: white; */
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
}

/* Profile Images and Initials */
.profile-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.member-card:hover .profile-image {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.initials {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #898AC4;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.member-card:hover .initials {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    /* background: rgba(255, 255, 255, 0.3); */
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--primary-navy, #1a2a44);
}

.designation {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Info Lists */
.info-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    font-size: 0.9rem;
    background: var(--primary-navy, #1a2a44);
    color: white;
}

.info-text {
    line-height: 1.4;
}

.no-members {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-members i {
    font-size: 4rem;
    color: var(--secondary-color, #6c757d);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.no-members p {
    color: var(--primary-navy, #1a2a44);
    font-size: 1.2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .member-card.layout-c {
        min-height: auto;
    }
}

@media (max-width: 576px) {

    .profile-image,
    .initials {
        margin-bottom: 0.5rem;
    }
}


/* Existing styles remain unchanged, only adding responsive font size adjustments */

/* Tablet and smaller screens (max-width: 768px) */
@media (max-width: 768px) {
    .member-card.layout-c {
        min-height: auto;
    }

    .member-name {
        font-size: 1.1rem; /* Reduced from 1.3rem */
    }

    .designation {
        font-size: 0.8rem; /* Reduced from 0.9rem */
    }

    .info-item {
        font-size: 0.75rem; /* Reduced from 0.85rem */
    }

    .info-icon {
        width: 28px; /* Slightly smaller icon */
        height: 28px;
        font-size: 0.8rem; /* Reduced from 0.9rem */
    }

    .section-title {
        font-size: 1.5rem; /* Reduced for smaller screens */
    }
}

/* Mobile screens (max-width: 576px) */
@media (max-width: 576px) {
    .member-card.layout-c {
        min-height: auto;
    }

    .profile-image,
    .initials {
        width: 70px; /* Reduced from 90px */
        height: 70px;
        font-size: 1.8rem; /* Reduced from 2.2rem for initials */
        margin-bottom: 0.5rem;
    }

    .member-name {
        font-size: 1rem; /* Further reduced */
    }

    .designation {
        font-size: 0.75rem; /* Further reduced */
    }

    .info-item {
        font-size: 0.7rem; /* Further reduced */
    }

    .info-icon {
        width: 24px; /* Smaller icon */
        height: 24px;
        font-size: 0.75rem; /* Further reduced */
    }

    .info-text {
        line-height: 1.3; /* Slightly tighter line height */
    }

    .section-title {
        font-size: 1.3rem; /* Further reduced for mobile */
    }

    .no-members p {
        font-size: 1rem; /* Reduced from 1.2rem */
    }

    .no-members i {
        font-size: 3rem; /* Reduced from 4rem */
    }
}

/* ===============================================
    <!-- Our Members  -->
    <!-- ===============================================-->

 */

.school-card {
    background: #ffffff;
    border-radius: 0px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.school-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.school-logo-container {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-beige);
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
    margin: 1.25rem auto 1rem;
}

.school-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 2px 3px var(--border-light));
    transition: transform 0.3s ease;
}

.school-card:hover .school-logo {
    transform: scale(1.1);
}

.card-content {
    padding: 0 1rem 1.25rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.school-name {
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.school-address {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-icon {
    color: var(--light-beige2);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

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

/* Stagger animation delays */
.school-card:nth-child(1) {
    animation-delay: 0.1s;
}

.school-card:nth-child(2) {
    animation-delay: 0.2s;
}

.school-card:nth-child(3) {
    animation-delay: 0.3s;
}

.school-card:nth-child(4) {
    animation-delay: 0.4s;
}

.school-card:nth-child(5) {
    animation-delay: 0.5s;
}

.school-card:nth-child(6) {
    animation-delay: 0.6s;
}

.school-card:nth-child(7) {
    animation-delay: 0.7s;
}

.school-card:nth-child(8) {
    animation-delay: 0.8s;
}

.school-card:nth-child(9) {
    animation-delay: 0.9s;
}

/* Responsive adjustments for tablets and smaller screens */
@media (max-width: 768px) {
    .school-card {
        padding: 0.75rem;
    }

    .school-logo-container {
        width: 100px;
        height: 100px;
        margin: 1rem auto 0.75rem;
    }

    .school-logo {
        width: 80px;
        height: 80px;
    }

    .card-content {
        padding: 0 0.75rem 1rem;
    }

    .school-name {
        font-size: 1rem; /* Reduced from 1.1rem for better fit */
    }

    .school-address {
        font-size: 0.75rem; /* Reduced from 0.8rem */
    }

    .location-icon {
        font-size: 0.8rem; /* Slightly smaller icon */
    }
}

/* Additional media query for very small screens (e.g., mobile phones) */
@media (max-width: 576px) {
    .school-card {
        padding: 0.5rem;
    }

    .school-logo-container {
        width: 80px;
        height: 80px;
        margin: 0.75rem auto 0.5rem;
    }

    .school-logo {
        width: 60px;
        height: 60px;
    }

    .card-content {
        padding: 0 0.5rem 0.75rem;
    }

    .school-name {
        font-size: 0.9rem; /* Further reduced for small screens */
    }

    .school-address {
        font-size: 0.7rem; /* Further reduced */
        line-height: 1.3;
    }

    .location-icon {
        font-size: 0.75rem; /* Smaller icon for small screens */
    }

    .section-title {
        font-size: 1.5rem; /* Reduce section title size */
    }
}

/* ===============================================
   Modern Image Gallery
   =============================================== */

/* Uniform Gallery Styles */
.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.gallery-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1) !important;
}

.gallery-card:hover img {
    transform: scale(1.05) !important;
}

.gallery-card:hover .image-overlay {
    opacity: 1 !important;
}

.gallery-card:hover .quick-view-btn {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

.gallery-card:hover .gallery-badge {
    background: var(--light-beige2) !important;
    color: white !important;
}

.gallery-card:hover .gallery-badge i {
    transform: rotate(-15deg) !important;
}

.view-link:hover {
    color: #DF7861 !important;
}

.view-link:hover i {
    transform: translateX(3px) !important;
}

.btn:hover {
    color: white !important;
    border-color: transparent !important;
}

.btn:hover .hover-overlay {
    transform: translateY(0) !important;
}

/* .btn:hover i {
    transform: translateY(2px) !important;
} */

.quick-view-btn:hover {
    color: var(--primary-navy) !important;
    background: white !important;
}

/* Responsive adjustments for tablets */
@media (max-width: 768px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .gallery-content {
        padding: 0.75rem !important; /* Reduced padding for smaller screens */
    }

    .gallery-badge {
        font-size: 0.7rem !important; /* Reduced from 0.75rem */
        padding: 3px 6px !important; /* Smaller padding */
        top: 10px;
        right: 10px;
    }

    .quick-view-btn {
        font-size: 0.7rem !important; /* Reduced font size */
        padding: 6px 15px !important; /* Smaller button */
        bottom: 10px;
    }

    .gallery-content h5 {
        font-size: 0.9rem !important; /* Reduced from 1rem */
    }

    .gallery-content p {
        font-size: 0.75rem !important; /* Reduced from 0.85rem */
        line-height: 1.4;
    }

    .view-link {
        font-size: 0.75rem !important; /* Reduced from 0.85rem */
    }
}

/* Responsive adjustments for mobile phones */
@media (max-width: 576px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .gallery-card {
        border-radius: 12px; /* Slightly smaller border radius */
    }

    .gallery-image-wrapper {
        padding-bottom: 80%; /* Slightly adjusted aspect ratio for mobile */
    }

    .gallery-content {
        padding: 0.5rem !important; /* Further reduced padding */
    }

    .gallery-badge {
        font-size: 0.65rem !important; /* Further reduced */
        padding: 2px 5px !important;
        top: 8px;
        right: 8px;
    }

    .quick-view-btn {
        font-size: 0.65rem !important; /* Further reduced */
        padding: 5px 12px !important;
        bottom: 8px;
    }

    .gallery-content h5 {
        font-size: 0.85rem !important; /* Further reduced */
    }

    .gallery-content p {
        font-size: 0.7rem !important; /* Further reduced */
        line-height: 1.3;
    }

    .view-link {
        font-size: 0.7rem !important; /* Further reduced */
    }

    .section-title {
        font-size: 1.5rem !important; /* Reduce section title size */
    }
}




/* ===============================================
   YouTube Gallery
   =============================================== */

.video-card {

    box-shadow: var(--shadow-light);
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 0px;
}



.video-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--accent-orange);
    line-height: 1.4;
}

.video-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments for tablets */
@media (max-width: 768px) {
    .video-card {
        padding: 1rem; /* Reduced padding */
    }

    .video-title {
        font-size: 1.25rem; /* Reduced from 1.5rem */
    }

    .video-wrapper {
        height: 250px; /* Reduced height for tablets */
    }

    .row.align-items-center {
        flex-direction: column; /* Stack title and video vertically */
        text-align: center;
    }

    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%; /* Full width for both title and video */
    }

    .col-lg-6.mb-3.mb-lg-0 {
        margin-bottom: 1rem !important; /* Ensure spacing between title and video */
    }
}

/* Responsive adjustments for mobile phones */
@media (max-width: 576px) {
    .video-card {
        padding: 0.75rem; /* Further reduced padding */
        border-radius: 10px; /* Slightly smaller border radius */
    }

    .video-title {
        font-size: 1rem; /* Further reduced for mobile */
        line-height: 1.3;
    }

    .video-wrapper {
        height: 200px; /* Further reduced height for mobile */
    }

    .section-title {
        font-size: 1.5rem; /* Reduce section title size */
    }
}



