/**
 * ===========================================
 * PASCASARJANA UNISMUH MAKASSAR
 * Public Frontend Custom Stylesheet
 * ===========================================
 * 
 * Design System:
 * - Primary Blue: #05339C (Navy Academic)
 * - Gold Accent: #E5C95F (Prestige)
 * - Dark: #1a1a2e
 * - Light: #f8f9fa
 * 
 * Typography:
 * - Headings: Playfair Display
 * - Body: Poppins
 * ===========================================
 */

/* ========================
   CSS CUSTOM PROPERTIES
   ======================== */
:root {
    /* Colors */
    --primary: #05339C;
    --primary-dark: #032670;
    --primary-light: #1e4db7;
    --primary-rgb: 5, 51, 156;
    
    --gold: #E5C95F;
    --gold-dark: #c9aa3d;
    --gold-light: #f0d97a;
    --gold-rgb: 229, 201, 95;
    
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --darker: #0f0f1a;
    
    --light: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #6c757d;
    --text: #4a4a5a;
    --text-light: #717186;
    
    --white: #ffffff;
    --black: #000000;
    
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 10px 30px rgba(var(--primary-rgb), 0.3);
    --shadow-gold: 0 10px 30px rgba(var(--gold-rgb), 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-preloader: 9999;
}

/* ========================
   BASE RESET & TYPOGRAPHY
   ======================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* Selection Color */
::selection {
    background-color: var(--gold);
    color: var(--dark);
}

/* ========================
   PRELOADER
   ======================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: var(--z-preloader);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.preloader-logo img {
    width: 180px;
    height: auto;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.preloader-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 3px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1.5s linear reverse infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* ========================
   HEADER / NAVIGATION
   ======================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    transition: var(--transition-smooth);
}

/* Top Bar */
.header-topbar {
    background-color: var(--primary-dark);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.topbar-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.topbar-info li i {
    color: var(--gold);
    font-size: 11px;
}

.topbar-info li a,
.topbar-info li span {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.topbar-info li a:hover {
    color: var(--gold);
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
}

.topbar-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.topbar-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: var(--transition-fast);
}

.topbar-social a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* Main Navbar */
.main-navbar {
    background-color: transparent;
    /* padding: 10px 15px 10px 10px; */
    transition: var(--transition-smooth);
    padding-right: 30px;
}

.main-header.scrolled .main-navbar {
    background-color: #ffffffbf;
    box-shadow: var(--shadow-md);
    border-radius: 10px;
    /*margin-right: 30px;*/
    justify-self: center;
}

.main-header.scrolled .header-topbar {
    transform: translateY(-100%);
    opacity: 0;
}

/* Logo */
.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    max-width: 400px;
}

.navbar-brand img {
    /* height: 60px; */
    width: auto;
    transition: var(--transition-base);
}

.navbar-brand .logo-dark {
    display: none;
}

.main-header.scrolled .navbar-brand .logo-light {
    display: none;
}

.main-header.scrolled .navbar-brand .logo-dark {
    display: block;
}

.main-header.scrolled .navbar-brand img {
    height: 50px;
}

/* Nav Links */
.navbar-nav {
    gap: 5px;
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--white);
    padding: 10px 18px !important;
    position: relative;
    transition: var(--transition-base);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

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

.main-header.scrolled .navbar-nav .nav-link {
    color: var(--dark);
}

.main-header.scrolled .navbar-nav .nav-link:hover,
.main-header.scrolled .navbar-nav .nav-link.active {
    color: rgb(93, 111, 194);
}

.main-header.scrolled .navbar-nav .nav-link::after {
    background-color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 15px 0;
    min-width: 220px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
}

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

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 16px;
    height: 16px;
    background: var(--white);
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    font-size: 14px;
    padding: 10px 25px;
    color: var(--text);
    transition: var(--transition-fast);
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
    padding-left: 30px;
}

.dropdown-item:hover::before {
    height: 60%;
}

/* Search Button */
.nav-search {
    margin-left: 15px;
}

.btn-search {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.btn-search:hover {
    background-color: var(--gold-dark);
    transform: scale(1.05);
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    /* padding: 10px; */
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 28px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
}

.navbar-toggler-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition-base);
}

.main-header.scrolled .navbar-toggler-icon span {
    background-color: var(--dark);
}

/* ========================
   MOBILE MENU
   ======================== */
.mobile-menu {
    width: 320px !important;
    background: var(--white);
}

