﻿
/* =========================================================
   MANIPUR MATHEMATICS SOCIETY
   Main theme: #008AD7 / #075b8a
========================================================= */

/* =========================================================
   1. NOTICE POPUP
========================================================= */

.notice-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.65);
}

.notice-popup-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 750px;
    max-height: 85vh;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.notice-popup-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 40px;
    padding: 5px 10px;
    background: #008ad7;
    color: #fff;
}

    .notice-popup-header h3 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
    }

.notice-popup-close {
    z-index: 1;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.notice-popup-body {
    padding: 24px;
    overflow-y: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.7;
}

.notice-popup-footer {
    padding: 12px 22px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.notice-popup-btn {
    padding: 9px 22px;
    border: none;
    border-radius: 5px;
    background: #008ad7;
    color: #fff;
    cursor: pointer;
}

    .notice-popup-btn:hover {
        background: #006eae;
    }


/* =========================================================
   2. HERO CAROUSEL
========================================================= */

.hero-background-carousel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #075b8a;
}

.hero-slides {
    position: absolute;
    inset: 0;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    .hero-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .hero-slide > img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-image-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(3, 30, 50, 0.45) 0%, rgba(3, 30, 50, 0.30) 38%, rgba(3, 30, 50, 0.08) 75%, rgba(3, 30, 50, 0.15) 100% ), linear-gradient( 0deg, rgba(3, 30, 50, 0.30), transparent 55% );
}

.hero-slide .hero-content.container {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.hero-copy {
    width: min(700px, 90%);
    margin: 0 auto;
}

.hero-slide .hero-copy h2 {
    margin-top: 0;
    color: #fff;
}

.hero-text {
    max-width: 650px;
    margin: 25px 0 30px;
    color: #fff;
    font-size: 15px;
    line-height: 1.7;
}

.hero-carousel-btn,
.hero-dots {
    position: absolute;
    z-index: 4;
}


/* =========================================================
   3. HERO TEXT ANIMATION
========================================================= */

.hero-slide .hero-copy h2,
.hero-slide .hero-copy h3
.hero-slide .hero-copy .hero-text {
    opacity: 0;
    transform: translateY(-90px);
}

.hero-slide.active .hero-copy h2,
.hero-slide.active .hero-copy h3 {
    animation: heroTextFall 0.9s cubic-bezier(.22, .8, .35, 1.15) 0.15s both;
}

.hero-slide.active .hero-copy .hero-text {
    animation: heroTextFall 0.9s cubic-bezier(.22, .8, .35, 1.15) 0.4s both;
}

@keyframes heroTextFall {
    0% {
        opacity: 0;
        transform: translateY(-90px);
    }

    65% {
        opacity: 1;
        transform: translateY(8px);
    }

    80% {
        transform: translateY(-5px);
    }

    92% {
        transform: translateY(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   4. IMAGE GALLERY AND MEDIA MODAL
========================================================= */

.media-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.92);
}

.album-browser {
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
}

.album-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.album-thumb {
    cursor: pointer;
}

    .album-thumb img {
        width: 100%;
        height: 140px;
        object-fit: cover;
    }

.modal-content {
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.gallery-full-image {
    display: block;
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
}

.gallery-image-caption {
    margin-top: 10px;
    color: #fff;
    text-align: center;
}


/* =========================================================
   5. VIDEO ALBUM CARDS
========================================================= */

.video-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.video-album-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line, #e5edf3);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-album-cover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #171717;
}

    .video-album-cover img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.video-album-card:hover .video-album-cover img {
    transform: scale(1.04);
}

.video-album-count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 13px;
}

.video-album-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

    .video-album-info strong {
        font-size: 16px;
    }

    .video-album-info small {
        color: #777;
    }


/* =========================================================
   6. VIDEO MODAL
========================================================= */

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 75px 24px 65px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
}

    .video-modal[aria-hidden="false"] {
        display: flex;
    }

