/* ==========================================================
   TheForgeJA — Main Stylesheet
   Jamaica-themed color palette: Gold, Green, Black
   ========================================================== */

/* ---------- CSS Custom Properties (Light & Dark themes) ---------- */
/* ---------- CSS Custom Properties (Light & Dark themes) ---------- */
:root[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent-gold: #F4C430;
    --accent-gold-gradient: linear-gradient(135deg, #F4C430 0%, #DAA520 100%);
    --accent-green: #009B3A;
    --accent-green-gradient: linear-gradient(135deg, #009B3A 0%, #007A2E 100%);
    --accent-black: #0F172A;
    --border-color: rgba(226, 232, 240, 0.8);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --footer-bg: #0F172A;
    --footer-text: #94A3B8;
    --message-success-bg: #D1FAE5;
    --message-success-text: #065F46;
    --message-warning-bg: #FEF3C7;
    --message-warning-text: #92400E;
    --message-error-bg: #FEE2E2;
    --message-error-text: #991B1B;
    --message-info-bg: #E0F2FE;
    --message-info-text: #075985;
    --overlay-bg: rgba(15, 23, 42, 0.6);
    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --input-focus: var(--accent-green);
}

:root[data-theme="dark"] {
    --bg-primary: #020617;
    --bg-secondary: #0F172A;
    --bg-tertiary: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent-gold: #FBBF24;
    --accent-gold-gradient: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    --accent-green: #22C55E;
    --accent-green-gradient: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    --accent-black: #F8FAFC;
    --border-color: rgba(30, 41, 59, 0.8);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(2, 6, 23, 0.85);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --footer-bg: #020617;
    --footer-text: #64748B;
    --message-success-bg: #064E3B;
    --message-success-text: #A7F3D0;
    --message-warning-bg: #451A03;
    --message-warning-text: #FDE68A;
    --message-error-bg: #450A0A;
    --message-error-text: #FECACA;
    --message-info-bg: #082F49;
    --message-info-text: #BAE6FD;
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --input-bg: #1E293B;
    --input-border: #334155;
    --input-focus: var(--accent-green);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-green-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand-text {
    display: inline;
}

.nav-brand-badge {
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-left: 0.25rem;
    display: inline-block;
    vertical-align: middle;
}

.badge-tech { background: #22C55E; }
.badge-trading { background: #FBBF24; }
.badge-business { background: #3B82F6; color: #fff; }
.badge-community { background: #8B5CF6; color: #fff; }

@media (max-width: 480px) {
    .nav-brand-text { display: none; }
    .nav-brand-badge { font-size: 0.65rem; padding: 3px 8px; }
}

.brand-logo-icon {
    height: 64px;
    width: auto;
    border-radius: 4px;
}

.footer-logo-icon {
    height: 48px;
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.nav-brand:hover {
    color: var(--accent-gold) !important;
}

.flag-icon {
    font-size: 1.3em;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

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

.nav-link {
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold) !important;
    background: transparent;
    text-shadow: 0 0 10px rgba(244, 196, 48, 0.4), 0 0 20px rgba(244, 196, 48, 0.2);
}

.nav-cta {
    color: var(--accent-gold) !important;
    background: transparent !important;
    padding: 0.5rem 1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(244, 196, 48, 0.4);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    text-shadow: 0 0 15px rgba(244, 196, 48, 0.6), 0 0 25px rgba(244, 196, 48, 0.3);
    transform: translateY(-1px);
}

/* Hamburger menu */
.nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-gold);
    transform: rotate(20deg);
}

/* ---------- Messages ---------- */
.messages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
}

.message {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
}

.message-success { background: var(--message-success-bg); color: var(--message-success-text); }
.message-warning { background: var(--message-warning-bg); color: var(--message-warning-text); }
.message-error { background: var(--message-error-bg); color: var(--message-error-text); }
.message-info { background: var(--message-info-bg); color: var(--message-info-text); }

.message-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Main Content ---------- */
.main-content {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, #020617 0%, #0F172A 40%, #1a1a2e 70%, #16213e 100%);
    color: #FFFFFF;
    padding: 8rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #FFFFFF, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero .btn-outline {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.hero .btn-outline:hover {
    background: #FFFFFF;
    color: #000000;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.6);
    transform: translateY(-3px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gold {
    background: var(--accent-gold-gradient);
    color: #000000;
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-gold);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #000000;
    transform: translateY(-2px);
}

.btn-green {
    background: var(--accent-green-gradient);
    color: #FFFFFF;
    font-weight: 700;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 155, 58, 0.4);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-group > * {
    flex: 1;
    text-align: center;
}

/* ---------- Sections ---------- */
.section {
    padding: 5rem 1.5rem;
}

.section-alt {
    background: var(--bg-tertiary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.gold-underline {
    display: inline-block;
    position: relative;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-8px);
    border-color: var(--accent-gold);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Forms ---------- */
.form-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.form-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.form-card h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-card .form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input, 
.form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none; /* For selects */
}

/* Custom Arrow for Selects */
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
}

.form-input:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(0, 155, 58, 0.15);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ---------- Modern File Upload Area ---------- */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--bg-tertiary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.file-upload-wrapper:hover {
    border-color: var(--accent-gold);
    background: rgba(244, 196, 48, 0.05);
    transform: translateY(-2px);
}

.file-upload-wrapper i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.file-upload-wrapper .upload-hint {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.file-upload-wrapper .upload-subhint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Fallback for when we don't use the wrapper */
input[type="file"].form-control {
    padding: 2rem;
    text-align: center;
    border-style: dashed;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-green-gradient, var(--accent-green));
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 155, 58, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-footer a {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: none;
}

.form-errors {
    background: var(--message-error-bg);
    color: var(--message-error-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-errors ul {
    list-style: none;
    padding: 0;
}

.form-errors li {
    padding: 0.2rem 0;
}

/* Help text under password fields */
.helptext {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.helptext ul {
    list-style: none;
    padding: 0;
}

/* ---------- Content Pages ---------- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Course timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-green), #1A1A1A);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: 3px solid var(--bg-primary);
}

.timeline-item:nth-child(2)::before { background: var(--accent-green); }
.timeline-item:nth-child(3)::before { background: var(--accent-gold); }
.timeline-item:nth-child(4)::before { background: #1A1A1A; border-color: var(--accent-gold); }

.timeline-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-item .duration {
    display: inline-block;
    background: var(--accent-gold);
    color: #1A1A1A;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-item ul {
    color: var(--text-secondary);
    padding-left: 1.25rem;
}

.timeline-item li {
    padding: 0.2rem 0;
}

/* Pricing banner */
.pricing-banner {
    background: linear-gradient(135deg, var(--accent-green), #006B28);
    color: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 700px;
    margin: 3rem auto;
}

.pricing-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
}

.price-tag .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price-tag .period {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.discount-note {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 2rem auto;
}

.contact-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.contact-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-card a {
    font-weight: 600;
}

/* Legal pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--footer-text);
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        padding: 5rem 1.5rem 2rem;
        border-bottom: none;
        border-left: 3px solid var(--accent-gold);
        gap: 0.75rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    .nav-link, .nav-cta {
        padding: 0.85rem 1.5rem;
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: transparent !important;
        color: var(--accent-gold) !important;
        text-shadow: 0 0 10px rgba(244, 196, 48, 0.6);
    }
    
    .theme-toggle {
        margin: 1rem auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .pricing-banner {
        padding: 2rem 1.5rem;
    }

    .price-tag {
        font-size: 2.25rem;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .section {
        padding: 3rem 0.75rem;
    }

    .timeline {
        padding-left: 1.25rem;
    }

    .timeline-item {
        padding-left: 1.25rem;
    }

    .timeline-item::before {
        left: -1.65rem;
    }

    .premium-item {
        padding: 1.5rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .btn-group > * {
        width: 100%;
        max-width: 320px;
        margin-bottom: 1.25rem !important;
    }

    .btn-group > *:last-child {
        margin-bottom: 0 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ---------- Q&A Board Styles ---------- */
.question-body, .answer-body {
    font-size: 1.05rem;
    line-height: 1.7;
    word-wrap: break-word;
}

.answer-card {
    border-left: 4px solid var(--border-color);
}

.answer-card.accepted {
    border-left-color: var(--accent-green) !important;
    background: rgba(0, 155, 58, 0.05) !important;
}

/* ---------- Homework Submission Styles ---------- */
.submission-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending { background: var(--message-warning-bg); color: var(--message-warning-text); }
.status-graded { background: var(--accent-green); color: white; }

/* ---------- Prism Overrides ---------- */
pre[class*="language-"] {
    margin: 1.5rem 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ---------- Phase 9 Extensions ---------- */

/* Notification Pip (Badge) */
.notification-pip {
    background: var(--accent-gold);
    color: black;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 0.5rem;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 8px var(--accent-gold); }
    100% { transform: scale(1); }
}

/* Mobile Search Adjustments */
@media (max-width: 968px) {
    .nav-links {
        padding-top: 5rem !important;
    }
}

/* Admin Username Styling */
.admin-username {
    color: var(--accent-gold);
    font-weight: bold;
}

/* ---------- AI & ML Section Styles ---------- */

.premium-item {
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    padding: 2rem;
    background: rgba(244, 196, 48, 0.05);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.premium-item:hover {
    box-shadow: 0 0 30px rgba(244, 196, 48, 0.15);
    transform: translateY(-5px);
}

.premium-item::after {
    content: 'ADVANCED';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--accent-gold);
    color: #000;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 800;
    transform: rotate(45deg);
}

.badge-premium {
    display: inline-block;
    background: var(--accent-black);
    color: var(--accent-gold);
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid var(--accent-gold);
}

.info-note {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-green);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

.ai-pricing-mini {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--accent-gold-gradient);
    border-radius: 12px;
    display: inline-block;
    color: #000;
    box-shadow: 0 10px 20px rgba(244, 196, 48, 0.2);
}

.ai-pricing-mini .price-small {
    font-size: 2rem;
    font-weight: 800;
}

.ai-pricing-mini .unit {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Specific Timeline override for the premium item dot */
.timeline-item.premium-item::before {
    background: var(--accent-gold) !important;
    box-shadow: 0 0 10px var(--accent-gold);
    z-index: 2;
}