.mobile-menu .offcanvas-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.offcanvas-brand img {
    height: 45px;
    width: auto;
}

.mobile-menu .offcanvas-body {
    padding: 20px;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    font-weight: 500;
    color: var(--dark);
}

.mobile-nav-link i:first-child {
    margin-right: 12px;
    color: var(--primary);
}

.mobile-nav-link .arrow {
    transition: var(--transition-base);
}

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

.mobile-submenu {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    display: none;
}

.mobile-nav-item.active .mobile-submenu {
    display: block;
}

.mobile-submenu li a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text);
}

.mobile-search .form-control {
    border-radius: var(--radius-full);
    padding-left: 20px;
}

.mobile-contact-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 15px;
}

.mobile-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-contact-list li {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
}

.mobile-contact-list i {
    margin-right: 10px;
    color: var(--gold);
}

/* ========================
   SEARCH MODAL
   ======================== */
.search-modal .modal-content {
    background: transparent;
    border: none;
}

.search-modal .modal-body {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    position: relative;
}

.search-modal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.search-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 25px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 18px;
    transition: var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-submit:hover {
    background: var(--primary-dark);
}

.search-suggestions {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.search-suggestions a {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    background: var(--light);
    border-radius: var(--radius-full);
    color: var(--text);
    transition: var(--transition-fast);
}

.search-suggestions a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

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

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

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

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

.btn i {
    /* margin-left: 8px; */
    transition: var(--transition-fast);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ========================
   HERO SLIDER
   ======================== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 500px;
    width: 100%;
    /* max-width: 1334px; */
    overflow: hidden;
    margin-top:30px;
}

.hero-slide {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* max-width: 1334px; */
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

.swiper-slide-active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* max-width: 1334px; */
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.6) 0%,
        rgba(26, 26, 46, 0.70) 100%
    );
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 100px;
}

.hero-slide-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(var(--gold-rgb), 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-radius: var(--radius-full);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards 0.3s;
}

.hero-slide-title {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards 0.5s;
}

.hero-slide-title span {
    color: var(--gold);
}

.hero-slide-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 35px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards 0.7s;
}

.hero-slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards 0.9s;
}

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

/* Hero Slider Navigation */
.hero-slider-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
}

.hero-slider .swiper-pagination {
    position: absolute;
    bottom: 220px;
    z-index: 10;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: var(--transition-base);
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--gold);
    width: 40px;
    border-radius: 6px;
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-base);
}

.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
    background: var(--gold);
    color: var(--dark);
}

.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    margin-top: 10px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* ========================
   SECTIONS GENERAL
   ======================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-sm {
    padding: 60px 0;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
    color: var(--white);
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 15px;
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.section-label::before {
    right: calc(100% + 15px);
}

.section-label::after {
    left: calc(100% + 15px);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    color: var(--text-light);
    font-size: 1.0625rem;
}

/* Left-aligned Section Header */
.section-header-left {
    text-align: left;
    margin-bottom: 40px;
}

.section-header-left .section-label::before {
    display: none;
}

/* ========================
   QUICK ACCESS / BOX ICONS
   ======================== */
.quick-access {
    position: relative;
    margin-top: -120px;
    z-index: 2;
}

.quick-access-inner {
    /* background: var(--white); */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0;
    overflow: hidden;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.quick-access-item {
    padding: 40px 25px;
    text-align: center;
    border-right: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    background: #ffffffbf;
}

.quick-access-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: var(--transition-smooth);
    z-index: 0;
}

.quick-access-item:hover::before {
    height: 100%;
}

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

.quick-access-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 28px;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.quick-access-item:hover .quick-access-icon {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.1) rotate(5deg);
}

.quick-access-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.quick-access-item:hover .quick-access-title {
    color: var(--white);
}

.quick-access-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.quick-access-item:hover .quick-access-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================
   WELCOME BANNER
   ======================== */
.welcome-section {
    position: relative;
    overflow: hidden;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-image-wrapper {
    position: relative;
}

.welcome-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.welcome-image img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

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

.welcome-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    box-shadow: var(--shadow-gold);
}

