/* GLOBAL MOBILE OVERFLOW PREVENTION */
/* NOTE: All header, banner, navigation, and translator styles have been moved to header.css */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f9fa;
    color: #222;
    line-height: 1.6;
    top: 0 !important;
}

/* MAIN CONTENT AREA */
main {
    margin: 0 auto;
    padding: 0;
    background: transparent;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

#main-content {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.body-content {
    margin: 2rem auto;
    padding: 0 2rem;
    display: block;
    width: 100%;
    max-width: 1200px;
}

/* ANNOUNCEMENT BOX - ADOT STYLE */
.announcement-box {
    background: #fff;
    border: 1px solid #d4a574;
    border-left: 5px solid #d4a574;
    border-radius: 5px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.announcement-content {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
}

.announcement-main {
    flex: 2;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.announcement-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #fff7f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d4a574;
}

.announcement-text {
    flex: 1;
}

.announcement-text h2 {
    color: #333;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.announcement-text p {
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.announcement-text .highlight {
    color: #d4a574;
    font-weight: 600;
}

.announcement-sidebar {
    flex: 1;
    padding-left: 1rem;
    border-left: 1px solid #e0e0e0;
}

.announcement-sidebar h3 {
    color: #333;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.announcement-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.announcement-sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.announcement-sidebar li:last-child {
    border-bottom: none;
}

/* Responsive adjustments for announcement box */
@media (max-width: 768px) {
    .announcement-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .announcement-sidebar {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-top: 1rem;
    }
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    transition: all 0.2s;
    z-index: 1;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Additional Modal Elements */
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    transition: all 0.2s;
    z-index: 10;
    font-weight: bold;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: scale(1.1);
}

.modal-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.development-notice {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.development-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.development-notice h3 {
    color: #495057;
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
}

.development-notice p {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.modal-btn.secondary:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../Images/banner.png') center/cover;
    opacity: 0.2;
    border-radius: 12px 12px 0 0;
}

.modal-header * {
    position: relative;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Modal Body */
.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.modal-body ul {
    color: #666;
    padding-left: 1.5rem;
    margin: 0 0 1rem 0;
}

.modal-body li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.modal-body .highlight {
    background: #fff3cd;
    padding: 1rem;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin: 1rem 0;
}

.modal-body .highlight h4 {
    color: #856404;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.modal-body .highlight p {
    color: #856404;
    margin: 0;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.modal-footer .btn-primary {
    background: #667eea;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.modal-footer .btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.modal-footer .btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal.show {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .modal-content {
        margin-top: 2rem;
        max-height: calc(100vh - 4rem);
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* ========================================
   RESPONSIVE HOME PAGE LAYOUTS
   ======================================== */

/* ========================================
   LARGE SCREENS (Desktop) - 1200px+
   ======================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 6rem 2rem;
    text-align: center;
    margin: 0 auto 4rem auto;
    max-width: 1200px;
    border-radius: 12px;
}

.hero-section * {
    color: white !important;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 0 0 3rem 0;
    opacity: 0.9;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Primary and Secondary Button Styles */
.primary-btn, .secondary-btn {
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    min-width: 200px;
}

.primary-btn {
    background: #d4a574;
    color: white;
    border-color: #d4a574;
}

.primary-btn:hover {
    background: #c19660;
    border-color: #c19660;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.4);
}

.secondary-btn {
    background: transparent;
    color: white;
    border-color: white;
}

.secondary-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Features Section */
.features-section {
    margin: 4rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.features-section .scroll-hint {
    display: none; /* Hidden by default on desktop */
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #d4a574;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.feature-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.feature-link:hover {
    color: #5a6fd8;
    gap: 0.75rem;
}

/* Steps Section - Citizenship Pathway */
.steps-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 1400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.steps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.citizenship-pathway {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    position: relative;
    z-index: 2;
}

.pathway-step {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.pathway-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.pathway-step:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.pathway-step:hover::before {
    opacity: 0.05;
}

.pathway-step:hover .step-icon {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.pathway-step:hover h3 {
    color: #667eea;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pathway-step h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

.pathway-step p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.step-arrow {
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #667eea;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.pathway-step:hover .step-arrow {
    transform: translateY(-50%) translateX(5px);
    background: #667eea;
    color: white;
}

.final-step .step-arrow {
    display: none;
}

.step-completion {
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: #28a745;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.final-step {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #28a745;
}

.final-step .step-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.final-step:hover {
    border-color: #28a745;
}

.final-step:hover h3 {
    color: #28a745;
}

/* Stories Section */
.stories-section {
    margin: 4rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.stories-section .scroll-hint {
    display: none !important; /* Hidden by default on desktop - use !important to override inline styles */
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.story-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.story-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.story-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../Images/banner.png') center/cover;
    opacity: 0.3;
}

.story-content {
    padding: 1.5rem;
}

.story-content h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.story-content p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.story-content .story-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.story-content .story-link:hover {
    color: #5a6fd8;
}

/* News Section */
.news-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 1200px;
    border-radius: 12px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #d4a574;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.news-item h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.news-item p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.news-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover {
    color: #5a6fd8;
}

/* Video Testimonials Layout - Horizontal Scroll */
.stories-content {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 1rem 2rem 1rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
    position: relative;
    /* Show partial videos at edges to indicate more content */
    scroll-snap-type: x proximity;
}

/* Fade effect at right edge to show more content */
.stories-content::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 0;
    width: 60px;
    height: 225px;
    background: linear-gradient(to right, transparent, rgba(247, 249, 250, 0.9));
    pointer-events: none;
    z-index: 1;
}

/* Custom scrollbar for webkit browsers */
.stories-content::-webkit-scrollbar {
    height: 8px;
}

.stories-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.stories-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.stories-content::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.video-testimonial {
    flex: 0 0 400px; /* Fixed width, no shrinking */
    height: 225px; /* 16:9 aspect ratio for 400px width */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

/* Show container wider than viewport to display partial videos */
.stories-section {
    overflow: hidden; /* Prevent horizontal scroll on the section */
}

.stories-content {
    /* Make container slightly wider than viewport to show partial videos */
    width: calc(100% + 2rem);
    margin-left: -1rem;
}

.video-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.video-testimonial iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ========================================
   TABLET SCREENS - 768px to 1199px
   ======================================== */

@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .stories-content {
        gap: 1rem;
        padding: 1rem 0 1.5rem 0;
    }
    
    .video-testimonial {
        flex: 0 0 350px; /* Slightly smaller on tablets */
        height: 197px; /* Maintain 16:9 ratio */
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        padding: 5rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .primary-btn, .secondary-btn {
        min-width: 180px;
        padding: 1rem 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
        margin: 0;
    }
    
    .news-item {
        padding: 1.5rem;
    }
    
    .news-item h3 {
        font-size: 1.1rem;
    }
}

/* ========================================
   MOBILE SCREENS (Phones) - up to 767px
   ======================================== */

@media (max-width: 767px) {
    /* Hero becomes more compact */
    .hero-section {
        padding: 4rem 1rem; /* Reduced padding to prevent overflow */
        margin-bottom: 2rem;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        color: white !important; /* Force white text on mobile */
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        color: white !important; /* Force white text on mobile */
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem; /* Add padding to prevent button overflow */
        width: 100%;
        box-sizing: border-box;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 280px; /* Reduced from 300px for better mobile fit */
        text-align: center;
        padding: 1rem 1.5rem; /* Reduced padding for better mobile fit */
        font-size: 1rem;
        box-sizing: border-box;
        min-width: 0; /* Prevent button from growing beyond container */
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .features-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 0 1rem 1.5rem 1rem;
        margin: 2rem 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .features-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .features-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .features-grid::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .features-grid::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    .feature-card {
        flex: 0 0 280px; /* Fixed width for horizontal scroll */
        padding: 1.5rem;
        scroll-snap-align: start;
    }
    
    .features-section .scroll-hint {
        display: block !important;
    }
    
    .steps-section, .news-section {
        padding: 3rem 1rem;
        margin: 2rem auto;
    }
    
    .citizenship-pathway {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pathway-step {
        padding: 1.5rem;
    }
    
    .pathway-step .step-arrow,
    .pathway-step .step-completion {
        display: none;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stories-content {
        gap: 0.75rem;
        padding: 1rem 1rem 1.5rem 1rem;
        width: 100%; /* Fix width to prevent overflow */
        margin-left: 0; /* Remove negative margin */
    }
    
    .video-testimonial {
        flex: 0 0 250px; /* Smaller to fit better on mobile */
        height: 141px; /* Maintain 16:9 ratio (250*0.5625) */
    }
    
    .stories-section .scroll-hint {
        display: block !important; /* Show scroll hint on mobile */
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-item {
        padding: 1.5rem;
    }
    
    .news-item h3 {
        font-size: 1.1rem;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .body-content {
        padding: 0 1rem; /* Increased from 0.5rem for better spacing */
    }
    
    /* Increase padding for very small screens */
    .hero-section {
        padding: 3rem 0.75rem; /* Reduced padding for extra small screens */
        overflow: hidden;
    }
    
    /* Fix buttons for extra small screens */
    .hero-actions {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }
    
    .primary-btn, .secondary-btn {
        max-width: 250px; /* Further reduced for very small screens */
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* MOBILE OVERFLOW PREVENTION - ADDITIONAL FIXES */
@media (max-width: 767px) {
    /* Ensure all containers fit within viewport */
    .topbar,
    .hero-section,
    .features-section,
    .stories-section,
    .steps-section,
    .news-section,
    .body-content,
    main {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix padding/margin that might cause overflow */
    .hero-section {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .features-grid {
        padding: 0 1rem;
        margin: 0;
    }
    
    .body-content {
        padding: 0 1rem;
        margin: 0;
    }
    
    /* Fix any fixed widths that might cause overflow */
    .modal-content {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Extra spacing for mobile content */
    .features-section, .stories-section {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .steps-section, .news-section {
        margin: 2rem auto;
        padding: 2rem 1rem;
    }
}

/* Extra small mobile fixes */
@media (max-width: 480px) {
    .topbar {
        padding: 0.75rem 1.25rem; /* Increased padding for better mobile spacing */
    }
    
    .drawer-btn {
        width: 40px; /* Increased from 32px */
        height: 40px; /* Increased from 32px */
        padding: 6px; /* Added padding for mobile */
    }
    
    .drawer-btn span {
        width: 20px;
        height: 2px;
    }
}

/* ========================================
   TABLET SCREENS (Portrait) - up to 900px
   ======================================== */

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stories-content {
        gap: 1rem;
        padding: 1rem 0 1.5rem 0;
    }
    
    .video-testimonial {
        flex: 0 0 320px; /* Medium tablet size */
        height: 180px; /* Maintain 16:9 ratio */
    }
    
    .citizenship-pathway {
        grid-template-columns: 1fr; /* Single column for better mobile layout */
        gap: 1.5rem;
    }
    
    .pathway-step .step-arrow,
    .pathway-step .step-completion {
        display: none;
    }
}
