/* ========== CSS VARIABLES ========== */
:root {
    --db-primary: #F59E0B;
    --db-primary-hover: #D97706;
    --db-dark: #1a1a2e;
    --db-dark-secondary: #16213e;
    --db-accent: #3B82F6;
    --db-light: #f8f9fa;
    --db-text: #333333;
    --db-text-muted: #6c757d;
    --db-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --db-card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --db-radius: 12px;
}

/* ========== BASE STYLES ========== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--db-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--db-dark);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--db-primary);
    margin-bottom: 2.5rem;
}

.text-center .section-divider,
.section-divider.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ========== NAVBAR ========== */
#mainNav {
    background: linear-gradient(135deg, var(--db-dark), var(--db-dark-secondary));
    padding: 0.6rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1030;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.6rem;
    color: var(--db-primary);
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    position: relative;
    transition: color 0.3s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--db-primary);
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--db-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 70%;
}

/* ========== HERO CAROUSEL ========== */
.carousel-slide {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}

.slide-1 { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%); }
.slide-2 { background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #533483 100%); }
.slide-3 { background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f3460 100%); }
.slide-4 { background: linear-gradient(135deg, #533483 0%, #1a1a2e 50%, #0f3460 100%); }
.slide-5 { background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%); }

.carousel-slide h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-slide p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: var(--db-primary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
}

/* ========== ABOUT SECTION ========== */
#about {
    background: var(--db-light);
}

.about-text {
    font-size: 1.08rem;
    color: var(--db-text-muted);
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

/* ========== CARD STYLES (SHARED) ========== */
.card-custom {
    border: none;
    border-radius: var(--db-radius);
    overflow: hidden;
    box-shadow: var(--db-card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

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

.card-custom .card-body {
    padding: 1.25rem;
}

.card-custom .card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--db-dark);
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-custom .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-custom .card-title a:hover {
    color: var(--db-primary);
}

.card-custom .card-text {
    font-size: 0.9rem;
    color: var(--db-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.card-custom .card-date {
    font-size: 0.8rem;
    color: var(--db-text-muted);
}

.card-custom .card-date i {
    margin-right: 0.3rem;
}

.card-custom .read-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--db-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-custom .read-more:hover {
    color: var(--db-primary);
}

/* ========== FORUM CARDS ========== */
.card-forum {
    border-top: 4px solid var(--db-primary);
}

.card-forum .forum-icon {
    font-size: 2rem;
    color: var(--db-primary);
    margin-bottom: 0.8rem;
}

.card-forum .badge-comments {
    background: var(--db-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
}

/* ========== PILOT CARDS ========== */
.card-pilot {
    text-align: center;
    padding-top: 2rem;
}

.card-pilot .pilot-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--db-primary);
    margin: 0 auto 1rem;
    display: block;
}

.card-pilot .card-title {
    -webkit-line-clamp: 1;
}

/* ========== BUTTONS ========== */
.btn-primary-custom {
    background: var(--db-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--db-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ========== SKELETON LOADER ========== */
.skeleton-card {
    border: none;
    border-radius: var(--db-radius);
    overflow: hidden;
    height: 350px;
}

.skeleton {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-img {
    height: 200px;
    width: 100%;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin: 1rem 1.25rem 0.5rem;
}

.skeleton-text {
    height: 14px;
    width: 95%;
    margin: 0.3rem 1.25rem;
}

.skeleton-text-short {
    height: 14px;
    width: 60%;
    margin: 0.3rem 1.25rem;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========== SCROLL ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== FOOTER ========== */
#siteFooter {
    background: linear-gradient(135deg, var(--db-dark), var(--db-dark-secondary));
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    font-size: 1.4rem;
}

.footer-brand .brand-text {
    font-size: 1.3rem;
}

.footer-tagline {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--db-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--db-primary-hover);
}

.footer-contact i {
    margin-right: 0.4rem;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--db-primary);
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-newsletter-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.2rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

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

    .carousel-slide {
        min-height: 350px;
    }

    .carousel-slide h1 {
        font-size: 2rem;
    }

    .carousel-slide p {
        font-size: 1rem;
    }

    #mainNav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #mainNav .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 50px 0;
    }

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

    .carousel-slide {
        min-height: 300px;
        padding: 40px 15px;
    }

    .carousel-slide h1 {
        font-size: 1.6rem;
    }

    .carousel-slide p {
        font-size: 0.92rem;
    }

    .card-custom .card-img-top {
        height: 180px;
    }

    .card-pilot .pilot-avatar {
        width: 80px;
        height: 80px;
    }
}
