/* ==========================================================================
   Main Stylesheet - SMPS YOSEF ARNOLDI (YAYASAN PRAYOGA RIAU)
   ========================================================================== */

:root {
    --primary-color: #0f3d6e;      /* Biru Yayasan */
    --primary-hover: #0a294b;
    --secondary-color: #e6a100;    /* Emas Aksen */
    --accent-color: #2563eb;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Top Bar & Navigation --- */
.top-bar {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 0;
}

.top-bar a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-brand .brand-logo-text h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.navbar-brand .brand-logo-text small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(15, 61, 110, 0.08);
}

/* --- Hero Banner Section --- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 61, 110, 0.92), rgba(10, 41, 75, 0.85)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 90px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    max-width: 750px;
    margin: 15px auto 30px;
}

/* --- Section Styling & Typography --- */
.section-padding {
    padding: 70px 0;
}

.section-title-wrapper {
    margin-bottom: 45px;
    position: relative;
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Cards (Fasilitas, Prestasi, Berita) --- */
.custom-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.custom-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.badge-floating {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 61, 110, 0.88);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Visi Misi Box --- */
.visi-box, .misi-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--primary-color);
    height: 100%;
}

.misi-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.misi-list li {
    margin-bottom: 12px;
    position: relative;
    line-height: 1.6;
}

/* --- Footer --- */
.main-footer {
    background-color: #0b1f36;
    color: #cbd5e1;
    padding-top: 60px;
    font-size: 0.92rem;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 4px;
}

.footer-bottom {
    background-color: #071524;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        text-align: center;
    }
    .top-bar .text-md-end {
        text-align: center !important;
        margin-top: 4px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-section {
        padding: 60px 0;
    }
    .card-img-wrapper {
        height: 180px;
    }
}
/* Styling Logo di Navbar */
.brand-logo img {
    height: 55px; /* Sesuaikan tinggi logo */
    width: auto;
    object-fit: contain;
}

/* Ukuran logo saat layar HP agar tidak terlalu besar */
@media (max-width: 767.98px) {
    .brand-logo img {
        height: 40px;
    }
}