﻿@import 'core.css';

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: var(--container-xl);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar-logo img {
    height: 48px;
    width: auto;
}

.navbar-logo span {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary-600);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-600);
    background-color: var(--gray-50);
}

.nav-item.active>.nav-link {
    color: var(--primary-600);
}

/* Dropdown Toggle Arrow */
.nav-link .nav-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-base);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
    color: var(--primary-600);
    background-color: var(--gray-50);
}

.nav-dropdown-item.active {
    color: var(--primary-600);
    background-color: var(--primary-50);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.hamburger:hover {
    background-color: var(--gray-100);
}

.hamburger i {
    font-size: var(--text-xl);
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-fixed) - 1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 100;
        /* Ensure it's clickable */
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        right: -100%;
        /* Fully hide off-screen */
        width: 85%;
        /* Wider menu for better readability */
        max-width: 400px;
        /* Cap width on larger phones */
        height: calc(100vh - var(--navbar-height));
        background-color: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        /* Left-side shadow */
        overflow-y: auto;
        transition: right var(--transition-slow);
        z-index: 9999;
        /* Force on top */
    }

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

    .nav-item {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid #f3f4f6;
        /* Clean divider */
    }

    .nav-link {
        padding: 1rem 1.25rem;
        /* Larger touch target */
        justify-content: space-between;
        border-radius: var(--radius-lg);
        font-weight: 600;
        /* Bolder text */
        color: var(--gray-800);
        transition: background-color 0.2s;
    }

    .nav-link:hover,
    .nav-item.open>.nav-link {
        background-color: transparent;
        color: var(--primary-600);
    }

    /* Show dropdown arrows in mobile menu */
    .nav-arrow {
        display: none !important;
        transform: rotate(-90deg);
        /* Point right initially */
        color: var(--gray-400);
        transition: transform 0.3s ease;
    }

    .nav-item.open .nav-arrow {
        transform: rotate(0deg);
        /* Point down when open */
        color: var(--primary-600);
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        padding: 0;
        background-color: transparent;
        /* Light background for contrast */
        border-left: none;
        /* Hierarchy indicator */
        margin-left: 1rem;
        /* Indent */
        margin-bottom: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 1 !important;
        /* Force visible */
        visibility: visible !important;
        /* Force visible */
        transform: none;
        transition: max-height 0.4s ease-in-out;
        /* Smooth slide */
    }

    .nav-item.open .nav-dropdown {
        max-height: 1000px;
        /* Large enough for all items */
        margin-top: 0.25rem;
    }

    .nav-dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        color: var(--gray-600);
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
    }

    .nav-dropdown-item:hover {
        color: var(--primary-700);
        background-color: transparent;
        padding-left: 1.25rem;
        /* Slight shift on hover */
    }
}

/* ===== BODY PADDING FOR FIXED NAVBAR ===== */
body {
    padding-top: var(--navbar-height);
}

/* ===== PAGE-SPECIFIC STYLES ===== */

/* VISI MISI STYLES */
.misi-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.misi-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
}

.misi-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #d1fae5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.misi-item:hover .misi-number {
    transform: scale(1.1);
}

.misi-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5563;
    padding-top: 8px;
    /* Align with number center */
    margin: 0;
    transition: color 0.3s ease;
}

.misi-item:hover .misi-text {
    color: #111827;
}

/* ===== HERO SLIDER - Modern & Dynamic ===== */
.hero-slider {
    position: relative;
    height: calc(100vh - var(--navbar-height));
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Neutral dark overlay for text readability */
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: var(--space-8);
    z-index: 2;
}

.hero-slide-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-extrabold);
    color: #fff;
    margin-bottom: var(--space-5);
    max-width: 900px;
    line-height: var(--leading-tight);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-slide-content p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-8);
    max-width: 700px;
    line-height: var(--leading-relaxed);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    font-size: var(--text-lg);
}

.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
    left: var(--space-8);
}

.slider-nav.next {
    right: var(--space-8);
}

.slider-dots {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
}

.slider-dot.active {
    background-color: #fff;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.slider-dot:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    padding: var(--space-16) 0;
}

.stats-grid {
    display: flex;
    justify-content: space-evenly;
    /* Distribute items evenly across the width */
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-8);
    width: 100%;
    max-width: 1000px;
    /* Constrain width to prevent extreme spacing on large screens */
    margin: 0 auto;
    /* Center the grid container */
}

.stats-section .section-title {
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: var(--space-6);
    flex: 0 1 auto;
    /* Don't grow too wide */
    min-width: 200px;
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: #fff;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about-section {
    padding: var(--space-20) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.about-content h2 {
    color: var(--primary-700);
    margin-bottom: var(--space-4);
}

.about-content p {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

.about-image {
    overflow: visible;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    background: transparent;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Program Cards - Enhanced Elevation */
.program-card {
    background-color: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-12px);
    border-color: var(--primary-200);
}

.program-card-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.program-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.program-card:hover .program-card-image::after {
    opacity: 1;
}

.program-card-image i {
    font-size: 5rem;
    color: #fff;
    opacity: 0.95;
    transition: transform var(--transition-base);
}

.program-card:hover .program-card-image i {
    transform: scale(1.1) rotate(5deg);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-700)) !important;
}

.program-card-body {
    padding: var(--space-6);
}

.program-card-body h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    font-weight: var(--font-bold);
}

.program-card-body p {
    color: var(--gray-600);
    margin-bottom: var(--space-5);
    line-height: var(--leading-relaxed);
}

.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-600);
    font-weight: var(--font-semibold);
    transition: all var(--transition-fast);
}

.program-card-link:hover {
    gap: var(--space-4);
    color: var(--primary-700);
}

.program-card-link i {
    transition: transform var(--transition-fast);
}

.program-card-link:hover i {
    transform: translateX(4px);
}

/* News Cards - Modern Design */
.news-card {
    background-color: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--primary-200);
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-category {
    display: inline-block;
    padding: var(--space-1-5) var(--space-4);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--primary-700);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.news-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.news-card-title a {
    color: inherit;
    transition: color var(--transition-fast);
}

.news-card-title a:hover {
    color: var(--primary-600);
}

.news-card-date {
    font-size: var(--text-sm);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
}

.news-card-date i {
    color: var(--primary-600);
}

