/* ============================================================
   TEDxAOU - Global Stylesheet
   TEDx Brand: #E62B1E (TED Red), Black, White
   Font: Montserrat
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================================ */
:root {
    --ted-red: #E62B1E;
    --ted-red-dark: #B71C14;
    --ted-red-light: #FF4438;
    --black: #0A0A0A;
    --dark: #111111;
    --dark-2: #1A1A1A;
    --dark-3: #222222;
    --grey: #888888;
    --grey-light: #CCCCCC;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --border: rgba(255, 255, 255, 0.08);
    --border-dark: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-main: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3rem;
    --fs-5xl: 4rem;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --fw-black: 900;

    /* Spacing */
    --section-py: 5rem;
    --container: 1280px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
    --shadow-red: 0 4px 20px rgba(230, 43, 30, 0.4);

    /* Transitions */
    --transition: 0.3s ease;

    /* Theme - Light mode (dark is default for TEDx) */
    --bg: var(--black);
    --bg-2: var(--dark-2);
    --bg-3: var(--dark-3);
    --text: var(--white);
    --text-muted: var(--grey);
    --border-color: var(--border);
}

[data-theme="light"] {
    --bg: var(--off-white);
    --bg-2: var(--white);
    --bg-3: #F0F0F0;
    --text: var(--black);
    --text-muted: #555555;
    --border-color: var(--border-dark);
    --border: rgba(0, 0, 0, 0.08);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-py) 0;
}

.section-sm {
    padding: 3rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--fw-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ted-red);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 2px;
    background: var(--ted-red);
}

body.rtl .section-label {
    padding-left: 0;
    padding-right: 2rem;
}

body.rtl .section-label::before {
    left: auto;
    right: 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: var(--fw-black);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.section-subtitle {
    font-size: var(--fs-md);
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}

.text-red {
    color: var(--ted-red);
}

.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin: 0 auto;
}

.text-center .section-label::before {
    display: none;
}

.text-center .section-label {
    padding-left: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--ted-red);
    color: var(--white);
    border: 2px solid var(--ted-red);
}

.btn-primary:hover {
    background: var(--ted-red-dark);
    border-color: var(--ted-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.btn-outline-red {
    background: transparent;
    color: var(--ted-red);
    border: 2px solid var(--ted-red);
}

.btn-outline-red:hover {
    background: var(--ted-red);
    color: var(--white);
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: var(--fs-xs);
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: var(--fs-base);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(248, 248, 248, 0.95);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: var(--fw-black);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-logo-badge {
    background: var(--ted-red);
    color: var(--white);
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: var(--fw-black);
    letter-spacing: 0.05em;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text span:first-child {
    font-size: 1.1rem;
    font-weight: var(--fw-black);
}

.nav-logo-text span:last-child {
    font-size: 0.6rem;
    font-weight: var(--fw-medium);
    color: var(--grey);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.5rem 0.875rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.03em;
    color: var(--text);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--ted-red);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ted-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    background: none;
    font-size: 1.5rem;
    color: var(--text);
    display: none;
    padding: 0.25rem;
}

/* Theme/Lang toggle buttons */
.icon-btn {
    background: var(--bg-3);
    border: 1px solid var(--border-color);
    color: var(--text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.icon-btn:hover {
    background: var(--ted-red);
    border-color: var(--ted-red);
    color: var(--white);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-2);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    gap: 0.5rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 0.75rem 1rem;
    font-weight: var(--fw-semibold);
    border-bottom: 1px solid var(--border-color);
    display: block;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    background: var(--black);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(230, 43, 30, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(230, 43, 30, 0.08) 0%, transparent 40%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(230, 43, 30, 0.1);
    border: 1px solid rgba(230, 43, 30, 0.3);
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ted-red);
    margin-bottom: 2rem;
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--ted-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-title .line-red {
    color: var(--ted-red);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: var(--fw-light);
    color: var(--grey-light);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    transition: color var(--transition);
}

.hero-scroll:hover {
    color: var(--text);
}

.hero-scroll-line {
    width: 2rem;
    height: 1px;
    background: var(--grey);
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-section {
    background: var(--ted-red);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
}

.countdown-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
}

.countdown-text h3 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-black);
    color: var(--white);
    margin-bottom: 0.25rem;
}

.countdown-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--fs-sm);
    letter-spacing: 0.05em;
}

.countdown-timer {
    display: flex;
    gap: 1.5rem;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--fw-black);
    color: var(--white);
    line-height: 1;
    display: block;
    letter-spacing: -0.04em;
}

.countdown-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.countdown-sep {
    font-size: 2.5rem;
    font-weight: var(--fw-black);
    color: rgba(255, 255, 255, 0.5);
    align-self: flex-end;
    margin-bottom: 0.25rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-2);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--ted-red);
    box-shadow: var(--shadow-lg);
}

.card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.75rem;
}

/* Speaker Card */
.speaker-card {
    position: relative;
    overflow: hidden;
}

.speaker-card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}

.speaker-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.speaker-card:hover .speaker-card-img img {
    transform: scale(1.08);
}

.speaker-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.speaker-card:hover .speaker-card-overlay {
    opacity: 1;
}

.speaker-card-body {
    padding: 1.5rem;
}

.speaker-topic {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ted-red);
    margin-bottom: 0.5rem;
}

.speaker-name {
    font-size: var(--fs-lg);
    font-weight: var(--fw-black);
    margin-bottom: 0.25rem;
}

.speaker-title {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.speaker-talk {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Team Card */
.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.team-card-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--border-color);
    transition: border-color var(--transition);
}

