/* Light Theme (Default) */
:root {
    --bg-primary: #F3F4F6;
    --bg-secondary: #E5E7EB;
    --accent: #1A56DB;
    --accent-hover: #1E429F;
    --accent-glow: rgba(26, 86, 219, 0.4);
    --text-primary: #111827;
    --text-muted: #4B5563;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --footer-bg: #E5E7EB;
    --header-bg: #F8FAFC;
    --nav-bg: #FFFFFF;
    --mobile-menu-bg: #FFFFFF;
    --menu-bg: #FFFFFF;
}

/* Dark Theme */
[data-bs-theme="dark"] {
    --bg-primary: #0B1426;
    --bg-secondary: #0F1E3C;
    --accent: #1A56DB;
    --accent-hover: #1E429F;
    --accent-glow: rgba(26, 86, 219, 0.4);
    --text-primary: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --footer-bg: #0B1426;
    --header-bg: #0F1E3C;
    --nav-bg: #0B1426;
    --mobile-menu-bg: rgba(11, 20, 38, 0.95);
    --menu-bg: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 150px; /* Prevent fixed-top navbar overlap */
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navbar */
.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 15px 0;
}
.glass-nav.scrolled {
    padding: 10px 0;
    background: var(--nav-bg) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-hover {
    color: var(--text-muted) !important;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-hover:hover, .nav-item.active .nav-hover {
    color: var(--text-primary) !important;
}
.nav-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-glow);
}
.nav-hover:hover::after, .nav-item.active .nav-hover::after {
    width: 100%;
}



/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    z-index: 1030;
    display: none;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}
.mobile-menu.open {
    display: block;
    transform: translateY(0);
}

/* Buttons */
.btn-primary-glow {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--accent-glow);
    text-decoration: none;
    display: inline-block;
}
.btn-primary-glow:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
    color: #fff;
}
.btn-outline-glass {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-glass:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    color: #fff;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,20,38,0.9) 0%, rgba(11,20,38,0.6) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--accent);
}

/* Utilities */
.text-accent {
    color: var(--accent) !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Particle Background Element */
.particle-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

/* Rich Text Editor Content Styling */
figure.image {
    display: table;
    margin: 1.5rem auto;
    max-width: 100%;
}
figure.image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.5rem;
}
figure.align-left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}
figure.align-right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

/* Rich Text / Quill / TinyMCE Content Alignment and Spacing */
.news-content-body {
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: auto;
}
.news-content-body p {
    margin-bottom: 1.25rem !important;
    line-height: 1.8 !important;
}
.news-content-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem;
    margin: 1rem 0;
}
.news-content-body table {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}
.news-content-body table td, .news-content-body table th {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}
.news-content-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}
.news-content-body .ql-align-center { text-align: center !important; }
.news-content-body .ql-align-right { text-align: right !important; }
.news-content-body .ql-align-justify { text-align: justify !important; }
.news-content-body .ql-indent-1 { padding-left: 2rem !important; }
.news-content-body .ql-indent-2 { padding-left: 4rem !important; }
.news-content-body .ql-indent-3 { padding-left: 6rem !important; }