.welcome-badge-years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.welcome-badge-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-text {
    font-size: 1.0625rem;
    color: var(--text);
    margin-bottom: 25px;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.welcome-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.welcome-feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.welcome-feature-text h5 {
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 3px;
}

.welcome-feature-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ========================
   NEWS & ARTICLES
   ======================== */
.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.news-tab {
    padding: 12px 30px;
    border: 2px solid var(--light-gray);
    background: transparent;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
}

.news-tab.active,
.news-tab:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* News Card */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.news-card-body {
    padding: 25px;
}

.news-card-date {
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: var(--dark);
}

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

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-card-link:hover {
    color: var(--primary-dark);
}

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

.news-card-link:hover i {
    transform: translateX(5px);
}

/* Featured News Card */
.news-card-featured {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-featured .news-card-image {
    height: 300px;
}

/* News List (Horizontal) */
.news-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.news-list-image {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.news-list-content {
    flex: 1;
}

.news-list-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.news-list-title a {
    color: var(--dark);
}

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

.news-list-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================
   AGENDA & ANNOUNCEMENTS
   ======================== */
.agenda-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    margin-bottom: 20px;
}

.agenda-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.agenda-date {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    color: var(--white);
}

.agenda-date-day {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}

.agenda-date-month {
    font-size: 13px;
    text-transform: uppercase;
}

.agenda-content {
    flex: 1;
}

.agenda-title {
    font-size: 1.0625rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 8px;
}

.agenda-title a {
    color: var(--dark);
}

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

.agenda-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.agenda-meta i {
    color: var(--gold);
    margin-right: 5px;
}

/* Announcement Card */
.announcement-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gold);
    transition: var(--transition-base);
    margin-bottom: 20px;
}

.announcement-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
}

.announcement-title {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 10px;
}

.announcement-title a {
    color: var(--dark);
}

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

.announcement-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================
   EXECUTIVES / LEADERS
   ======================== */
.executives-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.executives-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
}

.executive-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.executive-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    position: relative;
}

.executive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(var(--gold-rgb), 0.3);
    transition: var(--transition-base);
}

.executive-card:hover .executive-image img {
    border-color: var(--gold);
    transform: scale(1.05);
}

.executive-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed rgba(var(--gold-rgb), 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.executive-name {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.executive-title {
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.executive-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition-fast);
}

.executive-link:hover {
    color: var(--gold);
}

/* ========================
   GALLERY
   ======================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
}

.gallery-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition-bounce);
}

.gallery-item:hover .gallery-view-btn {
    transform: translate(-50%, -50%) scale(1);
}

/* ========================
   FOOTER
   ======================== */
.main-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
}

/* Footer CTA */
.footer-cta {
    background: var(--darker);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.1) 0%, transparent 70%);
}

.footer-cta-inner {
    position: relative;
    z-index: 1;
}

.footer-cta-content h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.footer-cta-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Footer Main */
.footer-main {
    padding: 80px 0 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--dark);
}

.footer-widget-title {
    color: var(--white);
    font-size: 1.125rem;
    font-family: var(--font-body);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-list li i {
    color: var(--gold);
    margin-top: 4px;
}

.footer-contact-list .contact-detail {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 10px;
}

.footer-links a:hover::before {
    width: 10px;
}

.footer-links .see-all {
    color: var(--gold);
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* ========================
   BACK TO TOP
   ======================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--dark);
}

/* ========================
   PAGE HEADER / BREADCRUMB
   ======================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    color: var(--white);
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a:hover {
    color: var(--gold);
}

.breadcrumb-item.active {
    color: var(--gold);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ========================
   PAGINATION
   ======================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    gap: 8px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    color: var(--text);
    font-weight: 500;
    transition: var(--transition-base);
}

.page-link:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ========================
   FORMS
   ======================== */
