/* --- /css/MaipleLeaf.css --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* --- Global Variables --- */
:root {
    --neutral-dark: #191818;
    --primary-orange: #FE6A00;
    --font-family: 'Roboto';
    --section-padding: 80px;
}

.inline-orange-link {
    color: var(--primary-orange);
    font-weight: 500;
    text-decoration: underline;
}

.inline-orange-link:hover {
    color: #d14803;
}
/* --- Body and HTML Base Styles --- */
html {
    font-size: 16px;
}
body {
    font-family: var(--font-family);
    color: var(--neutral-dark);
    line-height: 1.25;
    overflow-x: hidden;
}
/* --- Main Container for Centering Content --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 8px;
}
/* --- Header Adjustments --- */
.header {
    position: relative;
    z-index: 1000;
    padding-top: 10px;
}
.header .container {
    padding-left: 0;
    padding-right: 0;
}
/* --- Navbar Styles --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    height: 100%;
}
.nav-links li {
    list-style: none;
}
.nav-links a {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.125rem;
    color: #191818;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-links .dropdown > a {
    position: relative;
}
.nav-links .dropdown > a::before {
    content: '';
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
    height: 2px;
    background: url('../images/NavBlackUnderline.svg') no-repeat center;
    color: var(--neutral-dark);
    background-size: 100% 2px;
}
.nav-links .dropdown > a::after {
    content: '';
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 8px;
    background: url('../images/NavBlackArrowDown.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}
.navbar .logo img {
    height: 76px;
    width: auto;
}
/* Styling the Dropdown Menu */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: white;
    border-radius: 12px;
    list-style: none;
    padding: 12px 0;
    min-width: 140px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}
/* Style the links inside the dropdown menu */
.dropdown-menu a {
    color: var(--neutral-dark);
    padding: 16px 24px;
    display: block;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.dropdown-menu a:hover {
    background-color: rgba(230, 81, 3, 0.1);
    color: var(--primary-orange);
}
.nav-buttons .btn {
    text-decoration: none;
    padding: 0.75rem 2.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.125rem;
}
.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    border: 1px solid white;
}
/* Button Styles */
.btn-secondary {
    background-color: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: block; /* Changed from inline-block to block for margin auto centering */
    width: fit-content; /* Ensures it only takes needed width, allowing true centering */
    transition: all 0.3s ease;
    margin: 30px auto 0; /* Centers horizontally with top margin */
    font-size: 1.25rem; /* Slightly larger base size for "Get Started" button */
}
.btn-secondary:hover {
    background-color: var(--primary-orange);
    color: white;
}
/* --- Hero Section Styles --- */
.top-section {
    position: relative;
    overflow: hidden;           /* important */
    background-color: #ffffff;
}

/* Make the hero background cover both navbar and hero */
.top-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;               /* full height of top-section */
    background: url('../images/LandscapeLeaves.svg') no-repeat center top;
    background-size: cover;
	background-size: 125% 100%;
    opacity: 0.95;
    z-index: 0;
    pointer-events: none;
}

/* Hero section adjustments */
/* === SINGLE HERO LEAF BACKGROUND === */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-section {
    position: relative;
    padding: 60px 0px -20px;
    background-color: transparent;
    z-index: 1;
}
/* 
.hero-section {
    position: relative;
    padding: 60px 0 40px;
    background-color: transparent;   /* important - let the background show through 
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0px;           /* tweak this to move the leaves up/down
    left: 0;
    width: 100%;
    height: 100%;          /* adjust if needed 
    background: url('../images/LandscapeLeaves.svg') no-repeat center top;
    background-size: cover;        /* or try 140% auto if you prefer stretched 
    opacity: 0.95;
    z-index: 0;
    pointer-events: none;
}										*/

.hero-container {
    position: relative;
    z-index: 2;                     /* higher than the background */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 0;
}

.hero-content {
    max-width: 950px;
    width: 100%;
}

.hero-title {
    font-size: clamp(1.3rem, 3.8vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 12px;
    font-weight: 700;
    margin-left: 0 !important;
}

.hero-description {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: 0;
    /* Pull description closer under the hero image (desktop) */
    margin-top: -170px;
    margin-left: 0 !important;
}

/* Hero description: desktop vs mobile copy */
.hero-description-desktop {
    display: block;
}
.hero-description-mobile {
    display: none;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 40px;
    color: var(--neutral-dark);
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -120px 0 0;
}

.hero-phone-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    min-width: 0;
    max-height: none;
}

