/* ===== RESET & BASE STYLES ===== */
/* toyp.css - Styles for TOYP Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    line-height: 1;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 0px; /* Offset for fixed navbar */
    font-size: larger;
}
html,body{
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.nav-buttons a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #F2C94C;
    transition: width 0.3s ease;
}
.dropbtn:hover{
    border-color: #F2C94C;
    transform: translateY(-3px);
    box-shadow: 0 0 75px rgba(242, 201, 76, 0.5);
}
.nav-buttons a:hover::after, .dropbtn:hover::after {
    width: 100%;
}
/* ===== NAVIGATION BAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
    position: relative;
    top: 3px; 
}

.nav-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-buttons a, .dropbtn {
    padding: 12px 18px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-buttons a:hover, 
.dropbtn:hover {
   
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    top: 100%;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #34495e;
    padding: 12px 20px;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa;
   
    padding-left: 25px;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 28px;
    cursor: pointer;
    z-index: 1002;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-button i {
    color: #2c3e50;
    transition: all 0.3s ease;
}

.mobile-menu-button.active i {
    color: #ffffff;
}

.mobile-menu-button:hover {
    background: #e0e0e0;
}

.mobile-menu-button:active {
    transform: scale(0.95);
}

/* ===== PAGE STRUCTURE ===== */
main.section {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

/* ===== SECTIONS ===== */
/* Hero Section */
.hero {
    background: linear-gradient(135deg, #295b78, #2c3e50);
    color: white;
    padding: 80px 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,100 0,100" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
}

.hero-btn {
    display: inline-block;
    background: #F2C94C;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    background: #c9a742;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Program Overview */
.program-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 70px;
    align-items: flex-start;
}

.overview-content {
    flex: 1;
    min-width: 300px;
}

.overview-content h2 {
    color: #295b78;
    font-size: 2.5rem;
    margin-bottom: 25px;
    border-left: 7px solid #F2C94C;
    padding-left: 15px;
}

.overview-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.overview-image {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    
    /* Make container fit image naturally */
    width: auto;
    height: auto;
    min-height: 0;
    
    /* Remove flexbox centering */
    display: block;
    
    /* Remove any padding/margin that might affect layout */
    padding: 0;
    margin: 0;
}

.overview-image img {
    width: auto;
    height: auto;
    max-width: 100%; /* Prevents overflow but maintains ratio */
    
    /* Remove all image styling */
    object-fit: none; /* Don't force any fitting */
    border-radius: 0;
    box-shadow: none;
    border: none;
    
    /* Display as natural image */
    display: inline-block;
    
    /* Remove any background or filter effects */
    background: none;
    filter: none;
}

/* Benefits Section */
.benefits {
    background: #295b78;
    padding: 60px 0;
    border-radius: 15px;
    margin-bottom: 70px;
    width: 100%;
}

.benefits h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    padding: 0 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px; /* Equal left/right padding */
    max-width: 1200px;
    margin: 0 auto; /* Center the grid */
}

.benefit-card {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-card i {
    font-size: 2.2rem;
    color: #295b78;
    margin-bottom: 15px;
}

.benefit-card h3 {
    color: #295b78;
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.3;
}
.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}


/* Gallery Section */
.gallery-section {
    margin-bottom: 70px;
}

.gallery-section h2 {
    text-align: center;
    color: #295b78;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    height: 250px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Testimonials */
.testimonials {
    background: #295b78;
    color: white;
    padding: 70px 0; /* Remove horizontal padding from container */
    border-radius: 15px;
    margin-bottom: 70px;
    width: 100%;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    padding: 0 20px; /* Add padding only to heading */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px; /* Equal left/right padding */
    max-width: 1200px;
    margin: 0 auto; /* Center the grid */
}

.testimonial {
    background: rgba(255,255,255,0.1);
    padding: 30px 25px;
    border-radius: 10px;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.testimonial::before {
    content: "";
    font-size: 5rem;
    position: absolute;
    top: -20px;
    left: 10px;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e74c3c;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background: #295b78;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #F2C94C;
    transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .navbar {
        padding: 10px 30px;
    }
    
    .nav-buttons {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .mobile-menu-button {
        display: flex;
    }
    
    .overview-image {
        display: none;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
    }
    
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background:#295b78;
        
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
       
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    .program-overview {
        flex-direction: column;
        gap: 30px;
    }
    
    .overview-content {
        order: 1;
        width: 100%;
    }
    
    .overview-image {
        display: block !important;
        width: 100%;
        margin: 20px 0 30px 0;
        order: 2; /* Places it right after the title content */
        text-align: center;
        background: none !important; /* Remove background */
    }
    
    .overview-image img {
        width: 100%; /* Full width of the container */
        height: 100%; /* Maintain aspect ratio */
        margin: 0 auto;
        display: block;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        background: none; /* Ensure no background on the image itself */
    }
}

/* General Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .overview-content h2,
    .benefits h2,
    .gallery-section h2,
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .program-overview {
        flex-direction: column;
    }
    .overview-image img {
        width: 100%;
        max-width: 100%;
    }
}
/* ===== CAST BUTTON STYLES (Refined) ===== */
.cast-button {
    background: linear-gradient(135deg, #F2C94C 0%, #F2994A 100%);
    color: #2c3e50 !important;
    padding: 6px 10px; /* 🔹 صغرنا حجم الزر */
    border-radius: 18px;
    font-size: 0.9rem; /* 🔹 صغرنا النص */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 5px rgba(242, 201, 76, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* 🔹 حتى نحط اللوغو فوق النص */
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cast-button img {
    width: 22px; /* 🔹 حجم اللوغو */
    height: auto;
    display: block;
    margin-bottom: 2px;
}

.cast-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cast-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px #f2c94c80;
    color: #2c3e50;
}

.cast-button:hover::before {
    left: 100%;
}

.cast-button:active {
    transform: translateY(0);
}

/* ===== CAST BUTTON - MOBILE FIX (LOGO NEXT TO TEXT) ===== */
@media (max-width: 992px) {
    .nav-buttons .cast-button {
        background: none; /* إزالة الخلفية القديمة */
        background-color:rgb(58, 16, 113,0.1);
        color: #ffffff !important; /* الكلمة باللون الأبيض */
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px; /* المسافة بين اللوغو والنص */
        font-size: 18px; /* نفس حجم أزرار الموبايل */
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row; /* 🔹 اللوغو بجانب النص */
    }

    /* اللوغو */
    .nav-buttons .cast-button img {
        width: 26px;
        height: auto;
        filter: brightness(0) invert(1); /* يجعل اللوغو أبيض */
        margin-left: 8px;
    }

    /* عند التمرير عليه */
    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
}
/* Tablets and Mobile Menu - UPDATED TO 1024px */
@media (max-width: 1024px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
    }
    
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
        
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
}
@media (max-width: 1024px) {
    .nav-buttons .cast-button {
        background: none;
        background-color: rgb(58, 16, 113, 0.1);
        color: #ffffff !important;
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 18px;
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row;
    }

    .nav-buttons .cast-button img {
        width: 26px !important;
        height: auto !important;
        filter: brightness(0) invert(1) !important;
        margin-left: 8px !important;
    }
    

    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    
}



@media (max-width: 1280px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }
    
    .nav-buttons {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #295b78;
        flex-direction: column;
        gap: 0;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-buttons.active {
        transform: translateX(0);
    }
    
    .nav-buttons a, .dropbtn {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: white;
        background: rgba(58, 16, 113, 0.1);
        font-size: 18px;
        text-decoration: none;
        display: block;
        cursor: pointer;
        border: none;
    }
    
    .nav-buttons a:hover, 
    .dropbtn:hover {
        background: rgba(58, 16, 113, 0.3);
        
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
}
@media (max-width: 1280px) {
    .nav-buttons .cast-button {
        background: none;
        background-color: rgb(58, 16, 113, 0.1);
        color: #ffffff !important;
        border: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 18px;
        text-transform: none;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        flex-direction: row;
    }

    .nav-buttons .cast-button img {
        width: 26px !important;
        height: auto !important;
        filter: brightness(0) invert(1) !important;
        margin-left: 8px !important;
    }
    

    .nav-buttons .cast-button:hover {
        background: rgba(58, 16, 113, 0.3);
        transform: none;
        box-shadow: none;
    }
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 15px 20px 15px 40px;
        color: #e0e0e0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: left;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.1);
        
    }
    
    .dropdown > .dropbtn::after {
        content: '▼';
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .dropdown.active > .dropbtn::after {
        transform: rotate(180deg);
    }
    
    .dropdown:not(.active) .dropdown-content {
        display: none !important;
    }
    
}



/* Mobile-first responsive adjustments */
@media (max-width: 390px) {
    .benefits-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px; /* Equal spacing on mobile */
    }
    
    .benefits h2,
    .testimonials h2 {
        padding: 0 15px; /* Match grid padding */
    }
    
    .benefit-card {
        padding: 25px 20px;
        min-height: 200px;
    }
    
    .benefit-card i {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .benefit-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .testimonial {
        padding: 25px 20px;
        min-height: 160px;
    }
    
    .testimonial p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .benefits-grid,
    .testimonial-grid {
        padding: 0 12px; /* Equal spacing on extra small */
        gap: 15px;
    }
    
    .benefits h2,
    .testimonials h2 {
        padding: 0 12px; /* Match grid padding */
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .benefit-card {
        padding: 20px 15px;
        min-height: 190px;
    }
    
    .benefit-card i {
        font-size: 1.8rem;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.85rem;
    }
    
    .testimonial {
        padding: 20px 15px;
        min-height: 150px;
    }
    
    .testimonial p {
        font-size: 0.85rem;
    }
}

/* Specific adjustments for 344px - 360px range */
@media (min-width: 321px) and (max-width: 360px) {
    .benefits-grid,
    .testimonial-grid {
        padding: 0 15px; /* Equal spacing */
    }
    
    .benefits h2,
    .testimonials h2 {
        padding: 0 15px; /* Match grid padding */
    }
    
    .benefit-card {
        padding: 22px 18px;
    }
    
    .testimonial {
        padding: 22px 18px;
    }
}

/* For 375px - 390px range */
@media (min-width: 361px) and (max-width: 390px) {
    .benefits-grid,
    .testimonial-grid {
        padding: 0 18px; /* Equal spacing */
    }
    
    .benefits h2,
    .testimonials h2 {
        padding: 0 18px; /* Match grid padding */
    }
}

/* Ensure sections have proper spacing on small screens */
@media (max-width: 390px) {
    .benefits {
        padding: 40px 0;
    }
    
    .testimonials {
        padding: 40px 0;
    }
}

/* Hover effects for larger screens only */
@media (min-width: 768px) {
    .benefit-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
}

/* Prevent text overflow in all cases */
.benefit-card h3,
.benefit-card p,
.testimonial p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
}

/* Ensure proper container widths and no overflow */
.benefits,
.testimonials {
    overflow: hidden;
    box-sizing: border-box;
}

/* Center align all content within sections */
.benefits > *,
.testimonials > * {
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .overview-image img {
        width: 100%;
        max-width: 100%;
    }
}