/* Partner Logo Slider */
.partners-section {
    background-color: var(--gray-100);
    padding: var(--space-12) 0;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: var(--space-8);
    animation: scroll-left 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    background-color: transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 768px) {

    .container,
    .navbar-container {
        padding: 0 var(--space-4);
    }

    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }

    .hero-slide-content h1 {
        font-size: 2.25rem;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-nav.prev {
        left: var(--space-2);
    }

    .slider-nav.next {
        right: var(--space-2);
    }

    /* Stats Grid Stack */
    .stats-grid {
        flex-direction: column;
        gap: var(--space-6);
    }

    .stat-item {
        width: 100%;
        min-width: 0;
    }

    /* About Section Mobile */
    .about-section {
        padding: var(--space-10) 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .about-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    /* General Grid Stacking */
    .grid-3,
    .grid-2,
    .program-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-6);
    }
}

/**
 * Pages CSS - Page-Specific Styles
 * Clean & Modern Design - All Frontend Pages
 */

/* ===== SHARED PAGE STYLES ===== */

/* Color Background Blobs (used by many pages) */
.color-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.color-bg .color {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.color-bg .color:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--primary-500);
    top: -200px;
    left: -100px;
}

.color-bg .color:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--success-500);
    bottom: -100px;
    right: -100px;
}

.color-bg .color:nth-child(3) {
    width: 350px;
    height: 350px;
    background: var(--warning-500);
    bottom: 20%;
    left: 10%;
}

/* Content Container */
.content-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--space-12) var(--space-4);
}

/* Content Section */
.content-section {
    padding: var(--space-12) var(--space-4);
    max-width: var(--container-xl);
    margin: 0 auto;
}

/* ===== DOSEN PAGE ===== */
.page-dosen-title {
    text-align: center;
    color: var(--gray-900);
    margin: var(--space-10) 0 var(--space-6);
    font-size: var(--text-2xl);
}

.pimpinan-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
    padding: 0 var(--space-4);
}

.dosen-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6);
    padding: var(--space-4);
    max-width: var(--container-xl);
    margin: 0 auto;
}

.dosen-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dosen-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.dosen-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.dosen-info {
    padding: var(--space-5);
    text-align: center;
}

.dosen-info h4 {
    color: var(--gray-900);
    margin: 0 0 var(--space-2);
    font-size: var(--text-lg);
}

.dosen-info .jabatan {
    color: var(--primary-600);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-1);
}

.dosen-info p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin: 0;
}

/* Popup Modal */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
}

.popup.active,
.popup.show {
    display: flex;
}

.popup-content {
    background: #fff;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    padding: var(--space-8);
    text-align: center;
    position: relative;
    animation: fadeInUp 0.3s ease;
}

.popup-content img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--space-4);
    border: 4px solid var(--primary-100);
}

.popup-content h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.popup-details {
    text-align: left;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.popup-details p {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-4);
    align-items: start;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--gray-200);
    margin: 0;
    color: var(--gray-700);
}

.popup-details p:last-child {
    border-bottom: none;
}

.popup-details strong {
    color: var(--gray-500);
    font-weight: var(--font-medium);
}

.close-btn {
    margin-top: var(--space-5);
    background: var(--error-500);
    color: #fff;
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: background var(--transition-fast);
}

.close-btn:hover {
    background: var(--error-600);
}

/* ===== BEM / STRUKTUR PAGE ===== */
.bem-struktur-page {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    min-height: 100vh;
}

.struktur-container {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

.level-section {
    margin-bottom: var(--space-8);
}

.section-label {
    text-align: center;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--primary-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 auto var(--space-6);
    padding: var(--space-4) var(--space-8);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    display: block;
    width: fit-content;
}

.pimpinan-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.departemen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-5);
}

.person-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
}

.person-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.person-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: #fff;
    overflow: hidden;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-name {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: #fff;
    margin-bottom: var(--space-2);
}

.person-position {
    font-size: var(--text-sm);
    color: var(--primary-400);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-1);
}

.person-prodi {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
}

.connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-500), transparent);
    margin: 0 auto;
}

.connector-horizontal {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-500), transparent);
    margin: var(--space-4) 0;
}

.empty-text {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: var(--space-6);
}

/* ===== HIMPUNAN PAGE ===== */
.himpunan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    justify-content: center;
}

.himpunan-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.himpunan-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.himpunan-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.himpunan-logo i {
    font-size: 2.5rem;
    color: #fff;
}

.himpunan-name h3 {
    color: #fff;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-1);
}

.himpunan-name .full-name {
    color: var(--primary-400);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    font-weight: var(--font-medium);
}

.prodi-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.himpunan-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.contact-info-himpunan {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: auto;
}

.contact-info-himpunan a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition-fast);
}

.contact-info-himpunan a:hover {
    background: var(--primary-600);
    transform: translateY(-3px);
}

.berita-semua-page {
    background: var(--gray-50);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

.news-card .news-card-image {
    height: 200px;
    overflow: hidden;
}

.news-card .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.news-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin: 0 0 var(--space-3);
    line-height: var(--leading-tight);
}

.news-title a {
    color: var(--gray-900);
}

.news-title a:hover {
    color: var(--primary-600);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-600);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
}

.read-more:hover {
    gap: var(--space-3);
}

/* ===== KALENDER PAGE ===== */
.kalender-akademik-page {
    background: var(--gray-50);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.calendar-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.calendar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.calendar-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.calendar-body {
    padding: var(--space-5);
}

.calendar-body h3 {
    color: var(--gray-900);
    font-size: var(--text-lg);
    margin: 0 0 var(--space-2);
}

.calendar-body p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin: 0;
}

.calendar-no-data {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-500);
    padding: var(--space-12);
}

/* Calendar Popup */
.popup-img-box {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.popup-img-box img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
}

.popup-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--error-500);
    color: #fff;
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* ===== LAB / RUANGAN / FASILITAS PAGE ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

.content-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.content-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.content-body {
    padding: var(--space-5);
}

.content-title-sm {
    font-size: var(--text-lg);
    color: var(--gray-900);
    margin: 0 0 var(--space-2);
}

.content-text {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin: 0;
    line-height: var(--leading-relaxed);
}

/* ===== PENELITIAN / PENGABDIAN PAGE ===== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-6);
}

.research-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.research-card:hover {
    box-shadow: var(--shadow-lg);
}

.research-card h3 {
    color: var(--gray-900);
    font-size: var(--text-lg);
    margin: 0 0 var(--space-3);
}

.research-card p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin: 0 0 var(--space-2);
}

.research-meta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-100);
}

.research-meta span {
    font-size: var(--text-xs);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ===== DOCUMENT PAGES (SOP, RENSTRA, RENOP) ===== */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.document-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.document-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    margin: 0 auto var(--space-4);
}