/* Intro Section Styles */
.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 50px;
    gap: 60px;
}
.intro-content {
    flex: 1;
    max-width: 500px;
    min-width: 450px;
}
.intro-content h2 {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 30px;
    font-weight: 700;
    font-style: bold;
}
.intro-content p {
    max-width: 25em;
    font-size: 1.15rem;
    line-height: 1.5;
}
.intro-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
}
.main-laptop-image {
    max-width: none;
    height: auto;
}
.highlight-text {
    color: var(--primary-orange);
    font-weight: 500;
}
/* Features Section Styles */
.features-section {
    padding: 80px 0 20px;
}
.feature-container {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 20px; 
}
.features-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 3.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}
.title-leaf {
    flex-shrink: 0;
    width: 80px;
    height: auto;
}
.title-text {
    text-align: center;
}
.title-spacer {
    width: 80px;
    flex-shrink: 0;
}
.feature-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 40px;
    border-radius: 12px;
}
.feature-card:last-child {
    margin-bottom: 0;
}
/* Promo Card Styles (for new One-Click and Smart Reporting sections) */
.promo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 2.8px solid var(--primary-orange);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 18px 3px rgba(254, 106, 0, 0.28);
}

.promo-card {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 24px;
    padding: 40px 30px;
    background-color: white;
    margin-bottom: 0;
}

.promo-card:nth-child(1),
.promo-card:nth-child(4),
.promo-card:nth-child(5) {
    background-color: white;
}

.promo-card:nth-child(2),
.promo-card:nth-child(3),
.promo-card:nth-child(6) {
    background-color: #FFEFE5;
}

.promo-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 220px;
    flex-shrink: 0;
    margin-left: -30px;
}

.promo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
}

.promo-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--neutral-dark);
    text-align: center;
}

.promo-right {
    flex: 1;
    font-size: clamp(1.10rem, 1.65vw, 1.35rem);
    line-height: 1.6;
    margin: 0;
    padding-top: 4px;
}
/* Mobile Features Divider (now visible on all devices, renamed for clarity) */
.features-divider {
    display: block; /* Visible by default on desktop/mobile */
    text-align: center;
    margin: 40px 0; /* Balanced spacing: 40px above/below; adjust if too much/too little */
}
.features-divider img {
    max-width: 150px; /* Slightly larger on desktop for impact; scales down on mobile */
    height: auto;
}
/* Larger result / conclusion text - matches "Future-Proof Compatibility" size */
.result-text {
    text-align: center;
    max-width: 85%;
    margin: 60px auto 10px;
    font-size: 1.45rem;           /* Same as .success-container h3 */
    line-height: 1.35;
    font-weight: 500;
}

