﻿:root {
    --bg-cream: #FAFBF6;
    --forest-dark: #1A471D;
    --forest-mid: #2C6E29;
    --olive-badge: #6B7B1E;
    --olive-light: #899D2B;
    --sage-card: #EEF4CE;
    --lime-banner: #F2F7B6;
    --text-dark: #1E241E;
    --divider-green: #5B7647;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #E6ECE3;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.font-serif-logo {
    font-family: 'Playfair Display', serif;
}

/* Main Flyer Poster Canvas */
.flyer-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 1.5rem auto;
    background-color: var(--bg-cream);
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(20, 48, 22, 0.18);
    border-radius: 6px;
}

/* Organic Torn-Paper Cutout for Hero Image (Desktop & Tablet) */
.hero-cutout-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 680px) {
    .hero-cutout-container {
        position: absolute;
        top: 0;
        right: 0;
        width: 57.5%;
        height: 755px;
        z-index: 1;
        pointer-events: none;
    }

    /* Outer dark green accent wedge top & bottom right */
    .hero-green-accent {
        position: absolute;
        inset: 0;
        background-color: #2A5B1E;
        clip-path: polygon( 33% 0%, 100% 0%, 100% 99%, 89% 90%, 78% 80%, 66% 71%, 54% 64%, 41% 59%, 28% 55%, 19% 49%, 15% 42%, 16% 34%, 21% 26%, 26% 17%, 30% 8% );
    }

    /* White torn paper rim */
    .hero-torn-rim {
        position: absolute;
        inset: 0;
        background-color: #FFFFFF;
        clip-path: polygon( 36% 0%, 100% 0%, 100% 94%, 91% 87%, 81% 79%, 70% 71%, 59% 65%, 47% 60%, 34% 56%, 23% 51%, 17% 44%, 17% 36%, 21% 28%, 26% 20%, 31% 11%, 34% 4% );
    }

    /* Photo clipped inside torn paper edge */
    .hero-photo-clip {
        position: absolute;
        inset: 0;
        clip-path: polygon( 38% 0%, 100% 0%, 100% 92.5%, 92% 86%, 82% 78%, 71% 70%, 60% 64%, 48% 59%, 35% 55%, 24.5% 50%, 18.8% 43.5%, 18.8% 36%, 22.8% 28%, 27.8% 20%, 32.5% 11%, 35.8% 4% );
        background-color: #2C5530;
    }
}

/* Cropping the exact photo area cleanly from the source image */
.hero-source-crop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Source image is full poster; shift/scale so the right-hand forest group fills the cutout */
    object-position: 98% 23%;
    transform: scale(1.76);
    transform-origin: 96% 21%;
}

@media (max-width: 679px) {
    .hero-cutout-container {
        height: 300px;
        border-bottom: 5px solid #2A5B1E;
        margin-bottom: 0.75rem;
    }

    .hero-photo-clip {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .hero-source-crop {
        transform: scale(1.85);
        transform-origin: 95% 23%;
    }
}

/* Top Right White Badge: 5 DAYS PROFESSIONAL TRAINING */
.top-right-badge {
    background-color: #FAFBF6;
    border-bottom-left-radius: 26px;
    padding: 14px 22px 14px 24px;
    box-shadow: -3px 4px 14px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
}

    .top-right-badge::after {
        content: "";
        display: block;
        height: 1.5px;
        width: 86%;
        margin: 8px auto 0;
        background: linear-gradient(90deg, transparent, #3E6633, transparent);
    }

/* QR Code container styling for guaranteed fast camera scan */
#qrcode-box {
    background: #FFFFFF;
    padding: 6px;
    border: 2.5px solid #1A471D;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(26, 71, 29, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    #qrcode-box:hover {
        transform: scale(1.04);
        box-shadow: 0 6px 16px rgba(26, 71, 29, 0.22);
    }

#qrcode img,
#qrcode canvas {
    display: block !important;
    width: 82px !important;
    height: 82px !important;
    image-rendering: pixelated;
}

/* Print optimization */
@media print {
    body {
        background: #FFFFFF !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .no-print {
        display: none !important;
    }

    .flyer-wrapper {
        margin: 0 auto !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
/* Keep full-poster crop zoom only on the right-hand torn cutout */
.hero-photo-clip .hero-source-crop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 98% 23%;
    transform: scale(1.76);
    transform-origin: 96% 21%;
}
/* Zoomed crop ONLY inside the right-hand torn-paper cutout */
.hero-photo-clip .hero-source-crop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 98% 23%;
    transform: scale(1.76);
    transform-origin: 96% 21%;
}

@media (max-width: 679px) {
    .hero-photo-clip .hero-source-crop {
        transform: scale(1.85);
        transform-origin: 95% 23%;
    }
}

/* Clean fit for the 5 Days Professional Training thumbnail box */
.training-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}
.hero-source-crop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: none;
}

@media (max-width: 679px) {
    .hero-source-crop {
        object-position: center 25%;
        transform: none;
    }
}
/* Proper fit inside the 5 Days Training box */
.training-box-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 20%;
    transform: none !important;
}
.hero-photo-clip {
    overflow: hidden;
    background-color: #2C5530;
}

    .hero-photo-clip .hero-source-crop {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        display: block;
        object-fit: contain;
        object-position: center 25%;
        transform: scale(0.94);
        transform-origin: center 25%;
    }

@media (max-width: 679px) {
    .hero-photo-clip .hero-source-crop {
        object-position: center 25%;
        transform: scale(0.92);
        transform-origin: center 25%;
    }
}