:root {
    --primary: #003d7a;
    --secondary: #0066cc;
    --accent: #f5a623;
    --dark: #1a1a2e;
    --light-bg: #f8f9fa;
}

/* ========== GLOBAL ========== */
* { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

section { padding: 80px 0; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto 2.5rem;
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 12px 0;
}

.navbar-brand img { height: 45px; }

.navbar-brand span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    transition: color 0.2s;
}

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

.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon { filter: invert(1); }

/* ========== SLIDER ========== */
#heroSlider { margin-top: 66px; }

.carousel-item { height: 560px; overflow: hidden; }

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.carousel-caption {
    bottom: 20%;
    text-align: left;
    left: 8%;
    right: 20%;
}

.carousel-caption h2 {
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    line-height: 1.2;
}

.carousel-caption p {
    font-size: 1.15rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.carousel-caption .btn {
    margin-top: 10px;
    background: var(--accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 25px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* ========== SEJARAH ========== */
#sejarah { background: var(--light-bg); }

.sejarah-img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.timeline { position: relative; padding-left: 30px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item { position: relative; margin-bottom: 28px; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--primary);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.timeline-item p { color: #555; font-size: 0.95rem; margin: 0; }

/* ========== PROGRAM STUDI ========== */
#program-studi { background: #fff; }

.prodi-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    height: 100%;
}

.prodi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.prodi-card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 22px 20px 18px;
    text-align: center;
}

.prodi-card-header .badge-level {
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prodi-card-header h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.prodi-card .card-body { padding: 18px 20px; }

.prodi-card .card-body p {
    font-size: 0.88rem;
    color: #666;
    margin: 0;
}

.prodi-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
}

/* ========== PRESTASI ========== */
#prestasi { background: var(--light-bg); }

.prestasi-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.prestasi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.prestasi-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.prestasi-card .card-body { padding: 18px 20px; }

.prestasi-card .badge-prestasi {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.prestasi-card h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 10px 0 6px;
    line-height: 1.4;
}

.prestasi-card p {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

.stat-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,61,122,0.3);
}

.stat-box .stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.stat-box .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 6px;
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

footer .footer-brand img { height: 50px; margin-bottom: 12px; }

footer .footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 280px;
}

footer h6 {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

footer ul li { margin-bottom: 8px; }

footer ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

footer ul li a:hover { color: var(--accent); }

footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
}

footer .contact-item i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    margin-right: 8px;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    margin-top: 40px;
    font-size: 0.82rem;
    text-align: center;
    color: rgba(255,255,255,0.45);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .carousel-item { height: 350px; }
    .carousel-caption h2 { font-size: 1.6rem; }
    .carousel-caption { left: 5%; right: 5%; bottom: 12%; }
    section { padding: 55px 0; }
    .stat-box .stat-num { font-size: 2rem; }
}
