/* ==========================================
   KBIHU NU SUKOHARJO - Premium Stylesheet
   Inspired by: NPC Indonesia
   Theme: Nahdlatul Ulama (Green & Gold)
   ========================================== */

:root {
    --nu-green: #006a4e;
    --nu-green-dark: #004d39;
    --nu-green-darker: #003d2e;
    --nu-green-light: #008b5e;
    --nu-green-lighter: #e8f5e9;
    --nu-gold: #ffd700;
    --nu-gold-dark: #c5a600;
    --nu-gold-light: #fff8e1;
    --nu-cream: #faf8f5;
    --nu-text: #2d3436;
    --nu-text-light: #636e72;
    --nu-text-lighter: #b2bec3;
    --nu-border: #f0f0f0;
    --nu-white: #ffffff;
    --nu-bg: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== BASE ========== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--nu-white);
    overflow-x: hidden;
    color: var(--nu-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
}

/* ========== TOPBAR ========== */
.topbar {
    background: var(--nu-green-darker);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    padding: 4px 0;
    border-bottom: 2px solid var(--nu-gold);
    position: relative;
    z-index: 1030;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--transition);
    padding: 0 8px;
}

.topbar a:hover {
    color: var(--nu-gold);
}

.topbar .topbar-left span {
    margin-right: 16px;
}

.topbar .topbar-left i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* ========== NAVBAR ========== */
.navbar-main {
    background: linear-gradient(135deg, var(--nu-green-dark) 0%, var(--nu-green) 50%, var(--nu-green-light) 100%) !important;
    padding: 0.7rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.navbar-main.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
}

.navbar-main .navbar-brand {
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-main .navbar-brand img {
    height: 42px;
    width: auto;
    transition: var(--transition);
}

.navbar-main.scrolled .navbar-brand img {
    height: 36px;
}

.navbar-main .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--nu-gold);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--nu-gold) !important;
    background: rgba(255,215,0,0.08);
}

/* Navbar Dropdown */
.navbar-main .dropdown-menu {
    background: var(--nu-green-dark);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.navbar-main .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    transition: var(--transition);
}

.navbar-main .dropdown-menu .dropdown-item:hover {
    color: var(--nu-gold);
    background: rgba(255,215,0,0.1);
}

.navbar-main .dropdown-menu .dropdown-item i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.navbar-main .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 6px;
}

/* ========== HERO SLIDER ========== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 88vh;
    min-height: 500px;
    max-height: 750px;
    position: relative;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.05);
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero-slider .carousel-item.active img {
    transform: scale(1);
}

.hero-slider .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,61,46,0.7) 0%, rgba(0,106,78,0.3) 50%, transparent 100%);
}

.hero-slider .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 8%;
    right: 8%;
    max-width: 720px;
    z-index: 2;
}

.hero-slider .carousel-caption .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,215,0,0.15);
    color: var(--nu-gold);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255,215,0,0.2);
    backdrop-filter: blur(4px);
}

.hero-slider .carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-slider .carousel-caption p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.3);
    max-width: 560px;
    line-height: 1.7;
}

.hero-slider .carousel-indicators {
    bottom: 30px;
    gap: 6px;
}

.hero-slider .carousel-indicators button {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.3);
    transition: var(--transition);
    margin: 0;
}

.hero-slider .carousel-indicators button.active {
    background: var(--nu-gold);
    width: 60px;
}

/* Modern arrow controls */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    opacity: 0;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: var(--nu-green);
    border-color: var(--nu-green);
}

.hero-slider .carousel-control-prev { left: 20px; }
.hero-slider .carousel-control-next { right: 20px; }

/* ========== SECTION STYLES ========== */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--nu-green-lighter);
    color: var(--nu-green);
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--nu-green-dark);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-header h2 span {
    color: var(--nu-green);
}

.section-header p {
    color: var(--nu-text-light);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.section-divider {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--nu-gold), var(--nu-gold-dark));
    border-radius: 4px;
    margin: 0 auto 1.2rem;
}

/* ========== PROFILE SECTION ========== */
#profil {
    background: var(--nu-cream);
    overflow: hidden;
}

#profil::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,106,78,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,106,78,0.15), transparent);
    z-index: 1;
    border-radius: var(--radius-lg);
}

