/* ===================================
   Variables & Reset
   =================================== */
:root {
    --purple-primary: #0f8040;
    --purple-dark: #0f8040;
    --purple-light: #0f8040;
    --bg-light: #f5f7f9;
    --footer-dark: #0b0b0b;
    --text-dark: #1e293b;
    --text-muted: #343a40;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

.text-purple {
    color: var(--purple-primary) !important;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--purple-primary);
}

.nav-link i {
    font-size: 1.25rem;
}

.navbar-nav .nav-link.active {
    color: var(--purple-primary) !important;
    font-weight: 600 !important;
}

.dropdown-menu {
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
}

/* ===================================
   Buttons
   =================================== */
.btn-purple {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-light) 100%);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(112, 66, 242, 0.2);
}

.btn-purple:hover {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 66, 242, 0.3);
    color: white;
}

.btn-purple:active {
    transform: translateY(0);
}

.btn-dark {
    background: var(--text-dark);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: #0f172a;
    transform: translateY(-2px);
    color: white;
}

/* ===================================
   Hero Section - Carousel Slider
   =================================== */
.hero-section {
    background-color: transparent;
    position: relative;
    padding: 3rem 0 4rem;
    overflow: hidden;
}

/* Carousel Rounded Corners */
.rounded-slider {
    border-radius: 20px;
    overflow: hidden;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

/* Carousel Caption Styling */
.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    border-radius: 0 0 20px 20px;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #0f8040;
    border-radius: 50%;
    padding: 1rem;
    width: 40px;
    height: 40px;
    background-size: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--purple-primary);
    transform: scale(1.1);
}

/* Hide arrows on mobile */
@media (max-width: 767px) {

    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
}

/* Carousel Indicators - Below banner */
.carousel-indicators {
    position: relative !important;
    bottom: auto !important;
    margin-top: 1rem;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    background-color: #cbd5e1 !important;
    border: none !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    margin: 0 6px;
}

.carousel-indicators button.active {
    background-color: #0f8040 !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    opacity: 1 !important;
}

/* Mobile dot size */
@media (max-width: 767px) {
    .carousel-indicators button {
        width: 10px !important;
        height: 10px !important;
        margin: 0 5px;
    }

    .carousel-indicators button.active {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Carousel Fade Effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* ===================================
   Categories Section
   =================================== */
.categories-section {
    background: transparent;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0.75rem 0;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 100px;
    height: 100px;
    background: white !important;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.category-icon i {
    font-size: 2.5rem;
    color: #3b82f6 !important;
}

.category-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ===================================
   Questions Section
   =================================== */
.questions-section {
    background: var(--bg-light);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.question-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.question-card:hover {
    border-color: var(--purple-primary);
    box-shadow: 0 4px 15px rgba(112, 66, 242, 0.1);
    transform: translateY(-3px);
}

.question-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.badge.bg-purple {
    background-color: var(--purple-primary) !important;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}

/* ===================================
   Statistics Section
   =================================== */
.stats-section {
    background: white;
}

.stat-card {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--purple-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: var(--bg-light);
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cta-section .lead {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--footer-dark);
    color: #94a3b8;
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer .form-control {
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 0.75rem 1rem;
}

.footer .form-control:focus {
    background: #1e293b;
    border-color: var(--purple-primary);
    color: white;
    box-shadow: none;
}

.footer .form-control::placeholder {
    color: #64748b;
}

.footer .border-secondary {
    border-color: #334155 !important;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

    .decoration {
        display: none;
    }

    .category-icon {
        width: 70px;
        height: 70px;
    }

    .category-icon i {
        font-size: 1.8rem;
    }

    .category-icon-img {
        width: 50px;
        height: 50px;
    }

    .category-title {
        font-size: 0.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .category-card {
        margin: 0.5rem 0;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .category-icon-img {
        width: 40px;
        height: 40px;
    }

    .category-title {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

@media (max-width: 767px) {
    .navbar-brand.logo {
        position: static !important;
        transform: none !important;
    }

    .hero-section {
        padding: 2rem 0 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .feature-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .search-input {
        padding: 0.75rem 1rem;
    }


    .stat-number {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 35px;
        width: auto;
        transition: transform 0.3s ease;
    }
}

/* ===================================
   Utilities
   =================================== */
.bg-light {
    background-color: var(--bg-light) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}


/* ===================================
   News Detail Section
   =================================== */
.bg-purple-soft {
    background-color: rgba(15, 128, 64, 0.1) !important;
}

.article-title {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.news-content.typography {
    color: #334155;
    line-height: 1.8;
    font-size: 1.05rem;
}

.news-content.typography p {
    margin-bottom: 1.5rem;
}

.news-content.typography h1,
.news-content.typography h2,
.news-content.typography h3,
.news-content.typography h4,
.news-content.typography h5,
.news-content.typography h6 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-content.typography ul,
.news-content.typography ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.news-content.typography li {
    margin-bottom: 0.5rem;
}

.news-content.typography blockquote {
    font-size: 1.1rem;
    color: #475569;
}

.hover-bg-light:hover {
    background-color: var(--bg-light);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: translateY(-2px);
    background-color: var(--bg-light);
}

/* Responsive Font Sizes */
@media (max-width: 767px) {
    .article-title {
        font-size: 1.5rem;
    }

    .news-content.typography {
        font-size: 1rem;
    }
}

/* ===================================
   Pagination
   =================================== */
.pagination-custom .page-link {
    color: var(--text-dark);
    border: none;
    margin: 0 4px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    background-color: var(--bg-light);
    color: var(--purple-primary);
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--purple-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(15, 128, 64, 0.3);
}

.pagination-custom .page-item.disabled .page-link {
    background-color: transparent;
    color: var(--text-muted);
}