/* Optional: Make it even a bit bolder or orange on the second one */
.result-text.highlight-text {
    color: var(--primary-orange);
    font-weight: 600;
}
/* Mobile Responsiveness for Promo Cards */
@media (max-width: 767px) {
    .promo-row {
        display: flex;
        flex-direction: column;
    }
    
    .promo-card {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
    }
    
    .promo-left {
        width: auto;
        justify-content: center;
        gap: 16px;
    }
    
    .promo-icon {
        width: 58px;
        height: 58px;
    }
    
    .promo-title {
        font-size: 1.85rem;
        text-align: center;
    }
    
    .promo-right {
        padding-top: 0;
        text-align: center;
    }
    .feature-container {
        padding: 0 16px; /* Slight reduction on mobile for fuller width */
    }
    .features-divider {
        margin: 20px 0; /* Tighter on mobile for compact feel */
    }
    .features-divider img {
        max-width: 75px; /* Keep existing small size on mobile */
    }
    .features-title {
        font-size: clamp(1.8rem, 4.5vw, 2.25rem) !important;  /* Now matches the success section title size on mobile */
        margin-bottom: 40px;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        line-height: 1.1;
    }
    .title-leaf {
        width: 50px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .promo-card {
        gap: 40px;
        padding: 30px;
    }
    .promo-left {
        width: 360px; /* Proportionally widened on tablet (from 320px) */
    }
    .promo-title {
        font-size: 1.95rem; /* Slightly smaller from 2rem for tablet */
    }
    .promo-icon {
        width: 50px;
        height: 50px;
    }
    .promo-right {
        margin-top: 65px; /* Adjusted offset for smaller icon (50px + gap 15px) */
    }
    .feature-container {
        padding: 0 24px; /* Reduced from implicit 40px for tablet edge proximity */
    }
    .features-divider img {
        max-width: 120px; /* Medium size on tablet */
    }
}
@media (min-width: 1024px) {
    .features-divider {
        margin: 50px 0; /* Extra breathing room on large screens */
    }
}
.card-content, .card-image {
    flex: 1;
}
.card-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.card-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.card-image img {
    max-width: 100%;
    height: auto;
    display: block;
}
.combined-features-wrapper {
    background-color: #eeeeee;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}
.combined-features-wrapper .feature-card {
    background-color: transparent;
}
/* Onboarding Wrapper for Grey Background (Mirrors combined-features-wrapper) */
.onboarding-wrapper {
    background-color: #FFEFE5; /*FFDFC9*/
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}
.onboarding-wrapper .promo-card {
    background-color: transparent;
}
/* Contact Ribbon Section */
.contact-ribbon-section {
    background-color: var(--primary-orange);
    padding: 5px 15px;
    margin: 20px 15px 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.contact-ribbon-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
}
.ribbon-leaf {
    width: 50px;
    height: auto;
    margin-right: 15px;
}
.ribbon-text {
    flex: 1;
    padding: 0 15px;
}
.ribbon-text h3 {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left; /* Left-aligned for desktop */
}
.ribbon-button {
    margin-left: auto;
}
.ribbon-button .btn-secondary {
    background-color: white;
    color: var(--primary-orange);
    border: none;
    font-weight: 500;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-top: 0;
}
.mobile-br {
    display: none;
}
.ribbon-button .btn-secondary:hover {
    background-color: #f0f0f0;
}
/* Orange Divider */
.orange-divider {
    height: 3.5px;
    background-color: var(--primary-orange);
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 20px;
}
.features-divider-line {
    margin: 40px auto 20px;
}
.success-divider-line {
    margin: 30px auto 20px;
}
.hero-divider-line {
    margin: 30px auto 20px;
}
/* Footer Styles */
.footer {
    background-color: #f8f8f8;
    padding: 40px 0;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 80px;
}
.footer-left {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.footer-logo {
    display: block;
}
.footer-logo img {
    height: 76px;
    width: auto;
}
.copyright {
    color: #000000;
    font-size: 0.875rem;
    padding-bottom: 12px;
}
.footer-right {
    flex: 2;
    display: flex;
    justify-content: space-between;
    padding-right: 50px;
}
.footer-column h4 {
    color: var(--neutral-dark);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 12px;
}
.footer-column a {
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: var(--primary-orange);
}
/* Hamburger and Mobile Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}
.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--neutral-dark);
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-orange);
    padding: 20px;
    text-align: center;
    z-index: 1000;
}
.mobile-logo {
    height: 50px;
    margin-bottom: 20px;
}
.mobile-nav-links {
    list-style: none;
    padding: 0;
}
.mobile-nav-links li {
    margin: 15px 0;
}
.mobile-nav-links a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
}
.mobile-dropdown-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
}
.mobile-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 8px;
    background: url('../images/WhiteArrowDown.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}
.mobile-dropdown.active .mobile-dropdown-toggle::after {
    transform: rotate(180deg);
}
.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
}
.mobile-dropdown-menu li {
    margin: 10px 0;
}
.mobile-dropdown-menu a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}
.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}
.mobile-menu-divider {
    height: 1px;
    background-color: white;
}
/* Mobile-First Responsive CSS */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 10px 16px;
    }
    .header .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 10px 0;
        position: relative;
    }
    .navbar .logo {
        margin-left: 0;
        margin-bottom: 0;
    }
    .navbar .logo img {
        height: 50px;
    }
    .nav-links {
        display: none;
    }
    .nav-buttons {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .mobile-menu.active {
        display: block;
    }
    /* Hero background (mobile): dedicated PNG; desktop keeps LandscapeLeaves.svg */
    .top-section {
        overflow: hidden;
    }
    .top-section::before {
        top: 200px;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../images/MaipleTime/herobackground.png');
        /*
         * cover crops left/right on tall phones.
         * 100% auto = full width visible, natural height (no side crop).
         * Try: contain | 100% auto | 110% auto | 100% 100% (stretch)
         */
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
    }

    /* 560–766px: nudge hero background 40px higher than the base mobile top */
    @media (min-width: 560px) and (max-width: 766px) {
        .top-section::before {
            top: 160px; /* base mobile is 200px; lower top = higher on screen */
        }
    }

        /* Hero Section Mobile */
    .hero-section {
        padding: 40px 0;
    }
    .hero-container {
        flex-direction: column;
        padding: 0 20px;
        /* Stack: title/subtitle → image → description (no large pull-up overlap) */
        gap: 16px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-left: 0 !important;   /* ← Critical fix */
        margin-right: 0 !important;
        /* Nudge title/subtitle a little higher */
        margin-top: -28px;
        position: relative;
        z-index: 2;
    }
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        margin-bottom: 12px;
        margin-left: 0 !important;   /* ← Critical fix */
    }
    .hero-subtitle {
        margin-bottom: 8px;
    }
    .hero-description {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: 15px;
        margin-left: 0 !important;   /* ← Critical fix */
        /* Pull closer under the image (overrides desktop -170px) */
        margin-top: -20px;
    }
    .hero-description-desktop {
        display: none;
    }
    .hero-description-mobile {
        display: block;
    }
    .hero-image-container {
        margin-right: 0;
        justify-content: center;
        width: 100%;
        /* Don’t pull the image over the subtitle (base uses -120px) */
        margin-top: 0;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }
    .hero-phone-image {
        min-width: 0;
        width: 90%;
        max-width: 450px;
    }

    /* Image swap */
    .desktop-hero-image { display: none; }
    .mobile-hero-image { display: block; }
    .intro-content {
        max-width: 100%;
        text-align: center;
        min-width: auto;
    }
    .intro-content h2 {
        font-size: 2rem;
    }
    .intro-content p {
        font-size: 1rem;
    }
    .main-laptop-image {
        max-width: 80%;
    }
    .features-section {
        padding: 40px 0 20px;
    }
    .feature-container {
        padding: 0 20px;
    }
    .features-title {
        font-size: 2.25rem;
        margin-bottom: 40px;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .title-leaf {
        width: 50px;
    }
    .feature-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .feature-card.reverse-layout {
        flex-direction: column;
    }
    .card-content {
        order: 1;
    }
    .card-image {
        order: 2;
    }
    .card-image img {
        max-width: 80%;
        margin: 0 auto;
    }
    .card-content h3 {
        font-size: 1.8rem;
    }
    .card-content p {
        font-size: 1rem;
    }
    /* Contact Ribbon Section Mobile Adjustments */
    .contact-ribbon-section {
        padding: 5px 10px; /* Reduce side padding for more text space */
        margin: 20px 10px 0; /* Match reduced padding */
    }
    .contact-ribbon-content {
        gap: 10px; /* Slightly tighter gap between leaf/text/button */
    }
    .ribbon-leaf {
        width: 30px; /* Smaller leaf for mobile to fit in row */
        height: auto;
        margin-right: 5px;
        margin-bottom: 0; /* Remove bottom margin */
        flex: 0 0 auto; /* Prevent stretching */
    }
    .ribbon-text {
        flex: 1; /* Take available space */
        padding: 0 3px;
        text-align: left; /* Align text left for better readability */
    }
    .ribbon-text h3 {
        font-size: 1rem; /* Slightly larger (back to original 0.9rem) for better fit with shorter text */
        line-height: 1.4; /* Increase for airier two-line feel */
        hyphens: auto; /* Allow soft hyphens (e.g., "to-day!") if wrapping extreme */
        word-break: break-word; /* Prevent overflow on long words */
        margin: 0; /* Ensure no extra margins */
    }
    .ribbon-button {
        flex: 0 0 auto; /* Button takes only necessary width */
        padding: 0 5px;
        margin-left: 2px; /* Adjusted to half way (from 5px) */
    }
    .ribbon-button .btn-secondary {
        padding: 0.5rem 0.6rem; /* Slightly increased vertical padding for better centering around two lines */
        font-size: 0.9rem;
        white-space: nowrap; /* Retain to prevent unwanted wrapping beyond the <br> */
        text-align: center; /* Center the text horizontally inside the button */
    }
    .mobile-br {
        display: inline;
    }
    .footer .container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-left {
        max-width: 100%;
        text-align: center;
    }
    .footer-logo img {
        height: 60px;
    }
    .copyright {
        font-size: 0.8rem;
        margin-top: 15px;
    }
    .footer-right {
        padding-right: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 30px;
    }
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .footer-column a {
        font-size: 0.85rem;
    }
    .orange-divider {
        max-width: 100%;
        margin: 10px auto;
    }
    /* Ultra-small phone fix (e.g., iPhone SE, <480px) */
    @media (max-width: 479px) {
        .ribbon-leaf {
            width: 25px; /* Shrink leaf further */
            margin-right: 3px;
        }
        .ribbon-text h3 {
            font-size: 0.95rem; /* Slightly larger (from 0.8rem) for tiny screens */
            line-height: 1.35;
        }
        .ribbon-button {
            margin-left: 0; /* Remove any left margin */
        }
        .ribbon-button .btn-secondary {
            padding: 0.3rem 0.5rem;
            font-size: 0.85rem;
        }
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 750px;
        padding: 20px 24px;
    }
    .navbar .logo img {
        height: 64px;
    }
    .nav-links {
        gap: 2rem;
    }
    .nav-links a {
        font-size: 1rem;
    }
    /* Hero background (tablet): same PNG as mobile */
    .top-section::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../images/MaipleTime/herobackground.png');
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }

    /* Hero Section Tablet */
    .hero-container {
        padding: 0 30px;
        gap: 40px;
        max-width: 1200px;
    }
    .hero-title {
        font-size: clamp(2.25rem, 4.5vw, 2.75rem);
    }
    .hero-description {
        font-size: clamp(1.05rem, 2vw, 1.2rem);
    }
    .intro-content h2 {
        font-size: 2.5rem;
    }
    .features-title {
        font-size: 3rem;
    }
    .feature-card {
        gap: 40px;
        padding: 30px;
    }
    .card-content h3 {
        font-size: 2rem;
    }
    /* Contact Ribbon Section Tablet Adjustments */
    .ribbon-text h3 {
        font-size: 1.4rem; /* Increased from 1.3rem */
        line-height: 1.2;
    }
    .mobile-br {
        display: inline;
    }
    .ribbon-button .btn-secondary {
        padding: 10px 20px;
        font-size: 1.3rem; /* Increased from 1.2rem */
    }
    .ribbon-text {
        padding-left: 5px; /* Slightly reduce left padding to move text left */
    }
    .footer .container {
        flex-direction: column;
        gap: 40px;
    }
    .footer-right {
        flex-direction: row;
        justify-content: space-around;
        padding-right: 0;
    }
    .intro-image-container {
        flex: 1;
        margin-left: -40px;
    }
    .main-laptop-image {
        transform: scale(0.7);
    }
}
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    .mobile-menu {
        display: none !important;
    }
    .intro-content {
        position: relative;
        z-index: 2;
    }
    .intro-image-container {
        flex: 1.1;
        margin-left: -40px;
        position: relative;
        z-index: 1;
    }
    .main-laptop-image {
        transform: scale(0.7);
        max-width: none;
    }
    /* Contact Ribbon Section Desktop Adjustments */
    .contact-ribbon-section {
        padding: 5px 30px;
        margin: 20px 90px 0;
        border-radius: 20px;
    }
    .ribbon-leaf {
        width: 80px;
        margin-right: 70px;
    }
    .ribbon-text h3 {
        font-size: 1.5rem;
        text-align: left; /* Ensure left-aligned for desktop */
    }
    .ribbon-button .btn-secondary {
        padding: 12px 30px;
        font-size: 1.4rem; /* Slightly smaller than previous 1.8rem for desktop */
    }
    @media (min-width: 768px) {
    .desktop-hero-image { display: block; }
    .mobile-hero-image { display: none; }
}
}
@media (min-width: 1024px) {
    .mobile-logo {
        display: none;
    }
}
@media (min-width: 1440px) {
    .container {
        max-width: 1300px;
        padding: 32px 32px;
    }
    /* Hero Section Large Desktop */
    .hero-container {
        gap: 80px;
        padding: 0 50px;
        max-width: 1600px;
    }
    .hero-content {
        max-width: 1000px;
    }
    .hero-title {
        font-size: clamp(1.3rem, 3.8vw, 3.6rem);
    }
    .hero-description {
        font-size: clamp(1.2rem, 1.5vw, 1.4rem);
        /* Offset large container gap so text stays tight under the image */
        margin-top: -220px;
    }
    .intro-content h2 {
        font-size: 4rem;
    }
    .features-title {
        font-size: 4rem;
    }
}
.leaf-bg {
    background-color: #ffffff;
    color: white;
    background-image: url('../images/HomepageImages/MaipleSuccessLeafBackground.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}
.leaf-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 107, 0, 0.85);
    border-radius: 8px;
    z-index: 0;
}
.leaf-bg img {
    position: relative;
    z-index: 1;
    border-radius: 4px;
}
.leaf-bg h3,
.leaf-bg p {
    position: relative;
    z-index: 1;
    color: white;
}
.leaf-bg p,
.success-container.leaf-bg p {
    color: white !important;
}
.white-bg {
    background-color: #ffffff;
}
/* === MaipleLeaf Family / Success Section === */
.success-section {
    padding: 40px 0 20px;
}
.success-section h2 {
    font-size: clamp(1.8rem, 4vw, 3.3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.1;
}
.success-intro-text {
    font-size: 1.15rem;
    text-align: center;
    max-width: 1050px;
    margin: 0 auto 40px;
    line-height: 1.5;
}
.success-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.success-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;           /* ensures cards in each row have matching height */
}

