/* --- CSS Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* --- Global Variables --- */
:root {
    --neutral-dark: #191818;
    --primary-orange: #E65103;
    --font-family: 'Roboto';
    --section-padding: 80px;
}
/* --- Body and HTML Base Styles --- */
html {
    font-size: 16px; /* Reduced base font size for mobile */
}
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: 10px 16px; /* Reduced padding for mobile */
}
/* --- 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;
}
.navbar .logo img {
    height: 76px;
    width: auto;
}
.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: white;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-links .dropdown > a {
    position: relative;
}
.nav-links .dropdown > a::after {
    content: '';
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 0px;
    background: url('../images/WhiteArrowDown.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
    transform: translateX(-5px); /* Maintain nudge */
}
/* NEW: Active underline rule (white for this theme) */
.nav-links li.active > a {
    position: relative;
}
.nav-links li.active > a::before {
    content: '';
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
    height: 2px;
    background: url('../images/NavUnderline.svg') no-repeat center;
    background-size: 100% 2px;
}
/* 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;
}
.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 {
    display: flex;
    align-items: center;
}
.nav-buttons .btn {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.125rem; /* Added for slightly larger font */
}
.btn-primary {
    background-color: white;
    color: var(--primary-orange);
    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: inline-block;
    transition: all 0.3s ease;
    margin-top: 30px;
}
/* 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: white;
    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: #FF6B00;
    padding: 20px;
    text-align: center;
    z-index: 1000;
}
.mobile-menu.active {
    display: block;
}
.mobile-logo {
    height: 50px; /* Reduced to match MaipleHCM */
    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.active .mobile-dropdown-menu {
    display: block;
}
.mobile-dropdown-menu li {
    margin: 10px 0;
}
.mobile-dropdown-menu a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}
.mobile-menu-divider {
    height: 1px;
    background-color: white;
    margin: 15px 0;
}
/* --- -------------------------------------------------------------------- --- */
/* Text Highlighter */
.highlight-text {
    color: var(--primary-orange);
}
/* Background Hero Section - UPDATED: Full stretch to cover width/height (ignores aspect ratio for complete top/bottom visibility) */
.background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background-image: url('../images/HomepageImages/HomepageBackground.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* Stretches to full width and height—no aspect ratio, no bottom gaps */
    background-position: top center; /* Keeps top alignment for consistency */
}
/* --- Hero Section Styles --- */
.hero-section {
    position: relative;
    z-index: 1;
    padding-top: 20px;
}
.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-content {
    color: white;
    margin-bottom: 40px;
    max-width: 100%;
}
.hero-text-container h1 {
    font-size: 2rem; /* Reduced for mobile */
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: white;
}
.hero-text-container p {
    font-size: 1.1rem; /* Reduced for mobile */
    color: white;
}
.hero-image-container {
    margin-top: -60px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}
