/* =========================================
   Mobile Optimization (Wap.css)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Global Adjustments */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        width: 92%;
        padding: 0;
    }

    /* 2. Header */
    .header-inner {
        justify-content: space-between;
        padding: 10px 0;
        position: relative;
    }
    
    .logo img {
        height: 60px; /* Resize logo for mobile */
    }

    .values-title{
        font-size: 22px;
    }
    .value-card h3{
        font-size: 18px;
    }
    .value-card p{
        font-size: 15px;
    }
    .header-right {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        padding: 10px;
        color: #333;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        flex-direction: column;
        gap: 0;
        z-index: 1000;
    }

    

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 15px 0;
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
        display: block;
    }

    header{
        padding:0px;
    }
    
    .header-right .btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* 3. Hero Section */
    .hero {
        padding: 40px 0;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 28px; /* Reduced from 46px */
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 15px;
        margin-bottom: 25px;
        text-align: justify; /* Better reading on mobile */
    }

    /* 4. Features Bar */
    .features-row {
        flex-wrap: wrap;
    }

    .feature-item {
        flex: 0 0 50%; /* 2 items per row */
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 25px 10px;
    }
    
    .feature-item:nth-child(2n) {
        border-right: none;
    }
    
    .feature-item i {
        font-size: 36px;
    }
    
    .feature-item span {
        font-size: 14px;
    }

    /* 5. Service Intro */
    .service-intro {
        padding: 50px 0;
    }

    .service-inner {
        flex-direction: column;
        gap: 30px;
    }
    
    .service-text h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .service-text p {
        font-size: 15px;
        text-align: justify;
    }

    /* 6. Section Titles */
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 24px; /* Reduced from 32px */
    }
    
    .section-title p {
        font-size: 14px;
        text-align: left;
    }

    /* 7. Promo Cards */
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .promo-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .promo-img-circle {
        width: 100%;
        height: 200px; /* Aspect ratio adjustment */
        margin-bottom: 20px;
    }
    
    .promo-content h3 {
        font-size: 18px;
    }
    
    .promo-content ul {
        text-align: left;
        display: inline-block;
    }

    /* 8. Regions Grid */
    .regions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .region-card {
        border-radius: 8px !important;
        border: 1px solid #e5e5e5 !important; /* Reset border */
        margin-bottom: 0;
    }
    
    .region-card.active {
        transform: none;
        padding: 50px 20px; /* Reset padding */
    }
    
    .region-card.active:hover {
        transform: none;
    }

    /* 9. Stats Section */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-content: center;
    }
    
    .stat-item {
        width: auto;
    }
    .stats-section{
        padding:30px 0;
    }
    .stat-item i,.stat-box i{
        font-size: 30px;
        margin-bottom:15px;
    }
    
    .stat-item h3,.stat-box h3 {
        font-size: 22px; 
        margin-bottom: 0px;
    }

    /* 10. Reviews & News */
    .reviews-grid, .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 30px 20px;
    }

    /* 11. CTA Strip */
    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    /* 12. Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
        padding: 0 20px; /* Add some padding for better left-align look */
    }
    
    .footer-col h5 {
        margin-bottom: 15px;
    }
    footer{
        padding:30px 0;
    }
    /* Fix Overflow Issues */
    img {
        max-width: 100%;
        height: auto;
    }

    /* ====================
       Subpage Optimizations
       ==================== */

    /* Common Page Header */
    .page-header {
        padding: 50px 0;
        height: auto;
    }
    .page-header h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .page-header p {
        font-size: 14px;
        padding: 0 15px;
    }

    /* Common Section Padding */
    .story-section, .values-section, .custom-stats, .cta-section, 
    .contact-section, .news-list-section, .news-detail-article {
        padding: 40px 0;
    }

    /* About Page */
    .story-content {
        flex-direction: column;
        gap: 30px;
    }
    .story-img, .story-text {
        min-width: 100%;
    }
    .story-text h2 {
        font-size: 24px;
    }
    .story-text h4 {
        font-size: 18px;
    }
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .value-card {
        padding: 25px;
    }
    .stats-container {
        gap: 30px;
    }

    .contact-info h2{
        font-size: 22px;
    }

    .cta-title {
        font-size: 22px;
    }
    .cta-text {
        font-size: 15px;
    }
    .stat-box p{
        font-size: 14px;
    }

    /* Contact Page */
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    .contact-info, .contact-form-wrapper {
        min-width: 100%;
    }
    .contact-form-wrapper {
        padding: 25px;
    }
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .map-section {
        height: 300px;
    }

    /* News Pages */
    .news-layout {
        flex-direction: column;
        gap: 30px;
    }
    .news-main, .news-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .news-title {
        font-size: 20px;
    }
    .news-summary {
        font-size: 14px;
    }
    
    /* News Detail */
    .article-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .article-content {
        font-size: 15px;
    }
    .article-nav {
        flex-direction: column;
    }
    .article-nav a {
        min-width: 100%;
    }

    /* Pagination */
    .pagination {
        justify-content: center;
        margin-top: 30px;
        gap: 8px;
    }
    .pagination .page-status {
        display: none; /* Optional: Hide on mobile for cleaner look, or style as block */
    }
    .pagination a, .pagination span:not(.page-status) {
        padding: 6px 12px;
        font-size: 13px;
    }
}