.video-modal-close {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 100010;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.video-browser,
.video-player-view {
    width: min(1100px, 100%);
    margin: auto;
}

.video-browser-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

    .video-browser-heading h3 {
        margin: 6px 0 0;
        color: #fff;
    }

.video-eyebrow {
    color: #69c4ff;
    font-size: 12px;
    letter-spacing: 2px;
}

.video-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.video-thumbnail-card {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: #1b1b1b;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.video-thumbnail-image {
    position: relative;
    background: #111;
}

    .video-thumbnail-image img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 138, 215, 0.94);
    color: #fff;
    font-size: 18px;
    transform: translate(-50%, -50%);
}

.video-thumbnail-title {
    display: block;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
}

.video-player-view {
    display: none;
}

    .video-player-view h3 {
        margin: 0 55px 16px;
        color: #fff;
        text-align: center;
    }

.video-player-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

    .video-player-frame video,
    .video-player-frame iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

#currentVideoDescription {
    color: #ddd;
    text-align: center;
}

.video-nav,
.video-back {
    position: fixed;
    z-index: 100005;
    padding: 12px 15px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
}

.video-prev,
.video-next {
    display: none;
    top: 50%;
    transform: translateY(-50%);
}

.video-prev {
    left: 18px;
}

.video-next {
    right: 18px;
}

.video-back {
    display: none;
    left: 20px;
    bottom: 18px;
}

.video-counter {
    position: fixed;
    right: 24px;
    bottom: 25px;
    color: #fff;
}


/* =========================================================
   7. TEAM MEMBERS
========================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.person {
    position: relative;
    padding: 18px 16px;
   
    border: 1px solid #e2e6ea;
    background: #ffffff;
   
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .person:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(50, 70, 120, 0.18);
        border: 1px solid #008AD7;
    }

.avatar {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px;
    min-height: 90px;
    margin: 0 auto 16px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 50%;
    background: #008ad7;
    display: block;
    box-sizing: border-box;
    border: 2px solid #c7cdd3;
}

    .avatar img.team-photo {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 50%;
        object-fit: cover;
        object-position: center 5%;
        box-sizing: border-box;
    }

.team-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.person h3 {
   
    color: #183247;
    font-size: 13px;
}

.person p {
    color: #526579;
    font-size: 12px;
}

.person .team-department {
    color: #008ad7;
    font-size: 12px;
}


/* =========================================================
   8. TOAST NOTIFICATIONS
========================================================= */

#divMsg {
    position: fixed;
    top: 100px;
    right: 10px;
    z-index: 99999;
}

.modern-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 280px;
    max-width: 420px;
    overflow: hidden;
    padding: 10px;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: glow 2s infinite alternate;
}

.toast-icon i {
    margin-top: 3px;
    font-size: 18px;
}

.toast-title {
    margin-bottom: 3px;
    font-size: 16px;
    font-weight: 700;
}

.toast-message {
    font-size: 14px;
    opacity: 0.95;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes glow {
    from {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 10px rgba(255, 255, 255, 0.15);
    }

    to {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 255, 255, 0.25);
    }
}


/* =========================================================
   9. ALBUM GRID: IMAGE AND VIDEO
========================================================= */

#galleryAlbums,
#videoAlbums {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    align-items: stretch;
    gap: 24px;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

    #galleryAlbums .album-card,
    #videoAlbums .album-card {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        min-width: 0;
        height: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    #galleryAlbums .album-cover,
    #videoAlbums .album-cover {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

        #galleryAlbums .album-cover img,
        #videoAlbums .album-cover img {
            display: block;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover;
        }


/* =========================================================
   10. ABOUT SECTION
========================================================= */

.about-section {
    background: #fff;
}

.about-heading {
    max-width: 720px;
    margin-bottom: 35px;
}

    .about-heading .eyebrow {
        margin-bottom: 12px;
        color: #008ad7;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .about-heading h2 {
        margin: 0;
        color: #123047;
        font-family: "Playfair Display", Georgia, serif;
        font-size: 26px;
        font-weight: 700;
        line-height: 1.25;
    }

        .about-heading h2 em {
            color: #008ad7;
            font-style: normal;
        }

.about-content {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 45px;
}

