/* 
================================================================
   NEXT3 CULINARY - PREMIUM DESIGN SYSTEM
   "The Warm Spices" Edition
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;700;800;900&display=swap');

:root {
    --cg-primary: #F58220;
    /* Vibrant Orange */
    --cg-primary-dark: #cc6b1b;
    --cg-secondary: #2E251B;
    /* Dark Earthy Brown */
    --cg-accent: #8A9A5B;
    /* Sage Green */
    --cg-background: #FAF9F6;
    /* Parchment Background */
    --cg-surface: #FFFFFF;
    --cg-text-primary: #2E251B;
    --cg-text-secondary: #6B5E51;

    --cg-heading-font: 'Outfit', sans-serif;
    --cg-body-font: 'Inter', sans-serif;
}

/* --- Global Clean Sans-Serif --- */
html,
body,
p,
a,
li,
span,
div,
input,
button,
textarea,
section,
article {
    font-family: var(--cg-body-font);
}

h1,
h2,
h3,
h4,
h5,
h6,
.next3-logo-text,
.n3-hero-title,
.n3-section-title,
.next3-logo-area span {
    font-family: var(--cg-heading-font);
    font-weight: 700;
}

/* --- Animations --- */
@keyframes n3FadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* --- Header & Navigation Support --- */
.header-next3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.next3-header-card {
    background: #fff;
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
}

.next3-logo-icon {
    background: var(--cg-primary);
}

.next3-logo-text {
    color: var(--cg-secondary);
}