/* Base card styles */
.success-container {
    border-radius: 12px;
    padding: 30px 25px;
    flex: none;                     /* important - prevents unwanted equal flex */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.success-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.success-container img {
    height: 45px;                   /* desktop icon size */
    width: auto;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.success-container h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}
.success-container p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #333;
    flex-grow: 1;
}

/* Desktop: 2 wide cards (top row) + 3 narrow cards (bottom row) */
@media (min-width: 768px) {
    .success-container:nth-child(1),
    .success-container:nth-child(2) {
        flex: 0 0 calc(50% - 12.5px);   /* wider cards */
    }
    .success-container:nth-child(3),
    .success-container:nth-child(4),
    .success-container:nth-child(5) {
        flex: 0 0 calc(33.333% - 16.67px); /* narrower cards */
    }
}

/* Mobile Success Cards - MAXIMUM width (≈94-95% of screen) */
@media (max-width: 767px) {
    .success-grid {
        padding: 0 8px;           /* Very small side padding = maximum card width */
    }
    
    .success-row {
        gap: 10px;                /* Tight gap so two cards still fit nicely */
    }

    .success-container {
        padding: 24px 16px !important;
        border-radius: 12px;
    }

    /* Card 1 – Full width, extra wide */
    .success-container:nth-child(1) {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Cards 2–5 – Two per row, now significantly wider */
    .success-container:nth-child(2),
    .success-container:nth-child(3),
    .success-container:nth-child(4),
    .success-container:nth-child(5) {
        flex: 0 0 calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }

    /* Text sizing */
    .success-container h3 {
        font-size: 1.22rem !important;
        line-height: 1.15;
    }
    
    .success-container p {
        font-size: 0.93rem !important;
        line-height: 1.45;
    }

    .success-container img {
        height: 50px !important;
    }

    /* Extra breathing for the whole section */
    .success-section {
        padding: 32px 0 10px;
    }
}

/* Consistent paragraph sizing across all main sections on desktop */
.success-intro-text,
.features-section p[style*="text-align: center"],
.hero-description {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    line-height: 1.6;
}

/* Mobile adjustment - keep it readable but not too big */
@media (max-width: 767px) {
    .result-text {
        font-size: 1.25rem;
        margin: 30px auto 40px;
        line-height: 1.4;
    }
}

/* === MaipleTime Lite Product Section (ported from MaipleHCM.css) === */
.product-feature-section {
    padding: var(--section-padding) 0;
}
.product-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.product-text {
    flex: 1;
}
.product-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}
.status-text {
    font-size: 0.875rem;
    background-color: rgba(230, 81, 3, 0.1);
    color: var(--primary-orange);
    padding: 4px 12px;
    border-radius: 100px;
    margin-left: 10%;
    text-align: center;
}
.product-header img {
    width: 48px;
    height: auto;
}
.product-header h2 {
    font-size: 2.5rem;
    font-weight: 500;
}
.product-image {
    flex: 1;
}
.product-image img {
    width: 100%;
    height: auto;
}

