/* Custom CSS untuk Website Sekolah */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link,
.navbar .btn {
    font-family: inherit;
    font-weight: 500;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    padding: 80px 0;
    color: white;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.card-img-top {
    border-bottom: 3px solid var(--primary-color);
}

.card-title {
    color: #333;
    font-weight: 600;
}

.card-text {
    font-size: 0.95rem;
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    color: #555;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px 15px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #fff;
    margin-top: auto;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffc107;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #ffc107;
    padding-left: 5px;
}

footer hr {
    border-color: rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .display-4,
    .display-5 {
        font-size: 1.8rem;
    }

    .article-content {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease forwards;
}

/* Scroll smoothness */
html {
    scroll-behavior: smooth;
}

/* Text utilities */
.text-justify {
    text-align: justify;
}

.truncate-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Link styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0b5ed7;
}

/* List styling */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Form elements */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ddd;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