.document-card h3 {
    color: var(--gray-900);
    font-size: var(--text-base);
    margin: 0 0 var(--space-2);
}

.document-card p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin: 0 0 var(--space-4);
}

.document-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--primary-600);
    color: #fff;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: background var(--transition-fast);
}

.document-btn:hover {
    background: var(--primary-700);
    color: #fff;
}

/* ===== VISI MISI PAGE ===== */
.visi-misi-section {
    padding: var(--space-16) 0;
}

.visi-card,
.misi-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-8);
}

.visi-card h2,
.misi-card h2 {
    color: var(--primary-700);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.misi-list {
    list-style: none;
    counter-reset: misi;
}

.misi-list li {
    position: relative;
    padding-left: var(--space-10);
    margin-bottom: var(--space-4);
    color: var(--gray-700);
    line-height: var(--leading-relaxed);
}

.misi-list li::before {
    counter-increment: misi;
    content: counter(misi);
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
}

.profile-meta {
    margin-top: auto;
    font-size: var(--text-sm);
    color: var(--gray-500);
    border-top: 1px solid var(--gray-100);
    width: 100%;
    padding-top: var(--space-3);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .pimpinan-container,
    .dosen-grid-container {
        padding: var(--space-4);
    }

    .dosen-card img {
        height: 180px;
    }

    .person-photo {
        width: 80px;
        height: 80px;
    }

    .popup-content {
        padding: var(--space-6);
    }

    .popup-content img {
        width: 120px;
        height: 120px;
    }

    .news-grid,
    .calendar-grid,
    .content-grid,
    .research-grid,
    .document-grid {
        grid-template-columns: 1fr;
    }
}

/**
 * CSS Refinements - Visual Polish & Responsive Fixes
 * Enhanced spacing, alignment, and component styling
 */

/* ===== GLOBAL POLISH ===== */

/* Ensure smooth scrolling and proper overflow */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

/* Improved focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Better image handling */
img {
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
}

/* ===== NAVBAR REFINEMENTS ===== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-container {
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.navbar-logo img {
    height: clamp(36px, 5vw, 48px);
    transition: transform var(--transition-base);
}

.navbar-logo:hover img {
    transform: scale(1.02);
}

.navbar-logo span {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* Nav links - better spacing */
.nav-menu {
    gap: var(--space-1);
}

.nav-link {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    letter-spacing: -0.01em;
}

/* Dropdown refinements */
.nav-dropdown {
    padding: var(--space-2);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    min-width: 200px;
}

.nav-dropdown-item {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

/* ===== PAGE HEADER REFINEMENTS ===== */
.page-header {
    padding: clamp(3rem, 8vw, 5rem) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 50%, var(--primary-800) 100%);
}

.page-header h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CONTAINER REFINEMENTS ===== */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.main-content {
    padding: clamp(2rem, 6vw, 4rem) 0;
}

/* Global Content Section */
.section-content {
    padding-top: clamp(3rem, 6vw, 4rem);
    padding-bottom: clamp(5rem, 10vw, 8rem);
    /* Extra spacing before footer */
    position: relative;
    width: 100%;
}

/* ===== SECTION REFINEMENTS ===== */
.section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-header {
    margin-bottom: clamp(2rem, 5vw, 3rem);
    text-align: center;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
    text-align: center;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    line-height: var(--leading-relaxed);
    text-align: center;
    color: var(--gray-600);
}

/* ===== CARD REFINEMENTS ===== */
.card,
.news-card,
.program-card,
.feature-card,
.dosen-card,
.calendar-card,
.content-card,
.research-card,
.document-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
.news-card:hover,
.program-card:hover,
.feature-card:hover,
.dosen-card:hover,
.calendar-card:hover,
.content-card:hover,
.research-card:hover,
.document-card:hover {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Card image consistency */
.news-card-image,
.card-image,
.content-image {
    aspect-ratio: 16/10;
    width: 100%;
    height: auto;
}

.news-card-image img,
.card-image img,
.content-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Card body spacing */
.card-body,
.news-card-body,
.content-body,
.calendar-body {
    padding: clamp(1rem, 3vw, 1.5rem);
}

/* ===== BUTTON REFINEMENTS ===== */
.btn {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    padding: clamp(0.625rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: var(--radius-lg);
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-outline {
    border-width: 1.5px;
}

.btn-lg {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ===== FORM INPUT REFINEMENTS ===== */
.form-input,
.form-select,
.form-textarea {
    padding: clamp(0.625rem, 2vw, 0.875rem) clamp(0.875rem, 2vw, 1rem);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-300);
    transition: all var(--transition-base);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--gray-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-2);
    color: var(--gray-700);
}

/* ===== GRID REFINEMENTS ===== */
.grid {
    gap: clamp(1rem, 3vw, 1.5rem);
}

.grid-cols-2,
.grid-cols-3,
.grid-cols-4 {
    gap: clamp(1rem, 3vw, 1.5rem);
}

.stats-grid,
.feature-grid,
.news-grid,
.calendar-grid,
.content-grid,
.dosen-grid-container,
.research-grid,
.document-grid {
    gap: clamp(1rem, 3vw, 1.5rem);
}

/* ===== DOSEN PAGE REFINEMENTS ===== */
.page-dosen-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
}

.pimpinan-container {
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.dosen-grid-container {
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(1rem, 4vw, 2rem);
}

.dosen-card {
    border-radius: var(--radius-xl);
}

.dosen-card img {
    aspect-ratio: 4/5;
    height: auto;
}

.dosen-info {
    padding: clamp(1rem, 3vw, 1.25rem);
}

.dosen-info h4 {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-2);
}

/* Popup refinements */
.popup-content {
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: var(--radius-2xl);
    max-width: min(90vw, 480px);
}

.popup-content-large {
    max-width: 900px !important;
    width: 90% !important;
    padding: 0 !important;
    height: 90vh !important;
    display: flex;
    flex-direction: column;
}

.popup-content img {
    width: clamp(100px, 20vw, 140px);
    height: clamp(100px, 20vw, 140px);
}

.popup-details {
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 3vw, 1.25rem);
}

.popup-details p {
    padding: clamp(0.5rem, 1.5vw, 0.75rem) 0;
    font-size: var(--text-sm);
}

/* ===== BEM / STRUKTUR REFINEMENTS ===== */
.struktur-container {
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.section-label {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    padding: var(--space-2) clamp(1rem, 3vw, 1.5rem);
}

.person-card {
    padding: clamp(1.25rem, 4vw, 1.75rem);
    border-radius: var(--radius-xl);
}

.person-photo {
    width: clamp(70px, 15vw, 100px);
    height: clamp(70px, 15vw, 100px);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.person-name {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.person-position {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

/* ===== HERO SLIDER REFINEMENTS ===== */
.hero-slider {
    height: clamp(400px, 70vh, 650px);
}

.hero-slide-content h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-slide-content p {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    line-height: var(--leading-relaxed);
}

.slider-nav {
    width: clamp(40px, 6vw, 52px);
    height: clamp(40px, 6vw, 52px);
}

.slider-nav.prev {
    left: clamp(0.75rem, 3vw, 1.5rem);
}

.slider-nav.next {
    right: clamp(0.75rem, 3vw, 1.5rem);
}

/* ===== STATS SECTION REFINEMENTS ===== */
.stats-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.stat-item {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
}

/* ===== FOOTER REFINEMENTS ===== */
.footer {
    padding: clamp(3rem, 8vw, 4rem) 0 clamp(1.5rem, 4vw, 2rem);
}

.footer-grid {
    gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-brand h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

.footer-title {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    margin-bottom: var(--space-4);
}

.footer-links a {
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
    display: inline-block;
    padding: var(--space-1) 0;
}

.footer-social {
    gap: var(--space-3);
}

.footer-social a {
    width: clamp(36px, 5vw, 44px);
    height: clamp(36px, 5vw, 44px);
}

/* ===== NEWS / BERITA REFINEMENTS ===== */
.news-card-title {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: var(--leading-tight);
}

.news-card-category {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
}

.news-card-date {
    font-size: var(--text-sm);
}

/* ===== ABOUT SECTION REFINEMENTS ===== */
.about-grid {
    gap: clamp(2rem, 6vw, 3rem);
}

.about-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
}

.about-content p {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
}

.about-image img {
    border-radius: var(--radius-2xl);
    height: clamp(280px, 40vw, 400px);
}

/* ===== PROGRAM CARD REFINEMENTS ===== */
.program-card-image {
    height: clamp(160px, 25vw, 220px);
}

.program-card-image i {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.program-card-body {
    padding: clamp(1.25rem, 4vw, 1.75rem);
}

.program-card-body h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

/* ===== FEATURE CARD REFINEMENTS ===== */
.feature-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.feature-icon {
    width: clamp(56px, 10vw, 72px);
    height: clamp(56px, 10vw, 72px);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.feature-card h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.feature-card p {
    font-size: clamp(0.875rem, 1.8vw, 1rem);
}

/* ===== DOCUMENT PAGE REFINEMENTS ===== */
.document-card {
    padding: clamp(1.5rem, 4vw, 2rem);
}

.document-icon {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

/* ===== ENHANCED RESPONSIVE BREAKPOINTS ===== */

/* Large Tablets / Small Laptops */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .navbar {
        height: 64px;
    }

    body {
        padding-top: 64px;
    }

    .nav-menu {
        width: min(85vw, 320px);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Mobile Landscape / Large Phones */
@media (max-width: 768px) {
    .section {
        padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .calendar-grid,
    .content-grid,
    .research-grid,
    .document-grid {
        grid-template-columns: 1fr;
    }

    .dosen-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .pimpinan-container {
        flex-direction: column;
        align-items: center;
    }

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

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

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2) var(--space-4);
    }

    .footer-links li {
        margin-bottom: 0;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-slider {
        height: clamp(350px, 60vh, 450px);
    }

    .hero-slide-content {
        padding: var(--space-4);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: var(--space-4);
    }

    .departemen-grid {
        grid-template-columns: 1fr;
    }

    .popup-content {
        padding: var(--space-5);
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
    }

    .news-card-image,
    .content-image {
        aspect-ratio: 16/9;
    }

    .dosen-card img {
        aspect-ratio: 1/1;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .navbar-logo span {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .navbar,
    .footer,
    .mobile-overlay,
    .hamburger {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    .section {
        padding: 1rem 0;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #fff;
    }

    .card,
    .news-card,
    .dosen-card {
        border: 2px solid var(--gray-300);
    }
}

/* ===== DOSEN PAGE STYLES (Semantic) ===== */
.dosen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-6);
}

.pimpinan-grid {
    display: flex;
    /* Centered flex for leaders */
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
}

.pimpinan-grid .profile-card {
    width: 240px;
    /* Fixed width for leader cards */
    flex-grow: 0;
}

.dosen-popup-content {
    max-width: 800px;
    padding: var(--space-6);
    width: 90%;
}

.dosen-popup-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    text-align: left;
    /* Reset text align */
}

.dosen-popup-image img {
    width: 100%;
    border-radius: var(--radius-lg) !important;
    /* Enforce rounded rectangle, NOT circle */
    box-shadow: var(--shadow-md);
    height: auto;
    max-height: 500px;
    /* Limit height to prevent huge images */
    object-fit: cover;
}

.dosen-popup-info {
    text-align: left;
}

.dosen-popup-info h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    color: var(--primary-800);
}

.dosen-popup-details p {
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: var(--space-2);
}

.dosen-popup-details p:last-child {
    border-bottom: none;
}

.dosen-popup-action {
    margin-top: var(--space-6);
}

.close-btn-custom {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: var(--error-500);
    color: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.close-btn-custom:hover {
    background-color: var(--error-600);
}

.dosen-popup-info {
    position: relative;
    /* Ensure relative positioning context */
    padding-top: var(--space-2);
}

/* Add frame to image as seen in screenshot */
.dosen-popup-image {
    padding: var(--space-2);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
}

@media (min-width: 768px) {
    .dosen-popup-layout {
        flex-direction: row;
        align-items: start;
    }

    .dosen-popup-image {
        flex: 0 0 400px;
        /* Increased width for image on desktop */
    }

    .dosen-popup-info {
        flex: 1;
    }
}

/* ===== GALLERY / RUANGAN PAGE STYLES - Modern Design ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.gallery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.gallery-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.gallery-image-wrapper {
    position: relative;
    padding-top: 66.67%;
    /* 3:2 Aspect Ratio */
    overflow: hidden;
    background-color: var(--gray-100);
}

.gallery-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-card:hover .gallery-image-wrapper::after {
    opacity: 1;
}

/* Search icon removed by request */
.gallery-image-wrapper::before {
    display: none;
}

.gallery-card:hover .gallery-image-wrapper::before {
    display: none;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-card .card-body {
    padding: var(--space-6);
    flex: 1;
}

.gallery-card .card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.gallery-card .card-body p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.gallery-popup-content {
    max-width: 1200px;
    width: 95%;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    animation: fadeInUp 0.3s ease;
}

.gallery-popup-content .relative {
    position: relative;
    background: #f5f5f5;
}

.gallery-popup-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #f5f5f5;
}

.gallery-popup-caption {
    background: #fff;
    padding: var(--space-5);
    text-align: center;
}

.gallery-popup-caption h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin: 0;
}

.gallery-popup-content .close-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--error-500);
    color: #fff;
    border-radius: var(--radius-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    cursor: pointer;
    z-index: 10;
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.gallery-popup-content .close-btn:hover {
    background: var(--error-600);
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.gallery-popup-content .close-btn:active {
    transform: scale(0.95);
}

/* ===== DOCUMENT GRID STYLES (Semantic) ===== */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-6);
}

.col-span-full {
    grid-column: 1 / -1;
}

/* Ensure document cards height match */
.document-card {
    height: 100%;
    display: flex;
    flex-direction: row;
    /* Keep standard horizontal layout */
    align-items: start;
}

@media (max-width: 640px) {
    .document-grid {
        grid-template-columns: 1fr;
    }

    .document-card {
        flex-direction: column;
        /* Stack on mobile if needed */
        align-items: flex-start;
    }

    .document-icon {
        margin-bottom: var(--space-3);
    }
}

/* ===== NEW UTILITIES FOR VISI MISI ===== */
.border-l-4 {
    border-left-width: 4px;
    border-left-style: solid;
}

.border-primary-500 {
    border-color: var(--primary-500);
}

.border-success-500 {
    border-color: var(--success-500);
}

.list-decimal {
    list-style-type: decimal;
}

.pl-5 {
    padding-left: 1.25rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.leading-relaxed {
    line-height: 1.625;
}

.italic {
    font-style: italic;
}

/* Responsive Grid Utilities */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== REFACTORING UTILITIES ===== */

/* White Colors */
.text-white {
    color: #ffffff;
}

.border-white {
    border-color: #ffffff;
}

/* Button Variants */
.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

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

/* Gradients */
.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
}

/* Icon Styles */
.icon-success {
    background-color: var(--success-50);
    color: var(--success-600);
}

.icon-warning {
    background-color: var(--warning-50);
    color: var(--warning-600);
}

.icon-error {
    background-color: var(--error-50);
    color: var(--error-600);
}

/* ===== FEATURE GRID & CARDS - Modern Design ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.feature-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: #fff;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
}

/* Color variants for feature icons */
.feature-icon.icon-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-700));
    box-shadow: var(--shadow-success);
}

.feature-icon.icon-warning {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
    box-shadow: var(--shadow-warning);
}

.feature-icon.icon-error {
    background: linear-gradient(135deg, var(--error-500), var(--error-600));
    box-shadow: var(--shadow-error);
}

.feature-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-600);
}

.feature-card p {
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: var(--space-6);
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* ===== NEWS GRID - 3 Column Layout ===== */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
}

/* Section Backgrounds */
.section-white {
    background-color: #fff;
}

.section-gray {
    background-color: var(--gray-50);
}

/* Section Spacing */
.section {
    padding: var(--space-20) 0;
}

@media (max-width: 992px) {
    .section {
        padding: var(--space-16) 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-12) 0;
    }

    .grid-auto-fit {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ===== GRID UTILITIES ===== */
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-6 {
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Layout Utilities */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-4);
    text-align: left;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-header-flex .section-title,
.section-header-flex .section-subtitle {
    text-align: left;
    margin-bottom: var(--space-2);
}

.section-header-flex>div {
    flex: 1;
    min-width: 250px;
}

/* =========================================
   PENDAFTARAN PAGE STYLES
   ========================================= */
/* Pendaftaran Styles moved from pendaftaran.css */

/* Reusing colors from main.css where possible, but keeping specific ones */
:root {
    --text-muted: #d9d9d9;
}

/* Background Blobs for Pendaftaran/Alumni/Himpunan (Shared) */
.color-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .35;
}

.color {
    position: absolute;
    filter: blur(180px);
}

.color:nth-child(1) {
    top: -350px;
    width: 600px;
    height: 600px;
    background: #ff359b;
}

.color:nth-child(2) {
    bottom: -150px;
    left: 100px;
    width: 520px;
    height: 520px;
    background: #fffd87;
}

.color:nth-child(3) {
    bottom: 50px;
    right: 100px;
    width: 320px;
    height: 320px;
    background: #00d2ff;
}

/* Pendaftaran Specific Layout */
.wrap {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 18px 80px;
}

.hero-pendaftaran {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    padding: 26px 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
    overflow: hidden;
    margin-bottom: 22px;
}

.hero-left {
    max-width: 720px;
}

.registration-hero-title {
    font-size: 2.1rem;
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: .2px;
    text-shadow: none !important;
    color: #1d4ed8 !important;
    /* Hardcoded Primary-700 for safety */
    opacity: 1 !important;
    visibility: visible !important;
}

/* ... existing styles ... */

.input,
.form-select,
textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    /* Cleaner border */
    background: #fff;
    /* White background */
    color: var(--gray-800);
    /* Dark text */
    outline: none;
    transition: .2s;
}

