@media (max-width: 768px) {

    .heading_mobile {
        position: relative;
        display: flex;
        align-items: center;
        padding: 10px 15px;
        background: #fff;
    }

    /* Left menu bar area */
    .heading_mobile > div:first-child {
        width: 40px;
    }

    .heading_mobile_thum i {
        font-size: 24px;
    }

    /* Center logo perfectly */
    .heading_logo {
        position: absolute;
        left: 50%;
        top: 0%;
        transform: translateX(-50%);
    }
}

/* Extra small devices: <576px */
@media (max-width: 575.98px) {
    .heading_mobile .heading_logo img {
        height: 100%;
        max-width: 200px;
        position: relative;
        top: -2px;
    }
}

/* Small devices: 576px to 767px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .heading_mobile .heading_logo img {
        height: 100%;
        max-width: 190px; /* Example for sm */
        position: relative;
        top: 3px;
    }
}

@media (min-width: 768px) and (max-width: 768px) {
    .heading_mobile .heading_logo img {
        height: auto;
        max-width: 150px;
        position: relative;
        top: 3px;
    }
}


.heading_main_logo {
  display: inline-block;
  position: relative;
  z-index: 9;
  width: 140px;
  height: 40px;
}
/* Default (mobile + tablet) */
.heading_main_logo img {
    max-width: 210px;      /* minimum size */
    height: auto;
    position: relative;
    top: -8px;
}

/* ≥ 1025px */
@media screen and (min-width: 1025px) {
    .heading_main_logo img {
        max-width: 210px;
        position: relative;
        top: -8px;
    }
}

/* ≥ 1280px */
@media screen and (min-width: 1280px) {
    .heading_main_logo img {
        max-width: 210px;
        position: relative;
        top: -8px;
    }
}

/* ≥ 1366px */
@media screen and (min-width: 1366px) {
    .heading_main_logo img {
        max-width: 210px;
        position: relative;
        top: -8px;
    }
}

/* ≥ 1440px */
@media screen and (min-width: 1440px) {
    .heading_main_logo img {
        max-width: 220px;
        position: relative;
        top: -8px;
    }
}

/* ≥ 1920px */
@media screen and (min-width: 1920px) {
    .heading_main_logo img {
        max-width: 230px;
        position: relative;
        top: -8px;
    }
}

@media screen and (min-width: 991px) and (max-width: 1280px) {
    .heading_main_logo img {
        max-width: 165px;
        position: relative;
        top: -1px;
    }
}

.footer-item-logo img {
  max-width: 210px;
  height: auto;
}

/* Default (mobile + tablet) */
.footer-item-logo img {
    max-width: 210px;   /* minimum size */
    height: auto;
}

/* ≥ 1025px */
@media screen and (min-width: 1025px) {
    .footer-item-logo img {
        max-width: 210px;
    }
}

/* ≥ 1280px */
@media screen and (min-width: 1280px) {
    .footer-item-logo img {
        max-width: 210px;
    }
}

/* ≥ 1366px */
@media screen and (min-width: 1366px) {
    .footer-item-logo img {
        max-width: 210px;
    }
}

/* ≥ 1440px */
@media screen and (min-width: 1440px) {
    .footer-item-logo img {
        max-width: 220px;
    }
}

/* ≥ 1920px */
@media screen and (min-width: 1920px) {
    .footer-item-logo img {
        max-width: 230px;
    }
}


.lazy-img {
    position: relative;
    opacity: 0;
    transition: opacity .4s ease;
    display: block;
}

/* Loader GIF */
.lazy-img::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    background-image: "../img/loader.gif";
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

/* Show image after load */
.lazy-img.loaded {
    opacity: 1;
}

.lazy-img.loaded::after {
    display: none;
}

/* ── From Our Principal ─────────────────────────────────────── */
#team_principal_section {
    padding: 0;
    overflow: hidden;
}

#team_principal_text {
    padding: 60px 50px 60px 60px;
}

.principal-header {
    margin-bottom: 20px;
}

.principal-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
}

.principal-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    margin: 4px 0 6px;
    line-height: 1.2;
}

.principal-designation {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

.principal-quote-icon {
    font-size: 7rem;
    line-height: 0.6;
    color: rgba(255,255,255,0.22);
    font-family: Georgia, "Times New Roman", serif;
    margin-bottom: 10px;
    user-select: none;
    display: block;
    letter-spacing: -4px;
}

.principal-description {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.92);
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.principal-description:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(transparent, rgba(0,0,0,0.18));
    pointer-events: none;
}

.principal-description.expanded {
    max-height: 3000px;
}

.principal-read-more {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 22px;
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
}

.principal-read-more:hover {
    background: rgba(255,255,255,0.18);
}

#team_principal_signature {
    margin-top: 22px;
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
}

/* Image */
.principal-image-wrapper {
    position: relative;
    padding: 50px 40px 50px 20px;
}

#team_principal_img {
    width: 100%;
    max-width: 400px;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    display: block;
}

.principal-name-badge {
    position: absolute;
    bottom: 62px;
    left: 10px;
    background: rgba(255,255,255,0.97);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    min-width: 170px;
}

.principal-name-badge strong {
    display: block;
    font-size: 0.88rem;
    color: #1a1a2e;
    font-weight: 700;
}