.form-control {
    padding: 14px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

/* ========================
   STAFF CARDS
   ======================== */
.staff-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.staff-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.staff-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

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

.staff-card-body {
    padding: 25px;
}

.staff-card-name {
    font-size: 1.125rem;
    margin-bottom: 5px;
}

.staff-card-position {
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.staff-card-department {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================
   FILE/DIRECTORY CARDS
   ======================== */
.file-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.file-card:hover {
    box-shadow: var(--shadow-md);
}

.file-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    flex-shrink: 0;
}

.file-icon.pdf { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.file-icon.doc { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.file-icon.xls { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }

.file-content {
    flex: 1;
}

.file-title {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 5px;
}

.file-meta {
    font-size: 13px;
    color: var(--text-light);
}

.file-download {
    width: 45px;
    height: 45px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition-base);
}

.file-download:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========================
   RESPONSIVE
   ======================== */
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: rgb(121, 146, 236);
}

#main-content {
    margin-top: -30px;
}
@media (max-width: 1199.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 80px 20px 20px;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-xl);
    }

    .navbar-brand img {
    height: 50px !important;
    width: auto;
    transition: var(--transition-base);
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav .nav-link {
        color: var(--dark);
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-search {
        display: none;
    }

    .navbar-toggler {
    border: none;
    /* padding: 10px; */
    background: transparent;
    /* margin-right: 15px; */
}
}

@media (max-width: 991.98px) {
    :root {
        --section-padding: 70px;
    }

    .hero-slide-content {
        padding-top: 80px;
    }

    .quick-access {
        margin-top: -50px;
    }

    .quick-access-item {
        padding: 30px 20px;
    }

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

    .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 60px;
    }

    .hero-slider {
        height: 100svh;
        min-height: 500px;
    }

    .hero-slide {
        height: 100svh;
        min-height: 500px;
    }

    .hero-slide-buttons {
        flex-direction: column;
    }

    .hero-slide-buttons .btn {
        width: 100%;
        justify-content: center;
    }

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

    .welcome-badge {
        width: 100px;
        height: 100px;
        right: 0;
        bottom: -20px;
    }

    .welcome-badge-years {
        font-size: 2rem;
    }

    .welcome-features {
        grid-template-columns: 1fr;
    }

    .agenda-card {
        flex-direction: column;
        text-align: center;
    }

    .agenda-date {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }

    .agenda-meta {
        flex-direction: column;
        gap: 8px;
    }

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

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575.98px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .quick-access-item {
        border-right: none;
    }

    .section-label::before,
    .section-label::after {
        display: none;
    }

    .news-tabs {
        flex-direction: column;
    }

    .news-tab {
        width: 100%;
    }

    .executive-image {
        width: 150px;
        height: 150px;
    }
}

/* ========================
   UTILITY CLASSES
   ======================== */
.text-primary { color: var(--primary) !important; }
.text-gold { color: var(--gold) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-gold { background-color: var(--gold) !important; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

/* Animation Classes for AOS */
[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--light) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================================= */
/* TAMBAHAN UNTUK LAYOUT BARU (MODERN UI/UX)         */
/* ================================================= */

/* 1. Header Transparent Logic Update */
.main-header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    /* padding-top: 10px; */
    justify-self: center;
}
.main-header.scrolled {
    /* background: rgba(255, 255, 255, 0.95); */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 10px 10px 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    /* max-width: 1443px; */
    justify-self: center;
}
.main-header.scrolled .header-topbar {
    margin-top: -50px;
    opacity: 0;
    pointer-events: none;
}

/* 2. Section Titles Modern */
.section-title-modern {
    font-size: clamp(2rem, 4vw, 2.5rem);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    z-index: 1;
    font-family: var(--font-heading);
    font-weight: 700;
}
.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--gold);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-20deg);
}

/* 3. Modern Info Cards */
.info-card-modern {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.info-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}
.info-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 4. Staff Horizontal Scroll (Snap) */
.staff-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
    padding: 20px 5px 40px 5px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.staff-scroll-container::-webkit-scrollbar {
    display: none;
}
.staff-card-modern {
    flex: 0 0 240px;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.staff-card-modern:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.staff-img-wrapper {
    width: 100%;
    height: 280px;
    position: relative;
}
.staff-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.staff-info-modern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0));
    text-align: center;
}

/* 5. Directory Cards */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.directory-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.directory-header {
    background: var(--dark);
    padding: 20px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d44 100%);
}
.directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.directory-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.directory-list li a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 25px;
}

/* 6. Gallery Albums */
.album-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}
.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.album-card:hover img {
    transform: scale(1.1);
}
.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 22, 43, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.album-card:hover .album-overlay {
    opacity: 1;
}

/* 7. Partners Infinite Scroll */
.partners-wrapper {
    overflow: hidden;
    background: #fff;
    position: relative;
    width: 100%;
}
.partners-track {
    display: flex;
    width: max-content;
    animation: scrollPartners 40s linear infinite;
}
.partner-logo {
    height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
}
.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 8. Footer Prodi 2 Kolom */
.footer-links.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
}

/* ======================================= */
/* FIX: NEWS & INFO LAYOUT                 */
/* ======================================= */

/* 1. Featured News Styling */
.news-featured-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    /* Rasio aspek gambar agar rapi (4:3 atau 16:9) */
    aspect-ratio: 16 / 9; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-featured-body h5 a:hover {
    color: var(--primary) !important;
}

