/* assets/css/portal.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

:root {
    /* Color System */
    --primary: hsl(152, 76%, 37%);
    --primary-glow: hsla(152, 76%, 37%, 0.3);
    --secondary: hsl(200, 80%, 40%);
    --accent: hsl(342, 85%, 55%);
    --accent-glow: hsla(342, 85%, 55%, 0.25);
    
    /* Dark Theme Base */
    --bg-darker: #0b0f19;
    --bg-dark: #121826;
    --bg-light: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* Glassmorphism System */
    --glass-bg: rgba(18, 24, 38, 0.75);
    --glass-card: rgba(30, 41, 59, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(255, 255, 255, 0.2);
    
    /* Shadows and Glows */
    --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px -4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 45px -8px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px var(--primary-glow);
    
    /* Transitions & Borders */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    background: radial-gradient(circle at 10% 20%, rgba(18, 30, 48, 0.6) 0%, rgba(11, 15, 25, 1) 90%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Helper Classes */
h1, h2, h3, h4, .brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 12px 24px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: rgba(11, 15, 25, 0.95);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.brand-text {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid hsla(342, 85%, 55%, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(342, 85%, 55%, 0.1);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.nav-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.nav-item a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active a {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(18, 120, 70, 0.4) 100%);
    box-shadow: var(--shadow-glow);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #a11440 100%);
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(342, 85%, 55%, 0.4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section & Beautiful Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 550px;
    overflow: hidden;
    margin-top: 0;
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.28) contrast(1.1);
    transform: scale(1.05);
    transition: transform 10s ease-out;
}

.carousel-item.active .carousel-bg {
    transform: scale(1);
}

.carousel-content {
    position: relative;
    z-index: 10;
    width: 85%;
    max-width: 900px;
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    background: rgba(11, 15, 25, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.carousel-item.active .carousel-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.carousel-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: var(--transition-bounce);
}

.carousel-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 25px rgba(24, 186, 110, 0.45);
}

/* Carousel Navigations */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.carousel-control:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator.active {
    background: var(--primary);
    width: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-glow);
}

/* Sections Global */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Glassmorphic Cards */
.card {
    background: var(--glass-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-focus);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-body {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-btn {
    align-self: flex-start;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.card-btn:hover {
    color: var(--text-primary);
}

.card-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.card-btn:hover svg {
    transform: translateX(4px);
}

/* About Us Section with Glass-Split Layout */
.about-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.about-bullets {
    margin: 25px 0;
    list-style: none;
}

.about-bullets li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.about-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
    font-size: 1.1rem;
}

.about-visual {
    flex: 1;
    position: relative;
}

.glass-mosaic {
    background: radial-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-mosaic::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}

/* SVBL Interactive IDE Showcase Section */
.svbl-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.svbl-info {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.svbl-capixaba-badge {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.svbl-ide-container {
    flex: 1.4;
    background: #060913;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 380px;
}

.ide-header {
    background: #0c101d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ide-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.ide-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ide-tabs {
    display: flex;
    background: #090d18;
}

.ide-tab {
    padding: 8px 16px;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: #090d18;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ide-tab.active {
    color: #fff;
    background: #060913;
    border-bottom: 1px solid transparent;
}

.ide-editor {
    flex-grow: 1;
    padding: 18px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-y: auto;
}

.code-line {
    display: flex;
}

.code-num {
    width: 25px;
    color: rgba(255, 255, 255, 0.15);
    user-select: none;
}

.code-text {
    flex-grow: 1;
    color: var(--text-secondary);
}

/* Syntax Highlighting */
.svbl-kw { color: #f43f5e; font-weight: 600; }    /* Keywords: declare, loop, func */
.svbl-str { color: #10b981; }                     /* Strings */
.svbl-val { color: #f59e0b; }                     /* Numbers/Booleans */
.svbl-fn { color: #3b82f6; font-weight: 500; }    /* Functions */
.svbl-var { color: #ec4899; }                     /* Variable names */
.svbl-comment { color: #64748b; font-style: italic; }

.ide-actions {
    background: #090d18;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ide-btn {
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ide-btn:hover {
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

.ide-btn.btn-run {
    background: var(--primary);
}

.ide-btn.btn-run:hover {
    background: hsl(152, 76%, 32%);
}

.ide-console {
    background: #04060d;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 18px;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    min-height: 80px;
    color: #10b981;
}

.ide-console-header {
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Contact Page Section */
.contact-layout {
    display: flex;
    gap: 50px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 40px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-header h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-methods {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(24, 186, 110, 0.1);
    border: 1px solid rgba(24, 186, 110, 0.2);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-method-detail h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-method-detail p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.whatsapp-link {
    color: var(--primary) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-link:hover {
    text-decoration: underline;
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.contact-form-pane {
    flex: 1.2;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 40px;
    backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #fff;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(11, 15, 25, 0.85);
    box-shadow: 0 0 10px rgba(24, 186, 110, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 186, 110, 0.4);
}

/* CMS Articles Section on Home */
.news-layout {
    margin-top: 40px;
}

.news-card {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-bounce);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-focus);
    box-shadow: var(--shadow-lg);
}

.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-img {
    transform: scale(1.08);
}

.news-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.news-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 18px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.read-more-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Modals System (CMS Dashboard) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(40px);
    transition: var(--transition-bounce);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
}

/* Dynamic Article Details Display */
.article-full {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.98rem;
}

.article-full h1, .article-full h2 {
    color: #fff;
    margin: 20px 0 10px;
}

.article-full p {
    margin-bottom: 16px;
}

/* Footer Section */
.footer {
    background: #090c14;
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px 30px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-nav h5 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Admin Dashboard styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: bold;
    color: #fff;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.badge-cat {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
}

.badge-cat.course { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-cat.maintenance { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-cat.svbl { background: rgba(236, 72, 153, 0.15); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-cat.general { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar {
        width: 95%;
        padding: 12px 16px;
    }
    
    .carousel-title {
        font-size: 2.2rem;
    }
    
    .carousel-desc {
        font-size: 0.95rem;
    }
    
    .svbl-layout, .contact-layout, .about-layout {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-dark);
        border: 1px solid var(--glass-border);
        border-top: none;
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-content {
        width: 95%;
        padding: 20px;
    }
}