.hero-sub {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.hero-badge {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.badge {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(52, 152, 219, .16);
    border: 1px solid rgba(52, 152, 219, .35);
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}

.badge i {
    color: #f1c40f;
}

.grid-pendaftaran {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: start;
}

.card-pendaftaran {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-pendaftaran:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    /* Custom shadow-2xl */
}

.card-header-pendaftaran {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(to right, var(--gray-50), #fff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-header-pendaftaran h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.02em;
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-header-pendaftaran h2 i {
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 8px;
    border-radius: 8px;
    font-size: 1rem;
}

.card-body-pendaftaran {
    padding: 32px;
    /* Increased padding */
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
    /* Increased gap for cleaner layout */
}

.full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: .9rem;
    margin: 0 0 6px;
    color: #f1f1f1;
    font-weight: 600;
}

.input:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-100);
    /* Soft ring effect */
    background: #fff;
}

.input[type="file"] {
    padding: 6px;
    background: var(--gray-50);
}

.input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: none;
    background: var(--primary-600);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background .2s;
}

.input[type="file"]::file-selector-button:hover {
    background: var(--primary-700);
}

textarea {
    min-height: 92px;
    resize: vertical;
}

.hint {
    margin-top: 6px;
    font-size: .85rem;
    color: var(--gray-500);
    /* Ensure visibility on white card */
    line-height: 1.4;
}

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

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