/* 2. Mini News List Styling */
.news-mini-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.news-mini-img-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.news-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. Announcement & Agenda Hover Effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* 4. Utility for Text Truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5. Responsive Fixes */
@media (max-width: 768px) {
    .news-mini-img-wrapper {
        width: 60px;
        height: 60px;
    }
}

/* ======================================= */
/*  ARTICLE CATEGORY DESIGN            */
/* ======================================= */

/* 1. Header Image Consistency */
.article-header-img-wrapper {
    width: 100%;
    height: 220px; /* Tinggi Tetap untuk Semua Gambar */
    position: relative;
    overflow: hidden;
}

.article-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar tidak gepeng */
    transition: transform 0.6s ease;
}

.article-category-card:hover .article-header-img {
    transform: scale(1.05); /* Efek zoom halus saat hover */
}

/* 2. Overlay Title on Image */
.article-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 2;
}

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

/* 3. Article List Typography */
.article-list-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hover-gold:hover {
    color: var(--gold) !important;
    transition: color 0.2s ease;
}

/* 4. Line Clamp (Max 3 Lines with Ellipsis) */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    font-weight: 600;
    font-size: 1rem;
}

/* 5. Responsive Adjustment */
@media (max-width: 768px) {
    .article-header-img-wrapper {
        height: 180px;
    }
}

/* ======================================= */
/* FIX: STAFF AUTO SCROLL PROFESSIONAL     */
/* ======================================= */

/* 1. Marquee Wrapper */
.staff-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 50px; /* Ruang untuk shadow card */
    padding-top: 10px;
    background: #fff;
}

/* 2. Track Animation */
.staff-marquee-track {
    display: flex;
    gap: 30px; /* Jarak antar card */
    width: max-content;
    animation: scrollStaff 40s linear infinite; /* Kecepatan jalan */
}

/* Pause saat mouse diarahkan agar user bisa klik */
.staff-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollStaff {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Geser setengah karena kita duplikasi konten */
}

/* 3. Professional Card Design */
.staff-card-pro {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-align: center;
}

.staff-card-pro:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(5, 51, 156, 0.15); /* Shadow biru tipis */
    border-color: rgba(5, 51, 156, 0.2);
}

/* 4. Image Styling */
.staff-pro-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.staff-pro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.staff-card-pro:hover .staff-pro-img {
    transform: scale(1.05);
}

/* 5. Card Body & Typography */
.staff-pro-body {
    padding: 20px;
    position: relative;
    background: #fff;
}

.staff-pro-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.staff-pro-position {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.staff-pro-divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 15px;
    opacity: 0.5;
}

.staff-pro-link {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.staff-card-pro:hover .staff-pro-link {
    color: var(--primary);
}

/* ======================================= */
/* FIX: GALLERY LAYOUT (3 BIG + 5 SMALL)   */
/* ======================================= */

/* 1. Large Card Styling */
.gallery-card-lg {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery-card-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.6) 50%, transparent 100%);
    transform: translateY(0);
    transition: padding 0.3s ease;
}

.gallery-card-lg:hover .gallery-overlay {
    padding-bottom: 35px; /* Efek naik sedikit saat hover */
}

/* 2. Grid 5 Kolom untuk Item Kecil */
.gallery-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* 3. Small Card Styling */
.gallery-card-sm {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 140px; /* Lebih pendek */
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery-card-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8); /* Agak gelap sedikit */
}

.gallery-card-sm:hover img {
    transform: scale(1.1);
    filter: brightness(1); /* Terang saat hover */
}

.gallery-overlay-sm {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.gallery-card-sm:hover .gallery-overlay-sm {
    opacity: 1;
}

@media (max-width: 991px) {
    .gallery-grid-5 {
        grid-template-columns: repeat(3, 1fr); /* Tablet jadi 3 kolom */
    }
}

@media (max-width: 576px) {
    .gallery-card-lg {
        height: 220px;
    } 
    .gallery-grid-5 {
        display: flex;
        overflow-x: auto;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
    }
    
    .gallery-card-sm {
        min-width: 140px;
        scroll-snap-align: start;
    }
}

/* ======================================= */
/* SECTION PROFIL (STACKED IMAGES)         */
/* ======================================= */

.section-profile {
    padding: 100px 0;
    background-color: #fff;
}

/* 1. Background Decoration */
.profile-bg-decor {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(5, 51, 156, 0.03) 0%, transparent 70%);
    z-index: 0;
}

