/* =========================================================
   IEEE SCIT PUNE
   Modern IEEE Engineering Network Theme
========================================================= */


/* =========================================================
   DESIGN SYSTEM
========================================================= */

:root {

    /* =====================================================
       BRAND
    ====================================================== */

    --primary: #00629b;
    --primary-dark: #004f7c;
    --primary-light: #eaf5fb;

    --accent: #00a6d6;


    /* =====================================================
       TEXT
    ====================================================== */

    --text: #172033;
    --text-soft: #5f6b7a;
    --text-light: #7a8694;


    /* =====================================================
       SURFACES
    ====================================================== */

    --white: #ffffff;

    --background: #f7faff;
    --surface: #ffffff;
    --surface-soft: #eef6fb;


    /* =====================================================
       BORDERS
    ====================================================== */

    --border: #dce5ed;
    --border-light: #e9eef3;


    /* =====================================================
       DARK / FOOTER
    ====================================================== */

    --dark: #071c2c;
    --dark-soft: #0d2a40;


    /* =====================================================
       THEME-SPECIFIC
    ====================================================== */

    --page-bg: #ffffff;

    --header-bg: rgba(255, 255, 255, 0.90);

    --header-hover-bg: rgba(255, 255, 255, 0.96);

    --nav-text: #405065;

    --card-bg: rgba(255, 255, 255, 0.97);

    --input-bg: rgba(255, 255, 255, 0.96);

    --muted-border: rgba(220, 229, 237, 0.85);


    /* =====================================================
       SHADOWS
    ====================================================== */

    --shadow-sm:
        0 4px 16px rgba(7, 28, 44, 0.06);

    --shadow-md:
        0 10px 30px rgba(7, 28, 44, 0.10);

    --shadow-lg:
        0 18px 45px rgba(7, 28, 44, 0.14);


    /* =====================================================
       RADIUS
    ====================================================== */

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;


    /* =====================================================
       LAYOUT
    ====================================================== */

    --container: 1180px;
}


/* =========================================================
   DARK THEME
========================================================= */

html[data-theme="dark"] {

    /* =====================================================
       BRAND
    ====================================================== */

    --primary: #35a8e0;
    --primary-dark: #5dbce9;
    --primary-light: #12384d;

    --accent: #35b8df;


    /* =====================================================
       TEXT
    ====================================================== */

    --text: #f5f7fa;
    --text-soft: #b7c3ce;
    --text-light: #8d9ba8;


    /* =====================================================
       SURFACES
    ====================================================== */

    --white: #f5f7fa;

    --background: #050b12;
    --surface: #0b1722;
    --surface-soft: #101f2c;


    /* =====================================================
       BORDERS
    ====================================================== */

    --border: #263d4d;
    --border-light: #1b2e3c;


    /* =====================================================
       DARK / HEADING COLOR
       
       IMPORTANT:
       --dark is also used for headings.
       Therefore it MUST become light in dark mode.
    ====================================================== */

    --dark: #f5f7fa;
    --dark-soft: #dbe4eb;


    /* =====================================================
       THEME-SPECIFIC
    ====================================================== */

    --page-bg: #050b12;

    --header-bg: rgba(5, 15, 24, 0.96);

    --header-hover-bg: rgba(5, 15, 24, 0.99);

    --nav-text: #d9e2e9;

    --card-bg: #0b1722;

    --input-bg: #0b1722;

    --muted-border: rgba(55, 82, 98, 0.85);


    /* =====================================================
       SHADOWS
    ====================================================== */

    --shadow-sm:
        0 4px 16px rgba(0, 0, 0, 0.25);

    --shadow-md:
        0 10px 30px rgba(0, 0, 0, 0.35);

    --shadow-lg:
        0 18px 45px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    /* background: var(--white); */
    background: var(--page-bg);

    line-height: 1.6;

    overflow-x: hidden;
}

img {
    max-width: 100%;

    display: block;
}

a {
    color: inherit;

    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   GLOBAL IEEE NETWORK
========================================================= */

#site-network-canvas {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    /*
     * JavaScript dynamically changes this
     * to the complete document height.
     */

    height: 100%;

    z-index: 0;

    pointer-events: none;

    opacity: 1;

    display: block;
}


/*
=============================================================
WEBSITE CONTENT ABOVE NETWORK
=============================================================
*/

.site-header,
main,
.site-footer {
    position: relative;

    z-index: 1;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width:
        min(92%, var(--container));

    margin: 0 auto;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);

    line-height: 1.2;
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

p {
    color: var(--text-soft);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        var(--header-bg);

    border-bottom:
        1px solid var(--muted-border);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header:hover {
    background:
        var(--header-hover-bg);
}

.nav-container {
    min-height: 88px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.site-logo {
    display: inline-flex;

    align-items: center;

    justify-content: flex-start;

    flex: 0 0 auto;

    width: 82px;
    height: 70px;

    overflow: hidden;

    transition:
        transform 0.2s ease;
}

.site-logo img {
    display: block;
    width: auto;
    height: 72px;
    max-width: 180px;
    object-fit: contain;
}


.site-logo-image {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: contain;

    object-position: center;
}


.site-logo:hover {
    transform: translateY(-1px);
}

.site-logo:hover {
    color: var(--primary-dark);

    transform:
        translateY(-1px);
}

.nav-right {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    min-width: 0;
}


.site-nav {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 4px;

    flex-wrap: nowrap;
}


/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    line-height: 1;

    box-shadow: var(--shadow-sm);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}


.theme-toggle:hover {
    background: var(--primary-light);

    color: var(--primary);

    border-color: var(--primary);

    transform: translateY(-1px);

    box-shadow: var(--shadow-md);
}


.theme-toggle:focus-visible {
    outline: 3px solid rgba(0, 166, 214, 0.22);

    outline-offset: 2px;
}


.theme-icon {
    display: none;

    font-size: 1.05rem;

    line-height: 1;
}


/* Light mode → show moon */

html:not([data-theme="dark"])
.theme-icon-dark {
    display: inline;
}


/* Dark mode → show sun */

html[data-theme="dark"]
.theme-icon-light {
    display: inline;
}



.site-nav a {
    position: relative;

    padding: 10px 11px;

    /* color: #405065; */
    color: var(--nav-text);

    font-size: 0.92rem;

    font-weight: 500;

    border-radius: 8px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.site-nav a::after {
    content: "";

    position: absolute;

    left: 11px;

    right: 11px;

    bottom: 5px;

    height: 2px;

    background:
        var(--primary);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform 0.2s ease;
}

.site-nav a:hover {
    color:
        var(--primary);

    background:
        var(--primary-light);

    transform:
        translateY(-1px);
}

.site-nav a:hover::after {
    transform:
        scaleX(1);
}


/* =========================================================
   MAIN
========================================================= */

main {
    min-height: 70vh;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    min-height: 650px;

    display: flex;

    align-items: center;

    padding: 120px 0 115px;

    background:
        linear-gradient(
            135deg,
            rgba(245, 251, 255, 0.82) 0%,
            rgba(255, 255, 255, 0.74) 55%,
            rgba(237, 247, 252, 0.82) 100%
        );

    border-bottom:
        1px solid var(--border-light);
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -250px;

    bottom: -260px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 166, 214, 0.12),
            transparent 68%
        );

    pointer-events: none;

    animation:
        heroOrb 9s ease-in-out infinite alternate;
}

.hero::after {
    content: "";

    position: absolute;

    left: -220px;

    top: -220px;

    width: 440px;

    height: 440px;

    border-radius: 50%;

    border:
        1px solid rgba(0, 98, 155, 0.06);

    box-shadow:
        0 0 0 70px rgba(0, 98, 155, 0.018),
        0 0 0 140px rgba(0, 98, 155, 0.012);

    pointer-events: none;
}

@keyframes heroOrb {

    from {
        transform:
            translate3d(0, 0, 0);
    }

    to {
        transform:
            translate3d(-30px, -25px, 0);
    }

}


.hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;

    opacity: 0;

    transform:
        translateY(28px);

    transition:
        opacity 0.85s ease,
        transform 0.85s ease;
}

.hero-content-loaded {
    opacity: 1;

    transform:
        translateY(0);
}

.section-eyebrow {
    display: inline-block;

    color:
        var(--primary);

    font-size: 0.76rem;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform:
        uppercase;
}

.hero h1 {
    max-width: 850px;

    margin: 18px 0 22px;

    color:
        var(--dark);

    font-size:
        clamp(2.8rem, 6vw, 5.5rem);

    font-weight: 800;

    line-height: 1.02;
}

.hero p {
    max-width: 760px;

    margin: 0;

    font-size: 1.12rem;

    line-height: 1.8;

    color:
        var(--text-soft);
}