.card-pendaftaran {
    animation: slideUpFade 0.6s ease-out forwards;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.btn-action {
    border: none;
    cursor: pointer;
    padding: 14px 24px;
    /* Larger click area */
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    /* Soft shadow based on primary color */
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline-action {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
}

.btn-outline-action:hover {
    background: var(--gray-50);
    color: var(--gray-800);
    border-color: var(--gray-400);
}

.side-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-box {
    display: flex;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
}

.info-box i {
    font-size: 1.2rem;
    color: #f1c40f;
    margin-top: 2px;
    flex: 0 0 auto;
}

.info-box strong {
    display: block;
    font-size: .95rem;
    margin-bottom: 2px;
}

.info-box p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: .9rem;
    line-height: 1.5;
}

.progress-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, .10);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f1c40f, #3498db);
    transition: width .2s ease;
}

.progress-pct {
    font-weight: 800;
    font-size: .9rem;
    min-width: 44px;
    text-align: right;
    color: #fff;
}

.toast-msg {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
}

.toast-msg.success {
    background: rgba(46, 204, 113, .2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.toast-msg.error {
    background: rgba(231, 76, 60, .2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.toast {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(46, 204, 113, .14);
    color: #eafff2;
    font-weight: 700;
}

@media (max-width: 900px) {
    .grid-pendaftaran {
        grid-template-columns: 1fr;
    }

    .hero-pendaftaran {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-badge {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .wrap {
        padding: 30px 14px 70px;
    }
}

/* =========================================
   HIMPUNAN MAHASISWA STYLES
   ========================================= */
/* Styles extracted from himpunan_mahasiswa.php */
.himpunan-root-variables {
    --brand-blue: #3498db;
    --brand-yellow: #f1c40f;
    --text-light: #ffffff;
    --text-pudar: #e0e0e0;
}

/* Hero Section Himpunan */
.hero-himpunan {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content-himpunan {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-himpunan h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}

.hero-himpunan p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* Himpunan Grid */
.himpunan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.himpunan-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.himpunan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

/* Logo Himpunan */
.himpunan-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #f1c40f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Nama Himpunan */
.himpunan-name {
    margin-bottom: 10px;
}

.himpunan-name h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.himpunan-name .full-name {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 15px;
}

/* Prodi Badge */
.prodi-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

/* Deskripsi Singkat */
.himpunan-desc {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Contact Info Himpunan */
.contact-info-himpunan {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-himpunan a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-info-himpunan a:hover {
    transform: translateY(-3px) scale(1.1);
    background: #3498db;
}

@media (max-width: 768px) {
    .hero-himpunan h1 {
        font-size: 2rem;
    }

    .hero-himpunan p {
        font-size: 1rem;
    }

    .himpunan-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ALUMNI STYLES
   ========================================= */
/* Hero Alumni */
.hero-alumni {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
    border-radius: 18px;
    padding: 60px 28px;
    margin-top: 24px;
}

.hero-alumni h1 {
    font-size: 2.6rem;
    margin: 0 0 8px;
}

.hero-alumni p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px;
}

/* Stats Grid */
.stats-grid-alumni {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.stat-card-alumni {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.stat-card-alumni .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #3498db, #0d5bb9);
    font-size: 20px;
}

.stat-card-alumni h3 {
    font-size: 1.8rem;
    margin: 6px 0;
    color: #f1c40f;
}

.stat-card-alumni p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Alumni Grid */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.alumni-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: transform .28s, box-shadow .28s;
}

.alumni-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
}

.alumni-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
}

.alumni-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #3498db, #9b59ff);
}

.alumni-info h4 {
    margin: 0;
    font-size: 1.05rem;
}

.alumni-info .prodi {
    color: #f1c40f;
    font-weight: 600;
    margin-top: 6px;
}

.alumni-meta {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.status-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-bekerja {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border-color: #2ecc71;
}

.status-wirausaha {
    background: rgba(241, 196, 15, 0.12);
    color: #f1c40f;
    border-color: #f1c40f;
}

.status-melanjutkan {
    background: rgba(155, 89, 182, 0.12);
    color: #9b59b6;
    border-color: #9b59b6;
}

.status-lain {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
}

.alumni-quote {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

@media (max-width:800px) {
    .hero-alumni {
        padding: 36px 16px;
    }

    .hero-alumni h1 {
        font-size: 1.8rem;
    }

    .alumni-top {
        align-items: flex-start;
    }
}

/* =========================================
   PRODI TI & PTI SPECIFIC STYLES
   (Migrated from assets/css/prodi.css)
   ========================================= */

/* Body Background for Prodi Pages */
body.page-prodi {
    background: linear-gradient(to right bottom, #051636, #020d20) !important;
    color: #ffffff;
}

.prodi-section {
    padding: clamp(56px, 6vw, 80px) 0;
    position: relative;
    z-index: 10;
}

.prodi-section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.prodi-section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.prodi-section-title p {
    font-size: clamp(.95rem, 1.7vw, 1.1rem);
    color: #e0e0e0;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 8px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.prodi-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #f1c40f);
    margin: 18px auto 0;
    border-radius: 2px;
}

/* Background Blobs (Prodi Specific) */
.prodi-color-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: .3;
    pointer-events: none;
}

.prodi-color {
    position: absolute;
    filter: blur(clamp(80px, 12vw, 200px));
}

.prodi-color:nth-child(1) {
    top: -30vh;
    width: clamp(260px, 55vw, 600px);
    height: clamp(260px, 55vw, 600px);
    background: #ff359b;
}

.prodi-color:nth-child(2) {
    bottom: -20vh;
    left: 6vw;
    width: clamp(220px, 45vw, 500px);
    height: clamp(220px, 45vw, 500px);
    background: #fffd87;
}

.prodi-color:nth-child(3) {
    bottom: 5vh;
    right: 6vw;
    width: clamp(180px, 30vw, 300px);
    height: clamp(180px, 30vw, 300px);
    background: #00d2ff;
}

/* Hero Section */
.prodi-hero {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    padding: clamp(72px, 10vw, 140px) 0;
    text-align: center;
    overflow: hidden;
}

.prodi-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.prodi-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: 14px;
    font-weight: 700;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, .7);
    color: #ffffff;
}

.prodi-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: .95;
    line-height: 1.6;
    margin: 0 auto;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, .6);
    color: #ffffff;
}

/* About Section */
.prodi-about-tentang-section {
    background: #020b23;
}

.prodi-about-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(20px, 5vw, 60px);
    align-items: center;
}

.prodi-about-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: 18px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    color: #ffffff;
}

.prodi-about-text p {
    color: #eee;
    font-size: clamp(.95rem, 1.4vw, 1.05rem);
    line-height: 1.9;
    text-align: justify;
}

.prodi-about-image {
    text-align: center;
}

.prodi-about-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    transition: transform .3s ease;
}

.prodi-about-image:hover img {
    transform: scale(1.05) rotate(2deg);
}

/* Visi Misi Section */
.prodi-visi-misi-section {
    position: relative;
    overflow: hidden;
}

.prodi-visi-misi-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    opacity: .85;
    z-index: 1;
}