/* 2. Image Stack Wrapper */
.profile-image-stack {
    position: relative;
    padding: 20px 20px 50px 20px; /* Space for absolute elements */
    z-index: 1;
}

/* 3. Main Image */
.profile-main-img-wrapper {
    position: relative;
    z-index: 5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    /* border: 5px solid #fff; */
    width: 85%; /* Tidak full agar ada ruang untuk gambar belakang */
}

.profile-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.profile-image-stack:hover .profile-main-img {
    transform: scale(1.05);
}

/* 4. Decorative Stacked Images (Background) */
.profile-deco-img-wrapper {
    position: absolute;
    z-index: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    /* border: 3px solid #fff; */
    transition: all 0.5s ease;
}

.profile-deco-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Posisi Gambar Stack 1 (Kanan Atas) */
.profile-deco-img-wrapper.deco-1 {
    width: 45%;
    height: 180px;
    top: -30px;
    right: 0;
}

/* Posisi Gambar Stack 2 (Kanan Bawah) */
.profile-deco-img-wrapper.deco-2 {
    width: 40%;
    height: 150px;
    bottom: 20px;
    right: -10px;
    z-index: 6; /* Di atas gambar utama sedikit */
}

/* Hover Effect pada Stack */
.profile-image-stack:hover .deco-1 {
    transform: translateY(-10px) translateX(10px);
}
.profile-image-stack:hover .deco-2 {
    transform: translateY(10px) translateX(10px);
}

/* 5. Experience Badge Replaced */

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 6. Dot Pattern Decoration */
.dots-pattern {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.2;
    z-index: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .profile-image-stack {
        margin-bottom: 40px;
        text-align: center;
    }
    .profile-main-img-wrapper {
        width: 100%;
    }
    .profile-deco-img-wrapper.deco-1 {
        width: 30%;
        height: 120px;
    }
    .experience-badge {
        left: 20px;
        bottom: 20px;
    }
}

/* ======================================= */
/* UPDATE: PROFILE STATS & BADGE           */
/* ======================================= */

/* 1. New Accreditation Badge (Menggantikan Experience Badge) */
.accreditation-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(5, 51, 156, 0.3);
    text-align: center;
    z-index: 10;
    min-width: 140px;
    border: 2px solid rgba(255,255,255,0.2);
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.badge-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--gold);
    line-height: 1;
}

/* 2. Stats Mini Grid (Layout Statistik Baru) */
.stat-mini-item {
    position: relative;
    padding-left: 15px;
    border-left: 3px solid #eee;
    transition: all 0.3s ease;
}

.stat-mini-item:hover {
    border-left-color: var(--gold);
    transform: translateX(5px);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .accreditation-badge {
        left: 20px;
        bottom: 20px;
        min-width: auto;
        padding: 10px 20px;
    }
    .badge-value {
        font-size: 1.5rem;
    }
    .stat-mini-item {
        padding-left: 10px;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid #eee;
        padding-bottom: 10px;
    }
    .stat-mini-item:hover {
        transform: translateY(-5px);
        border-left-color: transparent;
        border-bottom-color: var(--gold);
    }
}

/* ======================================= */
/* FIX: DIRECTORY WIDGET DYNAMIC COLOR     */
/* ======================================= */

/* 1. Card Container (Base) */
.dir-widget-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    /* Border atas tebal sebagai penanda warna */
    border-top: 4px solid var(--primary); 
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dir-widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* 2. Header Style (Clean White) */
.dir-widget-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background: #fff; /* Header putih agar icon pop-up */
}

/* Base Icon Box */
.dir-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.dir-widget-card:hover .dir-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* --- LOGIKA WARNA DINAMIS (Cycle 4 Warna) --- */

