@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1B6B5A;
    --primary-color: #1B6B5A;
    --primary-dark: #124c40;
    --primary-light: #e8f3f0;
    --accent: #C9A227;
    --accent-color: #C9A227;
    --accent-hover: #b08d22;
    --dark: #0F1923;
    --dark-soft: #2D3748;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-800: #343a40;
    --text-main: #2b3440;
    --text-muted: #6c757d;
    --white: #ffffff;
    --danger: #dc3545;
    --success: #198754;
    --warning: #ffc107;
    --info: #0dcaf0;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Premium Typography Extensions */
.fw-800 { font-weight: 800; }
.text-dark-soft { color: var(--dark-soft); }
.line-height-lg { line-height: 1.8 !important; }
.ls-tight { letter-spacing: -0.025em; }

/* Icon Shapes */
.icon-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    font-size: 14px;
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--gray-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
}

.text-11 { font-size: 11px !important; }
.text-12 { font-size: 12px !important; }
.text-13 { font-size: 13px !important; }
.text-14 { font-size: 14px !important; }

.small, small { font-size: 11px !important; }
.lead, .large { font-size: 14px !important; }

/* Custom Utilities */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-dark-navy { background-color: var(--dark) !important; }

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxjaXJjbGUgY3g9IjIiIGN5PSIyIiByPSIyIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+Cjwvc3ZnPg==') repeat;
    opacity: 0.5;
}
.hero-content {
    position: relative;
    z-index: 10;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar-custom .nav-link {
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    position: relative;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: var(--primary);
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.navbar-custom .nav-link:hover::after, .navbar-custom .nav-link.active::after {
    width: 80%;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: #ffffff;
    padding: 60px 0 20px;
}
.footer h5 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 13px;
    letter-spacing: 0.3px;
}
.footer p,
.footer span,
.footer li,
.footer i {
    color: #ffffff !important;
    font-size: 12px;
    line-height: 1.7;
}
.footer a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 12px;
}
.footer a:hover {
    color: var(--accent) !important;
}
.footer .text-muted,
.footer .text-muted * {
    color: #ffffff !important;
}
.footer small {
    color: #ffffff !important;
    font-size: 11px;
}

/* Stats Counter */
.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* News Card */
.news-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.news-img {
    height: 200px;
    object-fit: cover;
}

/* Dashboard Sidebar */
.sidebar {
    background-color: var(--dark);
    color: var(--white);
    min-height: 100vh;
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 5px;
    margin: 5px 15px;
    transition: all 0.2s;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: var(--primary);
    color: var(--white);
}
.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* News Article Content Styles */
.article-content {
    color: var(--dark-soft);
    font-size: 1.166rem; /* Max 14px */
    line-height: 1.8;
    font-weight: 400;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content h1, .article-content h2, .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.4;
    font-size: 1.166rem; /* Max 14px */
}

.article-content blockquote {
    padding: 1.5rem 2rem;
    background-color: #f8fafc;
    border-left: 5px solid var(--accent);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    margin: 2rem 0;
    font-size: 1.166rem; /* Max 14px */
    color: var(--primary-dark);
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-lg);
}

/* Sidebar Card Premium */
.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-card .list-group-item {
    background: transparent;
    border: none;
    padding: 0.75rem 0;
    transition: all 0.2s ease;
}

.sidebar-card .list-group-item:hover {
    transform: translateX(5px);
    color: var(--primary) !important;
}

.sidebar-card .list-group-item:hover .title {
    color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sidebar-card {
        position: static !important;
        margin-top: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .navbar-brand h6 {
        font-size: 11px !important;
    }
    
    .article-content {
        text-align: left !important;
        font-size: 1rem !important;
    }
    
    .news-hero h1 {
        font-size: 1.5rem !important;
    }

    [data-aos] {
        pointer-events: none;
    }
    .aos-animate {
        pointer-events: auto;
    }
}

.article-content * {
    max-width: 100% !important;
    overflow-wrap: break-word;
}
