/* ===== SMA Negeri 1 Muara Kaman - Elegant Theme ===== */
/* Theme: Dark Navy + Gold Accent - Elegant & Luxurious */

:root {
    --primary-color: #1b2a4a;
    --primary-dark: #0f1b32;
    --primary-light: #2c3e6b;
    --accent-color: #c9a84c;
    --accent-light: #e2c97e;
    --accent-dark: #a8872e;
    --secondary-color: #f8f9fa;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-light: #ffffff;
    --bg-grey: #f5f6fa;
    --bg-cream: #fdfcf9;
    --border-color: #e8e8e8;
    --shadow: 0 4px 20px rgba(27, 42, 74, 0.08);
    --shadow-hover: 0 8px 30px rgba(27, 42, 74, 0.15);
    --transition: all 0.3s ease;
}

/* ===== Global ===== */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ===== Navbar ===== */
.navbar {
    background-color: var(--primary-dark) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

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

.navbar-brand i {
    color: var(--accent-color);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.7rem 1rem !important;
    font-size: 0.88rem;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.navbar .dropdown-menu {
    background-color: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.navbar .dropdown-item {
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.navbar .dropdown-item:hover {
    background-color: rgba(201, 168, 76, 0.15);
    color: var(--accent-color);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero / Carousel ===== */
.hero-carousel .carousel-item {
    height: 550px;
    overflow: hidden;
}

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

.hero-carousel .carousel-caption {
    bottom: 25%;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-carousel .carousel-caption h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-carousel .carousel-caption p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 70px 0 50px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: var(--accent-light);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Section ===== */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.3px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    margin-top: 12px;
    border-radius: 2px;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    color: var(--primary-dark);
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== News Cards ===== */
.news-card .card-body {
    padding: 1.3rem;
}

.news-card .news-date {
    font-size: 0.8rem;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.news-card .news-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Profile Cards ===== */
.profile-card {
    text-align: center;
    padding: 2rem 1rem;
}

.profile-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}

.profile-card h5 {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.profile-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 27, 50, 0.85));
    padding: 1.5rem 1rem 1rem;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-dark);
    color: #cccccc;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light), var(--accent-color));
}

.footer h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer p,
.footer li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--accent-color);
    margin-right: 8px;
    transition: var(--transition);
}

.footer .social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(27, 42, 74, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    border-radius: 6px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-light {
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 600;
    border: none;
}

.btn-light:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
}

/* ===== Table ===== */
.table-custom {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
}

.table-custom thead th {
    border: none;
    padding: 0.9rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    border-radius: 6px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
}

/* ===== Sidebar ===== */
.sidebar .widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent-color);
}

.sidebar .widget h5 {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-color);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* ===== Welcome Feature Cards ===== */
.feature-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    background: #ffffff;
}

.feature-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(201, 168, 76, 0.15);
    transform: translateY(-3px);
}

.feature-card i {
    color: var(--accent-color) !important;
}

.feature-card h5 {
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
}

/* ===== Badge Styles ===== */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

/* ===== Content Area ===== */
.content-area {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.content-area p {
    margin-bottom: 1rem;
}

/* ===== Nav Tabs ===== */
.nav-tabs .nav-link {
    color: var(--text-light);
    font-weight: 500;
    border-radius: 6px 6px 0 0;
}

.nav-tabs .nav-link.active {
    color: var(--primary-dark);
    font-weight: 600;
    border-color: var(--border-color) var(--border-color) #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 320px;
    }

    .hero-carousel .carousel-caption h2 {
        font-size: 1.2rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 0.8rem;
    }

    .hero-carousel .carousel-caption {
        bottom: 15%;
        padding: 0 1rem;
    }

    .page-header {
        padding: 50px 0 35px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer {
        padding: 40px 0 15px;
    }
}