.about-image {
    position: relative;
    min-width: 0;
}

    .about-image img {
        display: block;
        width: 100%;
        height: 360px;
        border-radius: 12px;
        background: #eaf5fb;
        object-fit: cover;
    }



.about-details .lead {
    margin: 0 0 16px;
    color: #263e50;
    font-family: Inter, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.8;
}

.about-details > p:not(.lead) {
    margin-bottom: 22px;
    color: #123047;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.9;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #008ad7;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

    .about-link:hover {
        gap: 15px;
        color: #075b8a;
    }


/* About feature grid */

.about-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 23px 20px;
    border: 1px solid #e2f0f8;
    border-radius: 9px;
    background: #f3f9fd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .about-feature:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 22px rgba(7, 91, 138, 0.09);
    }

.feature-number {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #dff2fd;
    color: #008ad7;
    font-size: 14px;
    font-weight: 700;
}

.about-feature h3 {
    margin: 2px 0 7px;
    color: #123047;
    font-size: 16px;
}

.about-feature p {
    margin: 0;
    color: #657684;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   11. CONTACT SECTION
   IMPORTANT: This section is outside the About media query.
========================================================= */

.mms-contact-section {
    padding: 48px 0;
    background: #f5f9fc;
    color: #243447;
    font-family: inherit;
}

.mms-contact-container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

.mms-contact-heading {
    max-width: 620px;
    margin: 0 auto 28px;
    text-align: center;
}

.mms-contact-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #008ad7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.mms-contact-heading h2 {
    margin: 0 0 9px;
    color: #075b8a;
    font-size: clamp(27px, 3vw, 35px);
    font-weight: 700;
    line-height: 1.25;
}

.mms-contact-heading > p {
    margin: 0;
    color: #687889;
    font-size: 13px;
    line-height: 1.7;
}

.mms-contact-layout {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e4edf4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(7, 91, 138, 0.07);
}


/* Contact information panel */

.mms-contact-info {
    padding: 30px;
    background: #097fc3;
    color: #fff;
}

.mms-contact-label {
    display: block;
    margin-bottom: 10px;
    color: #b9e7ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.mms-contact-info > h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
}

.mms-contact-intro {
    margin: 0;
    color: #e0eff8;
    font-size: 12px;
    line-height: 1.8;
}

.mms-contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 26px;
}

.mms-contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.mms-contact-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
}

.mms-contact-detail-content {
    min-width: 0;
}

    .mms-contact-detail-content h4 {
        margin: 1px 0 4px;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
    }

    .mms-contact-detail-content p {
        margin: 0;
        color: #dcecf6;
        font-size: 12px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .mms-contact-detail-content a {
        color: #fff;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

        .mms-contact-detail-content a:hover {
            color: #b9e7ff;
            text-decoration: underline;
        }

.mms-contact-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 25px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
}

    .mms-contact-note > i {
        margin-top: 2px;
        color: #9edfff;
        font-size: 17px;
    }

    .mms-contact-note strong {
        display: block;
        margin-bottom: 4px;
        color: #fff;
        font-size: 12px;
    }

    .mms-contact-note p {
        margin: 0;
        color: #dcecf6;
        font-size: 11px;
        line-height: 1.7;
    }


/* Contact form */

.mms-contact-form-card {
    min-width: 0;
    padding: 30px;
    background: #fff;
}

.mms-form-heading {
    margin-bottom: 20px;
}

    .mms-form-heading h3 {
        margin: 0 0 6px;
        color: #075b8a;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.35;
    }

    .mms-form-heading p {
        margin: 0;
        color: #748292;
        font-size: 12px;
        line-height: 1.7;
    }

.mms-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 14px;
}

.mms-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mms-form-full {
    grid-column: 1 / -1;
}

.mms-form-group label {
    display: block;
    margin: 0 0 6px;
    color: #33475b;
    font-size: 12px;
    font-weight: 600;
}

    .mms-form-group label span {
        color: #d94343;
    }

