/* ============================================
   PUBLIC MODERN DESIGN SYSTEM
   Luxury & Premium Aesthetic
   ============================================ */

:root {
    /* Colors matching internal system */
    --primary-blue: #0066FF;
    --secondary-cyan: #00D4FF;
    --accent-purple: #7C3AED;
    --accent-pink: #EC4899;

    /* Backgrounds */
    --bg-light: #F8FAFC;
    --bg-gradient-start: #EEF2FF;
    --bg-gradient-end: #E0F2FE;

    /* Text */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   HERO SECTION WITH LOGO BACKGROUND
   ============================================ */
.hero-section-modern {
    position: relative;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    padding: 26rem 0 6rem !important;
    overflow: hidden;
    background: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
}

.hero-logo-background {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.08;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.hero-logo-background img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-50%) rotate(0deg);
    }

    50% {
        transform: translateY(-55%) rotate(5deg);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease-out;
}

.hero-badge-modern i {
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #E0F2FE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description-modern {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-blue);
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Floating Cards Animation */
.hero-floating-cards {
    display: grid;
    gap: 1.5rem;
    animation: slideInRight 0.8s ease-out 0.3s both;
}

.floating-card-modern {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-card-modern:nth-child(2) {
    animation-delay: 1s;
}

.floating-card-modern:nth-child(3) {
    animation-delay: 2s;
}

.floating-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.floating-card-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.floating-card-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section-modern {
    padding: 4rem 0;
    margin-top: -4rem;
    position: relative;
    z-index: 2;
}

.stat-card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    animation: slideInUp 0.6s ease-out both;
}

.stat-card-glass:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card-glass:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card-glass:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Ensure equal heights in flex/grid rows */
.row .stat-card-glass,
.row .publication-card-modern {
    height: 100%;
}

.stat-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.stat-number-modern {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-modern {
    padding: 6rem 0;
}

.section-header-modern {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    color: white;
    border-radius: var(--radius-full);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.section-title-modern {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle-modern {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-secondary);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

/* ============================================
   PUBLICATION CARDS
   ============================================ */
.publication-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.publication-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.publication-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #E0F2FE, #DBEAFE);
    display: flex;
    align-items: center;
    justify-content: center;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s;
}

.publication-card-modern:hover .publication-image img {
    transform: scale(1.1);
}

.publication-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-category-badge.kegiatan {
    color: #059669;
}

.publication-category-badge.penting {
    color: #DC2626;
}

.publication-category-badge.info {
    color: #0284C7;
}

.publication-category-badge.pengumuman {
    color: #7C3AED;
}

.publication-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.publication-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.publication-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.publication-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publication-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #F1F5F9;
}

.publication-author {
    font-size: 0.85rem;
    color: var(--text-light);
}

.publication-author strong {
    color: var(--text-secondary);
    display: block;
}

.btn-read-more {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-read-more:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.5rem;
    }

    .hero-description-modern {
        font-size: 1.05rem;
    }

    .hero-logo-background {
        width: 400px;
        height: 400px;
        right: -50%;
    }

    .section-title-modern {
        font-size: 2rem;
    }

    .stat-number-modern {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title-modern {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}