/* Kartu ke-1, 5, 9... (BIRU - Primary) */
.directory-grid > div:nth-child(4n+1) .dir-widget-card { border-top-color: #05339C; }
.directory-grid > div:nth-child(4n+1) .dir-icon-box { background: linear-gradient(135deg, #05339C, #3b82f6); box-shadow: 0 4px 12px rgba(5, 51, 156, 0.3); }
.directory-grid > div:nth-child(4n+1) .dir-widget-footer a { color: #05339C; }

/* Kartu ke-2, 6, 10... (HIJAU - Emerald) */
.directory-grid > div:nth-child(4n+2) .dir-widget-card { border-top-color: #059669; }
.directory-grid > div:nth-child(4n+2) .dir-icon-box { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3); }
.directory-grid > div:nth-child(4n+2) .dir-widget-footer a { color: #059669; }

/* Kartu ke-3, 7, 11... (UNGU - Violet) */
.directory-grid > div:nth-child(4n+3) .dir-widget-card { border-top-color: #7c3aed; }
.directory-grid > div:nth-child(4n+3) .dir-icon-box { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }
.directory-grid > div:nth-child(4n+3) .dir-widget-footer a { color: #7c3aed; }

/* Kartu ke-4, 8, 12... (JINGGA - Gold/Orange) */
.directory-grid > div:nth-child(4n+4) .dir-widget-card { border-top-color: #d97706; }
.directory-grid > div:nth-child(4n+4) .dir-icon-box { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3); }
.directory-grid > div:nth-child(4n+4) .dir-widget-footer a { color: #d97706; }

/* ------------------------------------------- */

/* 3. List Item Style */
.dir-widget-body {
    flex-grow: 1;
    padding: 10px 0;
}

.dir-file-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.dir-file-item:hover {
    background-color: #f8f9fa;
    border-left-color: #ccc; /* Netral, warna dinamis ada di header */
}

/* Icon Wrapper Colors (Tetap Spesifik File Type) */
.file-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 15px;
    flex-shrink: 0;
}
.bg-danger-subtle { background-color: #fceceb; color: #dc3545; }
.bg-primary-subtle { background-color: #e8f1fc; color: #0d6efd; }
.bg-success-subtle { background-color: #e8f5e9; color: #198754; }
.bg-light { background-color: #f8f9fa; color: #6c757d; }

.file-info-wrapper {
    flex-grow: 1;
    overflow: hidden;
    margin-right: 10px;
}

.file-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.dir-file-item:hover .file-name {
    color: var(--dark); /* Keep neutral to avoid clash with dynamic header */
}

.file-meta {
    display: block;
    font-size: 0.75rem;
    color: #adb5bd;
}

.file-action {
    color: #dee2e6;
    transition: color 0.2s, transform 0.2s;
}

.dir-file-item:hover .file-action {
    color: var(--gold);
    transform: translateY(2px);
}

/* 4. Footer Style */
.dir-widget-footer {
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.dir-widget-footer a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.dir-widget-footer a:hover {
    opacity: 0.8;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .directory-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================= */
/* UPDATE: PARTNERS (Scroll Right & Img)   */
/* ======================================= */

/* 1. Update Animation Direction (Move Right) */
@keyframes scrollPartners {
    0% { transform: translateX(-50%); } /* Mulai dari posisi tengah (setelah duplikasi) */
    100% { transform: translateX(0); }  /* Bergerak ke posisi awal (kanan) */
}

/* 2. Styling Image Logo (Real Data) */
.partner-logo-img {
    height: 60px;          /* Tinggi tetap agar rapi */
    width: auto;           /* Lebar menyesuaikan */
    object-fit: contain;   /* Gambar tidak gepeng */
    filter: grayscale(100%); /* Hitam putih */
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Hover Effect: Jadi berwarna & membesar */
.partner-item:hover .partner-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Pastikan wrapper memotong overflow */
.partners-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Masking gradasi kiri-kanan agar halus */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Pastikan track cukup lebar */
.partners-track {
    display: flex;
    width: max-content;
    animation: scrollPartners 40s linear infinite; /* Kecepatan scroll */
}

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

/* ======================================= */
/* DETAIL PAGE TYPOGRAPHY & SIDEBAR        */
/* ======================================= */

/* Article Content - Readability Focus */
.typography-pro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.typography-pro p { margin-bottom: 1.5rem; }
.typography-pro h2 { font-size: 1.75rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--dark); }
.typography-pro h3 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; color: var(--dark); }
.typography-pro ul, .typography-pro ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.typography-pro li { margin-bottom: 0.5rem; }
.typography-pro blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 20px;
    font-style: italic;
    color: #555;
    margin: 2rem 0;
    background: #f9f9f9;
    padding: 20px;
}
.typography-pro img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }

/* Sidebar Styling */
.sidebar-title::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 0px;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.group-hover:hover .group-hover-text-primary { color: var(--primary) !important; transition: 0.2s; }
.hover-text-gold:hover { color: var(--gold) !important; transition: 0.2s; }
.last-no-border:last-child { border-bottom: none !important; margin-bottom: 0 !important; }

/* Breadcrumb Overlay */
.opacity-10 { opacity: 0.15; }

.container.position-relative.z-index-1.text-white {
    margin-top: 100px;
}

button.btn.rounded-circle {
    border-radius: 50% !important;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;     /* tengah vertikal */
    justify-content: center; /* tengah horizontal */
    padding: 0;              /* penting supaya icon benar2 center */
}

/* ======================================= */
/* ARTICLE LIST & DETAIL STYLES            */
/* ======================================= */

/* 1. List Style (Horizontal Card) */
.article-thumb {
    width: 100%;
    max-width: 240px; /* Lebar thumbnail di desktop */
}
.article-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-card-horizontal:hover .article-thumb img {
    transform: scale(1.03);
}
.hover-text-primary:hover {
    color: var(--primary) !important;
}

/* 2. List Group Active State */
.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* 3. Detail Typography */
.display-6 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
}
.bg-primary-subtle {
    background-color: #e8f1fc; /* Light Blue */
}
.x-small {
    font-size: 0.75rem;
}
.border-bottom-dashed {
    border-bottom: 1px dashed #dee2e6 !important;
}

/* 4. Responsive */
@media (max-width: 768px) {
    .article-thumb {
        max-width: 100%; /* Gambar full width di mobile */
    }
    .article-thumb img {
        height: 200px;
    }
}

/* ======================================= */
/* GALLERY STYLES                          */
/* ======================================= */

/* 1. Album Card (List Page) */
.gallery-album-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.album-cover-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-album-card:hover .album-cover {
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 2;
    width: 100%;
    height:100%;
}

/* 2. Photo Item (Detail Page) */
.gallery-item-card {
    cursor: pointer;
}
.gallery-item-card .transition-transform {
    transition: transform 0.4s ease;
}
.gallery-item-card:hover .transition-transform {
    transform: scale(1.1);
}

/* Overlay Hover Effect */
.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 51, 156, 0.6); /* Warna Primary Transparan */
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item-card:hover .gallery-hover-overlay {
    opacity: 1;
}

/* GLightbox Customization (Optional) */
.gslide-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* Shadow untuk icon play agar kontras dengan background terang */
.drop-shadow {
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

/* Pastikan z-index icon play di bawah hover overlay */
.z-index-1 {
    z-index: 1;
}
.gallery-hover-overlay {
    z-index: 2; /* Overlay hover menutupi icon play statis */
}

.video-icon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Menggunakan Flexbox */
    justify-content: center; /* Menengahkan secara horizontal */
    align-items: center; /* Menengahkan secara vertikal */
    z-index: 5; /* Di atas gambar, tapi di bawah hover overlay */
    pointer-events: none; /* Penting: agar klik tembus ke link di bawahnya */
}

/* ======================================= */
/* DIRECTORY LIST STYLES                   */
/* ======================================= */

.file-card-horizontal {
    border: 1px solid #f0f0f0;
}

.file-card-horizontal:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.file-icon-box {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Background warna ikon spesifik jika bootstrap utility tidak cukup */
.bg-primary { background-color: var(--primary) !important; }
.bg-danger { background-color: #dc3545 !important; } /* PDF Red */
.bg-success { background-color: #198754 !important; } /* Excel Green */
.bg-warning { background-color: #ffc107 !important; } /* PPT Orange/Yellow */
.bg-secondary { background-color: #6c757d !important; } /* Default Grey */

/* List Group Active override */
.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}
.list-group-item.active i {
    opacity: 1 !important;
}

/* ======================================= */
/* ALUMNI STYLES                           */
/* ======================================= */

.x-small {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Modal Styling */
.modal-content {
    border-radius: 1rem;
}
.bg-primary-subtle {
    background-color: #e8f1fc !important; /* Warna biru muda lembut */
    color: var(--primary) !important;
}

.img-wrapper-custom {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.img-wrapper-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* seperti background-size: cover */
    object-position: center;
    display: block;
}

/* Staff Tabs Active State */
.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}
.list-group-item.active i {
    color: #fff !important;
}
.w-25px {
    width: 25px;
    display: inline-block;
}

.staff-swiper {
    padding-bottom: 20px; /* Ruang untuk shadow card */
    padding-top: 10px;
}
.staff-card-pro {
    /* Pastikan width card konsisten di dalam slider */
    width: 100%;
    max-width: 280px; 
}