.principal-name-badge span {
    font-size: 0.78rem;
    color: var(--bs-primary);
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    #team_principal_section { text-align: center; }
    #team_principal_text { padding: 40px 20px 24px; }
    .principal-image-wrapper { padding: 20px 20px 60px; }
    #team_principal_img {
        max-width: 260px;
        height: 300px;
        margin: 0 auto;
    }
    .principal-name-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: 24px;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .events_schedule_date,
    .ev-events-date {
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
    }

    .events_schedule_date h5 {
        font-size: 14px;  /* optional: slightly bigger for mobile */
    }
}

@media (max-width: 768px) {
    .event_title,
    .ev-event-title {
        text-align: center !important;
        display: block !important;
        width: 100%;
    }

    .event_title h6 {
        text-align: center !important;
        line-height: 2.5;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .events.index-events {
        padding-top: 0px;
    }
}

.visitor-pill {
display: inline-flex;
align-items: center;
gap: 5px;
background: rgba(255, 255, 255, 0.15);
color: #fff;
font-size: 11px;
font-weight: 500;
padding: 3px 10px;
border-radius: 20px;
margin-right: 8px;
white-space: nowrap;
vertical-align: middle;
border: 1px solid rgba(255, 255, 255, 0.25);
}

.visitor-pill strong {
font-weight: 700;
}


/* SECTION WRAPPER */
#vision_mission_section_tag .about-wrapper {
    margin: 45px auto;
    max-width: 1200px;
    padding: 0 15px;
}

@media only screen and (max-width: 767px) {
    #vision_mission_section_tag .about-wrapper {
        margin-top: 68px; /* increase margin */
    }
}

/* FIRST ROW CONTENT */
#vision_mission_section_tag .first-row {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid var(--bs-primary);
    margin-bottom: 50px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary-accent) 0%, var(--bs-primary) 100%);
}

#vision_mission_section_tag .first-row img,
#vision_mission_section_tag .first-row video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* filter: brightness(50%); */
    z-index: 1;
    transition: transform 0.6s ease, filter 0.6s ease;
}

#vision_mission_section_tag .first-row:hover img,
#vision_mission_section_tag .first-row:hover video {
    transform: translate(-50%, -50%) scale(1.05);
    /* filter: brightness(55%); */
}

/* DARK OVERLAY */
#vision_mission_section_tag .overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.4); */
    z-index: 1;
}

#vision_mission_section_tag .overlay {
    position: relative;
    z-index: 2;
    max-width: 75%;
    padding: 20px;
    text-align:start;
}

#vision_mission_section_tag .first-row h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center !important;
    padding-bottom: 20px;
}

#vision_mission_section_tag .first-row p {
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}


#vision_mission_section_tag .about-card {
    border: 2px solid var(--bs-primary);
    border-radius: 12px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    overflow: auto;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    height: 220px;
}

#vision_mission_section_tag .about-card:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    transform: translateY(-5px);
}

#vision_mission_section_tag .about-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--bs-primary);
    margin-top: 0;
}

#vision_mission_section_tag .about-text {
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

#vision_mission_section_tag .about-text.expanded {
    max-height: 1000px;
    /* large enough for content */
}

#vision_mission_section_tag .read-more-btn {
    font-weight: 600;
    color: var(--bs-primary);
    cursor: pointer;
    margin-top: 12px;
    padding: 8px 16px;
    border: 2px solid var(--bs-primary);
    border-radius: 20px;
    background: transparent;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

#vision_mission_section_tag .read-more-btn:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: translateY(-2px);
}

#vision_mission_section_tag .read-more-btn.read-less {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

#vision_mission_section_tag .read-more-btn.read-less:hover {
    background: #c82333;
    border-color: #c82333;
}

/* Chrome, Safari, Edge */
.about-card::-webkit-scrollbar {
    width: 1px !important;
    height: 6px;
}

.about-card::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.about-card::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox */
.about-card {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}


@media (max-width: 576px) {
    #vision_mission_section_tag .first-row {
        min-height: auto;
        padding: 25px 15px;
        margin-bottom: 30px;
        border-radius: 12px;
        display: block; 
        align-items: unset;
        justify-content: unset;
        overflow: auto;
        justify-content: center;
    }

    #vision_mission_section_tag .first-row h2,
    #vision_mission_section_tag .first-row h3 {
        font-size: 20px;
        line-height: 1.3;
    }

    #vision_mission_section_tag .first-row p {
        font-size: 14px;
        line-height: 1.6;
    }

    @media (max-width: 576px) {
        #vision_mission_section_tag .overlay {
            padding: 15px 12px;     /* better spacing on small screens */
            text-align: left;       /* justify looks bad on mobile */
            max-width: 100%;        /* full width */
        }
    }
}

/* ── Menu font-size +2 ──────────────────────────────────────────── */
.heading_main_menu_list_link               { font-size: 17px !important; }
.heading_main_menu_list_dropdown li a      { font-size: 17px !important; }
@media only screen and (max-width: 1200px) {
    .heading_main_menu_list_link           { font-size: 16px !important; }
    .heading_main_menu_list_dropdown li a  { font-size: 16px !important; }
}