.profile-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.profile-image-wrapper:hover img {
    transform: scale(1.03);
}

.profile-image-wrapper .profile-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 8px 18px;
    border-radius: 10px;
    z-index: 2;
    font-size: 0.85rem;
    border: 1px solid rgba(255,215,0,0.15);
}

.profile-content .welcome-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--nu-green), var(--nu-green-light));
    color: #fff;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.profile-content h3 {
    font-weight: 800;
    color: var(--nu-green-dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.3;
}

.profile-content p {
    color: var(--nu-text-light);
    line-height: 1.9;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e0d8;
}

.stat-card {
    text-align: center;
    padding: 1.2rem 0.5rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--nu-green), var(--nu-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

/* ========== CTA BANNER ========== */
#daftar-cta {
    background: linear-gradient(135deg, var(--nu-green-darker) 0%, var(--nu-green) 50%, var(--nu-green-light) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#daftar-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,215,0,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

#daftar-cta .cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 25% 25%, #fff 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, #fff 1px, transparent 1px);
    background-size: 50px 50px;
}

#daftar-cta .container {
    position: relative;
    z-index: 1;
}

#daftar-cta .cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,215,0,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--nu-gold);
    border: 2px solid rgba(255,215,0,0.2);
}

#daftar-cta h2 {
    color: #fff;
    font-weight: 900;
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

#daftar-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.btn-cta {
    background: linear-gradient(135deg, var(--nu-gold), #ffe44d);
    color: #333;
    font-weight: 700;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 45px rgba(255,215,0,0.4);
    color: #333;
    background: linear-gradient(135deg, #ffe44d, #ffd700);
}

.btn-cta i {
    font-size: 1.2rem;
}

/* ========== PENGUMUMAN & AGENDA ========== */
#pengumuman {
    background: #fff;
}

.announcement-card {
    background: var(--nu-cream);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    border-left: 4px solid var(--nu-gold);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0,106,78,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--nu-green);
}

.announcement-card .date-badge {
    background: var(--nu-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.announcement-card h5 {
    font-weight: 700;
    color: var(--nu-green-dark);
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.announcement-card h5 a {
    color: inherit;
    text-decoration: none;
}

.announcement-card h5 a:hover {
    color: var(--nu-green);
}

.announcement-card p {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========== ARTIKEL ========== */
#artikel {
    background: var(--nu-cream);
}

.article-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.article-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.article-card .card-img-wrapper .card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--nu-green), var(--nu-green-light));
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,106,78,0.3);
}

.article-card .card-body {
    padding: 1.5rem;
    flex: 1;
}

.article-card .card-body .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.article-card .card-body .card-title a {
    color: var(--nu-green-dark);
    text-decoration: none;
    transition: var(--transition);
}

.article-card .card-body .card-title a:hover {
    color: var(--nu-green);
}

.article-card .card-body .card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

.article-card .card-footer {
    background: transparent;
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-card .card-footer .text-muted {
    font-size: 0.78rem;
    color: #999 !important;
}

.article-card .card-footer .text-muted i {
    margin-right: 4px;
}

/* ========== LAYANAN ========== */
#layanan {
    background: #fff;
}

.service-card {
    text-align: center;
    padding: 2.8rem 1.8rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nu-green), var(--nu-green-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--nu-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    font-size: 2.2rem;
    color: var(--nu-green);
    transition: var(--transition);
    position: relative;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--nu-green), var(--nu-green-light));
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0,106,78,0.3);
}

.service-card h5 {
    font-weight: 700;
    color: var(--nu-green-dark);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.service-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========== FOOTER ========== */
.main-footer {
    background: linear-gradient(135deg, var(--nu-green-darker) 0%, var(--nu-green-dark) 50%, var(--nu-green) 100%);
    color: rgba(255,255,255,0.85);
    padding-top: 4rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nu-gold), var(--nu-gold-dark), var(--nu-gold));
}

.main-footer h5 {
    color: var(--nu-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.main-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--nu-gold);
    border-radius: 2px;
}

.main-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.main-footer a:hover {
    color: var(--nu-gold);
    padding-left: 6px;
}

.main-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.main-footer .footer-logo img {
    height: 50px;
}