.prodi-visi-misi-section .container {
    position: relative;
    z-index: 5;
}

.prodi-misi-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: clamp(16px, 4vw, 40px);
    text-align: center;
}

.prodi-misi-card {
    padding: 22px;
    color: #fff;
}

.prodi-misi-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4));
}

.prodi-misi-card p {
    font-size: clamp(.95rem, 1.5vw, 1rem);
    line-height: 1.6;
    opacity: .95;
    color: #ffffff;
}

/* Dosen Section (Prodi Specific) */
.prodi-dosen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: clamp(16px, 3vw, 30px);
}

.prodi-dosen-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transition: all .3s ease;
    text-align: center;
}

.prodi-dosen-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .4);
    background: rgba(255, 255, 255, 0.12);
}

.prodi-dosen-image {
    height: clamp(180px, 30vw, 250px);
    overflow: hidden;
}

.prodi-dosen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.prodi-dosen-card:hover .prodi-dosen-image img {
    transform: scale(1.08);
}

.prodi-dosen-content {
    padding: 18px;
}

.prodi-dosen-content h3 {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    margin-bottom: 6px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, .5);
    color: #ffffff;
}

.prodi-dosen-content .jabatan {
    color: #f1c40f;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .5);
}

.prodi-dosen-content p {
    color: #e0e0e0;
    font-size: .92rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .5);
}

