/* ==========================================================================
   Main Stylesheet - UNTAD Kesmas Theme
   Lead Developer: Ahmad Safi'i, S.Kom, M.M. (UPA TIK UNTAD)
   Path: assets/css/main.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section Styling - Premium, Macho & Vibrant Edition
   -------------------------------------------------------------------------- */

/* Background Gradient Deep Royal Navy & Indigo (Maco, Rich & Elegan) */
.bg-hero-dark {
    background: linear-gradient(135deg, #0f0728 0%, #1e1045 45%, #180938 100%) !important;
    position: relative;
}

/* Ornamen Light Ambient Effect di Latar Hero */
.bg-hero-dark::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 1;
}

.min-vh-hero {
    min-height: 500px;
}

/* Hero Typography */
.hero-title {
    line-height: 1.18;
    letter-spacing: -0.5px;
}

.text-gold-accent {
    color: #fbbf24 !important; /* Aksen Emas Menyala (Maco & Kontras High-Readability) */
    text-shadow: 0 2px 12px rgba(251, 191, 36, 0.35);
}

.hero-desc {
    line-height: 1.65;
    color: #cbd5e1 !important; /* Light Slate Gray */
    font-size: 0.95rem;
}

/* Custom Buttons Hero (Vibrant Gradient & Glow Shadows) */
.btn-purple-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-purple-hero:hover {
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.6) !important;
}

.btn-outline-hero {
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
}

/* Masking Foto Kanan (Diagonal Clip Path Sesuai UI Mockup Target) */
@media (min-width: 992px) {
    .hero-img-mask {
        clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
        object-fit: cover;
    }
}

/* Carousel Navigation Buttons (Lingkaran Transparan Blur) */
.hero-nav-btn {
    width: 48px !important;
    height: 48px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.85 !important;
    z-index: 10;
}

.hero-nav-btn:hover {
    opacity: 1 !important;
}

.carousel-nav-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.carousel-nav-icon:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.5);
}

/* --------------------------------------------------------------------------
   2. Global Helper & Custom Card Styles
   -------------------------------------------------------------------------- */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

/* Tracking / Letter Spacing */
.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Custom Styles: Pengumuman Modern Glossy Pro */
.bg-pengumuman-glossy {
    background: linear-gradient(135deg, #f4f7fb 0%, #e2e9f3 100%);
    min-height: 85vh;
}

/* Glassmorphism Card Effect */
.glossy-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 32, 96, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.glossy-title {
    color: #0b2545;
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.glossy-divider {
    border-top: 2px solid rgba(13, 110, 253, 0.15);
    margin: 1.5rem 0;
}

/* Badge Glossy */
.glossy-badge-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Format Isi Pengumuman */
.glossy-content {
    color: #2b303a;
    font-size: 1.05rem;
    line-height: 1.8;
}

.glossy-content p {
    margin-bottom: 1.2rem;
}

.glossy-content ul, .glossy-content ol {
    background: rgba(240, 244, 250, 0.7);
    padding: 1.2rem 1.2rem 1.2rem 2.5rem;
    border-radius: 12px;
    border-left: 4px solid #0d6efd;
    margin: 1.5rem 0;
}

.glossy-content li {
    margin-bottom: 0.5rem;
}

/* Download Box Glossy */
.glossy-download-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f9 100%);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.download-icon-wrapper {
    width: 50px;
    height: 50px;
    background: #ffebee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-glossy-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0040a8 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.35);
    transition: all 0.3s ease;
}

.btn-glossy-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.45);
    color: #fff;
}

/* Utility */
.fs-14 { font-size: 0.875rem; }

/* Card Hover Effect */
.glossy-card-hover {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glossy-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 32, 96, 0.12);
}

.glossy-link-title {
    transition: color 0.2s ease;
}

.glossy-link-title:hover {
    color: #0d6efd !important;
}

/* Pagination Style */
.glossy-pagination .nav-links {
    display: flex;
    gap: 8px;
}

.glossy-pagination a, 
.glossy-pagination span {
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #0b2545;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.glossy-pagination .current {
    background: #0d6efd;
    color: #fff;
}

.fs-12 { font-size: 0.75rem; }
.fs-14 { font-size: 0.875rem; }

/* ==========================================================================
   3. Penyelarasan Card Grid Beranda (Berita, Pengumuman, Agenda)
   ========================================================================== */

/* Penyelarasan Judul Utama & Sub-Judul dalam Card Grid */
.home-dynamic-content .card h6 {
    font-size: 0.813rem !important; /* 13px - Presisi seragam di semua kolom */
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #212529 !important;
    text-transform: none !important; /* Mencegah kapitalisasi terpaksa */
    letter-spacing: normal !important;
}

/* Penyelarasan Link Judul saat di-hover */
.home-dynamic-content .card h6 a {
    color: #212529 !important;
    text-decoration: none !important;
    transition: color 0.2s ease-in-out;
}

.home-dynamic-content .card h6 a:hover {
    color: #0d6efd !important; /* Warna biru primer konsisten saat di-hover */
}

/* Penyelarasan Header Card (BERITA TERBARU, PENGUMUMAN, AGENDA) */
.home-dynamic-content .card .border-bottom h6,
.home-dynamic-content .card .border-bottom h5 {
    font-size: 0.938rem !important; /* 15px */
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
}

/* Penyelarasan Ukuran Icon Box Kiri */
.home-dynamic-content .card .bg-primary-subtle {
    width: 38px !important;
    height: 38px !important;
}

/* ==========================================================================
   4. Card Grid Beranda - Modern Pro Glossy (Glassmorphism)
   ========================================================================== */

/* Container Utama Dynamic Content */
.home-dynamic-content {
    background: linear-gradient(135deg, #f4f7fb 0%, #e2e9f3 100%);
}

/* Card Modern Pro Glossy Effect */
.home-dynamic-content .card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 32, 96, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Card Hover Elevation */
.home-dynamic-content .card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(13, 110, 253, 0.2) !important;
}

/* Header Card Accent */
.home-dynamic-content .card .border-bottom {
    border-bottom: 2px solid rgba(13, 110, 253, 0.1) !important;
}

.home-dynamic-content .card .border-bottom h6,
.home-dynamic-content .card .border-bottom h5 {
    color: #0b2545 !important;
    font-size: 0.938rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
}

/* Glossy Icon Box */
.home-dynamic-content .card .bg-primary-subtle {
    background: linear-gradient(135deg, #e7f1ff 0%, #cce5ff 100%) !important;
    color: #0d6efd !important;
    border: 1px solid rgba(13, 110, 253, 0.15);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Glossy Hover Item List */
.home-dynamic-content .hover-bg-light {
    transition: all 0.25s ease;
    border-radius: 12px;
}

.home-dynamic-content .hover-bg-light:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Penyelarasan Font Judul Item */
.home-dynamic-content .card h6:not(.text-uppercase) {
    font-size: 0.813rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #212529 !important;
    text-transform: none !important;
}

.home-dynamic-content .card h6 a {
    color: #212529 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.home-dynamic-content .card h6 a:hover {
    color: #0d6efd !important;
}

/* Pill Badge Glossy untuk Tanggal Agenda */
.home-dynamic-content .bg-primary, 
.home-dynamic-content .bg-dark {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}