/* Dropdown / Accordion styles */
.dropdowns {
    list-style: none;
}
.dropdown-item {
    border-bottom: 1px solid rgba(25, 24, 24, 0.1);
    margin-bottom: 16px;
}
.dropdown-toggle {
    font-size: 1.25rem;
    font-weight: 500;
    padding: 12px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 8px;
    background: url('../images/BlackArrowDown.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}
.dropdown-item.active .dropdown-toggle {
    color: var(--primary-orange);
}
.dropdown-item.active .dropdown-toggle::after {
    background: url('../images/OrangeArrowUp.svg') no-repeat center;
    background-size: contain;
}
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    opacity: 0;
    font-size: 1rem;
    line-height: 1.5;
}
.dropdown-item.active .dropdown-content {
    max-height: 200px;
    opacity: 1;
    padding: 12px 20px;
}

/* Image on LEFT for this section (same as maiple-time on HCM) */
.maiple-time .product-image {
    flex: none;
    width: calc(50vw - 30px);
    margin-left: calc(-50vw + 550px - 8px);
}
.maiple-time .product-text {
    flex: none;
    width: calc(50% - 30px);
}

/* Mobile responsiveness for the new section */
@media (max-width: 767px) {
    .product-container {
        flex-direction: column-reverse;
        gap: 30px;
    }
    .maiple-time .product-image,
    .maiple-time .product-text {
        width: 100%;
        margin-left: 0;
    }
    .product-header h2 {
        font-size: 1.8rem;
    }
    .dropdown-toggle {
        font-size: 1.2rem;
    }
}

/* --Ribbon section start here --*/
/* ====================== CONTACT RIBBON SECTION - IMPROVED ====================== */
.contact-ribbon-section {
    background-color: var(--primary-orange);
    padding: 8px 12px;
    margin: 20px 12px 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.contact-ribbon-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ribbon-leaf {
    width: 32px;
    height: auto;
    flex-shrink: 0;
    margin-right: 6px;
}

.ribbon-text {
    flex: 1;
    min-width: 0; /* Allows text to shrink properly */
    padding: 0 4px;
}

.ribbon-text h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
    color: white;
}

/* Desktop text */
.desktop-text {
    display: none;
    font-size: 1.35rem;
}

/* Mobile text - cleaner & less stretched */
.mobile-text {
    display: block;
    font-size: 1.08rem;           /* Slightly smaller to prevent stretching */
    line-height: 1.28;
    font-weight: 700;
}

/* Button improvements */
.ribbon-button {
    flex-shrink: 0;
}

.ribbon-button .btn-secondary {
    background-color: white;
    color: var(--primary-orange);
    border: none;
    font-weight: 600;
    padding: 10px 14px;           /* Balanced padding */
    font-size: 0.95rem;
    line-height: 1.25;
    border-radius: 8px;
    white-space: normal;          /* Allow wrapping */
    text-align: center;
    min-width: 118px;             /* Prevents it from becoming too wide */
    max-width: 135px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ====================== RESPONSIVE FIXES ====================== */

/* Mobile (default) */
@media (max-width: 768px) {
    .contact-ribbon-section {
        margin: 20px 10px 0;
        padding: 10px 14px;
    }

    .ribbon-leaf {
        width: 28px;
    }

    .mobile-text {
        font-size: 1.05rem;       /* Even tighter on very small phones */
        line-height: 1.3;
    }

    .ribbon-button .btn-secondary {
        padding: 9px 13px;
        font-size: 0.93rem;
        min-width: 112px;
        max-width: 130px;
    }
}

/* Tiny phones */
@media (max-width: 479px) {
    .mobile-text {
        font-size: 1.02rem;
        line-height: 1.32;
    }
    
    .ribbon-button .btn-secondary {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 108px;
    }
}

/* Tablet & Desktop */
@media (min-width: 769px) {
    .desktop-text {
        display: block;
    }
    .mobile-text {
        display: none;
    }

    .contact-ribbon-section {
        margin: 20px 80px 0;
        padding: 12px 30px;
        border-radius: 20px;
    }

    .ribbon-leaf {
        width: 78px;
        margin-right: 65px;
    }

    .ribbon-text h3 {
        font-size: 1.35rem;
    }

    .ribbon-button .btn-secondary {
        padding: 12px 28px;
        font-size: 1.12rem;
        min-width: 165px;
    }
}
/* --Ribbon section ends here --*/

/* Certifications image centering */
.certifications-image {
    display: block;
    margin: -10px auto 0;
    max-width: 85%;
    height: auto;
    width: 100%;           /* This makes it responsive */
}

/* Optional: Make it a bit smaller on mobile */
@media (max-width: 767px) {
    .certifications-image {
        max-width: 90%;
    }
}

/* Hero description - different lengths for desktop vs mobile */
.hero-description.desktop-version {
    display: block;
}

.hero-description.mobile-version {
    display: none;
}

/* On mobile: hide desktop version, show short mobile version */
@media (max-width: 767px) {
    .hero-description.desktop-version {
        display: none;
    }
    
    .hero-description.mobile-version {
        display: block;
    }
}

/* ====================== TINY PRINT DISCLAIMER ====================== */
.disclaimer-section {
    padding: 25px 0 35px;
    background-color: #f9f9f9;
    border-top: 1px solid #eeeeee;
}

.disclaimer-text {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #666666;
    font-weight: 400;
}

/* Make it even smaller and more "fine print" on mobile */
@media (max-width: 767px) {
    .disclaimer-section {
        padding: 20px 0 30px;
    }
    
    .disclaimer-text {
        font-size: 0.78rem;
        padding: 0 15px;
    }
}

/* ==================== MaipleLeaf Family Carousel ==================== */
.leaf-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 20px;
}
.leaf-carousel-track-container {
    overflow: hidden;
    flex: 1;
}
.leaf-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}
.leaf-slide {
    flex: 0 0 85%;
    box-sizing: border-box;
    padding: 10px;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}