.team-card:hover .team-card-avatar {
    border-color: var(--ted-red);
}

.team-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-dept {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ted-red);
    margin-bottom: 0.5rem;
}

.team-card-name {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    margin-bottom: 0.25rem;
}

.team-card-role {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.team-card-bio {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.team-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.team-social a {
    width: 32px;
    height: 32px;
    background: var(--bg-3);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all var(--transition);
}

.team-social a:hover {
    background: var(--ted-red);
    border-color: var(--ted-red);
    color: var(--white);
}

/* Sponsor Card */
.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100px;
    filter: grayscale(100%) brightness(0.7);
    transition: filter var(--transition), transform var(--transition);
}

.sponsor-card:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.sponsor-card img {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
}

/* Blog Card */
.blog-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-category {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ted-red);
}

.blog-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    line-height: 1.3;
}

.blog-title:hover {
    color: var(--ted-red);
}

.blog-excerpt {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: var(--fs-xs);
    color: var(--grey);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ============================================================
   SPONSOR TIERS
   ============================================================ */
.tier-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-black);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    display: inline-block;
    margin-bottom: 2rem;
}

.tier-gold .tier-label {
    background: #B8860B;
    color: var(--white);
}

.tier-silver .tier-label {
    background: #808080;
    color: var(--white);
}

.tier-media .tier-label {
    background: var(--ted-red);
    color: var(--white);
}

.tier-community .tier-label {
    background: var(--dark-3);
    color: var(--text);
    border: 1px solid var(--border-color);
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--black);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: var(--bg-2);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--ted-red);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-size: var(--fs-md);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
}

.testimonial-role {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-2);
    border: 1px solid var(--border-color);
    color: var(--text);
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* Force correct text color — prevents browser defaults overriding CSS vars */
input,
textarea,
select,
button {
    color: var(--text);
}

.form-control:focus {
    border-color: var(--ted-red);
    box-shadow: 0 0 0 3px rgba(230, 43, 30, 0.1);
}

.form-control::placeholder {
    color: var(--grey);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* ============================================================
   ABOUT SECTIONS
   ============================================================ */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-split.reverse {
    direction: rtl;
}

.about-split.reverse>* {
    direction: ltr;
}

.about-visual {
    position: relative;
}

.about-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--ted-red);
    padding: 1.5rem;
    text-align: center;
}

.about-badge strong {
    font-size: 2rem;
    font-weight: var(--fw-black);
    color: var(--white);
    display: block;
}

.about-badge span {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: var(--ted-red);
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .container {
    position: relative;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--fw-black);
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.cta-section p {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--ted-red);
    border-color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--black);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    color: var(--text);
}

[data-theme="light"] .footer {
    background: #1a1a1a;
    color: var(--white);
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-col h4,
[data-theme="light"] .footer-bottom p,
[data-theme="light"] .footer-ted {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .footer-links a:hover {
    color: var(--ted-red);
}

[data-theme="light"] .footer-social a {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.8;
    margin: 1.25rem 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--bg-2);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--ted-red);
    border-color: var(--ted-red);
    color: var(--white);
}

.footer-col h4 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--ted-red);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: var(--fs-xs);
    color: var(--grey);
}

.footer-ted {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-xs);
    color: var(--grey);
}

.footer-ted span {
    color: var(--ted-red);
    font-weight: var(--fw-bold);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: 8rem 0 4rem;
    background: var(--dark-2);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ted-red);
}

.page-hero-eyebrow {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ted-red);
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--fw-black);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: var(--fs-md);
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================================
   NAVIGATION FILTER TABS
   ============================================================ */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-tab {
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    background: var(--bg-2);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-tab:hover {
    border-color: var(--ted-red);
    color: var(--ted-red);
}

.filter-tab.active {
    background: var(--ted-red);
    border-color: var(--ted-red);
    color: var(--white);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-2);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--ted-red);
    padding: 1rem 1.5rem;
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left-color: #22c55e;
}

.toast.error {
    border-left-color: var(--ted-red);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
    background-size: 200%;
    animation: shimmer 1.5s infinite;
    border-radius: 2px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-split.reverse {
        direction: ltr;
    }

    .about-badge {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 3.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .countdown-inner {
        justify-content: center;
        text-align: center;
    }

    .countdown-timer {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        letter-spacing: -0.03em;
    }

    .countdown-sep {
        display: none;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--ted-red);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ============================================================
   DARK/LIGHT TRANSITIONS
   ============================================================ */
body,
.nav,
.card,
.form-control,
.footer,
.toast,
.testimonial-card,
.filter-tab {
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0;
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--dark-3);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 40%;
    background: var(--ted-red);
    animation: loading 1s ease infinite;
}

@keyframes loading {
    0% {
        left: -40%;
    }

    100% {
        left: 110%;
    }
}

/* ============================================================
   SPEAKER MODAL (public pages)
   ============================================================ */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-modal-overlay.open {
    display: flex;
}

.admin-modal {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: 2px;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: var(--dark-2);
    z-index: 1;
}

.admin-modal-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
}

.admin-modal-close {
    background: none;
    border: none;
    color: var(--grey);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: .25rem;
    transition: color var(--transition);
}

.admin-modal-close:hover {
    color: var(--ted-red);
}

.admin-modal-body {
    padding: 1.5rem;
    flex: 1;
}

/* Video embed */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 2px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Confirm delete modal on public admin */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.confirm-modal-overlay.open {
    display: flex;
}

.confirm-modal-box {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--ted-red);
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    border-radius: 2px;
    animation: modalSlideIn 0.2s ease;
}