.next3-cta-btn {
    background: var(--cg-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.next3-cta-wrapper {
    flex-shrink: 0;
}

/* --- Sections --- */
.n3-section {
    padding: 8rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.bg-parchment {
    background: var(--cg-background);
}

.n3-programs-section {
    padding: 4rem 1rem 6rem;
    background-color: #f0f4f8;
}

.n3-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Hero --- */
/* --- Hero override for Premium Layout --- */
.n3-premium-layout .n3-hero {
    height: 100vh;
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    background-image: url('https://cooking.next3academy.com/wp-content/uploads/sites/2/2026/02/thai_culinary_hero.jpg');
    background-size: cover;
    background-position: center;
}

.n3-premium-layout .n3-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    /* Lower than content but higher than slider if used */
}

.n3-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.n3-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.n3-slide.active {
    opacity: 1;
}

.n3-premium-layout .n3-hero-content {
    z-index: 10;
    text-align: center;
    position: relative;
    padding: 0 20px;
    animation: n3FadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.n3-hero-title {
    line-height: 1.1;
    margin-bottom: 2rem;
    font-size: 4.5rem;
}

.n3-hero-title span {
    color: var(--cg-primary);
    font-family: var(--cg-heading-font) !important;
}

/* --- Survey Pill --- */
.n3-survey-section {
    padding: 4rem 1rem;
    background-color: #f0f4f8;
}

.n3-survey-pill {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 100px;
    overflow: hidden;
    background-image: url('https://cooking.next3academy.com/wp-content/uploads/sites/2/2026/02/kitchen_env.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem;
    color: white;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
}

.n3-survey-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.n3-survey-content {
    position: relative;
    z-index: 5;
}

/* --- Curriculum Section --- */
.n3-curriculum-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.n3-curriculum-title-wrapper {
    max-width: 600px;
}

.n3-section-badge {
    color: #FF8C42;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.n3-section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1d3557;
    margin: 0;
}

.n3-section-desc-wrapper {
    max-width: 400px;
    text-align: right;
}

.n3-section-desc-wrapper p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Course Grid --- */
.n3-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.n3-course-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e9f1;
}

.n3-course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.n3-course-card.popular {
    border: 2px solid #FF8C42;
    transform: scale(1.02);
}

.n3-course-thumb {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.n3-course-level {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1d3557;
    backdrop-filter: blur(5px);
}

.n3-course-popular-badge {
    position: absolute;
    top: 20px;
    left: -10px;
    background: #FF8C42;
    color: white;
    padding: 5px 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 5px 5px 15px rgba(255, 140, 66, 0.4);
}

.n3-course-body {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.n3-course-body h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #1d3557;
}

/* --- Footer Culinary --- */
body.page-id-34 .site-footer {
    background: var(--cg-secondary) !important;
    color: #fff !important;
}

body.page-id-34 .next3-footer-wrapper {
    background: var(--cg-secondary) !important;
    color: #fff;
    padding: 4rem 2rem 2rem;
}

.next3-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.next3-footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

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

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #A09384;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--cg-primary);
}

.next3-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #A09384;
}

/* --- Mobile Toggle --- */
.next3-menu-btn {
    display: none;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .next3-footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .n3-section {
        padding: 4rem 1.5rem;
    }

    /* HERO: Static Image + Smooth Fade */
    .n3-hero {
        background-attachment: scroll;
        /* Better for mobile performance */
    }

    .n3-hero-slider {
        display: none !important;
        /* Kill the slider mechanism on mobile */
    }

    .n3-hero-content {
        padding: 2rem !important;
        animation: n3FadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

    .n3-hero-title {
        font-size: 2.3rem;
        /* Downsized slightly for better mobile fit */
    }

    /* Survey Pill Fix: AGGRESSIVE COMPRESSION */
    .next3-header-card {
        border-radius: 0 0 20px 20px;
        padding: 1rem 1.5rem;
    }

    .n3-survey-section {
        padding: 1.5rem 1rem;
    }

    .n3-survey-pill {
        padding: 2rem 1.2rem;
        border-radius: 24px;
        width: 80%;
        /* Targeted floating look */
        margin: 0 auto;
        max-width: 300px;
        /* Force it to stay narrow */
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
        /* Stronger shadow for depth */
    }

    .n3-survey-content span {
        font-size: 0.7rem !important;
        letter-spacing: 1.5px !important;
    }

    .n3-survey-title {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.8rem !important;
    }

    .n3-survey-desc {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        padding: 0;
    }

    .n3-survey-pill .cg-btn-primary {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.75rem !important;
    }

    /* Cards Fix */
    .n3-course-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .n3-course-card.popular {
        transform: none;
    }

    .n3-course-thumb {
        height: 180px;
    }

    .n3-course-body {
        padding: 1.5rem;
    }

    .n3-curriculum-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .n3-section-desc-wrapper {
        text-align: left;
    }

    /* Footer: ULTRA COMPACT 2nd PASS */
    .next3-footer-wrapper {
        padding: 1.5rem 0.8rem 1rem;
        /* Extremely tight padding */
    }

    .next3-footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .next3-footer-brand {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 0.3rem;
    }

    .next3-footer-brand p {
        font-size: 0.75rem;
        margin: 0.2rem auto 0.4rem;
        line-height: 1.3;
        max-width: 220px;
    }

    .next3-logo-area {
        justify-content: center;
    }

    .next3-logo-text {
        font-size: 1.1rem !important;
    }

    .next3-footer-col {
        text-align: center;
    }

    .next3-footer-col h4 {
        margin-bottom: 0.2rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .footer-menu li {
        margin-bottom: 0.15rem;
    }

    .footer-menu a {
        font-size: 0.75rem;
    }

    .next3-footer-col:last-of-type {
        grid-column: span 2;
        margin-top: 0.4rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 0.6rem;
    }

    .next3-footer-col:last-of-type li {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .next3-footer-bottom {
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
        padding-top: 0.8rem;
        font-size: 0.65rem;
    }

    .n3-hero-title {
        font-size: 2.8rem !important;
    }
}

/* --------------------------------------------------------------------------
   COURSE DETAIL: PREMIUM ELEMENTS
   -------------------------------------------------------------------------- */

/* --- Daily Rhythm --- */
.n3-rhythm-list {
    position: relative;
    padding-left: 2rem;
}

.n3-rhythm-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.n3-rhythm-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.n3-rhythm-item:last-child {
    padding-bottom: 0;
}

.n3-time-badge {
    position: absolute;
    left: -2rem;
    background: #2a2a2a;
    color: var(--cg-primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    transform: translateX(-100%);
    margin-left: -1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.n3-rhythm-content {
    background: #232323;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid #444;
    transition: transform 0.3s ease;
}

.n3-rhythm-item:hover .n3-rhythm-content {
    transform: translateX(10px);
}

/* --- Outcomes Marquee --- */
.n3-outcomes-marquee {
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.n3-outcome-item {
    min-width: 320px;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    text-align: left;
    border: 1px solid #f0f0f0;
}

.n3-outcome-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.n3-outcome-item h4 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #1d3557;
}

.n3-outcome-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* --- Internship Section --- */
.n3-internship-full {
    padding: 8rem 2rem;
    text-align: center;
}

.n3-internship-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.n3-intern-stat {
    padding: 3rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.n3-intern-stat h4 {
    font-size: 2.5rem;
    color: #1a532d;
    margin: 0 0 0.5rem;
    font-weight: 800;
}

.n3-intern-stat span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
}

/* Mobile Adjustments for Course Page */
@media (max-width: 768px) {
    .n3-internship-stats {
        grid-template-columns: 1fr;
    }

    .n3-rhythm-list {
        padding-left: 1.5rem;
    }

    .n3-time-badge {
        position: static;
        transform: none;
        margin: 0 0 0.5rem;
        display: inline-block;
    }

    .n3-hero-title {
        font-size: 2.8rem !important;
    }
}