.hero-actions {
    display: flex;

    gap: 14px;

    margin-top: 32px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 46px;

    padding: 12px 20px;

    border:
        1px solid transparent;

    border-radius: 9px;

    font-size: 0.92rem;

    font-weight: 700;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.btn::before {
    content: "";

    position: absolute;

    top: 0;

    left: -120%;

    width: 80%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left 0.55s ease;
}

.btn:hover::before {
    left: 140%;
}

.btn:hover {
    transform:
        translateY(-3px);
}

.btn-primary {
    color:
        var(--white);

    background:
        var(--primary);

    box-shadow:
        0 8px 20px
        rgba(0, 98, 155, 0.20);
}

.btn-primary:hover {
    background:
        var(--primary-dark);

    box-shadow:
        0 14px 30px
        rgba(0, 79, 124, 0.28);
}

.btn-secondary {
    color:
        var(--primary);

    background:
        rgba(255, 255, 255, 0.94);

    border-color:
        #b9d3e1;
}

.btn-secondary:hover {
    background:
        var(--primary-light);

    border-color:
        #94bfd4;

    box-shadow:
        0 8px 22px
        rgba(0, 98, 155, 0.08);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    position: relative;

    padding: 92px 0;

    background:
        rgba(255, 255, 255, 0.82);
}

.section-soft {
    background:
        rgba(238, 246, 251, 0.86);
}

.section-dark {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(7, 28, 44, 0.96) 0%,
            rgba(13, 42, 64, 0.95) 100%
        );
}

.section-dark::before {
    content: "";

    position: absolute;

    width: 450px;

    height: 450px;

    right: -200px;

    top: -230px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    box-shadow:
        0 0 0 80px
        rgba(255, 255, 255, 0.015),

        0 0 0 160px
        rgba(255, 255, 255, 0.01);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color:
        var(--white);
}

.section-dark p {
    color:
        rgba(255, 255, 255, 0.76);
}

.section-heading {
    max-width: 800px;

    margin-bottom: 42px;
}

.section-heading h2 {
    margin:
        12px 0 14px;

    font-size:
        clamp(2rem, 4vw, 3rem);

    color:
        var(--dark);
}

.section-heading p {
    max-width: 720px;

    margin: 0;

    font-size: 1.02rem;

    line-height: 1.8;
}

.section-dark .section-heading h2 {
    color:
        var(--white);
}

