@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;700&family=Oswald:wght@400;700&display=swap');

:root {
    /* Brand Colors (Stay the same) */
    --red-primary: #EF1C25;
    --red-dark: #c91520;
    --yellow-primary: #F6F20A;
    --yellow-dark: #d6d308;

    /* LIGHT THEME (Default) */
    --bg-main: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-surface-alt: #eeeeee;
    --text-main: #111111;
    --text-muted: #444444;
    --text-faint: #777777;

    /* Special Sections Light */
    --hero-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
    --asdek-bg: #fffde7;
    --asdek-overlay: rgba(255, 253, 231, 0.85);
    --footer-bg: #ececec;
    --footer-border: #dddddd;
    --input-bg: rgba(0, 0, 0, 0.05);

    /* Glassmorphism Light */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-blur: blur(12px);

    /* Fonts */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-subheading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 80px;
    --section-padding: 100px 5%;
}

[data-theme="dark"] {
    /* DARK THEME */
    --bg-main: #0a0a0a;
    --bg-surface: #111111;
    --bg-surface-alt: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --text-faint: #666666;

    /* Hero & Special Sections Dark */
    --hero-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 100%);
    --asdek-bg: #0a0a0a;
    --asdek-overlay: rgba(10, 10, 10, 0.85);
    --footer-bg: #050505;
    --footer-border: #1a1a1a;
    --input-bg: rgba(255, 255, 255, 0.05);

    /* Glassmorphism Dark */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Base Components Styles */
.section {
    padding: var(--section-padding);
    text-align: center;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.flex-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flex-card .premium-btn {
    margin-top: auto;
    align-self: center;
}

.premium-btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-red {
    background-color: var(--red-primary);
    color: #fff !important;
}

.btn-red:hover {
    background-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 28, 37, 0.3);
}

.btn-yellow {
    background-color: var(--yellow-primary);
    color: #000 !important;
}

.btn-yellow:hover {
    background-color: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(246, 242, 10, 0.3);
}

/* Text Utils */
.yellow-text {
    color: var(--yellow-primary);
}

.center {
    text-align: center;
}

.align-center {
    align-items: center;
}

.text-content {
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-main);
}

.brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--red-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-subheading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    color: var(--text-muted);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-main);
}

.nav-btn-highlight {
    color: var(--yellow-primary) !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: url('../assets/img/full-shot-asian-people-practicing-taekwondo.jpg') no-repeat center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
}

.hero-tagline {
    display: block;
    color: var(--red-primary);
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    line-height: 1;
}

/* Sections Detail Styles */
#escuela .grid-2col {
    align-items: center;
}

#escuela .text-content {
    font-size: 1.2rem;
    line-height: 1.6;
}

#escuela .check-list {
    margin-top: 32px;
}

.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rounded-img {
    width: 50%;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.rounded-img:hover {
    transform: scale(1.03);
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--red-primary);
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Common */
.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-tag {
    color: var(--red-primary);
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.85rem;
}

.section-title {
    font-size: 3rem;
    margin-top: 8px;
}

.alt-bg {
    background-color: var(--bg-surface);
}

/* Grids */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Programs */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default to 2 for better horizontal space */
    gap: 24px;
}

/* Overriding for Academy which has more items - keeping it flexible */
.programs-grid.academy-grid {
    grid-template-columns: repeat(2, 1fr);
}

.program-card {
    padding: 30px 40px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: row;
    align-items: flex-end; /* Align with the tag at the bottom */
    justify-content: space-between;
    text-align: left;
    gap: 30px;
    min-height: 160px;
}

.card-body {
    flex: 1;
}

.program-card:hover {
    border-color: var(--red-primary);
    transform: translateY(-5px);
}
@media (max-width: 1024px) {
    .programs-grid.academy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr !important;
    }
    .program-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
}

.card-title {
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.card-tag {
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff !important;
    background-color: var(--red-primary);
    padding: 4px 14px;
    border-radius: 50px;
    align-self: flex-start;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(239, 28, 37, 0.2);
}

.tag-asdek {
    background-color: var(--yellow-primary);
    color: #000 !important;
    box-shadow: 0 4px 10px rgba(246, 242, 10, 0.2);
}

/* ASDEK */
.asdek-section {
    background: var(--asdek-bg);
}

.highlight-box {
    padding: 80px 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    text-align: center;
}

.asdek-intro {
    text-align: center;
}

.asdek-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.asdek-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    /* max-width: 800px; */
    margin-bottom: 40px;
}

.asdek-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.pillar h4 {
    margin-top: 12px;
    color: var(--text-main);
}

.pillar .icon {
    font-size: 2.5rem;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    padding: 30px;
    text-align: center;
}

.help-card {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.news-date {
    color: var(--red-primary);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.news-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
}

.contact-info {
    padding: 60px;
    background: var(--bg-surface-alt);
}

.contact-form {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    margin-bottom: 25px;
    padding: 0 40px;
}

.info-item span {
    font-size: 1.5rem;
    line-height: 1.2;
}

.info-item div {
    font-size: 1rem;
    line-height: 1.5;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 16px;
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--red-primary);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    padding: 60px 5%;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    transition: background 0.3s;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer-nav {
    display: flex;
    gap: 100px;
}

.footer-title {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--red-primary) !important;
}

/* Tables */
.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table th,
.premium-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.premium-table th {
    font-family: var(--font-subheading);
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-faint);
    letter-spacing: 0.1em;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.red-text {
    color: var(--red-primary);
    font-weight: 700;
}

/* Theme Toggle */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 44px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--red-primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.theme-icon {
    margin: 0 8px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 992px) {

    .grid-2col,
    .contact-wrapper,
    .schedule-notes,
    .grid-3col,
    .programs-grid {
        grid-template-columns: 1fr;
    }

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

    .asdek-pillars {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .asdek-intro {
        padding: 40px 30px !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    /* Add burger logic later */
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .rounded-img {
        width: 80%;
    }
}