.mms-contact-section .mms-form-control {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #dce5ed;
    border-radius: 5px;
    outline: none;
    background: #fff;
    color: #263747;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .mms-contact-section .mms-form-control::placeholder {
        color: #9aa8b5;
        opacity: 1;
    }

    .mms-contact-section .mms-form-control:focus {
        border-color: #008ad7;
        box-shadow: 0 0 0 3px rgba(0, 138, 215, 0.1);
    }

.mms-contact-section textarea.mms-form-control,
.mms-contact-section .mms-message-control {
    min-height: 105px;
}

.mms-contact-section textarea.mms-form-control {
    height: 105px;
    resize: vertical;
}

.mms-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    margin-top: 18px;
    padding: 10px 20px;
    border: 1px solid #008ad7;
    border-radius: 5px;
    background: #008ad7;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .mms-contact-submit:hover {
        border-color: #075b8a;
        background: #075b8a;
        color: #fff;
    }

    .mms-contact-submit:active {
        transform: translateY(1px);
    }

.mms-contact-status {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.mms-form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 13px 0 0;
    color: #82909d;
    font-size: 10px;
    line-height: 1.6;
}

    .mms-form-privacy i {
        margin-top: 2px;
        color: #008ad7;
    }


/* =========================================================
   12. JOIN THE SOCIETY
========================================================= */

.mms-join-section {
    padding: 75px 0;
    background: #f4f9fd;
}

.mms-join-header {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.mms-join-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #008ad7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.mms-join-header h2 {
    margin: 0 0 15px;
    color: #075b8a;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.3;
}

.mms-join-header > p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.9;
}

.mms-join-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.mms-join-item {
    padding: 28px 23px;
    border: 1px solid #e4edf5;
    border-radius: 9px;
    background: #fff;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .mms-join-item:hover {
        transform: translateY(-5px);
        border-color: #b7e1f8;
        box-shadow: 0 12px 28px rgba(7, 91, 138, 0.08);
    }

.mms-join-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 21px;
    border-radius: 8px;
    background: #eaf6fd;
    color: #008ad7;
    font-size: 21px;
}

.mms-join-item h3 {
    margin: 0 0 12px;
    color: #075b8a;
    font-size: 18px;
    font-weight: 750;
}

.mms-join-item p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.mms-join-footer {
    margin-top: 32px;
    padding: 34px 24px;
    border-radius: 9px;
    background: #075b8a;
    text-align: center;
}

    .mms-join-footer h3 {
        margin: 0 0 9px;
        color: #fff;
        font-size: 25px;
        font-weight: 750;
    }

    .mms-join-footer > p {
        margin: 0 0 22px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 14px;
        line-height: 1.8;
    }

.mms-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 23px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: #fff;
    color: #075b8a !important;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none !important;
    transition: background 0.25s ease, color 0.25s ease;
}

    .mms-join-btn:hover {
        border-color: #008ad7;
        background: #008ad7;
        color: #fff !important;
    }

    .mms-join-btn i {
        transition: transform 0.25s ease;
    }

    .mms-join-btn:hover i {
        transform: translateX(4px);
    }


/* =========================================================
   13. GENERAL PAGE ADJUSTMENTS
========================================================= */

#home {
    scroll-margin-top: 190px;
}


/* =========================================================
   14. RESPONSIVE: TABLET
========================================================= */