.main-footer .footer-logo h4 {
    color: #fff;
    font-weight: 900;
    margin: 0;
    font-size: 1.2rem;
}

.main-footer .footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.1rem;
    color: var(--nu-gold);
    margin-top: 3px;
    min-width: 20px;
}

.contact-item span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 1.2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--nu-gold);
    color: #333 !important;
    transform: translateY(-3px);
    padding-left: 0;
    box-shadow: 0 8px 20px rgba(255,215,0,0.2);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-links li a i {
    font-size: 0.65rem;
    color: var(--nu-gold);
}

.footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 1.2rem 0;
    margin-top: 3rem;
    font-size: 0.82rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.5);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--nu-green), var(--nu-green-light));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0,106,78,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,106,78,0.4);
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
    .hero-slider .carousel-caption h2 {
        font-size: 2.6rem;
    }
}

@media (max-width: 991px) {
    section { padding: 4rem 0; }
    
    .hero-slider .carousel-item {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 1rem;
    }
    
    .profile-image-wrapper img {
        height: 380px;
    }
    
    .stats-container {
        gap: 0.8rem;
    }
}

@media (max-width: 767px) {
    section { padding: 3rem 0; }
    
    .hero-slider .carousel-item {
        height: 60vh;
        min-height: 350px;
    }
    
    .hero-slider .carousel-caption {
        text-align: center;
        left: 5%;
        right: 5%;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.6rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .hero-slider .carousel-caption .hero-badge {
        font-size: 0.7rem;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        display: none;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .profile-image-wrapper img {
        height: 280px;
    }
    
    .profile-content h3 {
        font-size: 1.4rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.6rem;
    }
    
    #daftar-cta {
        padding: 3rem 0;
    }
    
    #daftar-cta h2 {
        font-size: 1.5rem;
    }
    
    .btn-cta {
        padding: 14px 32px;
        font-size: 0.95rem;
    }
    
    .main-footer {
        text-align: center;
    }
    
    .main-footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-footer .footer-logo {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links li a {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-card .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.65rem;
    }
}

/* ========== UTILITY CLASSES ========== */
.btn-nu {
    background: linear-gradient(135deg, var(--nu-green), var(--nu-green-light));
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-nu:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,106,78,0.3);
    color: #fff;
}

.btn-nu-outline {
    background: transparent;
    color: var(--nu-green);
    border: 2px solid var(--nu-green);
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-nu-outline:hover {
    background: var(--nu-green);
    color: #fff;
    transform: translateY(-3px);
}

.text-nu {
    color: var(--nu-green) !important;
}

.text-gold {
    color: var(--nu-gold) !important;
}

.bg-nu-soft {
    background: var(--nu-cream);
}

/* fix untuk fallback slider tanpa gambar */
.hero-slider .carousel-item .slide-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nu-green-darker) 0%, var(--nu-green) 50%, var(--nu-green-light) 100%);
    position: relative;
}

.hero-slider .carousel-item .slide-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255,215,0,0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.hero-slider .carousel-item .slide-fallback img {
    opacity: 0.15;
    height: 200px;
    width: auto;
    position: absolute;
    filter: brightness(10);
}

/* ========== BOOTSTRAP OVERRIDES & UTILITY ========== */
.btn-gold {
    background: linear-gradient(135deg, var(--nu-gold), #ffe44d);
    color: #333;
    font-weight: 700;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ffe44d, var(--nu-gold));
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.35);
}

.btn-nu {
    background: linear-gradient(135deg, var(--nu-green), var(--nu-green-light));
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-nu:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,106,78,0.3);
    color: #fff;
}

.btn-nu-outline {
    background: transparent;
    color: var(--nu-green);
    border: 2px solid var(--nu-green);
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-nu-outline:hover {
    background: var(--nu-green);
    color: #fff;
    transform: translateY(-3px);
}

.text-gold {
    color: var(--nu-gold) !important;
}

.text-nu {
    color: var(--nu-green) !important;
}

/* Fix contrast */
.article-card .card-body .card-title a {
    color: #004d39;
}

.article-card .card-body .card-title a:hover {
    color: #006a4e;
}

.announcement-card h5 a {
    color: #004d39;
}

.announcement-card h5 a:hover {
    color: #006a4e;
}