.leaf-slide.active {
    opacity: 1;
}
.leaf-slide-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    background-color: #f8f8f8;
    border: 2.5px solid var(--primary-orange);
    border-radius: 16px;
    padding: 50px 60px;
    min-height: 600px;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 18px 3px rgba(254, 106, 0, 0.28);
}
.leaf-slide-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
}
.leaf-slide-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
}
.leaf-slide:nth-child(3) .leaf-slide-image {
    max-width: 650px;
}
.leaf-slide:nth-child(3) .leaf-slide-image img {
    max-width: 650px;
    max-height: 545px;
}

/* Slide 1 only — bigger image, centered like slides 2 & 3 */
.leaf-slide:nth-child(1) .leaf-slide-inner {
    padding: 25px 60px;
    justify-content: center;
    gap: 60px;
}
.leaf-slide:nth-child(1) .leaf-slide-image {
    flex: 0 0 auto;
    max-width: 720px;
}
.leaf-slide:nth-child(1) .leaf-slide-image img {
    max-width: 720px;
    max-height: 590px;
}
.leaf-slide:nth-child(1) .leaf-slide-text {
    flex: 0 1 600px;
}
.leaf-slide:nth-child(2) .leaf-slide-image {
    flex: 0 0 auto;
    max-width: 520px;
}
.leaf-slide:nth-child(2) .leaf-slide-image img {
    max-width: 520px;
    max-height: 460px;
}
/* Explicit equal gap across all slides */
.leaf-slide:nth-child(2) .leaf-slide-inner {
    gap: 65px;
    justify-content: center;
}
.leaf-slide:nth-child(3) .leaf-slide-inner {
    gap: 25px;
    justify-content: center;
}
.leaf-slide-text {
    flex: 0 1 600px;
}
.leaf-slide-text h3 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 16px;
}
.leaf-slide-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--neutral-dark);
}
.leaf-slide-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--neutral-dark);
}
.leaf-slide-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.leaf-slide-list li {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--neutral-dark);
    padding-left: 20px;
    position: relative;
    margin-bottom: 16px;
}