.prodi-empty-state {
    grid-column: 1/-1;
    text-align: center;
    color: #fff;
    opacity: .9;
}

@media (max-width: 992px) {
    .prodi-about-grid {
        grid-template-columns: 1fr;
    }

    .prodi-about-image {
        order: -1;
    }

    .prodi-about-text p {
        text-align: left;
    }
}

/* =========================================
   BEM ORGANIZATIONAL STRUCTURE STYLES
   ========================================= */

/* Main Wrapper & Background */
.bem-page-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: #0f172a;
    /* Fallback */
    overflow-x: hidden;
}

/* Hero Enhancements */
.hero {
    position: relative;
    padding: 140px 0 60px;
    text-align: center;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Hierarchical Connectors */
.struktur-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #60a5fa;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 3rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* Sections */
.level-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    padding-bottom: 20px;
    /* Space for connectors */
}

.pimpinan-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    position: relative;
}

.departemen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    width: 100%;
    padding: 0 2rem;
    justify-items: center;
}

/* Connectors Visuals */
.connector {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(96, 165, 250, 0.5), rgba(96, 165, 250, 0.1));
    margin: 0 auto;
}

.connector-horizontal {
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.4) 20%, rgba(96, 165, 250, 0.4) 80%, rgba(96, 165, 250, 0));
    margin: 1rem auto 4rem;
    position: relative;
}

/* T-Junctions for connector horizontal */
.connector-horizontal::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(to top, rgba(96, 165, 250, 0.4), rgba(96, 165, 250, 0));
}

/* Glassmorphism Card Design */
.person-card {
    position: relative;
    width: 280px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.person-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(96, 165, 250, 0.2);
}

/* Card Internal Elements */
.person-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    padding: 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.person-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.person-card:hover .person-photo img {
    transform: scale(1.05);
}

/* Initials Avatar Fallback */
.person-photo:has(img:not([src])) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.person-name {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.person-position {
    color: #60a5fa;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.person-prodi {
    color: #94a3b8;
    font-size: 0.85rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .struktur-container {
        gap: 1.5rem;
    }

    .pimpinan-section {
        flex-direction: column;
    }

    .connector {
        height: 40px;
    }

    .connector-horizontal {
        width: 2px;
        height: 40px;
        margin: 0 auto;
        background: linear-gradient(to bottom, rgba(96, 165, 250, 0.4), rgba(96, 165, 250, 0));
    }

    .connector-horizontal::after {
        display: none;
    }

    .departemen-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .person-card {
        width: 100%;
        max-width: 320px;
    }
}

/* Animations if not present in main */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* =========================================
   PARTNERSHIP CAROUSEL STYLES
   ========================================= */
.partnership-section {
    background-color: #f8fafc !important;
    /* Force light gray background */
    overflow: hidden;
    padding: var(--space-12) 0;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Mask for fade effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    width: max-content;
    gap: 5rem;
    /* Increased gap */
    /* Spacing between logos */
    animation: scroll 30s linear infinite;
    padding: 10px 0;
    align-items: center;
    /* Ensure vertical centering */
}

.carousel-track:hover {
    animation-play-state: paused;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 200px;
    /* Increased width */
    /* Fixed width for consistency */
    position: relative;
    transition: transform 0.3s ease;
}

.partner-logo-wrapper {
    width: 100%;
    height: 120px;
    /* Slight increase */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 0;
    /* Force removal of any box styling */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    transition: all 0.3s ease;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Removed filters for clarity */
    filter: none;
    opacity: 1;
    /* Increased visibility */
    /* Magic fix for images with white backgrounds */
    mix-blend-mode: multiply;
    transition: all 0.4s ease;
}

.partner-item:hover .partner-logo-wrapper {
    transform: scale(1.1);
    /* Scale up wrapper on hover */
    background: transparent !important;
    box-shadow: none !important;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-year {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 600;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    text-align: center;
}

.partner-item:hover .partner-year {
    opacity: 1;
    transform: translateY(0);
    color: var(--primary-600);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .partnership-section {
        padding: var(--space-8) 0;
    }

    .carousel-track {
        gap: 2rem;
        animation-duration: 20s;
    }

    .partner-item {
        width: 130px;
    }

    .partner-logo-wrapper {
        height: 70px;
        padding: 10px;
    }

    .partner-year {
        font-size: 0.75rem;
    }
}

/* =========================================
   MODERN DARK FOOTER
   ========================================= */
.footer-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: var(--space-8) 0 0;
    font-size: 0.95rem;
    position: relative;
}

.footer-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: #fff;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: var(--space-4);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    font-size: var(--text-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-color: var(--primary-500);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.3);
}

