
:root {
    --primary: hsl(218, 65%, 15%);
    --primary-light: hsl(218, 60%, 28%);
    --primary-dark: hsl(218, 75%, 9%);
    --secondary: hsl(38, 95%, 52%);
    --secondary-hover: hsl(38, 100%, 46%);
    --neutral-dark: hsl(220, 25%, 10%);
    --neutral-body: hsl(220, 15%, 28%);
    --neutral-light: hsl(220, 30%, 97%);
    --white: hsl(0, 0%, 100%);
    --success: hsl(145, 63%, 42%);
    --danger: hsl(354, 70%, 54%);
    --gray-200: hsl(220, 15%, 90%);
    --gray-300: hsl(220, 15%, 80%);
    --gray-600: hsl(220, 10%, 45%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(9, 30, 66, 0.04), 0 2px 4px -1px rgba(9, 30, 66, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(9, 30, 66, 0.05), 0 8px 16px -6px rgba(9, 30, 66, 0.03);
    --shadow-lg: 0 24px 50px -12px rgba(8, 28, 59, 0.08), 0 12px 24px -8px rgba(8, 28, 59, 0.04);
    --shadow-hover: 0 30px 60px -15px rgba(8, 28, 59, 0.12), 0 0 30px -5px rgba(38, 95, 52, 0.1);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    
    --bg-mesh: radial-gradient(at 10% 20%, rgba(30, 144, 255, 0.04) 0px, transparent 50%), radial-gradient(at 90% 80%, rgba(255, 165, 0, 0.03) 0px, transparent 50%);
}

/* Animations & Scroll Reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.reveal {
    opacity: 0;
    transition: var(--transition-smooth);
    will-change: transform, opacity;
}

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

.reveal-down {
    transform: translateY(-35px);
}

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

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

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

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered Delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }


/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--neutral-body);
    background-color: var(--neutral-light);
    background-image: var(--bg-mesh);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--neutral-dark);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 85px 0;
}

.section-bg {
    background-color: var(--white);
    background-image: radial-gradient(circle at 10% 20%, rgba(30, 144, 255, 0.01) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(255, 165, 0, 0.01) 0%, transparent 40%);
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
    animation: fadeInUp 0.8s ease forwards;
}

.section-title h2 {
    font-size: 2.3rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    color: var(--primary-dark);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-600);
    margin-top: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Page Header Banner (Internal pages) */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 55px 0 45px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), hsl(38, 100%, 65%), var(--secondary));
}

.page-header h2 {
    font-size: 2.3rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s ease forwards;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.15s forwards;
    opacity: 0;
}

.page-header-left {
    text-align: left;
}

.page-header-left p {
    margin: 0;
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(8, 28, 59, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 28, 59, 0.18);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, hsl(43, 100%, 45%) 100%);
    color: var(--neutral-dark);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.12);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-hover) 0%, hsl(43, 100%, 40%) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.22);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}


/* Header & Navbar */
.header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(9, 30, 66, 0.06);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(9, 30, 66, 0.08);
    background-color: rgba(255, 255, 255, 0.97);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

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

.logo-wrapper img {
    height: 50px;
    transition: var(--transition);
}

.logo-wrapper:hover img {
    transform: scale(1.05) rotate(3deg);
}

.logo-text h1 {
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--primary);
    font-weight: 800;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover {
    background-color: var(--neutral-light);
    color: var(--primary-light);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--neutral-body);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), left 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Nav Dropdown (Kegiatan) */
.nav-dropdown {
    position: relative;
}

/* Bridge to prevent dropdown from disappearing when cursor moves across the 12px gap */
@media (min-width: 993px) {
    .nav-dropdown::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 120%;
        height: 16px;
        background: transparent;
        z-index: 10;
        pointer-events: none;
    }
    .nav-dropdown:hover::before {
        pointer-events: auto;
    }
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--neutral-body);
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active .nav-dropdown-toggle {
    color: var(--primary);
}

.nav-dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown.active .nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    padding: 8px 0;
    z-index: 200;
    border: 1px solid var(--gray-200);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 7px 8px;
    border-style: solid;
    border-color: transparent transparent var(--gray-200) transparent;
}

.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 7px 5px 7px;
    border-style: solid;
    border-color: transparent transparent var(--white) transparent;
}

.nav-dropdown-menu.open {
    display: block;
    animation: dropdownFadeIn 0.2s ease forwards;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--neutral-body);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--primary-light);
    font-size: 0.85rem;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background-color: var(--neutral-light);
    color: var(--primary);
    padding-left: 26px;
}

.nav-dropdown-item.active i {
    color: var(--secondary);
}


/* Hero Section */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero {
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    will-change: transform, opacity;
}

