@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;600;700;800;900&display=swap');

:root {
    --maroon-dark: #8d0101;
    --maroon-light: #B21F1F;
    --text-dark: #222222;
    --text-grey: #555555;
    --bg-white: #ffffff;
    --bg-light: #FAFAFA;
    --pattern-bg-svg: url("Picturebg.png");
    --pattern-red-svg: url("Picturebg.png");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-grey);
    background-color: var(--bg-light);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.fw-box,
.btn-primary,
.btn-secondary,
.btn-kontak,
.footer-logo,
.badge,
.read-more {
    font-family: 'Poppins', sans-serif;
}

/* Elegant Background Pattern based on ALSA LC UJ GSM */
/* Terang -> element.png | Merah -> element-merah.png */
.pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FAFAFA;
    background-image: url('element.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}

.pattern-red {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #8d0101;
    background-image: url('element-merah.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y;
    opacity: 1;
}

/* About Us Visual Styles */
.about-image-container {
    position: relative;
    /* Removed border-radius and box-shadow for clean map integration */
}

.about-main-image {
    width: 100%;
    display: block;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 3px solid var(--primary-maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: bounceMarker 2s infinite ease-in-out;
    z-index: 2;
}

.map-marker::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px 10px 0 10px;
    border-style: solid;
    border-color: var(--primary-maroon) transparent transparent transparent;
}

.map-marker img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@keyframes bounceMarker {

    0%,
    100% {
        transform: translate(-50%, -100%) scale(1);
    }

    50% {
        transform: translate(-50%, calc(-100% - 15px)) scale(1.05);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff !important;
}

.gradient-text {
    background: linear-gradient(to right, #222222 0%, var(--maroon-dark) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #222222;
}

.bg-maroon {
    background-color: var(--maroon-dark);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5vw;
    background-color: var(--maroon-dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-logo-unej,
.nav-logo-alsa {
    height: 70px;
    width: auto;
    object-fit: contain;
}



nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcccc;
}

/* Dropdown ALSA Profile */
nav ul li.has-dropdown {
    position: relative;
}

nav ul li.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* More dropdown di pojok kanan - align menu ke kanan agar tidak keluar viewport */
nav ul li.more-dropdown > .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-dropdown.open .dropdown-arrow,
.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    padding: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1001;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    color: #630000 !important;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: rgba(141, 1, 1, 0.08);
    color: #8d0101 !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #4a0000;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.75) 0%, rgba(42, 0, 0, 0.75) 50%, rgba(141, 1, 1, 0.85) 100%),
        url('uj-web-optimized.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: hidden;
}

/* Fix: background-attachment: fixed breaks on iOS Safari & Android Chrome */
@media (max-width: 992px) {
    .hero-section {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center 30% !important;
        background-repeat: no-repeat !important;
        min-height: 100svh;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    background-size: 100% auto;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-size: clamp(2.2rem, 6.5vw, 6.5rem);
    line-height: 1.15;
    margin-bottom: 30px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
    display: inline-block;
    text-align: right;
}

.hero-tagline span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(5px);
    animation: textReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes textReveal {
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.animate-1 {
    animation-delay: 1.6s !important;
}

.animate-2 {
    animation-delay: 1.9s !important;
}

.animate-3 {
    animation-delay: 2.2s !important;
}

.animate-4 {
    animation-delay: 2.5s !important;
}

.animate-5 {
    animation-delay: 2.8s !important;
}

.animate-6 {
    animation-delay: 3.1s !important;
}

.hero-tagline .thin {
    font-weight: 300;
    color: #ffcccc;
}

.hero-tagline .bold {
    font-weight: 900;
    background: linear-gradient(110deg, #ffffff 0%, #ffffff 45%, #ffb3b3 50%, #ffffff 55%, #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    /* Combine both the reveal and the continuous shine */
    animation: textReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, shinyText 4s linear infinite;
}

/* Specific delays for bold tags to ensure both animations start properly staggered */
.hero-tagline .bold.animate-2 {
    animation-delay: 0.4s, 1.4s !important;
}

.hero-tagline .bold.animate-4 {
    animation-delay: 1.0s, 2.0s !important;
}

.hero-tagline .bold.animate-6 {
    animation-delay: 1.6s, 2.6s !important;
}

@keyframes shinyText {
    to {
        background-position: 200% center;
    }
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    color: #eeeeee;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #ffffff;
    color: var(--maroon-dark);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Sections General */
.section-subtitle {
    color: var(--maroon-light);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
    color: var(--text-dark);
}

/* About Section */
.about-section {
    padding: 120px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.pillar-card {
    background-color: var(--maroon-dark);
    border: 2px solid var(--primary-maroon);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.pillar-card:hover {
    box-shadow: 0 15px 35px rgba(141, 1, 1, 0.25);
    border-color: #ffcccc;
}

.pillar-card img {
    width: 100%;
    aspect-ratio: 735 / 490;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.pillar-card:hover img {
    filter: grayscale(0%);
}

.pillar-card span {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

/* Director Greeting Section */
.director-greeting {
    background: linear-gradient(to bottom, var(--maroon-dark) 30%, #000000 100%);
    border-radius: 18px;
    margin-top: 60px;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 36px 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Heading block (GREETINGS eyebrow only) */
.greeting-heading {
    text-align: center;
    margin-bottom: 4px;
}

.greeting-heading .section-subtitle {
    color: #ffcccc;
    margin-bottom: 0;
}

/* Body grid: photo card | greeting text */
.greeting-body {
    display: grid;
    grid-template-columns: 0.85fr 1.5fr;
    gap: 32px;
    align-items: start;
}

/* Photo + info card (left column) */
.director-profile {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, var(--maroon-dark) 30%, #000000 100%);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
}

.director-photo {
    width: 100%;
    height: 280px;
    background: #ffffff;
    display: flex;
    overflow: hidden;
}

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

.director-info {
    padding: 16px 20px 18px;
    text-align: center;
}

.director-name {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #ffffff;
    line-height: 1.25;
}

.director-title {
    font-size: 0.9rem;
    color: #e0cfcf;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Greeting text (right column) */
.greeting-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 4px 2px;
}

.director-greeting .greeting-text p,
.director-greeting .greeting-text--body p,
.director-greeting .greeting-text--intro p {
    text-align: justify !important;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #f2eaea;
    margin-bottom: 0;
}

/* Remaining paragraphs below the photo+intro row (full width) */
.greeting-text--body {
    padding-top: 4px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-lead p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--maroon-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    border-left: 4px solid var(--maroon-light);
    padding-left: 20px;
}

.about-desc p {
    font-size: 1.05rem;
    color: var(--text-grey);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--maroon-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.info-card i {
    font-size: 1.8rem;
    color: var(--maroon-light);
    margin-top: 3px;
}

.info-card h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
}

.kaprodi-card {
    background: linear-gradient(135deg, var(--maroon-dark) 0%, #4a0000 100%);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(141, 1, 1, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.kaprodi-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.kaprodi-image-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.kaprodi-placeholder {
    width: 130px;
    height: 130px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.user-icon {
    width: 50px;
    height: 50px;
    color: rgba(255, 255, 255, 0.7);
}

.kaprodi-content {
    position: relative;
    z-index: 1;
}

.kaprodi-title {
    color: #ffcccc;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 800;
}

.kaprodi-quote {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
}

.kaprodi-name strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.kaprodi-name span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 5px;
}

/* Vision and Mission Section */
.vimi-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vimi-card {
    background: linear-gradient(to bottom, var(--maroon-dark) 30%, #000000 100%);
    border-radius: 12px;
    padding: 50px 60px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.vimi-card h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.vimi-card p {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.vimi-card ul {
    list-style-type: disc;
    padding-left: 40px;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.vimi-card ul li {
    margin-bottom: 12px;
}

/* Samakan ukuran teks kartu (Pengertian, Sejarah, Peran) di halaman ALSA Indonesia */
.alsa-indonesia-page .info-card p,
.alsa-indonesia-page .vimi-card ul,
.alsa-indonesia-page .vimi-card.history-card p,
.alsa-international-page .info-card p,
.alsa-international-page .vimi-card ul,
.alsa-international-page .vimi-card.history-card p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 700;
}

.alsa-indonesia-page .vimi-card.history-card p,
.alsa-international-page .vimi-card.history-card p {
    margin-bottom: 14px;
    text-align: justify;
}

.alsa-indonesia-page .vimi-card.history-card p:last-child,
.alsa-international-page .vimi-card.history-card p:last-child {
    margin-bottom: 0;
}

/* Empat Pilar ALSA (gambar resmi ALSA International) */
.alsa-international-page .pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.alsa-international-page .pillar-item {
    margin: 0;
}

.alsa-international-page .pillar-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .alsa-international-page .pillar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .alsa-international-page .pillar-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Local Chapters logo grid */
.vimi-card h2.chapter-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
}

.chapter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.chapter-item img {
    height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.chapter-item span {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.chapter-item:hover img,
.chapter-item:focus-visible img {
    transform: scale(1.05);
}

.chapter-item:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Activities Section - merah -> element-merah.png */
.activities-section {
    padding: 120px 0;
    position: relative;
    background-color: var(--maroon-dark);
    background-image: url('element-merah.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y;
}

.activities-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.activities-section .section-title.gradient-text {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}



.activities-section .container {
    position: relative;
    z-index: 1;
}





.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.activity-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.activity-card:hover .card-img {
    transform: scale(1.1);
}

/* Ensure the animation wrapper stretches to fill grid cell */
.cards-grid>div {
    height: 100%;
}

.card-img {
    height: 220px;
    width: 100%;
    position: relative;
    background-size: 100% auto;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mock Gradients for images (targeting the wrapper sibling index) */
.cards-grid>div:nth-child(1) .card-img {
    background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
}

.cards-grid>div:nth-child(2) .card-img {
    background: linear-gradient(45deg, #4a0000, #8a0000);
}

.cards-grid>div:nth-child(3) .card-img {
    background: linear-gradient(45deg, #001a4a, #004a8a);
}

.card-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge {
    background-color: rgba(141, 1, 1, 0.1);
    color: var(--maroon-dark);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.activity-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.activity-card p {
    font-size: 1rem;
    margin-bottom: 25px;
}

.read-more {
    color: var(--maroon-dark);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.read-more:hover {
    color: var(--maroon-light);
}

/* Footer */
.footer {
    background-color: #111111;
    color: #aaaaaa;
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-maroon);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 5px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 40px;
    /* Adjust height to match typography */
    width: auto;
}

.footer-logo {
    color: #ffffff;
    font-weight: 900;
    font-size: 3.2rem;
    letter-spacing: 12px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 0;
}

.footer-sublogo {
    color: #aaaaaa;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-desc {
    margin-top: 25px;
    font-style: italic;
    color: #dddddd;
    max-width: 360px;
}

.footer h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.address-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.address-link:hover {
    color: #ffcccc;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.footer-links ul li a:hover {
    color: #ffffff;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333333;
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.95rem;
}

/* Scroll Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: opacity, transform;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.5s;
}

.delay-4 {
    transition-delay: 0.7s;
}

/* Custom Cursor */
body {
    cursor: none;
    /* Hide default cursor */
}

.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: #ffcccc;
}

.custom-cursor-follower.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--maroon-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--maroon-dark);
    z-index: 999999;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.8, 0, 0.2, 1);
}

.page-transition.active {
    transform: translateY(0);
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    height: 150px;
    width: auto;
    margin-bottom: 30px;
    animation: pulseLogo 1.5s infinite alternate ease-in-out;
}

.splash-loader {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.splash-loader::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: #ffffff;
    border-radius: 2px;
    animation: loadProgress 1s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    }

    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
    }
}

@keyframes loadProgress {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #ff4d4d, #ffffff);
    z-index: 10002;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}



/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: -60px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--maroon-dark);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#back-to-top.show {
    bottom: 30px;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background-color: #a30202;
    box-shadow: 0 10px 20px rgba(141, 1, 1, 0.5);
}

#back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .navbar {
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Menu mobile full-screen: definisi tunggal di @media (max-width: 992px) */

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        box-sizing: border-box;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Disable custom cursor on mobile/touch devices */
@media (pointer: coarse) {

    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}

/* Logo kecil + padding rapat khusus HP/tablet */
@media (max-width: 900px) {
    .nav-logo-unej,
    .nav-logo-alsa {
        height: 45px;
    }

    /* Responsive Paddings */
    .about-section,
    .activities-section,
    .publications-section {
        padding: 60px 0;
    }

    .kaprodi-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   Board Page Styles
   ========================================================================== */
.board-page-bg {
    /* Transparan supaya pola element.png (.pattern-bg) tampil seperti di home */
    background-color: transparent;
}

.board-page-section {
    padding: 140px 0 80px;
    /* Extra padding top for navbar */
    min-height: 100vh;
}






/* ==========================================================================
   Board Cards — model referensi klien
   (foto mengisi kartu, judul di bawah, kartu flat tanpa shadow, 1 kolom)
   ========================================================================== */
.board-container {
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
}

.board-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    aspect-ratio: 21 / 10;
    padding: 0;
    border: none;
    border-radius: 22px;
    overflow: visible;
    background: linear-gradient(180deg, #b40000 0%, #7a0000 42%, #3a0000 74%, #140000 100%);
    box-shadow: none;
    text-decoration: none;
}

.board-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
    border-radius: 0 0 22px 22px;
    z-index: 2;
    pointer-events: none;
}

.board-photo {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 110%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom center;
    z-index: 1;
    transition: transform 0.5s ease;
}

.board-card:hover .board-photo {
    transform: translateX(-50%) scale(1.04);
}

.board-card h2 {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0 24px 26px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: none;
}

/* ==========================================================================
   Division Pages Styles
   ========================================================================== */
.division-page-bg {
    background-color: #ffffff;
}

.division-header {
    background-color: var(--maroon-dark);
    padding: 160px 0 80px;
    /* Account for fixed navbar */
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.division-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
}

.division-subtitle {
    font-size: 1.2rem;
    color: #ffcccc;
    font-weight: 500;
}

.division-members-section {
    padding-bottom: 100px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    justify-content: center;
    gap: 40px;
}

.board-director-page .bd-row {
    margin-bottom: 50px;
}

.board-director-page .bd-row-tight {
    margin-bottom: 40px;
}

.member-card {
    max-width: 350px;
    margin: 0 auto;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
    background: linear-gradient(to top, #000000 0%, var(--maroon-dark) 100%);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #cccccc;
    position: relative;
}

.member-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 25px 20px;
    background-color: #ffffff;
}

.member-info h3 {
    margin: 0 0 5px;
    font-size: 1.4rem;
    color: #222222;
    font-weight: 700;
}

.member-info p {
    margin: 0;
    color: var(--maroon-dark);
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .division-title {
        font-size: 2.5rem;
    }
}


/* RESET H3 AND P INSIDE OVERLAY */
.member-title-overlay h3,
.member-title-overlay p {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8) !important;
    font-family: 'Poppins', sans-serif !important;
}

.member-title-overlay h3 {
    text-transform: uppercase !important;
}

.member-title-overlay br {
    display: block !important;
    margin: 2px 0 !important;
}


/* FINAL TITLE TEXT FIX */
.member-title-overlay h3,
.member-title-overlay p {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: none !important;
}

.member-title-overlay h3 {
    text-transform: none !important;
    font-weight: 600 !important;
}

.member-title-overlay p {
    font-weight: 800 !important;
}

.member-title-overlay br {
    display: none !important;
}

/* STYLING FOR NEW EXTERNAL TITLE BOX */
.member-photo {
    height: 350px !important;
    /* REDUCE HEIGHT SINCE TEXT IS OUTSIDE */
}

.member-title-box {
    background-color: #000000 !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 15px 10px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ensure any residual h3/p tags from previous structures don't break the layout */
.member-title-box h3,
.member-title-box p {
    font-size: inherit !important;
    font-weight: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

.member-name-plate {
    background-color: #8d0101 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    padding: 15px 10px !important;
    text-align: center !important;
    border-top: none !important;
    /* Removing previous border to merge smoothly */
}

/* CARD HOVER ANIMATIONS */
.member-photo img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.member-card:hover .member-photo img {
    transform: scale(1.08) !important;
}

.member-title-box {
    transition: background-color 0.4s ease, border-color 0.4s ease !important;
}

.member-card:hover .member-title-box {
    background-color: #2a0000 !important;
    /* Subtle dark red glow */
    border-bottom: 1px solid rgba(255, 100, 100, 0.2) !important;
}


/* BOUNCY ENTRANCE ANIMATION FOR CARDS */
@keyframes cardPopUp {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.85);
    }

    60% {
        opacity: 1;
        transform: translateY(-15px) scale(1.03);
    }

    80% {
        transform: translateY(5px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.member-card.reveal-up.active {
    animation: cardPopUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
    transition: none !important;
    /* Disable standard transition during entrance */
}

/* =========================================
   MOBILE RESPONSIVENESS & ADAPTIVE LAYOUT
   ========================================= */

/* Default hide mobile menu button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Tablet & Mobile Layout (max-width: 992px) */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--maroon-dark);
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 0 40px;
        box-sizing: border-box;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 26px;
        text-align: center;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    /* Dropdown di HP: accordion vertikal (meluncur turun, dorong item bawah) */
    nav ul li.has-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .has-dropdown > a {
        font-size: 1.3rem !important;
        white-space: nowrap;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        background-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        border-radius: 10px;
        margin-top: 0;
        padding: 0 8px;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: flex;
        transition: max-height 0.35s ease, margin-top 0.35s ease, padding 0.35s ease;
    }

    .has-dropdown.open .dropdown-menu {
        margin-top: 12px;
        padding: 8px;
        max-height: 220px;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu li a {
        color: #ffffff !important;
        font-size: 1.15rem !important;
        line-height: 1.4;
        text-align: center;
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: break-word;
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 8px;
    }

    .dropdown-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: #ffffff !important;
    }

    /* Mobile menu button active state (X shape) */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Layout Grids */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Background motif: tutup layar HP yang tinggi */
    .pattern-bg {
        background-size: cover !important;
        background-position: center top !important;
    }

    .activities-section {
        background-size: cover !important;
        background-position: center top !important;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .director-greeting {
        padding: 28px 20px 24px;
        gap: 20px;
    }

    .greeting-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .director-profile {
        max-width: 260px;
    }

    .director-photo {
        height: 260px;
    }

    .greeting-text {
        padding: 0;
    }

    .vimi-container {
        gap: 20px;
    }

    .vimi-card {
        padding: 30px 20px;
    }

    .vimi-card ul {
        padding-left: 20px;
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logos {
        justify-content: center;
    }

    /* Footer brand: cegah kolom melebar & logo terpotong di HP */
    .footer-brand,
    .footer-contact {
        min-width: 0;
    }

    .footer-brand-header {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
    }

    .footer-sublogo {
        letter-spacing: 0;
        font-size: 1rem;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .footer-desc {
        max-width: 100%;
        padding: 0 12px;
    }
    
    /* Board Cards */
    .board-container {
        gap: 48px;
    }
    .board-card {
        border-radius: 18px;
    }
    .board-card h2 {
        padding: 0 16px 20px;
    }

    /* Member photos & board-director spacing (tablet) */
    .member-photo {
        height: 320px !important;
    }
    .board-director-page .bd-row {
        margin-bottom: 36px;
    }
    .board-director-page .bd-row-tight {
        margin-bottom: 30px;
    }
}

/* Tablet: isi lebar supaya tidak 1 kolom sempit di tengah */
@media (min-width: 577px) and (max-width: 992px) {
    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile Small (max-width: 576px) */
@media (max-width: 576px) {
    .hero-section {
        background-position: center 30% !important;
        padding-top: 110px;
    }
    .hero-tagline {
        font-size: clamp(1.5rem, 8vw, 2rem) !important;
        text-align: center;
    }
    .hero-tagline span {
        white-space: normal !important;
    }
    .hero-sub {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    /* Box merah about: padding ramping biar teks tidak mepet (override inline 40px) */
    .info-card {
        padding: 25px 20px !important;
    }
    .cards-grid {
        grid-template-columns: 1fr !important;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
    .footer-logo {
        font-size: clamp(1.8rem, 9vw, 2.4rem) !important;
        letter-spacing: 3px !important;
    }
    .footer-logo-img {
        height: 34px;
    }
    .footer-desc {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .footer-bottom {
        padding: 30px 20px 60px;
    }
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    #back-to-top {
        right: 15px;
        bottom: 15px;
    }
    #back-to-top.show {
        bottom: 15px;
    }
    .director-greeting {
        padding: 24px 16px 20px;
        gap: 18px;
    }
    .director-profile {
        max-width: 200px;
    }
    .director-photo {
        height: 220px;
    }
    .director-name {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    .director-title {
        font-size: 0.78rem;
        line-height: 1.5;
    }
    .director-greeting .greeting-text p {
        font-size: 0.88rem;
        line-height: 1.6;
    }
    .activities-section {
        padding: 80px 0;
    }
    
    /* Board Cards Small Mobile */
    .board-container {
        gap: 40px;
    }
    .board-card {
        border-radius: 14px;
    }
    .board-card h2 {
        padding: 0 12px 14px;
    }
    
    /* Member Grid (Structure Pages) */
    .member-photo {
        height: 250px !important;
    }
    
    /* Navbar logo sizing */
    .nav-logo-unej, .nav-logo-alsa {
        height: 50px;
    }

    /* Adaptive: footer socials, member grid, board director, titles */
    .social-links {
        flex-wrap: wrap;
        gap: 12px;
    }
    .members-grid {
        gap: 28px;
    }
    .board-director-page .bd-row {
        margin-bottom: 28px;
    }
    .board-director-page .bd-row-tight {
        margin-bottom: 24px;
    }
    .member-title-box {
        font-size: 1.1rem !important;
    }
    .member-name-plate {
        font-size: 1.05rem !important;
    }

    /* Local Chapters logo grid */
    .vimi-card h2.chapter-title {
        margin-bottom: 28px;
    }
    .chapter-grid {
        gap: 28px 10px;
    }
    .chapter-item {
        gap: 10px;
    }
    .chapter-item img {
        height: 70px;
    }
    .chapter-item span {
        font-size: 0.8rem;
    }
}

/* Extra small (max-width: 360px) */
@media (max-width: 360px) {
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
    .members-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .member-card {
        max-width: 100%;
    }
    .member-photo {
        height: 220px !important;
    }
    .member-title-box {
        font-size: 1rem !important;
    }
    .member-name-plate {
        font-size: 1rem !important;
    }
    .vimi-card h2.chapter-title {
        margin-bottom: 24px;
    }
    .chapter-grid {
        gap: 22px 6px;
    }
    .chapter-item {
        gap: 8px;
    }
    .chapter-item img {
        height: 60px;
    }
    .chapter-item span {
        font-size: 0.72rem;
    }
}

/* Video Profile Section */
.video-section {
    padding: 100px 0;
    background-color: transparent;
}

.video-desc {
    color: #666;
    max-width: 660px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.video-teaser {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000 url('https://i.ytimg.com/vi/9iiiF51OxPg/maxresdefault.jpg') center / cover no-repeat;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.video-teaser iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
    border: 0;
    cursor: pointer;
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
}

.video-play-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--maroon-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}

.video-overlay:hover .video-play-btn {
    transform: scale(1.08);
    background: var(--maroon-light);
}

.video-overlay-text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-box {
    position: relative;
    width: min(1000px, 100%, calc((100vh - 40px) * 16 / 9));
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-modal-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 0;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.video-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 992px) {
    .video-section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .video-section {
        padding: 70px 0;
    }
    .video-teaser {
        border-radius: 12px;
    }
    .video-overlay {
        font-size: 0.9rem;
    }
    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.1rem;
    }
    .video-close {
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }
    .video-modal {
        padding: 12px;
    }
    .video-modal-box {
        width: min(100%, calc((100vh - 24px) * 16 / 9));
    }
}