/* Prabhodini Academy - Master Stylesheet */
:root {
    --bg-primary: #F9F9F9;
    --bg-secondary: #FFFFFF;
    --text-primary: #222222;
    --text-secondary: #555555;
    --accent-crimson: #8B1E22;
    --accent-saffron: #E87722;
    --accent-terracotta: #A64B2A;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;
    --hero-overlay: rgba(255, 255, 255, 0.9);
}

.dark {
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --accent-crimson: #A32A2E;
    --accent-saffron: #F28E2B;
    --border-color: #2D3748;
    --card-bg: #1E1E1E;
    --hero-overlay: rgba(18, 18, 18, 0.9);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: .spectral-extralight {
        font-family: "Spectral", serif;
        font-weight: 200;
        font-style: normal;
    }

    .spectral-light {
        font-family: "Spectral", serif;
        font-weight: 300;
        font-style: normal;
    }

    .spectral-regular {
        font-family: "Spectral", serif;
        font-weight: 400;
        font-style: normal;
    }

    .spectral-medium {
        font-family: "Spectral", serif;
        font-weight: 500;
        font-style: normal;
    }

    .spectral-semibold {
        font-family: "Spectral", serif;
        font-weight: 600;
        font-style: normal;
    }

    .spectral-bold {
        font-family: "Spectral", serif;
        font-weight: 700;
        font-style: normal;
    }

    .spectral-extrabold {
        font-family: "Spectral", serif;
        font-weight: 800;
        font-style: normal;
    }

    .spectral-extralight-italic {
        font-family: "Spectral", serif;
        font-weight: 200;
        font-style: italic;
    }

    .spectral-light-italic {
        font-family: "Spectral", serif;
        font-weight: 300;
        font-style: italic;
    }

    .spectral-regular-italic {
        font-family: "Spectral", serif;
        font-weight: 400;
        font-style: italic;
    }

    .spectral-medium-italic {
        font-family: "Spectral", serif;
        font-weight: 500;
        font-style: italic;
    }

    .spectral-semibold-italic {
        font-family: "Spectral", serif;
        font-weight: 600;
        font-style: italic;
    }

    .spectral-bold-italic {
        font-family: "Spectral", serif;
        font-weight: 700;
        font-style: italic;
    }

    .spectral-extrabold-italic {
        font-family: "Spectral", serif;
        font-weight: 800;
        font-style: italic;
    }

    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-secondary);
    border-b: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 16px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent-crimson);
    text-decoration: none;
}

.dark .logo-area {
    color: #FFFFFF;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    color: var(--accent-saffron);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-crimson {
    background-color: var(--accent-crimson);
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(139, 30, 34, 0.2);
}

.btn-crimson:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(139, 30, 34, 0.3);
}

.btn-saffron {
    background-color: var(--accent-saffron);
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(232, 119, 34, 0.2);
}

.btn-saffron:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(232, 119, 34, 0.3);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

#theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--border-color);
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Hero Component */
.hero {
    padding: 80px 0;
    text-align: left;
}

.hero-tag {
    color: var(--accent-saffron);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
    text-align: left;
}

.hero-description {
    text-align: left;
    font-size: 1.2rem;
    color: var(--text-secondary);
    width: 100%;
    margin: 0 auto 36px auto;
    display: block;
}

.hero h1 {
    text-align: left;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--accent-crimson);
}

.dark .hero h1 span {
    color: var(--accent-saffron);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 36px auto;
}

.hero-buttons {
    display: flex;
    justify-content: left;
    gap: 16px;
}

@media (max-width: 768px) {

    nav,
    .hidden-mobile {
        display: none;
    }

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

    .hero-buttons {
        flex-direction: column;
    }
}

/* Grid & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.dark .card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark .card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tag-crimson {
    background-color: rgba(139, 30, 34, 0.1);
    color: var(--accent-crimson);
}

.tag-gray {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* Typography */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-crimson), var(--accent-saffron));
    border-radius: 4px;
}

/* Icons */
.icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

.icon-svg-lg {
    width: 24px;
    height: 24px;
}

.icon-mr {
    margin-right: 8px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-saffron);
}

/* Footer */
footer {
    background-color: #1A202C;
    color: #A0AEC0;
    padding: 60px 0 30px 0;
    margin-top: 80px;
    border-top: 4px solid var(--accent-crimson);
}

footer h4 {
    color: #FFFFFF;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

footer a {
    color: #A0AEC0;
    text-decoration: none;
}

footer a:hover {
    color: #FFFFFF;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    border-bottom: 1px solid #2D3748;
    padding-bottom: 40px;
    margin-bottom: 30px;
}