.hero-bg.active {
    opacity: 1;
    z-index: 1;
    animation: kenBurns 20s ease-in-out alternate infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 20, 42, 0.93) 0%, rgba(13, 39, 77, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-content h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 22px;
    line-height: 1.15;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards;
    opacity: 0;
}

.hero-content div {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s forwards;
    opacity: 0;
}

/* Statistics section */
.stats {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    margin-top: 20px;
    position: relative;
    z-index: 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 42px 24px;
    animation: float 6s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item {
    border-right: 1px solid rgba(9, 30, 66, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    transition: var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(30, 144, 255, 0.08);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    transition: var(--transition-bounce);
    box-shadow: inset 0 2px 4px rgba(9, 30, 66, 0.03);
}

.stat-item:hover .stat-icon-wrapper {
    background-color: var(--secondary);
    color: var(--neutral-dark);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.2);
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.stat-title {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

/* Welcome Card Section */
.welcome-section {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.welcome-image {
    position: relative;
    z-index: 1;
}

.welcome-image::after {
    content: '';
    position: absolute;
    top: 15px;
    left: -15px;
    right: 15px;
    bottom: -15px;
    border: 3px solid var(--secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
    transition: var(--transition-bounce);
}

.welcome-image:hover::after {
    transform: translate(6px, -6px);
    border-color: var(--primary-light);
}

.welcome-slider {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.welcome-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    z-index: 0;
}

.welcome-slide.active {
    opacity: 1;
    z-index: 1;
}

.welcome-image:hover .welcome-slide.active {
    transform: scale(1.02);
}

.welcome-content {
    position: relative;
}

.quote-icon-backdrop {
    position: absolute;
    top: -30px;
    left: -20px;
    font-size: 5.5rem;
    color: rgba(9, 30, 66, 0.035);
    z-index: -1;
    pointer-events: none;
}

.welcome-content h3 {
    font-size: 2rem;
    margin-bottom: 22px;
    color: var(--primary);
    line-height: 1.3;
}

.welcome-content p {
    margin-bottom: 20px;
    color: var(--neutral-body);
}

.welcome-signature {
    margin-top: 30px;
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.head-profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.head-profile-image-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--neutral-light);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.welcome-signature-text {
    display: flex;
    flex-direction: column;
}

.welcome-signature h5 {
    font-size: 1.05rem;
    color: var(--neutral-dark);
    margin-bottom: 4px;
}

.welcome-signature p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* News / Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--neutral-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary);
    color: var(--neutral-dark);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.card-text {
    font-size: 0.92rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    padding: 0 24px 24px 24px;
    border-top: none;
    background-color: transparent;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover {
    color: var(--secondary);
}

/* Event List Section */
.events-section-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.event-strip {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    transition: var(--transition);
    border-left: 5px solid var(--primary);
}

.event-strip:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.event-date-box {
    background-color: var(--neutral-light);
    border-radius: var(--radius-sm);
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.event-date-day {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.event-date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gray-600);
}

.event-strip-content {
    flex-grow: 1;
}

.event-strip-content h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.event-strip-meta {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.event-strip-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Profiles/Static Pages Navigation & Styles */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.profile-layout > * {
    min-width: 0;
}

/* Detail Layout (News, Events, etc.) */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.detail-layout > * {
    min-width: 0;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
}

.contact-layout > * {
    min-width: 0;
}

.profile-sidebar {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.profile-menu {
    list-style: none;
}

.profile-menu-item {
    margin-bottom: 10px;
}

.profile-menu-link {
    display: block;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--neutral-body);
}

.profile-menu-link:hover, .profile-menu-link.active {
    background-color: var(--primary);
    color: var(--white);
}

.profile-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.profile-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 15px;
}

.profile-content h3 {
    margin: 25px 0 15px 0;
    color: var(--primary-light);
}

.profile-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.profile-content ol, .profile-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.profile-content li {
    margin-bottom: 8px;
}

/* Organization Structure Cards */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.member-card {
    background-color: var(--neutral-light);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.member-photo-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
}

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

.member-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.member-position {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.member-info {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 8px;
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Filtering & Search Layout */
.filter-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--neutral-dark);
}

.form-control {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 30, 66, 0.08);
}

/* Directory Tables */
.table-responsive {
    overflow-x: auto;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
}

.table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.92rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: rgba(9, 30, 66, 0.02);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-success {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--success);
}

.badge-warning {
    background-color: rgba(243, 156, 18, 0.15);
    color: var(--secondary);
}

.badge-primary {
    background-color: rgba(9, 30, 66, 0.1);
    color: var(--primary);
}

/* Document Download Layout */
.document-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.document-category-block {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.document-category-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.document-item:last-child {
    border-bottom: none;
}

.document-info {
    flex-grow: 1;
    padding-right: 20px;
}

.document-title {
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 4px;
}

.document-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.document-meta {
    font-size: 0.78rem;
    color: var(--gray-600);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 6px;
}

.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    font-weight: 600;
}

.pagination li.active span {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination li.disabled span {
    color: var(--gray-300);
    cursor: not-allowed;
}

/* Footer styling */
.footer {
    background-color: var(--neutral-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 20px 0;
    border-top: 4px solid var(--secondary);
}

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

.footer-widget h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 1.5px;
}

.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-block img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-logo-block h3 {
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1.2;
}

.footer-logo-block p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

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

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.92rem;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1rem;
}

.social-btn:hover {
    background-color: var(--secondary);
    color: var(--neutral-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Flash alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Responsive breakdowns */
@media (max-width: 1200px) {
    .nav {
        gap: 12px;
    }
    .nav-link {
        font-size: 0.88rem;
    }
    .logo-wrapper img {
        height: 42px;
    }
    .logo-text h1 {
        font-size: 1.1rem;
    }
    .profile-layout {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .header .container {
        padding: 10px 15px;
    }

    .logo-wrapper {
        gap: 10px;
    }

    .logo-wrapper img {
        height: 38px;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.65rem;
        line-height: 1.25;
    }

    .nav-toggle {
        display: block;
        padding: 6px 10px;
        font-size: 1.35rem;
    }
    
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--gray-200);
        padding: 20px;
        gap: 10px;
        align-items: stretch;
        z-index: 99;
    }
    
    .nav.show {
        display: flex;
    }
    
    .nav-link {
        padding: 10px 15px;
        border-radius: var(--radius-sm);
        display: block;
        width: 100%;
    }
    
    .nav-link:hover, .nav-link.active {
        background-color: var(--neutral-light);
        padding-left: 20px;
    }
    
    .nav-link::after {
        display: none;
    }

    /* Dropdown mobile: accordion style */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 15px;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
    }

    .nav-dropdown-toggle:hover,
    .nav-dropdown.active .nav-dropdown-toggle {
        background-color: var(--neutral-light);
        padding-left: 20px;
        color: var(--primary);
    }

    .nav-dropdown.active .nav-dropdown-toggle::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--secondary);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        margin: 0 0 4px 12px;
        padding: 4px 0;
        background-color: var(--neutral-light);
        min-width: unset;
    }

    .nav-dropdown-menu::before,
    .nav-dropdown-menu::after {
        display: none;
    }

    .nav-dropdown-menu.open {
        animation: none;
    }

    .nav-dropdown-item {
        padding: 9px 16px;
        font-size: 0.88rem;
        border-radius: var(--radius-sm);
    }

    .nav-dropdown-item:hover,
    .nav-dropdown-item.active {
        padding-left: 22px;
        background-color: rgba(9, 30, 66, 0.05);
    }


    /* Horizontal scrollable profile menu on tablets/mobile */
    .profile-sidebar {
        padding: 15px;
        position: static;
        margin-bottom: 25px;
    }
    .profile-menu {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .profile-menu-item {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .profile-menu-link {
        padding: 10px 16px;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    
    .welcome-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-section-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .table-responsive .table {
        min-width: 700px;
    }

    /* Sembunyikan kolom Sumber Dana & Jumlah Dana di tablet */
    .table th.col-hide-md,
    .table td.col-hide-md {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 380px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .document-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .document-info {
        padding-right: 0;
    }

    .document-item .btn {
        width: 100%;
        text-align: center;
    }

    .event-strip {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }

    .event-date-box {
        margin-bottom: 15px;
    }

    .event-strip-meta {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }

    /* Tabel mobile: hanya tampilkan kolom utama */
    .table-responsive .table {
        min-width: 0;
        width: 100%;
    }

    .table th.col-hide-sm,
    .table td.col-hide-sm {
        display: none;
    }

    .table th,
    .table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .logo-wrapper img {
        height: 33px;
    }

    .logo-text h1 {
        font-size: 0.88rem;
    }

    .logo-text p {
        font-size: 0.56rem;
        line-height: 1.2;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .welcome-content h3 {
        font-size: 1.5rem;
    }

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

    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Premium Extra Styles */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--secondary);
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.quick-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-link-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background-color: var(--neutral-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--neutral-dark);
    transition: var(--transition);
}

.quick-link-list li a:hover {
    background: linear-gradient(135deg, var(--white) 0%, var(--neutral-light) 100%);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

/* Responsive updates for stats and grids */
@media (max-width: 768px) {
    .stats {
        padding: 30px 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 15px !important;
    }
    .stat-item {
        border-right: none !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .stat-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    .profile-content {
        padding: 26px 20px;
    }
    .profile-content h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 16px;
    }
    .welcome-image::after {
        display: none;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .profile-content {
        padding: 20px 14px;
    }
    .profile-content h2 {
        font-size: 1.45rem;
    }
}