.leaf-slide-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--neutral-dark);
}
.leaf-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;  
    background: white;
    color: var(--primary-orange);
    font-size: 1.4rem;  
    font-weight: 600;          
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.leaf-arrow:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}
.leaf-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.leaf-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.leaf-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}
.leaf-dot.active {
    background: var(--primary-orange);
}

/* ---------- Tablet: wider cards, stacked content, less dead space ---------- */
@media (max-width: 1023px) {
    .leaf-carousel-wrapper {
        position: relative;
        max-width: 100%;
        padding: 0 12px;
        gap: 0;
    }

    /* Free horizontal space for the card — arrows sit on the card edges */
    .leaf-arrow {
        position: absolute;
        top: 42%;
        transform: translateY(-50%);
        z-index: 3;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        background: rgba(255, 255, 255, 0.95);
    }

    .leaf-arrow-prev {
        left: 4px;
    }

    .leaf-arrow-next {
        right: 4px;
    }

    .leaf-carousel-track-container {
        width: 100%;
    }

    .leaf-slide {
        flex: 0 0 94%;
        padding: 8px 6px;
        opacity: 0.4;
    }

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

    .leaf-slide-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        padding: 28px 24px 32px;
        min-height: 0;
        height: auto;
    }

    .leaf-slide:nth-child(1) .leaf-slide-inner,
    .leaf-slide:nth-child(2) .leaf-slide-inner,
    .leaf-slide:nth-child(3) .leaf-slide-inner {
        gap: 20px;
        padding: 28px 24px 32px;
        justify-content: flex-start;
    }

    .leaf-slide-image,
    .leaf-slide:nth-child(1) .leaf-slide-image,
    .leaf-slide:nth-child(2) .leaf-slide-image,
    .leaf-slide:nth-child(3) .leaf-slide-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 360px;
    }

    .leaf-slide-image img,
    .leaf-slide:nth-child(1) .leaf-slide-image img,
    .leaf-slide:nth-child(2) .leaf-slide-image img,
    .leaf-slide:nth-child(3) .leaf-slide-image img {
        max-width: 100%;
        max-height: 260px;
        width: auto;
        margin: 0 auto;
    }

    .leaf-slide-text,
    .leaf-slide:nth-child(1) .leaf-slide-text {
        flex: 1 1 auto;
        width: 100%;
        max-width: 520px;
    }

    .leaf-slide-text h3 {
        font-size: 1.55rem;
        margin-bottom: 12px;
    }

    .leaf-slide-text p {
        font-size: 1.05rem;
        line-height: 1.55;
    }

    .leaf-slide-list {
        margin-top: 14px;
        text-align: left;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .leaf-slide-list li {
        font-size: 1.05rem;
        line-height: 1.55;
        margin-bottom: 10px;
        padding-left: 18px;
    }

    .leaf-dots {
        margin-top: 18px;
        margin-bottom: 8px;
    }
}