.hero-image-container img {
    width: 100%;
    height: auto;
}
.scroll-down-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-down-button {
    width: 50px;
    height: 50px;
    background-color: #FF6B00;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.scroll-down-button img {
    width: 40px;
    height: auto;
}
/* About Script Section */
.about-script-section {
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 20px;
}
.about-script-content {
    max-width: 100%;
    height: 200px; /* Reduced for mobile */
    overflow-y: auto;
    padding: 15px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    text-align: center;
    margin: 0 auto; /* Center the content */
}
.about-script-content::-webkit-scrollbar {
    display: none;
}
.about-script-content h2 {
    font-size: 1.2rem; /* Reduced for mobile */
    line-height: 1.4;
    font-weight: 500;
}
.about-h2.mobile {
    display: none;
}
.script-image-container {
    margin: 30px 0;
}
.script-image-container img {
    width: 60px;
    height: auto;
}
hr {
    width: 90%;
    height: 1px;
    background-color: #ffd7b5;
    border: none;
    margin: 20px auto 0;
}
/* Discover Maiple Section */
.discover-maiple-section {
    padding: 30px 0 40px;
    background-color: white;
}
.discover-maiple-header {
    text-align: center;
    font-size: 1.8rem; /* Reduced for mobile */
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
    padding: 0 15px;
}
.discover-maiple-section .container {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 20px;
}
.discover-maiple-content {
    flex: none;
    width: 100%;
}
.discover-maiple-content .content-wrapper {
    max-width: 100%;
}
.discover-maiple-content p.suite-intro {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.discover-maiple-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--neutral-dark);
}
.dropdowns {
    list-style: none;
    margin-bottom: 20px;
}
.dropdown-item {
    border-bottom: 1px solid rgba(25, 24, 24, 0.1);
    margin-bottom: 10px;
}
.dropdown-toggle {
    font-size: 1.2rem; /* Reduced for mobile */
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    color: var(--neutral-dark);
}
.dropdown-icon {
    width: 30px;
    height: auto;
}
.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('../images/BlackArrowDown.svg') no-repeat center;
    background-size: contain;
    margin-left: auto;
}
.dropdown-item.active .dropdown-toggle {
    color: var(--primary-orange);
}
.dropdown-item.active .dropdown-toggle::after {
    background-image: url('../images/OrangeArrowUp.svg');
}
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    padding: 0 0;
    text-align: left; /* Ensure left alignment for dropdown content */
}
.dropdown-item.active .dropdown-content {
    max-height: 150px; /* Increased from 120px for mobile to prevent text cutoff */
}
.discover-maiple-content .btn {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}
.discover-maiple-content .btn:hover {
    background-color: #d44903;
}
.discover-maiple-image {
    flex: none;
    width: 100%;
    text-align: center;
}
.discover-maiple-image img {
    width: 100%;
    max-width: 100%; /* Full width on mobile */
    height: auto;
}
/* Gray Background Section */
.gray-background-section {
    background-color: #f8f8f8;
    padding: 40px 0;
}
/* Synergy Section */
.synergy-section {
    padding: 0 0 30px;
}
.synergy-section h2 {
    font-size: 1.8rem; /* Reduced for mobile */
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}
.synergy-intro-text {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
}
.synergy-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.synergy-dropdown-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: white;
}
.synergy-dropdown-header {
    padding: 15px 20px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 40px 1fr 20px;
    align-items: center;
    gap: 20px;
}
.synergy-icon {
    display: flex;
    align-items: center;
}
.synergy-icon img {
    width: 40px; /* Reduced for mobile */
    height: auto;
}
.synergy-title h3 {
    font-size: 1.1rem; /* Reduced for mobile */
    font-weight: 500;
    line-height: 1.3;
}
.dropdown-arrow {
    width: 20px;
    height: 20px;
    background-image: url('../images/BlackArrowDown.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    transition: transform 0.3s ease;
    justify-self: end;
}
.synergy-dropdown-item.active .dropdown-arrow {
    transform: rotate(180deg);
}
.synergy-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background-color: white;
    background-image: url('../images/HomepageImages/SynergyLeafBackground.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 60% auto; /* Default size for mobile */
}
.synergy-dropdown-item.active .synergy-dropdown-content {
    max-height: 400px; /* Reduced for mobile */
}
.synergy-content-grid {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    padding: 0 20px 20px 20px;
}
.synergy-content-text {
    max-width: 100%;
    padding-top: 0;
}
.synergy-content-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}
.synergy-content-text ul {
    list-style: none;
    margin-bottom: 10px;
}
.synergy-content-text li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.synergy-content-text li:before {
    content: '•';
    color: var(--primary-orange);
    position: absolute;
    left: 0;
    font-size: 1rem;
}
.btn-container {
    text-align: center;
}
.synergy-section .btn {
    display: inline-block;
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
}
.synergy-section .btn:hover {
    background-color: #d44903;
}
/* Success Section */
.success-section {
    padding: 20px 0;
}
.success-section h2 {
    font-size: 1.8rem; /* Reduced for mobile */
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.2;
}
.success-intro-text {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}
.success-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
}
.success-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}
.success-container {
    border-radius: 8px;
    padding: 20px;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 150px;
    min-width: 0; /* Prevent content overflow */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* For desktop hover */
}
.success-container:hover {
    transform: none; /* Disable hover effect on mobile */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.success-container img {
    height: 30px; /* Reduced for mobile */
    margin-bottom: 20px;
}
.success-container h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--neutral-dark);
}
.success-container p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--neutral-dark);
}
.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;
}
.white-bg {
    background-color: #ffffff;
}
/* Contact Ribbon Section */
.contact-ribbon-section {
    background-color: #FF6B00;
    padding: 5px 15px;
    margin: 40px 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: #FF6B00;
    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;
}
/* Client Reviews Section */
.client-reviews-section {
    padding: 40px 0;
    overflow: hidden;
}
.client-reviews-section h2 {
    text-align: center;
    font-size: 1.8rem; /* Reduced for mobile */
    font-weight: 600;
    margin-bottom: 20px;
}
.reviews-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.review-nav {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-orange);
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    padding: 10px;
    width: 50px;
    height: 50px;
    transition: color 0.3s ease;
}
.review-nav:hover {
    color: #d44903; /* Darker orange on hover */
}
.review-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.prev-review {
    left: 10px;
}
.next-review {
    right: 10px;
}
.reviews-slider {
    display: flex;
    flex-direction: row;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 16px; /* Add padding to align first card */
    width: 100%;
    -webkit-overflow-scrolling: touch;
}
.review-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 60px 20px 20px;
    position: relative;
    flex: 0 0 350px;
    min-width: 300px;
    scroll-snap-align: start; /* Align to left edge */
    transition: transform 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FF6B00;
    position: absolute;
    top: 20px;
    left: 20px;
}
.quote-icon {
    color: #FF6B00;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    font-family: serif;
}
.review-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}
.reviewer-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #FF6B00;
    margin-bottom: 5px;
}
.reviewer-title-company {
    font-size: 0.8rem;
    color: var(--neutral-dark);
}
/* Final Statement Section */
.final-statement-section {
    background-color: #FF6B00;
    background-image: url('../images/MobileBannerB.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 30px 0;
    margin: 10px 0 0;
    position: relative;
    overflow: hidden;
}
.final-statement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.final-statement-section h2 {
    font-size: 1.2rem; /* Reduced for mobile */
    font-weight: 500;
    line-height: 1.5;
    color: white;
    max-width: 90%;
    margin: 0 auto;
}
.final-statement-desktop {
    display: none;
}
.final-statement-mobile {
    display: block;
}
/* Footer Styles */
.footer {
    background-color: #f8f8f8;
    padding: 40px 0;
    font-family: var(--font-family); /* Explicitly set to ensure consistency */
}
.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;
    font-family: var(--font-family); /* Explicitly set */
}
.footer-logo {
    display: block;
}
.footer-logo img {
    height: 76px;
    width: auto;
}
.copyright {
    color: #000000;
    font-size: 0.875rem;
    padding-bottom: 12px;
    font-family: var(--font-family); /* Explicitly set */
}
.footer-right {
    flex: 2;
    display: flex;
    justify-content: space-between;
    padding-right: 50px;
    font-family: var(--font-family); /* Explicitly set */
}
.footer-column h4 {
    color: var(--neutral-dark);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: var(--font-family); /* Explicitly set */
}
.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;
    font-family: var(--font-family); /* Explicitly set */
}
.footer-column a:hover {
    color: var(--primary-orange);
}
/* Conditional display classes */
.desktop-only {
    display: inline;
}
.mobile-only {
    display: none;
}
.desktop-only-br {
    display: inline;
}
.desktop-br1,
.desktop-br2,
.desktop-br3 {
    display: none;
}
/* Desktop synergy background image sizing - SMALLER IMAGES ON DESKTOP */
@media (min-width: 768px) {
    .synergy-dropdown-content {
        background-size: 40% auto; /* Smaller on desktop - was 60% */
    }
    .success-section .container {
        max-width: 1300px; /* Wider container for success section */
    }
    .success-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 25px;
        justify-content: center;
    }
    .success-container:nth-child(1),
    .success-container:nth-child(2) {
        flex: 0 0 calc(50% - 12.5px);
    }
    .success-container:nth-child(3),
    .success-container:nth-child(4),
    .success-container:nth-child(5) {
        flex: 0 0 calc(33.333% - 16.67px);
    }
    .final-statement-desktop {
        display: block;
    }
    .final-statement-mobile {
        display: none;
    }
    .final-statement-section {
        background-image: url('../images/RibbonLeaves2.jpg');
    }
    .desktop-br1,
    .desktop-br2,
    .desktop-br3 {
        display: block;
    }
}
/* Mobile layout for success section */
@media (max-width: 767px) {
    .background-wrapper {
        background-image: url('../images/HomepageImages/HomepageBackgroundMobile.png'); /* Use mobile-specific background */
    }
    .synergy-dropdown-content {
        background-size: 60% auto; /* Keep existing mobile size */
    }
    .success-container:nth-child(1) {
        flex: 0 0 100%;
    }
    .success-container:nth-child(2),
    .success-container:nth-child(3) {
        flex: 0 0 calc(50% - 7.5px);
    }
    .success-container:nth-child(4),
    .success-container:nth-child(5) {
        flex: 0 0 calc(50% - 7.5px);
    }
    .about-h2.desktop {
        display: none;
    }
    .about-h2.mobile {
        display: block;
    }
    .mobile-br {
        display: inline;
    }
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: inline;
    }
    .desktop-only-br {
        display: none;
    }
    .hero-image-container {
        margin-top: -40px;
    }
    /* UPDATED: Override centering for dropdown content on mobile */
    .discover-maiple-content .content-wrapper {
        text-align: center;
    }
    .discover-maiple-content .dropdown-content {
        text-align: left;
    }
}
/* Desktop and Tablet Styles */
@media (min-width: 768px) {
    html {
        font-size: 16px; /* Restore base font size */
    }
    .container {
        padding: 15px 8px; /* Restore padding */
    }
    .navbar {
        height: 80px; /* Restore height */
    }
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2.5rem;
        height: 100%;
    }
    .nav-buttons {
        display: block;
    }
    .hamburger {
        display: none;
    }
    .mobile-menu {
        display: none !important;
    }
    .hero-section {
        padding-top: 30px;
    }
    .hero-content {
        margin-bottom: 60px;
        max-width: 1100px;
    }
    .hero-text-container h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }
    .hero-text-container p {
        font-size: 1.5rem;
    }
    .hero-image-container {
        margin-top: -90px;
        max-width: 800px;
    }
    .scroll-down-container {
        bottom: -90px;
    }
    .scroll-down-button {
        width: 70px;
        height: 70px;
    }
    .scroll-down-button img {
        width: 60px;
    }
    .about-script-section {
        padding: 80px 0 60px;
        margin-top: 10px;
    }
    .about-script-content {
        max-width: 1100px;
        height: 300px; /* From 250px: Fits full first <h2> (264px needed) + buffer for image start */
        padding: 20px;
        gap: 3rem;
        margin: 0 auto;
        overflow-y: auto; /* Keeps subtle scroll for image/second <h2> */
    }
    .about-script-content h2 {
        font-size: 2rem;
        line-height: 1.4;
    }
    .script-image-container {
        margin: 50px 0;
    }
    .script-image-container img {
        width: 120px;
        height: auto;
    }
    .discover-maiple-section {
        padding: 40px 0 80px;
    }
    .discover-maiple-header {
        font-size: 3.3rem;
        margin-bottom: 60px;
        padding: 0 20px;
    }
    .discover-maiple-section .container {
        flex-direction: row;
        gap: 30px;
    }
    .discover-maiple-content {
        flex: 1;
        width: auto;
    }
    .discover-maiple-content .content-wrapper {
        max-width: 550px;
    }
    .discover-maiple-content p.suite-intro {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    .discover-maiple-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    .dropdowns {
        margin-bottom: 40px;
    }
    .dropdown-item {
        margin-bottom: 16px;
    }
    .dropdown-toggle {
        font-size: 1.5rem;
        padding: 10px 0;
        gap: 15px;
    }
    .dropdown-icon {
        width: 40px;
    }
    .dropdown-toggle::after {
        width: 17px;
        height: 17px;
    }
    .dropdown-content {
        font-size: 1rem;
        padding: 0 0;
    }
    .dropdown-item.active .dropdown-content {
        max-height: 140px; /* Increased for desktop to provide more vertical space for text */
    }
    .discover-maiple-content .btn {
        padding: 12px 24px;
        font-size: 1.1rem;
    }
    .discover-maiple-image {
        flex: 1;
        width: auto;
        display: flex;
        justify-content: center;
    }
    .discover-maiple-image img {
        max-width: 600px;
        margin-right: 0;
    }
    .gray-background-section {
        padding: 80px 0;
    }
    .synergy-section {
        padding: 0 0 60px;
    }
    .synergy-section h2 {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }
    .synergy-intro-text {
        font-size: 1.2rem;
        margin-bottom: 50px;
    }
    .synergy-dropdowns {
        gap: 20px;
        margin-bottom: 40px;
    }
    .synergy-dropdown-item {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    .synergy-dropdown-header {
        padding: 25px 30px;
        grid-template-columns: 60px 1fr 30px;
        gap: 70px;
    }
    .synergy-icon img {
        width: 80px;
    }
    .synergy-title h3 {
        font-size: 1.4rem;
    }
    .dropdown-arrow {
        width: 40px;
        height: 40px;
        background-size: 40px;
    }
    .synergy-dropdown-item.active .synergy-dropdown-content {
        max-height: 500px;
    }
    .synergy-content-grid {
        grid-template-columns: 60px 1fr;
        gap: 70px;
        padding: 0 30px 30px 30px;
    }
    .synergy-content-text {
        max-width: 700px;
    }
    .synergy-content-text p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    .synergy-content-text ul {
        margin-bottom: 15px;
    }
    .synergy-content-text li {
        padding-left: 20px;
        margin-bottom: 12px;
        font-size: 1rem;
    }
    .synergy-content-text li:before {
        font-size: 1.2rem;
    }
    .synergy-section .btn {
        padding: 12px 36px;
        font-size: 1.1rem;
    }
    .success-section {
        padding: -10px 0;
    }
    .success-section h2 {
        font-size: 3.3rem;
        margin-bottom: 15px;
    }
    .success-intro-text {
        font-size: 1.4rem;
        margin-bottom: 50px;
    }
    .success-grid {
        gap: 25px;
        max-width: 1300px;
    }
    .success-container {
        border-radius: 12px;
        padding: 30px;
        flex: 1;
        width: auto;
        min-height: 180px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .success-container:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    .success-container img {
        height: 45px;
        margin-bottom: 50px;
    }
    .success-container h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    .success-container p {
        font-size: 1rem;
    }
    .leaf-bg::before {
        border-radius: 12px;
    }
    .contact-ribbon-section {
        padding: 5px 30px;
        margin: 80px 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.8rem;
    }
    .client-reviews-section {
        padding: 80px 0;
    }
    .client-reviews-section h2 {
        font-size: 3.5rem;
        margin-bottom: 70px;
    }
    .reviews-container {
        display: block;
    }
    .review-nav {
        display: none;
    }
    .reviews-slider {
        flex-direction: row;
        gap: 30px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 10px 16px; /* Add padding to align first card */
    }
    .review-card {
        border-radius: 12px;
        padding: 120px 30px 40px;
        flex: 0 0 350px;
        min-width: 300px;
        scroll-snap-align: start; /* Align to left edge */
    }
    .review-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    .logo-circle {
        width: 60px;
        height: 60px;
        top: 30px;
        left: 30px;
    }
    .quote-icon {
        font-size: 5rem;
    }
    .review-text {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    .reviewer-name {
        font-size: 1.1rem;
    }
    .reviewer-title-company {
        font-size: 0.9rem;
    }
    .final-statement-section {
        padding: 60px 0;
        margin: 10px 0 0;
    }
    .final-statement-section h2 {
        font-size: 1.75rem;
    }
}
@media (min-width: 2500px) {
    .hero-image-container img {
        transform: scale(1.2); /* Enlarge image by 20% */
        transform-origin: center; /* Ensure scaling is centered */
    }
}
@media (min-width: 1440px) {
    .container {
        max-width: 1300px;
        padding: 32px 32px;
    }
    .about-script-content {
        height: 300px;
        gap: 4rem;
    }
    .about-script-content h2 {
        font-size: 2rem;
        line-height: 1.6;
    }
    .script-image-container img {
        width: 120px;
    }
    .footer .container {
        gap: 100px;
    }
    .footer-logo img {
        height: 80px;
        width: auto;
    }
    .copyright {
        font-size: 0.9rem;
        font-family: var(--font-family); /* Explicitly set */
    }
    .footer-right {
        padding-right: 70px;
    }
    .footer-column h4 {
        font-size: 1.2rem;
        font-family: var(--font-family); /* Explicitly set */
    }
    .footer-column a {
        font-size: 0.9rem;
        font-family: var(--font-family); /* Explicitly set */
    }
    .nav-links {
        gap: 3rem;
    }
    .nav-links a {
        font-size: 1.3rem;
    }
    .nav-links .dropdown > a::before {
        background-size: 100% 3px;
    }
    .navbar .logo img {
        height: 96px;
        width: auto;
    }
    .nav-buttons .btn {
        padding: 0.75rem 2.2rem;
        border-radius: 10px;
        font-weight: 500;
    }
}
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        padding: 38px 40px;
    }
    .about-script-content {
        height: 380px;
        gap: 4rem;
    }
    .about-script-content h2 {
        font-size: 3rem;
        line-height: 1.6;
    }
    .script-image-container img {
        width: 150px;
    }
    .footer .container {
        gap: 150px;
    }
    .footer-left {
        max-width: 700px;
    }
    .footer-logo img {
        height: 100px;
        width: auto;
    }
    .copyright {
        font-size: 1.5rem;
        font-family: var(--font-family); /* Explicitly set */
    }
    .footer-right {
        padding-right: 100px;
    }
    .footer-column h4 {
        font-size: 1.6rem;
        font-weight: 600;
        margin-bottom: 20px;
        font-family: var(--font-family); /* Explicitly set */
    }
    .footer-column li {
        margin-bottom: 18px;
    }
    .footer-column a {
        font-size: 1.5rem;
        font-family: var(--font-family); /* Explicitly set */
    }
    .nav-links {
        gap: 3.2rem;
    }
    .nav-links a {
        font-size: 2rem;
    }
    .nav-links .dropdown > a::before {
        bottom: 14px;
        height: 4px;
        background-size: 100% 4px;
    }
    .nav-links .dropdown > a::after {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }
    .navbar .logo img {
        height: 130px;
        width: auto;
    }
    .nav-buttons .btn {
        padding: 1.2rem 3.510rem;
        border-radius: 14px;
        font-size: 1.5rem;
    }
}
/* Prevent vertical resize on hero background for wide screens - UPDATED: Align with new stretch */
@media (min-width: 1840px) {
    .background-wrapper {
        background-size: 100% 100%;
        background-position: top center;
    }
}
/* Fine-tune layout for screens under 1920px */
@media (max-width: 1919px) {
    .discover-maiple-section .container {
        gap: 30px;
    }
    .discover-maiple-image {
        display: flex;
        justify-content: center;
    }
}
/* Mobile-First Responsive CSS */
@media (max-width: 767px) {
    .header .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .navbar .logo img {
        height: 50px; /* Match mobile logo size */
    }
    .nav-links {
        display: none; /* Hide desktop nav on mobile */
    }
    .nav-buttons {
        display: none; /* Hide buttons on mobile */
    }
    .hamburger {
        display: flex;
    }
    /* Ensure no background interference on mobile - UPDATED: Rely on global stretch fix */
    .hero-section {
        background: none; /* Ensure hero section itself has no background */
    }
    .hero-section::before,
    .hero-section::after {
        display: none; /* Remove any pseudo-elements on hero section */
    }
    /* Discover Maiple Section Adjustments */
    .discover-maiple-section .container {
        gap: 10px; /* Reduced gap between button and image */
    }
    .discover-maiple-content .content-wrapper {
        text-align: center; /* Center button content */
    }
    .discover-maiple-content .btn {
        margin: 15px auto 0; /* Center button with top margin */
        display: inline-block; /* Allow button to fit content */
        padding: 10px 20px; /* Match synergy-section .btn */
        font-size: 1rem; /* Match synergy-section .btn */
        width: auto; /* Allow button to size based on content */
        min-width: unset; /* Remove any minimum width constraints */
    }
    .discover-maiple-section {
        padding: 30px 0 30px; /* Reduced bottom padding */
    }
    /* Client Reviews Mobile Adjustments */
    .reviews-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .review-nav {
        display: flex; /* Show navigation buttons in mobile */
        align-items: center;
        justify-content: center;
        z-index: 20; /* Ensure buttons are above cards */
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
        padding: 0;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .prev-review {
        left: 5px; /* Flush with the left screen edge */
    }
    .next-review {
        right: 5px; /* Flush with the right screen edge */
    }
    .reviews-slider {
        display: flex;
        flex-direction: row;
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        width: 100%;
        padding: 10px 25px; /* Reduced padding to make cards ~30% wider while maintaining usability */
        -webkit-overflow-scrolling: touch;
    }
    .review-card {
        flex: 0 0 calc(100% - 15px);
        width: calc(100% - 15px);
        min-width: calc(100% - 15px);
        padding: 60px 20px 20px;
        scroll-snap-align: start;
    }
    .logo-circle {
        width: 40px;
        height: 40px;
        top: 20px;
        left: 20px;
    }
    .quote-icon {
        font-size: 3rem;
    }
    .review-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    .reviewer-name {
        font-size: 0.9rem;
    }
    .reviewer-title-company {
        font-size: 0.8rem;
    }
    /* Final Statement Section Mobile Adjustments */
    .final-statement-section {
        background-image: url('../images/MobileBannerB.png');
        background-size: 100% 150%; /* Stretch background vertically to be taller */
        padding: 50px 0; /* Increase padding to make section taller */
    }
    /* Footer Mobile Adjustments */
    .footer .container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-left {
        max-width: 100%;
        text-align: center;
        font-family: var(--font-family); /* Explicitly set */
    }
    .footer-logo img {
        height: 60px;
    }
    .copyright {
        font-size: 0.8rem;
        margin-top: 15px;
        font-family: var(--font-family); /* Explicitly set */
    }
    .footer-right {
        padding-right: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 30px;
        font-family: var(--font-family); /* Explicitly set */
    }
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 15px;
        font-family: var(--font-family); /* Explicitly set */
    }
    .footer-column a {
        font-size: 0.85rem;
        font-family: var(--font-family); /* Explicitly set */
    }
    /* Contact Ribbon Section Mobile Adjustments - UPDATED: Larger text and button */
    .contact-ribbon-content {
        display: flex;
        flex-direction: row; /* Arrange leaf, text, and button in one row */
        align-items: center;
        justify-content: space-between; /* Space items evenly */
        gap: 15px;
        width: 100%;
    }
    .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 5px;
        text-align: left; /* Align text left for better readability */
    }
    .ribbon-text h3 {
        font-size: 1rem; /* Increased from 0.9rem for larger mobile text */
        line-height: 1.3;
        /* Removed white-space: nowrap and overflow properties to allow natural wrapping with <br> */
    }
    .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.75rem; /* Slightly reduced horizontal padding to make button smaller without affecting text size */
        font-size: 0.9rem; /* Increased from 0.8rem for larger mobile button text */
    }
}
/* Add these media queries to Homepage.css to match AboutUs.css */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 768px;
        padding: 20px 4px;
    }
    .header .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    .navbar .logo img {
        height: 64px;
    }
    .nav-links {
        gap: 2rem;
    }
    .nav-links a {
        font-size: 1rem;
    }
    /* UPDATED: Larger ribbon text and button for tablet */
    .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 */
    }
}
/* Enhanced mobile adjustments for contact ribbon */
@media (max-width: 767px) {
    .contact-ribbon-section {
        padding: 5px 10px; /* Reduce side padding for more text space */
        margin: 40px 10px 0; /* Match reduced padding */
    }
   
    .contact-ribbon-content {
        gap: 10px; /* Slightly tighter gap between leaf/text/button */
    }
   
    .ribbon-text {
        padding: 0 3px; /* Minimal padding to reclaim space */
    }
   
    .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 .btn-secondary {
        padding: 0.4rem 0.6rem; /* Tighter button padding */
        font-size: 0.9rem; /* Smaller button text to free space */
        white-space: nowrap; /* Keep button text on one line */
    }
}
/* 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;
    }
}