@media (max-width: 900px) {

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .about-image img {
        height: 320px;
    }

    .about-features {
        gap: 12px;
    }

    .about-feature {
        gap: 10px;
        padding: 18px 14px;
    }

    /* Contact */
    .mms-contact-container {
        width: 94%;
    }

    .mms-contact-layout {
        grid-template-columns: 1fr;
    }

    .mms-contact-info,
    .mms-contact-form-card {
        padding: 27px;
    }

    .mms-contact-details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    /* Join */
    .mms-join-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   15. RESPONSIVE: ABOUT AND CONTACT
========================================================= */

@media (max-width: 650px) {

    .about-section {
        padding: 55px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-image img {
        height: 270px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 25px;
    }

    .about-feature {
        padding: 18px;
    }
}


/* =========================================================
   16. RESPONSIVE: SMALL SCREENS
========================================================= */

@media (max-width: 600px) {

    /* Video modal */
    .video-modal {
        padding: 75px 12px 65px;
    }

    .video-thumbnail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .video-prev {
        left: 5px;
    }

    .video-next {
        right: 5px;
    }

    .video-player-view h3 {
        margin-right: 0;
        margin-left: 0;
        font-size: 18px;
    }
}


/* =========================================================
   17. RESPONSIVE: MOBILE
========================================================= */

@media (max-width: 576px) {

    /* Notice popup */
    .notice-popup-box {
        max-height: 90vh;
    }

    .notice-popup-body {
        padding: 16px;
    }

    /* Contact */
    .mms-contact-section {
        padding: 35px 0;
    }

    .mms-contact-container {
        width: 92%;
    }

    .mms-contact-heading {
        margin-bottom: 22px;
    }

        .mms-contact-heading h2 {
            font-size: 27px;
        }

    .mms-contact-info,
    .mms-contact-form-card {
        padding: 22px 18px;
    }

        .mms-contact-info > h3 {
            font-size: 23px;
        }

    .mms-contact-details {
        display: flex;
        flex-direction: column;
        gap: 17px;
        margin-top: 22px;
    }

    .mms-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .mms-form-full {
        grid-column: auto;
    }

    .mms-contact-submit {
        width: 100%;
    }

    /* Join */
    .mms-join-section {
        padding: 50px 0;
    }

    .mms-join-header {
        margin-bottom: 28px;
    }

    .mms-join-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mms-join-item {
        padding: 23px;
    }

    .mms-join-footer {
        padding: 30px 20px;
    }

        .mms-join-footer h3 {
            font-size: 22px;
        }

    /* Toast */
    .modern-toast {
        min-width: 0;
        width: calc(100vw - 40px);
        box-sizing: border-box;
    }
}


/* =========================================================
   18. RESPONSIVE: ALBUM GRIDS
========================================================= */

@media (max-width: 550px) {

    #galleryAlbums,
    #videoAlbums {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
}


/* =========================================================
   19. RESPONSIVE: VERY SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   20. ACCESSIBILITY: REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-slide .hero-copy h2,
    .hero-slide .hero-copy .hero-text,
    .hero-slide.active .hero-copy h2,
    .hero-slide.active .hero-copy .hero-text {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .person,
    .about-feature,
    .about-link,
    .video-album-card,
    .video-album-cover img,
    .mms-join-item,
    .mms-join-btn,
    .mms-join-btn i,
    .mms-contact-submit {
        transition: none;
    }

    .modern-toast {
        animation: none;
    }
}

.math-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    color: #F59E0B;
    opacity: 0.5;
}

    .math-bg span {
        position: absolute;
        display: block;
        font-size: clamp(24px, 3vw, 42px);
        font-weight: 600;
        animation: mathFloat 12s ease-in-out infinite;
        will-change: transform;
    }

        /* Different positions and animation timings */
        .math-bg span:nth-child(1) {
            top: 10%;
            left: 8%;
            animation-delay: 0s;
        }

        .math-bg span:nth-child(2) {
            top: 65%;
            left: 15%;
            animation-delay: -2s;
        }

        .math-bg span:nth-child(3) {
            top: 20%;
            left: 80%;
            animation-delay: -4s;
        }

        .math-bg span:nth-child(4) {
            top: 70%;
            left: 88%;
            animation-delay: -6s;
        }

        .math-bg span:nth-child(5) {
            top: 40%;
            left: 25%;
            animation-delay: -3s;
        }

        .math-bg span:nth-child(6) {
            top: 15%;
            left: 55%;
            animation-delay: -5s;
        }

        .math-bg span:nth-child(7) {
            top: 80%;
            left: 45%;
            animation-delay: -7s;
        }

        .math-bg span:nth-child(8) {
            top: 45%;
            left: 72%;
            animation-delay: -1s;
        }

        .math-bg span:nth-child(9) {
            top: 35%;
            left: 5%;
            animation-delay: -8s;
        }

        .math-bg span:nth-child(10) {
            top: 85%;
            left: 70%;
            animation-delay: -4s;
        }

@keyframes mathFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    25% {
        transform: translate3d(15px, -25px, 0) rotate(8deg);
    }

    50% {
        transform: translate3d(-10px, -45px, 0) rotate(-5deg);
    }

    75% {
        transform: translate3d(20px, -20px, 0) rotate(5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .math-bg span {
        animation: none;
    }
}
/* Category heading */
.team-category-title {
    font-size: 18px;
    font-weight: 700;
    color: #008AD7;
    border-bottom: 1px solid #00B4D8; /* Or #D4AF37 for warm contrast */
    position: relative;
    text-align: center;
    width: fit-content;
    margin: 0 auto 10px;
    padding-bottom: 1px;
}

    /* Accent line under heading */
    .team-category-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 70px;
        height: 3px;
       /* background-color: #b88a44;*/
    }

/* Team member cards */
.team-category .team-grid {
    margin-bottom: 15px;
}

/* Responsive heading */
@media (max-width: 576px) {
    .team-category {
        margin-top: 30px;
    }

    .team-category-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
}
.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0px;
    /*background: #f0f7fc;
            border: 1px solid #d6eaf7;
            border-radius: 25px;*/
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

    .visitor-counter i {
        font-size: 17px;
        color: #fff;
    }

.visitor-count {
    padding: 3px 9px;
    background: #008AD7;
    color: #fff;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ==========================================
   FORMER MEMBERS DROPDOWN CONTAINER
========================================== */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* ==========================================
   DROPDOWN TOGGLE BUTTON
========================================== */

.nav .nav-dropdown > .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    
    margin: 0;
    font: inherit;
    font-weight: 600;
    color: #31404c;
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

    /* Remove default button effects */

    .nav .nav-dropdown > .dropdown-toggle:hover,
    .nav .nav-dropdown > .dropdown-toggle:focus,
    .nav .nav-dropdown > .dropdown-toggle:active {
        background: #ffffff;
        border: none;
        outline: none;
        box-shadow: none;
        text-decoration: none;
    }

/* Dropdown arrow */

.nav-dropdown > .dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.25s ease;
}

/* Rotate arrow when dropdown is open */

.nav-dropdown.open > .dropdown-toggle i {
    transform: rotate(180deg);
}


/* ==========================================
   DROPDOWN MENU
========================================== */

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    max-width: calc(100vw - 30px);
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 6px 0;
    background: #ffffff;
    border: 1px solid #e5edf3;
    border-top: 3px solid #008AD7;
    
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    z-index: 9999;
}

/* Show dropdown when open */

.nav-dropdown.open > .dropdown-menu-custom {
    display: block;
}


/* ==========================================
   DESKTOP HOVER BEHAVIOR
========================================== */

@media (min-width: 769px) {

    /* Show dropdown on hover */

    .nav .nav-dropdown:hover > .dropdown-menu-custom {
        display: block;
    }

    /* Rotate arrow on hover */

    .nav .nav-dropdown:hover > .dropdown-toggle i {
        transform: rotate(180deg);
    }
}


/* ==========================================
   FORMER MEMBER PROFILE ITEM
========================================== */

.former-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

    /* Member hover effect */

    .former-member-item:hover {
        background: #f2f8fc;
    }

    /* Remove unnecessary bottom border */

    .former-member-item:last-child {
        border-bottom: none;
    }


    /* ==========================================
   MEMBER PROFILE IMAGE
========================================== */

    .former-member-item img {
        display: block;
        width: 75px;
        height: 75px;
        min-width: 75px;
        max-width: 75px;
        flex-shrink: 0;
        border-radius: 50%;
        object-fit: cover;
        object-position: center 5%;
        border: 2px solid #808080;
        box-sizing: border-box;
    }


/* ==========================================
   MEMBER NAME AND DESIGNATION
========================================== */

.former-member-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

    /* Member name */

    .former-member-info h6 {
        margin: 0;
        padding: 0;
        color: #075b8a;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Designation and department */

    .former-member-info span {
        display: block;
        margin: 0;
        padding: 0;
        color: #404040;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
    }


/* ==========================================
   DROPDOWN SCROLLBAR
========================================== */

.dropdown-menu-custom::-webkit-scrollbar {
    width: 5px;
}

.dropdown-menu-custom::-webkit-scrollbar-track {
    background: #f5f8fa;
}

.dropdown-menu-custom::-webkit-scrollbar-thumb {
    background: #c5dce9;
    border-radius: 10px;
}

    .dropdown-menu-custom::-webkit-scrollbar-thumb:hover {
        background: #008AD7;
    }


/* ==========================================
   MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 768px) {

    /* Container */

    .nav .nav-dropdown {
        display: block;
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
        box-sizing: border-box;
    }

        /* Toggle button */

        .nav .nav-dropdown > .dropdown-toggle {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 7px;
            width: 100%;
            padding: 12px 0;
            margin: 0;
            background: transparent;
            color: inherit;
            font: inherit;
            font-weight: 600;
            text-align: left;
            border: none;
            border-radius: 0;
            cursor: pointer;
        }

            /* Keep mobile button background consistent */

            .nav .nav-dropdown > .dropdown-toggle:hover,
            .nav .nav-dropdown > .dropdown-toggle:focus,
            .nav .nav-dropdown > .dropdown-toggle:active {
                background: transparent;
                border: none;
                outline: none;
                box-shadow: none;
            }

        /* Mobile dropdown menu */

        .nav .nav-dropdown > .dropdown-menu-custom {
            display: none;
            position: static;
            width: 100%;
            max-width: 100%;
            max-height: 300px;
            margin: 0;
            padding: 6px 0;
            overflow-y: auto;
            overflow-x: hidden;
            background: #ffffff;
            border: 1px solid #e5edf3;
            border-top: 3px solid #008AD7;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            box-sizing: border-box;
            z-index: 9999;
        }

        /* Show dropdown on mobile when clicked */

        .nav .nav-dropdown.open > .dropdown-menu-custom {
            display: block;
        }

    /* Member item */

    .nav .former-member-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 12px;
        text-align: left;
    }

        /* Member image */

        .nav .former-member-item img {
            width: 44px;
            height: 44px;
            min-width: 44px;
            max-width: 44px;
            flex-shrink: 0;
            border-radius: 50%;
            object-fit: cover;
            object-position: center;
        }

    /* Member details */

    .nav .former-member-info {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

        .nav .former-member-info h6 {
            font-size: 12px;
        }

        .nav .former-member-info span {
            font-size: 11px;
        }
}
/* ==========================================
   INFORMATION DOCUMENT DROPDOWN
========================================== */

/* Dropdown width */

.information-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

/* Individual document link */

.information-document {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #31404c;
    background: #ffffff;
    text-decoration: none !important;
    border-bottom: 1px solid #edf2f5;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

    /* Hover effect */

    .information-document:hover {
        background: #e5f5ff;
        color: #005c99;
    }

    /* Document icon */

    .information-document .document-icon {
        flex-shrink: 0;
        font-size: 18px;
        color: #d93025;
    }

    /* Document name */

    .information-document .document-name {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
        padding: 2px 5px;
    }

    /* External link icon */

    .information-document .external-icon {
        flex-shrink: 0;
        font-size: 11px;
        color: #008AD7;
    }

    /* Remove last border */

    .information-document:last-child {
        border-bottom: none;
    }

/* Empty document message */

.no-information {
    padding: 15px;
    color: #777;
    font-size: 12px;
    text-align: center;
}

/* Mobile responsiveness */

@media (max-width: 768px) {

    .nav .information-dropdown {
        position: static;
        width: 100%;
        max-width: 100%;
        max-height: 300px;
        box-sizing: border-box;
    }

    .nav .information-document {
        padding: 12px;
        text-align: left;
    }

        .nav .information-document .document-name {
            font-size: 12px;
            padding:2px 10px;
        }
}