.section-actions {
    display: flex;

    margin-top: 28px;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.scroll-reveal {
    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.scroll-reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   CARDS
========================================================= */

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}

.content-card {
    height: 100%;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.95);

    border:
        1px solid rgba(220, 229, 237, 0.95);

    border-radius:
        var(--radius-md);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.content-card:hover {
    transform:
        translateY(-8px);

    border-color:
        #bfd8e6;

    box-shadow:
        var(--shadow-lg);
}

.card-image {
    width: 100%;

    height: 220px;

    overflow: hidden;

    background:
        var(--surface-soft);
}

.card-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.content-card:hover
.card-image img {
    transform:
        scale(1.06);
}

.card-content {
    padding: 26px;
}

.card-meta {
    display: inline-block;

    margin-bottom: 10px;

    color:
        var(--primary);

    font-size: 0.76rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform:
        uppercase;
}

.card-content h3 {
    margin:
        0 0 12px;

    font-size:
        1.25rem;
}

.card-content p {
    margin:
        0 0 18px;

    line-height:
        1.7;
}

.card-details {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 18px;

    color:
        var(--text-light);

    font-size:
        0.84rem;
}

.text-link {
    color:
        var(--primary);

    font-size:
        0.9rem;

    font-weight:
        700;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.text-link:hover {
    color:
        var(--primary-dark);

    padding-left:
        4px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding:
        50px 30px;

    text-align:
        center;

    background:
        rgba(255, 255, 255, 0.95);

    border:
        1px dashed #c8d6e1;

    border-radius:
        var(--radius-md);
}

.empty-state h3 {
    margin-top:
        0;
}


/* =========================================================
   STATISTICS
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.stat-card {
    padding:
        30px 20px;

    text-align:
        center;

    background:
        rgba(255, 255, 255, 0.95);

    border:
        1px solid rgba(220, 229, 237, 0.95);

    border-radius:
        var(--radius-md);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.stat-card:hover {
    transform:
        translateY(-7px);

    border-color:
        #b9d6e5;

    box-shadow:
        var(--shadow-md);
}

.stat-number {
    margin-bottom:
        4px;

    color:
        var(--primary);

    font-size:
        2.6rem;

    font-weight:
        800;

    line-height:
        1;
}

.stat-label {
    color:
        var(--text-soft);

    font-size:
        0.9rem;

    font-weight:
        600;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding:
        92px 0;

    background:
        rgba(237, 248, 253, 0.90);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding:
        65px 0 24px;

    background:
        linear-gradient(
            135deg,
            rgba(7, 28, 44, 0.98),
            rgba(13, 42, 64, 0.98)
        );

    color:
        var(--white);

    overflow:
        hidden;
}

.footer-grid {
    display:
        grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr;

    gap:
        50px;
}

.site-footer h3 {
    margin:
        0 0 15px;

    color:
        var(--white);

    font-size:
        1rem;
}

.site-footer p {
    margin:
        0;

    color:
        rgba(255, 255, 255, 0.68);
}

.site-footer a {
    display:
        block;

    width:
        fit-content;

    margin-bottom:
        9px;

    color:
        rgba(255, 255, 255, 0.70);

    font-size:
        0.9rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.site-footer a:hover {
    color:
        var(--white);

    transform:
        translateX(3px);
}

.footer-bottom {
    margin-top:
        45px;

    padding-top:
        22px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    font-size:
        0.82rem;
}


/* =========================================================
   ABOUT
========================================================= */

.about-hero {
    position: relative;
    overflow: hidden;

    padding: 88px 0 78px;

    background: rgba(243, 250, 255, 0.88);
}

.about-hero h1 {
    max-width: 900px;

    margin: 14px 0 18px;

    color: var(--dark);

    font-size: clamp(3rem, 5.5vw, 4.8rem);

    font-weight: 800;

    line-height: 1.04;
}

.about-hero p {
    max-width: 760px;

    margin: 0;

    font-size: 1.06rem;

    line-height: 1.75;
}


.about-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}

.about-info-card {
    height: 100%;

    padding: 36px;

    background:
        rgba(255, 255, 255, 0.97);

    border:
        1px solid var(--border);

    border-radius:
        18px;

    box-shadow:
        0 4px 18px rgba(7, 28, 44, 0.055);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.about-info-card:hover {
    transform:
        translateY(-4px);

    border-color:
        #bfd8e6;

    box-shadow:
        0 12px 28px rgba(7, 28, 44, 0.09);
}


.about-info-card h2,
.about-info-card h3 {
    margin:
        12px 0 16px;

    color:
        var(--dark);

    font-weight:
        750;

    letter-spacing:
        -0.025em;
}

.about-info-card h2 {
    font-size:
        clamp(1.35rem, 2vw, 1.55rem);

    line-height:
        1.25;
}

.about-info-card h3 {
    font-size:
        1.22rem;

    line-height:
        1.3;
}

.about-info-card p {
    max-width:
        680px;

    margin:
        0;

    font-size:
        0.98rem;

    line-height:
        1.78;
}

.objectives-grid {
    display:
        grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        24px;
}

/* .about-objective-card {
    padding:
        30px;

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.about-objective-card:hover {
    transform:
        translateY(-7px);

    border-color:
        #b9d6e5;

    box-shadow:
        var(--shadow-md);
} */

.about-objective-card {
    min-height:
        205px;

    padding:
        30px;

    background:
        rgba(255, 255, 255, 0.97);

    border:
        1px solid var(--border);

    border-radius:
        16px;

    box-shadow:
        0 4px 16px rgba(7, 28, 44, 0.05);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.about-objective-card:hover {
    transform:
        translateY(-4px);

    border-color:
        #b9d6e5;

    box-shadow:
        0 12px 28px rgba(7, 28, 44, 0.08);
}

/* .objective-number {
    margin-bottom:
        18px;

    color:
        var(--primary);

    font-size:
        0.8rem;

    font-weight:
        800;

    letter-spacing:
        0.14em;
} */

.objective-number {
    margin-bottom:
        18px;

    color:
        var(--primary);

    font-size:
        0.78rem;

    font-weight:
        800;

    letter-spacing:
        0.18em;
}

.about-objective-card h3 {
    margin:
        0 0 10px;

    color:
        var(--dark);

    font-size:
        1.08rem;

    font-weight:
        750;

    line-height:
        1.3;
}

.about-objective-card p {
    margin:
        0;

    font-size:
        0.94rem;

    line-height:
        1.7;
}

.about-community {
    max-width:
        850px;

    position:
        relative;

    z-index:
        1;
}

.about-community h2 {
    margin:
        12px 0 18px;

    font-size:
        clamp(2rem, 4vw, 3rem);
}

.about-community p {
    max-width:
        760px;

    line-height:
        1.8;
}

.about-community-actions {
    display:
        flex;

    gap:
        14px;

    margin-top:
        28px;
}


/* =========================================================
   EVENTS
========================================================= */

.event-poster-placeholder {
    width:
        100%;

    min-height:
        420px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(238, 246, 251, 0.92);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    color:
        var(--text-light);

    font-weight:
        700;
}

.event-information {
    padding:
        26px;

    background:
        rgba(238, 246, 251, 0.92);

    border-radius:
        var(--radius-md);

    border:
        1px solid var(--border);
}

.event-information p {
    margin:
        0 0 10px;
}

.event-description {
    line-height:
        1.85;
}


/* =========================================================
   TEAM
========================================================= */
/* 
.team-year-selector {
    margin-bottom:
        42px;
}

.team-year-selector select {
    min-width:
        230px;

    padding:
        12px 14px;

    color:
        var(--text);

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid var(--border);

    border-radius:
        9px;

    outline:
        none;
}

.team-year-selector select:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(0, 98, 155, 0.10);
}

.team-interaction-hint {
    margin-top:
        15px;

    color:
        var(--text-light);

    font-size:
        0.88rem;
}

.mobile-hint {
    display:
        none;
}

.team-section {
    position:
        relative;
}

.team-card {
    position:
        relative;

    height:
        100%;

    background:
        rgba(255, 255, 255, 0.97);

    border:
        1px solid var(--border);

    border-radius:
        18px;

    cursor:
        pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    outline:
        none;

    z-index:
        1;
}

.team-card:hover,
.team-card:focus-visible {
    transform:
        translateY(-7px);

    border-color:
        #b8d3e2;

    box-shadow:
        var(--shadow-lg);

    z-index:
        10;
}

.team-card-main {
    padding:
        30px 20px;

    text-align:
        center;

    border-radius:
        18px;
}

.team-card-small .team-card-main {
    padding:
        25px 15px;
}

.team-photo {
    width:
        160px;

    height:
        160px;

    object-fit:
        cover;

    margin:
        0 auto 18px;

    border-radius:
        50%;

    border:
        4px solid var(--primary-light);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.team-card:hover .team-photo {
    transform:
        scale(1.04);

    border-color:
        #c6e5f1;
}

.team-photo-small {
    width:
        125px;

    height:
        125px;

    object-fit:
        cover;

    margin:
        0 auto 15px;

    border-radius:
        50%;

    border:
        4px solid var(--primary-light);
}

.team-photo-placeholder {
    width:
        160px;

    height:
        160px;

    margin:
        0 auto 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius:
        50%;

    font-size:
        0.85rem;

    font-weight:
        700;
}

.team-photo-placeholder-small {
    width:
        125px;

    height:
        125px;

    margin:
        0 auto 15px;
}

.team-member-name {
    margin:
        0;

    color:
        var(--dark);

    font-size:
        1.15rem;

    font-weight:
        800;
}

.team-card-small
.team-member-name {
    font-size:
        1rem;
}

.team-member-position {
    margin:
        8px 0;

    color:
        var(--primary);

    font-weight:
        700;
}

.team-member-action {
    margin:
        8px 0 0;

    color:
        var(--text-light);

    font-size:
        0.76rem;
}

.team-member-details {
    position:
        absolute;

    left:
        15px;

    right:
        15px;

    top:
        calc(100% - 5px);

    padding:
        22px;

    background:
        rgba(255, 255, 255, 0.98);

    border:
        1px solid var(--border);

    border-radius:
        14px;

    box-shadow:
        var(--shadow-lg);

    opacity:
        0;

    visibility:
        hidden;

    transform:
        translateY(-10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    pointer-events:
        none;
}

.team-card:hover
.team-member-details,
.team-card:focus-visible
.team-member-details {
    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(0);

    pointer-events:
        auto;
}

.team-detail-section + .team-detail-section {
    margin-top:
        18px;
}

.team-detail-section h4 {
    margin:
        0 0 8px;

    color:
        var(--dark);

    font-size:
        0.9rem;
}

.team-detail-section p {
    margin:
        0;

    color:
        var(--text-soft);

    font-size:
        0.88rem;

    line-height:
        1.6;
}

.team-social-links {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;
}

.team-social-links a {
    display:
        inline-block;

    padding:
        7px 11px;

    color:
        var(--primary);

    border:
        1px solid #bcd6e3;

    border-radius:
        8px;

    font-size:
        0.8rem;

    font-weight:
        700;
}

.team-social-links a:hover {
    background:
        var(--primary-light);
} */


/* =========================================================
   TEAM
========================================================= */

.team-year-selector {
    margin-bottom: 42px;
}

.team-year-selector select {
    min-width: 230px;
    padding: 12px 14px;

    color: var(--text);
    background: rgba(255, 255, 255, 0.96);

    border: 1px solid var(--border);
    border-radius: 9px;

    outline: none;
}

.team-year-selector select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(0, 98, 155, 0.10);
}


/* =========================================================
   TEAM GRID
========================================================= */

.team-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 26px;
}


/* Faculty - 4 members per row */

.team-grid-faculty {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* Executive Committee - 4 members per row */

.team-grid-executive {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* Core Committee - 3 members per row */

.team-grid-core {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


.team-grid-item {
    min-width: 0;
    width: 100%;
}


/* =========================================================
   TEAM SECTION
========================================================= */

.team-section {
    position: relative;
}

.team-section > .section-title {
    margin-bottom: 26px;
}


/* =========================================================
   TEAM CARD
========================================================= */

.team-card {
    position: relative;

    width: 100%;
    height: 100%;

    background:
        rgba(255, 255, 255, 0.97);

    border:
        1px solid var(--border);

    border-radius:
        18px;

    cursor:
        pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    outline:
        none;

    z-index:
        1;
}

.team-card:hover,
.team-card:focus-visible {
    transform:
        translateY(-7px);

    border-color:
        #b8d3e2;

    box-shadow:
        var(--shadow-lg);

    z-index:
        10;
}


/* =========================================================
   TEAM CARD CONTENT
========================================================= */

.team-card-main {
    padding:
        28px 18px;

    text-align:
        center;

    border-radius:
        18px;
}


/* Executive cards slightly more compact */

.team-card-small .team-card-main {
    padding:
        24px 14px;
}


/* Core cards */

.team-card-core .team-card-main {
    padding:
        30px 22px;
}


/* =========================================================
   TEAM PHOTOS
========================================================= */

/* Faculty */

.team-photo {
    display:
        block;

    width:
        145px;

    height:
        145px;

    object-fit:
        cover;

    margin:
        0 auto 18px;

    border-radius:
        50%;

    border:
        4px solid var(--primary-light);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


/* Executive */

.team-photo-small {
    display:
        block;

    width:
        125px;

    height:
        125px;

    object-fit:
        cover;

    margin:
        0 auto 15px;

    border-radius:
        50%;

    border:
        4px solid var(--primary-light);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


/* Core */

.team-photo-core {
    display:
        block;

    width:
        170px;

    height:
        170px;

    object-fit:
        cover;

    margin:
        0 auto 20px;

    border-radius:
        50%;

    border:
        4px solid var(--primary-light);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


.team-card:hover .team-photo,
.team-card:hover .team-photo-small,
.team-card:hover .team-photo-core {
    transform:
        scale(1.04);

    border-color:
        #c6e5f1;
}


/* =========================================================
   PHOTO PLACEHOLDERS
========================================================= */

.team-photo-placeholder {
    width:
        145px;

    height:
        145px;

    margin:
        0 auto 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius:
        50%;

    font-size:
        0.85rem;

    font-weight:
        700;
}


.team-photo-placeholder-small {
    width:
        125px;

    height:
        125px;

    margin:
        0 auto 15px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius:
        50%;

    font-size:
        0.8rem;

    font-weight:
        700;
}


.team-photo-placeholder-core {
    width:
        170px;

    height:
        170px;

    margin:
        0 auto 20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius:
        50%;

    font-size:
        0.85rem;

    font-weight:
        700;
}


/* =========================================================
   TEAM TEXT
========================================================= */

.team-member-name {
    margin:
        0;

    color:
        var(--dark);

    font-size:
        1.08rem;

    font-weight:
        800;

    line-height:
        1.35;

    overflow-wrap:
        anywhere;
}


.team-card-small .team-member-name {
    font-size:
        1rem;
}


.team-member-name-core {
    font-size:
        1.18rem;
}


.team-member-position {
    margin:
        8px 0;

    color:
        var(--primary);

    font-weight:
        700;

    line-height:
        1.45;

    overflow-wrap:
        anywhere;
}


.team-member-position-core {
    font-size:
        0.95rem;
}


.team-member-action {
    margin:
        8px 0 0;

    color:
        var(--text-light);

    font-size:
        0.76rem;
}


/* =========================================================
   TEAM MEMBER DETAILS
========================================================= */

.team-member-details {
    position:
        absolute;

    left:
        15px;

    right:
        15px;

    top:
        calc(100% - 5px);

    padding:
        22px;

    background:
        rgba(255, 255, 255, 0.98);

    border:
        1px solid var(--border);

    border-radius:
        14px;

    box-shadow:
        var(--shadow-lg);

    opacity:
        0;

    visibility:
        hidden;

    transform:
        translateY(-10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    pointer-events:
        none;

    z-index:
        20;
}


.team-card:hover
.team-member-details,

.team-card:focus-visible
.team-member-details {
    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(0);

    pointer-events:
        auto;
}


.team-detail-section + .team-detail-section {
    margin-top:
        18px;
}


.team-detail-section h4 {
    margin:
        0 0 8px;

    color:
        var(--dark);

    font-size:
        0.9rem;
}


.team-detail-section p {
    margin:
        0;

    color:
        var(--text-soft);

    font-size:
        0.88rem;

    line-height:
        1.6;
}


.team-social-links {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;
}


.team-social-links a {
    display:
        inline-block;

    padding:
        7px 11px;

    color:
        var(--primary);

    border:
        1px solid #bcd6e3;

    border-radius:
        8px;

    font-size:
        0.8rem;

    font-weight:
        700;
}


.team-social-links a:hover {
    background:
        var(--primary-light);
}


/* =========================================================
   TEAM RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .team-grid-faculty,
    .team-grid-executive {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .team-grid-core {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TEAM MOBILE
========================================================= */

@media (max-width: 768px) {

    .team-grid-faculty,
    .team-grid-executive,
    .team-grid-core {
        grid-template-columns:
            1fr;
    }

    .team-card {
        overflow:
            hidden;

        transform:
            none !important;
    }

    .team-card:hover {
        transform:
            none;
    }

    .team-card:hover
    .team-member-details {
        opacity:
            0;

        visibility:
            hidden;

        transform:
            none;

        pointer-events:
            none;
    }

    .team-card-main {
        padding:
            26px 16px;
    }

    .team-card-small .team-card-main {
        padding:
            24px 16px;
    }

    .team-card-core .team-card-main {
        padding:
            28px 18px;
    }

    .team-photo {
        width:
            135px;

        height:
            135px;
    }

    .team-photo-small {
        width:
            120px;

        height:
            120px;
    }

    .team-photo-core {
        width:
            150px;

        height:
            150px;
    }

    .team-photo-placeholder {
        width:
            135px;

        height:
            135px;
    }

    .team-photo-placeholder-small {
        width:
            120px;

        height:
            120px;
    }

    .team-photo-placeholder-core {
        width:
            150px;

        height:
            150px;
    }

    .team-member-details {
        position:
            static;

        max-height:
            0;

        padding:
            0 18px;

        border:
            none;

        border-radius:
            0;

        box-shadow:
            none;

        opacity:
            0;

        visibility:
            hidden;

        transform:
            none;

        overflow:
            hidden;

        transition:
            max-height 0.3s ease,
            padding 0.3s ease,
            opacity 0.2s ease,
            visibility 0.2s ease;

        pointer-events:
            none;
    }

    .team-card.is-expanded
    .team-member-details {
        max-height:
            600px;

        padding:
            0 18px 20px;

        opacity:
            1;

        visibility:
            visible;

        pointer-events:
            auto;
    }

    .team-card.is-expanded {
        box-shadow:
            var(--shadow-md);
    }

}


/* =========================================================
   TEAM SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .team-card-main {
        padding:
            22px 12px;
    }

    .team-card-small .team-card-main {
        padding:
            22px 12px;
    }

    .team-card-core .team-card-main {
        padding:
            24px 14px;
    }

    .team-photo {
        width:
            125px;

        height:
            125px;
    }

    .team-photo-small {
        width:
            110px;

        height:
            110px;
    }

    .team-photo-core {
        width:
            140px;

        height:
            140px;
    }

}



/* =========================================================
   PROJECTS
========================================================= */

.project-image {
    width:
        100%;

    height:
        220px;

    object-fit:
        cover;
}

.project-image-placeholder {
    width:
        100%;

    height:
        220px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        16px;

    background:
        rgba(238, 246, 251, 0.94);

    border-radius:
        10px;

    color:
        var(--text-light);

    font-weight:
        700;
}

.project-detail-placeholder {
    width:
        100%;

    min-height:
        400px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(238, 246, 251, 0.94);

    border-radius:
        12px;

    color:
        var(--text-light);

    font-weight:
        700;
}

.project-description {
    line-height:
        1.85;
}


/* =========================================================
   ACHIEVEMENTS
========================================================= */

.achievement-image {
    width:
        100%;

    height:
        220px;

    object-fit:
        cover;
}

.achievement-image-placeholder {
    width:
        100%;

    height:
        220px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        16px;

    background:
        rgba(238, 246, 251, 0.94);

    border-radius:
        10px;

    color:
        var(--text-light);

    font-weight:
        700;
}

.achievement-detail-placeholder {
    width:
        100%;

    min-height:
        400px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(238, 246, 251, 0.94);

    border-radius:
        12px;

    color:
        var(--text-light);

    font-weight:
        700;
}

.achievement-description {
    line-height:
        1.85;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-album-card {
    overflow:
        hidden;
}

.gallery-cover-image {
    width:
        100%;

    height:
        230px;

    object-fit:
        cover;

    border-radius:
        10px;
}

.gallery-cover-placeholder {
    width:
        100%;

    height:
        230px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(238, 246, 251, 0.94);

    border-radius:
        10px;

    color:
        var(--text-light);

    font-weight:
        700;
}

.gallery-media-card {
    height:
        100%;

    padding:
        10px;

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid var(--border);

    border-radius:
        12px;

    box-shadow:
        var(--shadow-sm);
}

.gallery-image {
    width:
        100%;

    height:
        220px;

    object-fit:
        cover;

    border-radius:
        8px;

    transition:
        transform 0.35s ease;
}

.gallery-image:hover {
    transform:
        scale(1.035);
}

.gallery-caption {
    margin:
        10px 0;

    color:
        var(--text-soft);

    font-size:
        0.85rem;
}

.gallery-video-card {
    min-height:
        220px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    padding:
        25px;

    text-align:
        center;
}

.gallery-video-icon {
    width:
        70px;

    height:
        70px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        15px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius:
        50%;

    font-size:
        1.5rem;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-video-card:hover
.gallery-video-icon {
    transform:
        scale(1.08);

    box-shadow:
        0 8px 25px
        rgba(0, 98, 155, 0.12);
}


/* =========================================================
   RESOURCES
========================================================= */

.resource-thumbnail {
    width:
        100%;

    height:
        220px;

    object-fit:
        cover;

    border-radius:
        10px;
}

.resource-icon {
    width:
        100%;

    height:
        220px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    background:
        rgba(238, 246, 251, 0.94);

    border-radius:
        10px;

    color:
        var(--primary);

    font-weight:
        800;
}


/* =========================================================
   BLOG
========================================================= */

.blog-content {
    line-height:
        1.9;
}

.blog-content img {
    max-width:
        100%;

    height:
        auto;

    border-radius:
        10px;
}

.blog-content a {
    color:
        var(--primary);
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin-top:
        30px;
}


/* =========================================================
   FORMS
========================================================= */

input,
textarea,
select {
    width:
        100%;

    padding:
        12px 14px;

    color:
        var(--text);

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid var(--border);

    border-radius:
        9px;

    outline:
        none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(0, 98, 155, 0.10);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .site-nav {
        gap:
            0;
    }

    .site-nav a {
        padding-left:
            8px;

        padding-right:
            8px;
    }

    .card-grid:not(.blog-grid) {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .objectives-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    #site-network-canvas {
        opacity:
            0.80;
    }

    .nav-container {
    min-height:
        auto;

    padding-top:
        15px;

    padding-bottom:
        15px;

    flex-direction:
        column;

    align-items:
        stretch;
}


.nav-right {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 8px;
}


.site-nav {
    flex: 1;

    min-width: 0;
}

    .site-nav {
        width:
            100%;

        justify-content:
            flex-start;

        gap:
            2px;

        overflow-x:
            auto;

        flex-wrap:
            nowrap;

        padding-bottom:
            2px;
    }

    .site-nav a {
        flex:
            0 0 auto;

        padding:
            9px 10px;

        font-size:
            0.84rem;
    }

    .hero {
        min-height:
            590px;

        padding:
            78px 0 70px;
    }

    .hero h1 {
        font-size:
            2.7rem;
    }

    .hero p {
        font-size:
            1rem;
    }

    .hero-actions {
        flex-direction:
            column;

        align-items:
            stretch;
    }

    .hero-actions .btn {
        width:
            100%;
    }

    .section {
        padding:
            68px 0;

        background:
            rgba(255, 255, 255, 0.88);
    }

    .section-soft {
        background:
            rgba(238, 246, 251, 0.90);
    }

    .section-heading {
        margin-bottom:
            32px;
    }

    .card-grid {
        grid-template-columns:
            1fr;
    }

    .about-grid {
        grid-template-columns:
            1fr;
    }

    .objectives-grid {
        grid-template-columns:
            1fr;
    }

    .about-hero {
        padding:
            75px 0 62px;
    }

    .about-hero h1 {
        font-size:
            2.7rem;
    }

    .about-info-card,
    .about-objective-card {
        padding:
            25px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns:
            1fr;

        gap:
            30px;
    }

    .about-community-actions {
        flex-direction:
            column;

        align-items:
            stretch;
    }

    .about-community-actions .btn {
        width:
            100%;
    }

    .mobile-hint {
        display:
            inline;
    }

    .desktop-hint {
        display:
            none;
    }

    .team-interaction-hint {
        font-size:
            0.84rem;
    }

    .team-card {
        overflow:
            hidden;

        transform:
            none !important;
    }

    .team-card:hover {
        transform:
            none;
    }

    .team-card:hover
    .team-member-details {
        opacity:
            0;

        visibility:
            hidden;

        transform:
            none;

        pointer-events:
            none;
    }

    .team-card-main {
        padding:
            23px 14px;
    }

    .team-photo {
        width:
            130px;

        height:
            130px;
    }

    .team-photo-small {
        width:
            105px;

        height:
            105px;
    }

    .team-photo-placeholder {
        width:
            130px;

        height:
            130px;
    }

    .team-photo-placeholder-small {
        width:
            105px;

        height:
            105px;
    }

    .team-member-details {
        position:
            static;

        max-height:
            0;

        padding:
            0 18px;

        border:
            none;

        border-radius:
            0;

        box-shadow:
            none;

        opacity:
            0;

        visibility:
            hidden;

        transform:
            none;

        overflow:
            hidden;

        transition:
            max-height 0.3s ease,
            padding 0.3s ease,
            opacity 0.2s ease,
            visibility 0.2s ease;

        pointer-events:
            none;
    }

    .team-card.is-expanded
    .team-member-details {
        max-height:
            600px;

        padding:
            0 18px 20px;

        opacity:
            1;

        visibility:
            visible;

        pointer-events:
            auto;
    }

    .team-card.is-expanded {
        box-shadow:
            var(--shadow-md);
    }

    .project-image,
    .achievement-image {
        height:
            200px;
    }

    .project-image-placeholder,
    .achievement-image-placeholder {
        height:
            200px;
    }

    .gallery-cover-image,
    .gallery-cover-placeholder {
        height:
            200px;
    }

    .gallery-image {
        height:
            180px;
    }

    .gallery-video-card {
        min-height:
            180px;
    }

    .resource-thumbnail,
    .resource-icon {
        height:
            200px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container {
        width:
            min(94%, var(--container));
    }

    .site-logo {
        font-size:
            1.15rem;
    }

    .site-nav a {
        font-size:
            0.8rem;

        padding:
            8px 9px;
    }

    .hero {
        min-height:
            540px;

        padding:
            65px 0 58px;
    }

    .hero h1 {
        font-size:
            2.2rem;
    }

    .section {
        padding:
            56px 0;
    }

    .section-heading h2 {
        font-size:
            2rem;
    }

    .about-hero h1 {
        font-size:
            2.2rem;
    }

    .stats-grid {
        grid-template-columns:
            1fr;
    }

    .stat-card {
        padding:
            24px 18px;
    }

    .stat-number {
        font-size:
            2.25rem;
    }

    .card-content {
        padding:
            22px;
    }

    .team-card-main {
        padding:
            20px 10px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

    .scroll-reveal {
        opacity:
            1;

        transform:
            none;
    }

    .hero-content {
        opacity:
            1;

        transform:
            none;
    }

    #site-network-canvas {
        opacity:
            0.45;
    }

}

/* ------ */



/* =========================================================
   BLOG LIST
   ========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
    min-width: 0;
}

.blog-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.blog-card .card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card .card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.blog-card-body {
    width: 100%;
    min-width: 0;
    padding: 26px;
    box-sizing: border-box;
}

.blog-category {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.blog-title {
    margin: 0 0 14px;
    max-width: 100%;
    color: var(--dark);
    font-size: 1.35rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.blog-excerpt {
    margin: 0 0 18px;
    max-width: 100%;
    color: var(--text-soft);
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.blog-meta span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.blog-card .text-link {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* Prevent ANY child content from escaping the card */

.blog-card * {
    max-width: 100%;
    box-sizing: border-box;
}


/* Tablet */

@media (max-width: 1000px) {

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 768px) {

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-body {
        padding: 22px;
    }

    .blog-card .card-image {
        height: 200px;
    }

}


/* Small mobile */

@media (max-width: 480px) {

    .blog-card-body {
        padding: 18px;
    }

}


/* =========================================================
   FINAL TEAM GRID OVERRIDE
   Added to control Team layout independently
========================================================= */


/* =========================================================
   TEAM GRID
========================================================= */

.team-grid {
    display: grid !important;

    width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    gap: 28px !important;

    align-items: stretch !important;
}


/* =========================================================
   FACULTY
   4 MEMBERS PER ROW
========================================================= */

.team-grid-faculty {
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;
}


/* =========================================================
   EXECUTIVE
   4 MEMBERS PER ROW
========================================================= */

.team-grid-executive {
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;
}


/* =========================================================
   CORE
   3 MEMBERS PER ROW
========================================================= */

.team-grid-core {
    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 30px !important;
}


/* =========================================================
   TEAM CARD
========================================================= */

.team-grid .team-card {
    position: relative !important;

    display: block !important;

    width: 100% !important;

    min-width: 0 !important;

    max-width: none !important;

    height: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    overflow: visible !important;

    box-sizing: border-box !important;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.team-grid .team-card-main {
    width: 100% !important;

    min-width: 0 !important;

    padding: 25px 15px !important;

    text-align: center !important;

    box-sizing: border-box !important;
}


/* =========================================================
   NORMAL TEAM PHOTOS
   FIXES HUGE LANDSCAPE IMAGES
========================================================= */

.team-grid .team-photo {
    display: block !important;

    width: 145px !important;

    min-width: 145px !important;

    max-width: 145px !important;

    height: 145px !important;

    min-height: 145px !important;

    max-height: 145px !important;

    margin: 0 auto 16px !important;

    padding: 0 !important;

    object-fit: cover !important;

    object-position: center !important;

    border-radius: 50% !important;

    border: 4px solid var(--primary-light) !important;

    box-sizing: border-box !important;
}


/* =========================================================
   CORE PHOTOS
========================================================= */

.team-grid .team-photo-core {
    display: block !important;

    width: 165px !important;

    min-width: 165px !important;

    max-width: 165px !important;

    height: 165px !important;

    min-height: 165px !important;

    max-height: 165px !important;

    margin: 0 auto 18px !important;

    padding: 0 !important;

    object-fit: cover !important;

    object-position: center !important;

    border-radius: 50% !important;

    border: 4px solid var(--primary-light) !important;

    box-sizing: border-box !important;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.team-grid .team-photo-placeholder {
    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 145px !important;

    min-width: 145px !important;

    max-width: 145px !important;

    height: 145px !important;

    min-height: 145px !important;

    max-height: 145px !important;

    margin: 0 auto 16px !important;

    border-radius: 50% !important;

    background: var(--primary-light) !important;

    color: var(--primary) !important;

    box-sizing: border-box !important;
}


.team-grid .team-photo-placeholder-core {
    width: 165px !important;

    min-width: 165px !important;

    max-width: 165px !important;

    height: 165px !important;

    min-height: 165px !important;

    max-height: 165px !important;

    margin: 0 auto 18px !important;
}


/* =========================================================
   MEMBER NAME
========================================================= */

.team-grid .team-member-name {
    width: 100% !important;

    margin: 0 !important;

    color: var(--dark) !important;

    font-size: 1.05rem !important;

    font-weight: 800 !important;

    line-height: 1.35 !important;

    overflow-wrap: anywhere !important;
}


.team-grid .team-member-name-core {
    font-size: 1.15rem !important;
}


/* =========================================================
   MEMBER POSITION
========================================================= */

.team-grid .team-member-position {
    width: 100% !important;

    margin: 7px 0 !important;

    color: var(--primary) !important;

    font-size: 0.92rem !important;

    font-weight: 700 !important;

    line-height: 1.4 !important;

    overflow-wrap: anywhere !important;
}


.team-grid .team-member-position-core {
    font-size: 0.95rem !important;
}


/* =========================================================
   SECTION SPACING
========================================================= */

.team-section {
    width: 100% !important;

    margin-top: 55px !important;
}


.team-section-title {
    margin: 0 0 25px !important;

    color: var(--text) !important;

    font-size: 1.8rem !important;

    font-weight: 800 !important;
}


/* =========================================================
   COMMITTEE HEADING
========================================================= */

.team-committee-heading {
    text-align: center;

    margin-bottom: 35px;
}


.team-committee-heading h2 {
    margin-bottom: 10px;
}


.team-committee-heading p {
    margin-bottom: 8px;
}


/* =========================================================
   DETAILS
========================================================= */

.team-grid .team-member-details {
    position: absolute !important;

    left: 15px !important;

    right: 15px !important;

    top: calc(100% - 5px) !important;

    width: auto !important;

    padding: 20px !important;

    background: rgba(255, 255, 255, 0.98) !important;

    border: 1px solid var(--border) !important;

    border-radius: 14px !important;

    box-shadow: var(--shadow-lg) !important;

    opacity: 0 !important;

    visibility: hidden !important;

    transform: translateY(-8px) !important;

    pointer-events: none !important;

    z-index: 50 !important;

    box-sizing: border-box !important;
}


.team-grid .team-card:hover .team-member-details,
.team-grid .team-card:focus-visible .team-member-details {
    opacity: 1 !important;

    visibility: visible !important;

    transform: translateY(0) !important;

    pointer-events: auto !important;
}


/* =========================================================
   DETAIL TEXT
========================================================= */

.team-grid .team-detail-section h4 {
    margin: 0 0 8px !important;

    font-size: 0.9rem !important;
}


.team-grid .team-detail-section p {
    margin: 0 !important;

    font-size: 0.85rem !important;

    line-height: 1.55 !important;
}


/* =========================================================
   DESKTOP WIDTHS
========================================================= */

@media (min-width: 1201px) {

    .team-grid-faculty,
    .team-grid-executive {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }

    .team-grid-core {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}


/* =========================================================
   LAPTOP
========================================================= */

@media (min-width: 769px) and (max-width: 1200px) {

    .team-grid-faculty,
    .team-grid-executive {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

    .team-grid-core {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 768px) {

    .team-grid-faculty,
    .team-grid-executive,
    .team-grid-core {
        grid-template-columns:
            1fr !important;

        gap:
            22px !important;
    }


    .team-grid .team-photo {
        width: 135px !important;

        min-width: 135px !important;

        max-width: 135px !important;

        height: 135px !important;

        min-height: 135px !important;

        max-height: 135px !important;
    }


    .team-grid .team-photo-core {
        width: 150px !important;

        min-width: 150px !important;

        max-width: 150px !important;

        height: 150px !important;

        min-height: 150px !important;

        max-height: 150px !important;
    }


    .team-grid .team-member-details {
        position: static !important;

        left: auto !important;

        right: auto !important;

        top: auto !important;

        width: 100% !important;

        max-height: 0 !important;

        padding: 0 18px !important;

        overflow: hidden !important;

        border: none !important;

        border-radius: 0 !important;

        box-shadow: none !important;

        opacity: 0 !important;

        visibility: hidden !important;

        transform: none !important;
    }


    .team-grid .team-card.is-expanded
    .team-member-details {
        max-height: 600px !important;

        padding:
            0 18px 20px !important;

        opacity: 1 !important;

        visibility: visible !important;
    }

}




/* =========================================================
   COMPLETE DARK THEME SURFACE OVERRIDES
========================================================= */

html[data-theme="dark"] {

    color-scheme: dark;
}


/* =========================================================
   GLOBAL PAGE
========================================================= */

html[data-theme="dark"] body {

    background:
        var(--page-bg);

    color:
        var(--text);
}


/* =========================================================
   HEADER
========================================================= */

html[data-theme="dark"] .site-header {

    background:
        var(--header-bg);

    border-bottom:
        1px solid var(--muted-border);
}

html[data-theme="dark"] .site-header:hover {

    background:
        var(--header-hover-bg);
}


/* =========================================================
   HERO
========================================================= */

html[data-theme="dark"] .hero {

    background:
        linear-gradient(
            135deg,
            #050b12 0%,
            #07131e 55%,
            #0a1b29 100%
        );

    border-bottom:
        1px solid var(--border-light);
}

html[data-theme="dark"] .hero h1 {

    color:
        #f5f7fa;
}

html[data-theme="dark"] .hero p {

    color:
        #b7c3ce;
}


/* =========================================================
   ABOUT HERO
========================================================= */

html[data-theme="dark"] .about-hero {

    background:
        linear-gradient(
            135deg,
            #050b12 0%,
            #07131e 60%,
            #0a1a27 100%
        );
}

html[data-theme="dark"] .about-hero h1 {

    color:
        #f5f7fa;
}

html[data-theme="dark"] .about-hero p {

    color:
        #b7c3ce;
}


/* =========================================================
   NORMAL SECTIONS
========================================================= */

html[data-theme="dark"] .section {

    background:
        #07121c;
}

html[data-theme="dark"] .section-soft {

    background:
        #0b1824;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

html[data-theme="dark"] .section-heading h2 {

    color:
        #f5f7fa;
}

html[data-theme="dark"] .section-heading p {

    color:
        #aebbc6;
}


/* =========================================================
   ABOUT CARDS
========================================================= */

html[data-theme="dark"] .about-info-card {

    background:
        #0b1722;

    border-color:
        #263d4d;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .about-info-card:hover {

    border-color:
        #31566c;

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .about-info-card h2,
html[data-theme="dark"] .about-info-card h3 {

    color:
        #f5f7fa;
}

html[data-theme="dark"] .about-info-card p {

    color:
        #b7c3ce;
}


/* =========================================================
   OBJECTIVE CARDS
========================================================= */

html[data-theme="dark"] .about-objective-card {

    background:
        #0b1722;

    border-color:
        #263d4d;

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .about-objective-card:hover {

    border-color:
        #31566c;

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .about-objective-card h3 {

    color:
        #f5f7fa;
}

html[data-theme="dark"] .about-objective-card p {

    color:
        #b7c3ce;
}


/* =========================================================
   GENERAL CONTENT CARDS
========================================================= */

html[data-theme="dark"] .content-card {

    background:
        #0b1722;

    border-color:
        #263d4d;
}

html[data-theme="dark"] .content-card:hover {

    border-color:
        #31566c;
}

html[data-theme="dark"] .card-content h3 {

    color:
        #f5f7fa;
}

html[data-theme="dark"] .card-content p {

    color:
        #b7c3ce;
}


/* =========================================================
   EMPTY STATES
========================================================= */

html[data-theme="dark"] .empty-state {

    background:
        #0b1722;

    border-color:
        #31566c;

    color:
        #b7c3ce;
}

html[data-theme="dark"] .empty-state h3 {

    color:
        #f5f7fa;
}


/* =========================================================
   STAT CARDS
========================================================= */

html[data-theme="dark"] .stat-card {

    background:
        #0b1722;

    border-color:
        #263d4d;
}

html[data-theme="dark"] .stat-card:hover {

    border-color:
        #31566c;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

html[data-theme="dark"] .btn-secondary {

    color:
        #eaf4f9;

    background:
        #0d1d29;

    border-color:
        #3a5b6d;
}

html[data-theme="dark"] .btn-secondary:hover {

    color:
        #ffffff;

    background:
        #12384d;

    border-color:
        #35a8e0;
}


/* =========================================================
   EVENTS
========================================================= */

html[data-theme="dark"] .event-poster-placeholder {

    background:
        #0b1722;

    border-color:
        #263d4d;

    color:
        #8d9ba8;
}

html[data-theme="dark"] .event-information {

    background:
        #0b1722;

    border-color:
        #263d4d;
}


/* =========================================================
   PROJECTS
========================================================= */

html[data-theme="dark"] .project-image-placeholder,
html[data-theme="dark"] .project-detail-placeholder {

    background:
        #101f2c;

    color:
        #8d9ba8;
}


/* =========================================================
   ACHIEVEMENTS
========================================================= */

html[data-theme="dark"] .achievement-image-placeholder,
html[data-theme="dark"] .achievement-detail-placeholder {

    background:
        #101f2c;

    color:
        #8d9ba8;
}


/* =========================================================
   GALLERY
========================================================= */

html[data-theme="dark"] .gallery-cover-placeholder {

    background:
        #101f2c;

    color:
        #8d9ba8;
}

html[data-theme="dark"] .gallery-media-card {

    background:
        #0b1722;

    border-color:
        #263d4d;
}


/* =========================================================
   RESOURCES
========================================================= */

html[data-theme="dark"] .resource-icon {

    background:
        #101f2c;

    color:
        #35a8e0;
}


/* =========================================================
   TEAM
========================================================= */

html[data-theme="dark"] .team-year-selector select {

    background:
        #0b1722;

    color:
        #f5f7fa;

    border-color:
        #263d4d;
}

html[data-theme="dark"] .team-card {

    background:
        #0b1722;

    border-color:
        #263d4d;
}

html[data-theme="dark"] .team-card:hover,
html[data-theme="dark"] .team-card:focus-visible {

    border-color:
        #31566c;
}

html[data-theme="dark"] .team-grid .team-member-name {

    color:
        #f5f7fa !important;
}

html[data-theme="dark"] .team-grid .team-member-position {

    color:
        #35a8e0 !important;
}

html[data-theme="dark"] .team-grid .team-member-details {

    background:
        #0b1722 !important;

    border-color:
        #263d4d !important;
}

html[data-theme="dark"] .team-detail-section h4 {

    color:
        #f5f7fa;
}

html[data-theme="dark"] .team-detail-section p {

    color:
        #b7c3ce;
}


/* =========================================================
   FORMS
========================================================= */

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {

    background:
        #0b1722;

    color:
        #f5f7fa;

    border-color:
        #263d4d;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {

    color:
        #748592;
}


/* =========================================================
   BLOG
========================================================= */

html[data-theme="dark"] .blog-title {

    color:
        #f5f7fa;
}

html[data-theme="dark"] .blog-excerpt {

    color:
        #b7c3ce;
}

html[data-theme="dark"] .blog-meta {

    color:
        #8d9ba8;
}

html[data-theme="dark"] .blog-content {

    color:
        #d3dde4;
}

html[data-theme="dark"] .blog-content h2,
html[data-theme="dark"] .blog-content h3,
html[data-theme="dark"] .blog-content h4 {

    color:
        #f5f7fa;
}


/* =========================================================
   FOOTER
   Keep the existing professional dark footer.
========================================================= */

html[data-theme="dark"] .site-footer {

    background:
        linear-gradient(
            135deg,
            #030a10 0%,
            #071c2c 100%
        );
}



/* =========================================================
   DARK THEME - RESTORE NETWORK VISIBILITY
   Keeps the animated IEEE network visible behind sections
========================================================= */

html[data-theme="dark"] main {
    background: transparent;
}


/* HERO */

html[data-theme="dark"] .hero {
    background:
        linear-gradient(
            135deg,
            rgba(5, 11, 18, 0.86) 0%,
            rgba(7, 19, 30, 0.84) 55%,
            rgba(10, 27, 41, 0.82) 100%
        );
}


/* NORMAL SECTIONS */

html[data-theme="dark"] .section {
    background:
        rgba(5, 18, 28, 0.82);
}


/* SOFT SECTIONS */

html[data-theme="dark"] .section-soft {
    background:
        rgba(10, 24, 36, 0.86);
}


/* ABOUT HERO */

html[data-theme="dark"] .about-hero {
    background:
        linear-gradient(
            135deg,
            rgba(5, 11, 18, 0.86) 0%,
            rgba(7, 19, 30, 0.84) 60%,
            rgba(10, 26, 39, 0.82) 100%
        );
}


/* DARK CTA SECTION */

html[data-theme="dark"] .section-dark {
    background:
        linear-gradient(
            135deg,
            rgba(3, 10, 16, 0.90) 0%,
            rgba(7, 28, 44, 0.88) 100%
        );
}


/* FOOTER */

html[data-theme="dark"] .site-footer {
    background:
        linear-gradient(
            135deg,
            rgba(3, 10, 16, 0.94) 0%,
            rgba(7, 28, 44, 0.92) 100%
        );
}


/* Keep the network itself fully active */

html[data-theme="dark"] #site-network-canvas {
    opacity: 1;
}



/* =========================================================
   PROJECT LIST - CARD CONTAINMENT & GRID FIX
========================================================= */

.project-list-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;

    width: 100%;

    min-width: 0;
}


.project-card {
    width: 100%;

    min-width: 0;

    height: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-card-image {
    width: 100%;

    height: 220px;

    flex-shrink: 0;

    overflow: hidden;
}


.project-card-image .project-image {
    display: block;

    width: 100%;

    height: 100%;

    max-width: 100%;

    object-fit: cover;
}


.project-card:hover
.project-card-image .project-image {
    transform: scale(1.04);
}


/* =========================================================
   PROJECT IMAGE PLACEHOLDER
========================================================= */

.project-card .project-image-placeholder {
    width: 100%;

    height: 220px;

    min-width: 0;

    margin: 0;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    overflow: hidden;

    background:
        rgba(238, 246, 251, 0.94);

    border-radius: 10px 10px 0 0;

    color: var(--text-light);

    font-weight: 700;
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-card-content {
    width: 100%;

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 24px;

    box-sizing: border-box;

    overflow: hidden;
}


/* =========================================================
   PROJECT META
========================================================= */

.project-card-meta {
    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}


.project-status,
.project-year {
    min-width: 0;

    max-width: 100%;

    overflow-wrap: anywhere;

    word-break: break-word;
}


.project-status {
    color: var(--primary);

    font-size: 0.76rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.project-year {
    color: var(--text-light);

    font-size: 0.84rem;

    white-space: nowrap;
}


/* =========================================================
   PROJECT TITLE
========================================================= */

.project-card-title {
    margin: 0 0 12px;

    max-width: 100%;

    color: var(--text);

    font-size: 1.35rem;

    line-height: 1.3;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* =========================================================
   PROJECT DESCRIPTION
========================================================= */

.project-card-description {
    margin: 0 0 16px;

    max-width: 100%;

    color: var(--text-soft);

    line-height: 1.7;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* =========================================================
   PROJECT TECHNOLOGIES
========================================================= */

.project-technologies {
    margin: 0 0 20px;

    max-width: 100%;

    color: var(--text-light);

    font-size: 0.88rem;

    line-height: 1.6;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* =========================================================
   PROJECT BUTTON
========================================================= */

.project-card-action {
    margin-top: auto;

    padding-top: 4px;
}


.project-card-action .btn {
    max-width: 100%;

    white-space: normal;

    overflow-wrap: anywhere;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.project-empty {
    grid-column: 1 / -1;

    width: 100%;

    text-align: center;

    padding: 40px 20px;

    box-sizing: border-box;
}


/* =========================================================
   PROJECT GRID - TABLET
========================================================= */

@media (max-width: 991px) {

    .project-list-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   PROJECT GRID - MOBILE
========================================================= */

@media (max-width: 640px) {

    .project-list-grid {
        grid-template-columns:
            1fr;

        gap: 20px;
    }


    .project-card-content {
        padding: 22px;
    }


    .project-card-image,
    .project-card .project-image-placeholder {
        height: 200px;
    }


    .project-card-meta {
        align-items: flex-start;
    }

}


/* =========================================================
   PROJECT CARDS - DARK THEME
========================================================= */

html[data-theme="dark"] .project-card {
    background: #0b1722;

    border-color: #263d4d;
}


html[data-theme="dark"] .project-card:hover {
    border-color: #31566c;
}


html[data-theme="dark"] .project-card .project-image-placeholder {
    background: #101f2c;

    color: #8d9ba8;
}


html[data-theme="dark"] .project-card-title {
    color: #f5f7fa;
}


html[data-theme="dark"] .project-card-description {
    color: #b7c3ce;
}


html[data-theme="dark"] .project-technologies {
    color: #8d9ba8;
}


html[data-theme="dark"] .project-year {
    color: #8d9ba8;
}


/* =========================================================
   ACHIEVEMENT LIST - CARD CONTAINMENT & GRID
========================================================= */

.achievement-list-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;

    width: 100%;

    min-width: 0;
}


.achievement-list-item {
    width: 100%;

    min-width: 0;

    display: flex;
}


/* =========================================================
   ACHIEVEMENT CARD
========================================================= */

.achievement-card {
    width: 100%;

    min-width: 0;

    height: 100%;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;

    overflow: hidden;
}


/* =========================================================
   ACHIEVEMENT IMAGE
========================================================= */

.achievement-card .achievement-image {
    display: block;

    width: 100%;

    max-width: 100%;

    height: 220px;

    flex-shrink: 0;

    object-fit: cover;

    margin: 0 0 16px;

    box-sizing: border-box;
}


.achievement-card .achievement-image-placeholder {
    width: 100%;

    max-width: 100%;

    height: 220px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    overflow: hidden;

    margin-bottom: 16px;

    background:
        rgba(238, 246, 251, 0.94);

    border-radius: 10px;

    color: var(--text-light);

    font-weight: 700;
}


/* =========================================================
   ACHIEVEMENT CARD CONTENT
========================================================= */

.achievement-card > * {
    max-width: 100%;

    box-sizing: border-box;
}


.achievement-card h2,
.achievement-card p {
    overflow-wrap: anywhere;

    word-break: break-word;
}


.achievement-card h2 {
    margin-top: 0;
}


.achievement-card .btn {
    max-width: 100%;

    white-space: normal;

    overflow-wrap: anywhere;
}


/* =========================================================
   ACHIEVEMENT META
========================================================= */

.achievement-card > .d-flex {
    width: 100%;

    min-width: 0;

    flex-wrap: wrap;

    gap: 10px;

    box-sizing: border-box;
}


.achievement-card > .d-flex > * {
    min-width: 0;

    max-width: 100%;

    overflow-wrap: anywhere;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .achievement-list-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .achievement-list-grid {
        grid-template-columns:
            1fr;

        gap: 20px;
    }


    .achievement-card .achievement-image,
    .achievement-card .achievement-image-placeholder {
        height: 200px;
    }

}

/* =========================================================
   ACHIEVEMENTS - DARK THEME
========================================================= */

html[data-theme="dark"] .achievement-card {
    background: #0b1722;

    border-color: #263d4d;
}


html[data-theme="dark"] .achievement-card:hover {
    border-color: #31566c;
}


html[data-theme="dark"] .achievement-card .achievement-image-placeholder {
    background: #101f2c;

    color: #8d9ba8;
}


html[data-theme="dark"] .achievement-card h2 {
    color: #f5f7fa;
}


html[data-theme="dark"] .achievement-card p {
    color: #b7c3ce;
}


html[data-theme="dark"] .achievement-card .text-muted {
    color: #8d9ba8 !important;
}



/* =========================================================
   RESOURCE LIST - GRID & CARD CONTAINMENT
========================================================= */

.resource-list-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;

    width: 100%;

    min-width: 0;
}


.resource-list-item {
    width: 100%;

    min-width: 0;

    display: flex;
}


.resource-card {
    width: 100%;

    min-width: 0;

    max-width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   RESOURCE IMAGE
========================================================= */

.resource-card .resource-thumbnail,
.resource-card .resource-icon {
    width: 100%;

    max-width: 100%;

    height: 220px;

    flex-shrink: 0;

    box-sizing: border-box;
}


.resource-card .resource-thumbnail {
    display: block;

    object-fit: cover;
}


.resource-card .resource-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    margin: 0;

    border-radius:
        var(--radius-md)
        var(--radius-md)
        0
        0;
}


/* =========================================================
   RESOURCE CONTENT
========================================================= */

.resource-card-content {
    width: 100%;

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 22px;

    box-sizing: border-box;
}


.resource-card-content > * {
    max-width: 100%;

    overflow-wrap: anywhere;

    word-break: break-word;
}


.resource-card-content .small {
    margin-top: 0 !important;

    margin-bottom: 10px;
}


.resource-card-content h2 {
    margin:
        0 0 12px;

    color: var(--text);

    line-height: 1.3;
}


.resource-card-content p {
    margin:
        0 0 18px;

    color: var(--text-soft);

    line-height: 1.7;
}


.resource-card-content .btn {
    align-self: flex-start;

    max-width: 100%;

    margin-top: auto;

    white-space: normal;

    overflow-wrap: anywhere;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .resource-list-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .resource-list-grid {
        grid-template-columns:
            1fr;

        gap: 20px;
    }


    .resource-card-content {
        padding: 20px;
    }


    .resource-card .resource-thumbnail,
    .resource-card .resource-icon {
        height: 200px;
    }

}



/* =========================================================
   RESOURCE CARDS - DARK THEME
========================================================= */

html[data-theme="dark"] .resource-card {
    background: #0b1722;

    border-color: #263d4d;
}


html[data-theme="dark"] .resource-card:hover {
    border-color: #31566c;
}


html[data-theme="dark"] .resource-card .resource-icon {
    background: #101f2c;

    color: #35a8e0;
}


html[data-theme="dark"] .resource-card-content h2 {
    color: #f5f7fa;
}


html[data-theme="dark"] .resource-card-content p {
    color: #b7c3ce;
}


/* =========================================================
   GALLERY DETAIL GRID
========================================================= */

.gallery-media-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 26px;

    width: 100%;

    min-width: 0;
}


.gallery-media-item {
    width: 100%;

    min-width: 0;
}


/* =========================================================
   GALLERY PHOTO CARD
========================================================= */

.gallery-media-card {
    width: 100%;

    height: 100%;

    padding: 10px;

    box-sizing: border-box;

    background: var(--card-bg);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.gallery-media-card:hover {
    transform: translateY(-4px);

    border-color: var(--primary);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   FULL PHOTOGRAPH — DO NOT CROP
========================================================= */

.gallery-media-card > a {
    display: block;

    width: 100%;

    line-height: 0;

    overflow: hidden;

    border-radius: 9px;
}


.gallery-media-card .gallery-image {
    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    max-height: 520px;

    object-fit: contain;

    object-position: center;

    border-radius: 9px;

    background: var(--surface-soft);

    transition:
        transform 0.35s ease;
}


.gallery-media-card:hover .gallery-image {
    transform: scale(1.015);
}


/* =========================================================
   CAPTION
========================================================= */

.gallery-media-card .gallery-caption {
    margin:
        12px 4px 2px;

    color: var(--text-soft);

    font-size: 0.9rem;

    line-height: 1.5;

    overflow-wrap: anywhere;
}


/* =========================================================
   VIDEO CARD
========================================================= */

.gallery-video-card {
    min-height: 260px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 25px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.gallery-empty-state {
    grid-column: 1 / -1;

    padding: 50px 25px;

    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .gallery-media-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .gallery-media-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .gallery-media-card .gallery-image {
        max-height: none;
    }

}


/* =========================================================
   GALLERY ALBUM LIST
========================================================= */

.gallery-album-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;

    width: 100%;

    min-width: 0;
}


.gallery-album-item {
    width: 100%;

    min-width: 0;

    display: flex;
}


.gallery-album-item .gallery-album-card {
    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;
}


.gallery-album-item .gallery-album-card > .mt-3 {
    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 0 22px 22px;
}


.gallery-album-item .gallery-album-card > .mt-3 .btn {
    align-self: flex-start;

    margin-top: auto;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .gallery-album-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .gallery-album-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

}



/* =========================================================
   GALLERY DETAIL - COMPACT 4 COLUMN PHOTO GRID
========================================================= */

.gallery-media-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    width: 100%;

    min-width: 0;
}


.gallery-media-item {
    width: 100%;

    min-width: 0;
}


/* =========================================================
   COMPACT PHOTO CARD
========================================================= */

.gallery-media-card {
    width: 100%;

    height: 100%;

    padding: 6px;

    box-sizing: border-box;

    overflow: hidden;

    background: var(--card-bg);

    border: 1px solid var(--border);

    border-radius: 10px;

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.gallery-media-card:hover {
    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   COMPACT PHOTO
   IMPORTANT:
   contain = entire photograph remains visible
========================================================= */

.gallery-media-card > a {
    display: block;

    width: 100%;

    line-height: 0;

    overflow: hidden;

    border-radius: 7px;
}


.gallery-media-card .gallery-image {
    display: block;

    width: 100%;

    height: 210px;

    max-width: 100%;

    object-fit: contain;

    object-position: center;

    background: var(--surface-soft);

    border-radius: 7px;

    transition:
        transform 0.3s ease;
}


.gallery-media-card:hover .gallery-image {
    transform: scale(1.02);
}


/* =========================================================
   CAPTION
========================================================= */

.gallery-media-card .gallery-caption {
    margin:
        8px 3px 2px;

    color: var(--text-soft);

    font-size: 0.78rem;

    line-height: 1.4;

    overflow-wrap: anywhere;
}


/* =========================================================
   VIDEO CARD
========================================================= */

.gallery-video-card {
    min-height: 210px;

    padding: 18px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .gallery-media-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;
    }


    .gallery-media-card .gallery-image {
        height: 190px;
    }

}


/* =========================================================
   SMALL TABLET / LARGE MOBILE
========================================================= */

@media (max-width: 760px) {

    .gallery-media-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .gallery-media-card .gallery-image {
        height: 180px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .gallery-media-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .gallery-media-card .gallery-image {
        height: auto;

        max-height: 400px;
    }

}



/* =========================================================
   ACHIEVEMENT CARD - FINAL CONTENT CONTAINMENT FIX
========================================================= */

.achievement-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    overflow: hidden;

    display: flex;
    flex-direction: column;
}


/* Keep the placeholder/image inside the card */

.achievement-card .achievement-image-placeholder,
.achievement-card .achievement-image {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    flex-shrink: 0;
}


/* =========================================================
   ACHIEVEMENT CONTENT
========================================================= */

.achievement-card-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    padding: 20px 22px 22px;

    display: flex;
    flex-direction: column;

    flex: 1;

    overflow: hidden;
}


/* Every piece of text must stay inside the card */

.achievement-card-content > * {
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* Category / date */

.achievement-card-content .achievement-meta {
    width: 100%;
    max-width: 100%;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 12px;
}


/* Title */

.achievement-card-content h2,
.achievement-card-content h3 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 12px;

    line-height: 1.3;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* Description */

.achievement-card-content p {
    width: 100%;
    max-width: 100%;

    margin: 0 0 18px;

    line-height: 1.6;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* Recipient / additional information */

.achievement-card-content .achievement-recipient {
    width: 100%;
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* Button */

.achievement-card-content .btn {
    align-self: flex-start;

    max-width: 100%;

    margin-top: auto;

    white-space: normal;

    overflow-wrap: anywhere;
}


/* =========================================================
   PAGE TEXT - PREVENT HORIZONTAL OVERFLOW
========================================================= */

/* =========================================================
   ACHIEVEMENTS - FINAL GRID AND CARD LAYOUT
========================================================= */

.achievement-list-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;

    width: 100%;

    min-width: 0;

    align-items: stretch;
}


.achievement-list-item {
    width: 100%;

    min-width: 0;

    display: flex;
}


.achievement-card {
    width: 100%;

    max-width: 100%;

    min-width: 0;

    height: 100%;

    box-sizing: border-box;

    overflow: hidden;

    display: flex;

    flex-direction: column;
}


/* =========================================================
   ACHIEVEMENT IMAGE
========================================================= */

.achievement-card .achievement-image,
.achievement-card .achievement-image-placeholder {
    width: 100%;

    max-width: 100%;

    height: 220px;

    flex-shrink: 0;

    box-sizing: border-box;
}


.achievement-card .achievement-image {
    object-fit: cover;
}


/* =========================================================
   ACHIEVEMENT CONTENT
========================================================= */

.achievement-card-content {
    width: 100%;

    max-width: 100%;

    min-width: 0;

    box-sizing: border-box;

    padding: 22px 24px 24px;

    display: flex;

    flex-direction: column;

    flex: 1;

    overflow: hidden;
}


.achievement-card-content > * {
    max-width: 100%;

    min-width: 0;

    box-sizing: border-box;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* Category + year */

.achievement-meta {
    width: 100%;

    max-width: 100%;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 6px 14px;

    margin-bottom: 12px;
}


/* Title */

.achievement-card-content h2,
.achievement-card-content h3 {
    width: 100%;

    max-width: 100%;

    margin: 0 0 12px;

    line-height: 1.3;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* Description */

.achievement-card-content p {
    width: 100%;

    max-width: 100%;

    margin: 0 0 14px;

    line-height: 1.6;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* Button */

.achievement-card-content .btn {
    align-self: flex-start;

    max-width: 100%;

    margin-top: auto;

    white-space: normal;

    overflow-wrap: anywhere;
}


/* =========================================================
   ACHIEVEMENT PAGE TEXT
========================================================= */

.achievements-page .section-subtitle {
    width: 100%;

    max-width: 900px;

    margin-left: auto;

    margin-right: auto;

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .achievement-list-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .achievement-list-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .achievement-card-content {
        padding: 20px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .achievement-card .achievement-image,
    .achievement-card .achievement-image-placeholder {
        height: 200px;
    }

}


.achievements-page h1,
.achievements-page h2,
.achievements-page p {
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* The long description under "Achievements" */

.achievements-page .section-subtitle {
    width: 100%;
    max-width: 100%;

    white-space: normal;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .achievement-card-content {
        padding: 18px;
    }

}


/* =========================================================
   IEEE SCIT HEADER LOGO
========================================================= */

.site-logo-image {
    width: 82px;
    height: 70px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .site-logo {
        width: 74px;
        height: 66px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .nav-container {
        min-height: 76px;

        gap: 14px;
    }

    .site-logo {
        width: 68px;
        height: 62px;
    }

}

.footer-email {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.footer-email span {
    color: #ffffff;
}

.footer-email a {
    color: #aeb9c4;
    text-decoration: none;
}

.footer-email a:hover {
    color: #ffffff;
    text-decoration: underline;
}