:root {
    --primary-color: #3D0F7B;
    --secondary-color: #3D0F7B;
    --accent-color: #59239f;
    --light-color: #F5F3F7;
    --dark-color: #1A0930;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    margin-bottom: 30px;
}

.hero h1 {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

section {
    margin-bottom: 50px;
    padding: 20px;
    background: white;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

h2 {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.card-title a:hover {
    color: var(--accent-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: #3D0F7B;
    border: 2px solid #3D0F7B;
    background-color: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #3D0F7B;
    color: #fff;
    border-color: #3D0F7B;
}

.btn-outline-primary:active {
    background-color: #2A0759;
    border-color: #2A0759;
    color: #fff;
}

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 200px;
    object-fit: cover;
}

.icon-dominan {
    color: #3D0F7B !important;
}

.text-primary {
    color: #3D0F7B !important;
    font-size: 1rem;
}

a.text-primary:hover {
    color: #5A24A5 !important;
}

@media (max-width: 576px) {
    .text-primary {
        font-size: 0.9rem;
    }
}

.bg-dominan {
    background-color: #3D0F7B !important;
}

.logo-sekolah {
    height: 60px;
    width: auto;
}

.brand-text {
    font-size: 1.2rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 0.9rem;
    }
}

.scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

/* SAMBUTAN */
#sambutan .card {
    border-left: 4px solid var(--accent-color);
}

/* JURUSAN */
.jurusan-detail {
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    background-color: #fff;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.jurusan-title {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.8rem;
}
.jurusan-img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.jurusan-desc {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* FASILITAS */
.fasilitas-card {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}
.fasilitas-detail {
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    background-color: #fff;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.fasilitas-title {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.8rem;
}
.fasilitas-img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.fasilitas-desc {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* BUKU */
.buku-card {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
}

/* BERITA */
.berita-card {
    flex: 0 0 auto;
    width: 320px;
    scroll-snap-align: start;
}
.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.berita-detail {
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    background-color: #fff;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.berita-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}
.berita-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.berita-img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.berita-content {
    color: #444;
    line-height: 1.7;
    font-size: 1rem;
}
.berita-card .card-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.berita-card .card-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* DASHBOARD ADMIN */
.admin-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.admin-card .card-body {
    padding: 30px 15px;
}
.admin-card h5 {
    font-size: 1rem;
    margin: 0;
    color: #333;
}
.admin-card i {
    font-size: 2.5rem;
    min-width: 50px;
    min-height: 50px;
    line-height: 50px;
}


footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.back-to-top.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    section {
        padding: 15px;
    }
}