/* Brand Specific Hover Colors */
.footer-social a[aria-label="Facebook"]:hover {
    background: linear-gradient(135deg, #1877F2, #166fe5);
    border-color: #1877F2;
    box-shadow: 0 12px 24px rgba(24, 119, 242, 0.3);
}

.footer-social a[aria-label="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: #d6249f;
    box-shadow: 0 12px 24px rgba(214, 36, 159, 0.3);
}

.footer-social a[aria-label="YouTube"]:hover {
    background: linear-gradient(135deg, #FF0000, #cc0000);
    border-color: #FF0000;
    box-shadow: 0 12px 24px rgba(255, 0, 0, 0.3);
}

.footer-social a[aria-label="WhatsApp"]:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-color: #25D366;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
}

.footer-social a[aria-label="Email"]:hover {
    background: linear-gradient(135deg, #EA4335, #c5221f);
    border-color: #EA4335;
    box-shadow: 0 12px 24px rgba(234, 67, 53, 0.3);
}

.footer-title-modern {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-full);
}

.footer-links-modern {
    list-style: none;
    padding: 0;
}

.footer-links-modern li {
    margin-bottom: 12px;
}

.footer-links-modern a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-modern a i {
    color: var(--primary-400);
    transition: transform 0.3s ease;
}

.footer-links-modern a:hover {
    color: #fff;
    padding-left: var(--space-2);
}

.footer-links-modern a:hover i {
    transform: translateX(4px);
}

.footer-bottom-modern {
    padding: var(--space-4) 0;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

@media (max-width: 900px) {
    .footer-grid-modern {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PROGRESS BAR STYLES
   ========================================= */
.progress {
    height: 8px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    width: 100%;
}

#progressBar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 999px;
}

.pct {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-700);
    min-width: 40px;
    text-align: right;
}

/* ===== DOSEN PROFILE CARD REFINEMENTS ===== */
.profile-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.profile-image {
    width: 100%;
    height: 320px;
    /* Fixed height for consistency */
    object-fit: cover;
    object-position: top center;
    background-color: var(--gray-100);
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
}

.profile-body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    z-index: 1;
}

.profile-name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
}

.profile-role {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
    background: var(--primary-50);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

/* ===== POPUP / LIGHTBOX STYLES (Full Frame Modern) ===== */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    width: 95%;
    height: 95vh;
    max-width: 1400px;
    /* Limit width on very large screens */
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup.show .popup-content {
    transform: scale(1);
}

.dosen-popup-content {
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 90vh;
    padding: 0;
    overflow-y: auto;
}

/* Modal Header - Professional Look */
.popup-header {
    padding: var(--space-4) var(--space-6);
    background-color: #fff;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.popup-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

.popup-header p {
    font-size: var(--text-xs);
    color: var(--primary-600);
    margin: 4px 0 0 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popup-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gray-100);
    color: var(--gray-600);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 16px;
}

.popup-close-btn:hover {
    background-color: var(--danger-50);
    color: var(--danger-600);
    transform: rotate(90deg);
}

/* Modal Body - Full Frame Iframe */
.popup-body {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .popup-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .popup-header {
        padding: var(--space-3) var(--space-4);
    }
}

/* ===== NEW REGISTRATION PAGE REDESIGN ===== */

/* 1. Hero Section Centered */
.hero-registration {
    text-align: center;
    padding: 80px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.registration-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #cbd5e1;
    /* Default light text base */
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #a5b4fc 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Badges / Chips */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    /* Glassy dark theme */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-pill i {
    color: #fca5a5;
    /* Example accent color */
}

/* 3. Form Card Container */
.grid-registration {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.card-pendaftaran.main-form {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* 4. Form Header Simple */
.card-header-simple {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.header-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.header-text h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.header-text p {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* 5. Progress Line */
.progress-line-container {
    height: 4px;
    background: #f1f5f9;
    width: 100%;
}

.progress-line {
    height: 100%;
    width: 0%;
    background: #3b82f6;
    transition: width 0.3s ease;
}

/* Override existing form styles if needed */
.card-body-pendaftaran {
    padding: 40px;
}

/* ===== FORM STYLES REFINEMENT ===== */
.input,
select.input,
textarea.input {
    width: 100%;
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #334155;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom Select Arrow */
select.input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.input:focus,
select.input:focus,
textarea.input:focus {
    background-color: #fff;
    border-color: #6366f1;
    /* Primary brand color matching gradient */
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

textarea.input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* ===== PAGE HEADER STYLES ===== */
/* Note: Using .page-header-section from core.css */

/* ===== VISI MISI UNIFIED STYLES ===== */
.vm-card {
    padding: 3rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-600);
    margin-bottom: 5rem;
    transition: transform 0.3s ease;
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.vm-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vm-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.vm-icon.primary {
    background-color: var(--primary-50);
    color: var(--primary-600);
}

.vm-icon.success {
    background-color: var(--success-50);
    color: var(--success-600);
}

.vm-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.vm-text {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.8;
    max-width: 60rem;
    margin: 0 auto;
    font-style: italic;
    text-align: center;
}

.vm-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    margin: 3rem 0;
}

.vm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 60rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Space between list items */
}

.vm-list-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.vm-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--success-100);
    color: var(--success-700);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}


/* ===== PRODI ABOUT SECTION STYLES ===== */
.prodi-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default mobile: stacked */
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .prodi-about-grid {
        grid-template-columns: 1.5fr 1fr;
        /* Desktop: Side-by-side */
    }
}

.prodi-about-text {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.8;
}

.prodi-about-text p {
    color: #1f2937 !important;
    /* Force dark color */
    opacity: 1 !important;
    /* Force visibility */
    margin-bottom: 1.5rem;
}

.prodi-about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-shadow: none;
    /* Ensure cleanliness */
}

.prodi-about-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.prodi-about-image img:hover {
    transform: scale(1.05);
}