/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-primary: #0F172A;
    /* Midnight Blue */
    --color-primary-light: #1E293B;
    --color-secondary: #0072CE;
    /* Medical Blue from image */
    --color-success: #10B981;
    /* Registration Green */
    --color-accent: #3B82F6;
    /* Professional Blue */
    --color-gold: #D4AF37;
    /* Honor/Awards Gold */

    /* Backgrounds */
    --color-bg: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-bg-subtle: #F1F5F9;

    /* Text */
    --color-text: #1E293B;
    --color-text-muted: #475569;
    --color-text-light: #94A3B8;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-xl: 8rem;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-primary);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
}

/* Layout Components */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-xl) 0;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.opacity-70 {
    opacity: 0.7;
}

.text-sm {
    font-size: 0.875rem;
}

.w-100 {
    width: 100%;
}

.section-title {
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.text-center .title-underline {
    margin: 0 auto;
}

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

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

.text-white {
    color: var(--color-white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.75rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

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

.btn-outline-primary:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    height: 75px;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 20%;
    height: auto;
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--color-secondary);
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    display: block;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
/* ==========================================================================
   Hero Section Redesign
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 100px;
    padding-bottom: 0;
    min-height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 0;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: 0;
}

.hero-bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to left, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
}

.hero-text-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-top-info {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hero-logo-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-logo-main .logo-icon {
    font-size: 3rem;
    color: var(--color-secondary);
}

.hero-logo-main .logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hero-regions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.region-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10B981;
}

.region-text {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero-title span {
    display: block;
    color: #10B981;
    font-size: 0.7em;
    margin-top: 0.5rem;
}

.hero-desc {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.hero-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-icon {
    width: 60px;
    height: 60px;
    background: #10B981;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.meta-text strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
}

.meta-text span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Features Bar */
.hero-features-bar {
    background: var(--color-secondary);
    color: white;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.feature-text strong {
    display: block;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.feature-text span {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Registration Bar */
.hero-reg-bar {
    background: #F1F5F9;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.reg-bar-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.reg-bar-text i {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.btn-reg {
    background: #10B981;
    color: white;
    padding: 1rem 3rem;
    border-radius: 99px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-reg:hover {
    background: #059669;
    transform: scale(1.05);
}


/* ==========================================================================
   Sections
   ========================================================================== */

/* About Goals */
/* About Goals Flip Cards */
.goal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.goal-card-wrapper {
    perspective: 1000px;
    height: 220px;
    /* Fixed height for consistent flipping */
    cursor: pointer;
}

.goal-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Hover effect on desktop */
@media (min-width: 993px) {
    .goal-card-wrapper:hover .goal-card-inner {
        transform: rotateY(180deg);
    }
}

/* Flipped state for mobile/click */
.goal-card-wrapper.flipped .goal-card-inner {
    transform: rotateY(180deg);
}

.goal-card-front,
.goal-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: var(--shadow-sm);
}

.goal-card-front {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.goal-card-back {
    background: white;
    color: var(--color-text);
    transform: rotateY(180deg);
    border-color: var(--color-secondary);
}

.goal-card-back p {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.goal-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
}

.goal-card-front h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}


/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
    text-shadow: 0 4px 12px rgba(0, 114, 206, 0.2);
}

.stat-label {
    color: rgb(255, 255, 255);
    font-weight: 600;
    opacity: 1;
}

/* Audience */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.audience-card {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.audience-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.audience-card p {
    font-weight: 700;
    margin: 0;
}

.speaker-img-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-bg-subtle);
    transition: var(--transition);
}

.audience-card:hover .speaker-img-wrap {
    border-color: var(--color-secondary);
    transform: scale(1.05);
}

.speaker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audience-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.speaker-regalia {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}

.speaker-org {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.8;
}


/* Program Tabs */
.tabs-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--color-bg-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.tab-btn.active {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.tab-btn span {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tab-btn strong {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    display: flex;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-left: 2px solid var(--color-bg-subtle);
    margin-left: 1rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--color-secondary);
    border-radius: 50%;
}

.timeline-time {
    font-weight: 800;
    color: var(--color-secondary);
    min-width: 60px;
}

.timeline-title {
    font-weight: 600;
    color: var(--color-primary);
}

/* Exhibition */
.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.exhibition-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.exhibition-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.exhibition-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.exhibition-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.exhibition-card:hover .exhibition-img img {
    transform: scale(1.1);
}

.exhibition-info {
    padding: 2.5rem 2rem 2rem;
    position: relative;
    flex-grow: 1;
}

.exhibition-icon {
    position: absolute;
    top: -25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(24, 151, 212, 0.3);
}

.exhibition-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.exhibition-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Masterclass */
.mc-card {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 4rem;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mc-card .section-title {
    color: white;
}

.mc-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mc-skill {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    text-align: center;
}

.mc-skill i {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    display: block;
}

.mc-skill span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Awards */
.award-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.award-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-gold);
}

.award-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

/* Registration Form */
.registration-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.reg-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-bg-subtle);
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: white;
}

/* Venue */
.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.venue-address {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.venue-map-wrap {
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.venue-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: var(--transition);
    color: var(--color-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Footer */
.footer {
    background: #05101D;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.footer-logo img {
    filter: drop-shadow(0 0 8px rgba(0, 114, 206, 0.4));
    transition: var(--transition);
}

.footer-logo:hover img {
    filter: drop-shadow(0 0 15px rgba(0, 114, 206, 0.8));
    transform: scale(1.05);
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 1rem;
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-link:hover {
    background: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    opacity: 0.5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large Desktop (1440px) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
}

/* Medium Desktop (1200px) */
@media (max-width: 1200px) {

    .hero-grid,
    .venue-grid,
    .mc-card {
        gap: 2rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

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

    .hero-grid,
    .mc-card,
    .venue-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        border-left: none;
        padding-left: 0;
    }

    .hero-buttons,
    .hero-badges-row {
        justify-content: center;
    }

    .hero-visual-card {
        min-height: 300px;
    }

    .hero-qr-card {
        justify-content: center;
    }

    .stats-grid,
    .audience-grid,
    .exhibition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .award-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
    }

    .header {
        height: 70px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        height: 0;
        overflow: hidden;
        transition: 0.4s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        height: auto;
        padding-bottom: 2rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 2rem;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-bg-subtle);
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .registration-container {
        padding: 2rem;
    }

    .reg-form {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .mc-card {
        padding: 2rem;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .stats-grid,
    .audience-grid,
    .exhibition-grid,
    .award-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .tab-nav,
    .schedule-days-nav {
        flex-direction: column;
        gap: 1rem;
    }


    .stat-number {
        font-size: 2.5rem;
    }

    .day-selector {
        padding: 1rem 2rem;
    }

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

}

/* Small Mobile (390px / 360px) */
@media (max-width: 390px) {
    .container {
        padding: 0 1.5rem;
    }

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

    .btn {
        width: 100%;
    }

    .hero-qr-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Graph Section
   ========================================================================== */
.graph-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.custom-chart {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.chart-bar-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 300px;
    border-bottom: 2px solid var(--color-bg-subtle);
    padding-bottom: 2rem;
    gap: 1rem;
}

.chart-bar {
    flex: 1;
    background: var(--color-bg-subtle);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: var(--transition);
    max-width: 60px;
}

.chart-bar:hover {
    transform: translateY(-5px);
}

.chart-bar.featured {
    background: linear-gradient(to top, var(--color-secondary), var(--color-accent));
}

.chart-bar span {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    color: var(--color-primary);
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.chart-legend {
    margin-top: 4rem;
    text-align: center;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.graph-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.info-item i {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Schedule Redesign
   ========================================================================== */
.schedule-visual-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-days-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.day-selector {
    background: white;
    padding: 1.5rem 3rem;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--color-bg-subtle);
    box-shadow: var(--shadow-sm);
}

.day-selector.active {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.day-num {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.day-month {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.day-label {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 800;
    letter-spacing: 1px;
}

.schedule-timeline-container {
    position: relative;
    padding-left: 3rem;
}

.schedule-timeline-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-bg-subtle);
}

.schedule-item {
    position: relative;
    padding-bottom: 4rem;
}

.s-time {
    font-weight: 900;
    color: white;
    background: var(--color-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 114, 206, 0.2);
}

.s-dot {
    position: absolute;
    left: -31px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--color-secondary);
    border-radius: 50%;
    z-index: 2;
}

.s-content {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 114, 206, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.s-content::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 2rem;
    top: 2rem;
    color: var(--color-secondary);
    transition: var(--transition);
    opacity: 0.5;
}

.schedule-item.expanded .s-content::after {
    transform: rotate(180deg);
    opacity: 1;
}

.schedule-item:hover .s-content {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.s-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    margin-top: 0;
}

.schedule-item.expanded .s-details {
    max-height: 1000px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--color-bg-subtle);
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.details-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 900;
}


.schedule-item.featured .s-content {
    background: var(--color-bg-light);
    border-left: 6px solid var(--color-secondary);
}

.s-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.s-tags {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.s-tags span {
    background: var(--color-bg-subtle);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Responsive Redesign Fixes */
@media (max-width: 992px) {
    .hero-bg-wrapper {
        width: 100%;
        opacity: 0.2;
        mask-image: none;
    }

    .hero-text-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-top-info,
    .hero-meta {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .graph-container {
        grid-template-columns: 1fr;
    }

    .reg-bar-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

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

    .hero-meta {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 114, 206, 0.4);
}

/* Smoother Flip Animation Override */
.goal-card-inner {
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smoother Schedule Expansion */
.s-details {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}