/* ---------- Phone: near full-width cards, tighter type & images ---------- */
@media (max-width: 767px) {
    .success-section {
        padding: 28px 0 12px;
    }

    .success-intro-text {
        font-size: 1rem;
        margin-bottom: 28px;
        padding: 0 4px;
    }

    .leaf-carousel-wrapper {
        padding: 0 4px;
    }

    .leaf-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
        top: 38%;
    }

    .leaf-arrow-prev {
        left: 2px;
    }

    .leaf-arrow-next {
        right: 2px;
    }

    .leaf-slide {
        flex: 0 0 100%;
        padding: 6px 4px;
        opacity: 1; /* only one card mostly visible — no dimmed peek needed */
    }

    .leaf-slide-inner {
        padding: 22px 16px 26px;
        gap: 16px;
        border-width: 2px;
        border-radius: 14px;
        box-shadow: 0 0 12px 2px rgba(254, 106, 0, 0.22);
    }

    .leaf-slide:nth-child(1) .leaf-slide-inner,
    .leaf-slide:nth-child(2) .leaf-slide-inner,
    .leaf-slide:nth-child(3) .leaf-slide-inner {
        padding: 22px 16px 26px;
        gap: 16px;
    }

    .leaf-slide-image,
    .leaf-slide:nth-child(1) .leaf-slide-image,
    .leaf-slide:nth-child(2) .leaf-slide-image,
    .leaf-slide:nth-child(3) .leaf-slide-image {
        max-width: min(280px, 78vw);
    }

    .leaf-slide-image img,
    .leaf-slide:nth-child(1) .leaf-slide-image img,
    .leaf-slide:nth-child(2) .leaf-slide-image img,
    .leaf-slide:nth-child(3) .leaf-slide-image img {
        max-height: 200px;
    }

    .leaf-slide-text h3 {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .leaf-slide-text p {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .leaf-slide-list {
        margin-top: 12px;
        max-width: 100%;
        padding: 0 4px;
    }

    .leaf-slide-list li {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .leaf-dots {
        margin-top: 14px;
        gap: 10px;
    }

    .leaf-dot {
        width: 10px;
        height: 10px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .leaf-slide-inner {
        padding: 18px 12px 22px;
    }

    .leaf-slide-text h3 {
        font-size: 1.2rem;
    }

    .leaf-slide-image img,
    .leaf-slide:nth-child(1) .leaf-slide-image img,
    .leaf-slide:nth-child(2) .leaf-slide-image img,
    .leaf-slide:nth-child(3) .leaf-slide-image img {
        max-height: 170px;
    }
}

.leaf-slide-image img {
    cursor: zoom-in;
}

.leaf-image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.leaf-image-modal.active {
    display: flex;
}

.leaf-image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.leaf-image-modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    color: var(--neutral-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaf-image-modal-close:hover {
    background: var(--primary-orange);
    color: white;
}