/* ==========================================================================
   SABSTraC Global Stylesheet: main.css
   ========================================================================== */

:root {
    --primary-emerald: #134e35;
    --primary-accent: #198754;
    --primary-light: #e8f5ed;
    --secondary-amber: #d97706;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --surface-white: #ffffff;
    --border-soft: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 30px -10px rgba(19, 78, 53, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--slate-700);
    background-color: #fafbfc;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Institutional Top Bar */
.top-bar {
    background-color: var(--slate-900);
    color: #94a3b8;
    font-size: 0.82rem;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-meta span {
    margin-right: 1.5rem;
}

.top-bar-badge {
    background: rgba(25, 135, 84, 0.2);
    color: #4ade80;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Navigation Bar */
nav {
    background-color: var(--surface-white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-soft);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-emblem {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-accent));
    color: var(--surface-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(19, 78, 53, 0.2);
}

.brand-emblem-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-emerald);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.brand-text p {
    font-size: 0.75rem;
    color: var(--slate-600);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.4rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-accent);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-accent);
    border-radius: 2px;
}

.nav-cta {
    background-color: var(--primary-emerald);
    color: var(--surface-white) !important;
    padding: 0.55rem 1.2rem !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background-color: var(--primary-accent);
    transform: translateY(-1px);
}

.nav-cta.active::after {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: var(--slate-900);
    cursor: pointer;
}

/* Hero & Page Headers */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--surface-white);
    padding: 6.5rem 5% 7.5rem 5%;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #86efac;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero h2 {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--surface-white);
    padding: 5rem 5%;
    text-align: center;
}

.page-header-inner {
    max-width: 850px;
    margin: auto;
}

.header-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #86efac;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 740px;
    margin: auto;
}

/* Main Content Wrapper */
.section-container {
    padding: 4.5rem 5%;
    max-width: 1200px;
    margin: auto;
}

.section-header,
.section-title-wrap {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-header .badge,
.section-title-wrap .badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h3,
.section-title-wrap h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-header p,
.section-title-wrap p {
    color: var(--slate-600);
    font-size: 1.05rem;
}

/* Global Footer */
footer {
    background-color: var(--slate-900);
    color: #94a3b8;
    padding: 4.5rem 5% 2rem 5%;
    font-size: 0.92rem;
    margin-top: 5rem;
}

.footer-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h5 {
    color: var(--surface-white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #4ade80;
}

.footer-bottom {
    max-width: 1200px;
    margin: auto;
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero h2 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .top-bar { display: none; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-white);
        padding: 1.5rem 5%;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-soft);
        gap: 1rem;
        align-items: flex-start;
    }
    .nav-links.show { display: flex; }
    .nav-links a.active::after { display: none; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}