/* 
 * Mobile Exclusive Styles
 * App-Like Experience for isvecenasilgelinir.com 
 */

@media (max-width: 768px) {
    /* Reset & Base */
    body {
        /* Add padding to bottom to account for Bottom Nav Bar */
        padding-bottom: 70px !important;
        background-color: #f8f9fa; /* Softer background for app feel */
        overflow-x: hidden;
    }

    /* 1. Header Simplification */
    .site-header {
        padding: 10px 15px;
        box-shadow: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 900;
    }

    .logo {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0 auto;
    }

    .logo-img {
        max-height: 75px; /* Larger logo for better visibility */
    }

    /* Hide Desktop/Hamburger Menu Elements entirely on mobile */
    .menu-toggle, 
    .main-nav {
        display: none !important;
    }

    /* 2. Bottom Navigation Bar */
    .bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 1000;
        justify-content: space-around;
        padding: 10px 0;
        padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* iOS safe area */
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-muted, #6c757d);
        font-size: 0.65rem;
        font-weight: 600;
        gap: 4px;
        transition: color 0.2s;
        flex: 1;
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
        stroke-width: 1.5;
    }

    .nav-item.active {
        color: var(--primary, #005bb5);
    }

    .nav-item.active svg {
        stroke-width: 2.5;
    }

    /* 3. Edge-to-Edge Cards & Horizontal Scroll (Carousel) */
    .latest-blog-section .container {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .latest-blog-section .section-header {
        padding: 0 20px;
        text-align: left; /* Modern apps align left */
    }

    .latest-blog-section .section-header h2 {
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 5px;
    }

    .latest-blog-section .news-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 20px 20px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Hide scrollbar for clean look */
    .latest-blog-section .news-grid::-webkit-scrollbar {
        display: none;
    }
    .latest-blog-section .news-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .latest-blog-section .news-card {
        flex: 0 0 85%; /* Cards take up 85% of screen width */
        scroll-snap-align: center;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        border: none;
        border-radius: 16px;
    }

    .news-img-wrapper {
        height: 200px; /* Taller images for mobile */
        border-radius: 16px 16px 0 0;
    }

    /* Edge-to-edge for regular blog page */
    .blog-page .container {
        padding: 0 10px;
    }

    .blog-page .news-grid {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    .blog-page .news-card {
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        border: none;
    }

    /* 4. Contact Form Adjustments */
    .contact-wrapper {
        display: flex;
        flex-direction: column-reverse; /* Put form above info */
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .contact-info {
        padding: 30px 20px;
        border-radius: 0 0 16px 16px; /* Now at bottom */
    }

    .contact-form-container {
        padding: 30px 20px;
        background: white;
        border-radius: 16px 16px 0 0; /* Now at top */
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Floating Action Button Style for forms */
    .btn-block {
        border-radius: 30px;
        padding: 15px;
        font-size: 1.1rem;
        box-shadow: 0 4px 15px rgba(0, 91, 181, 0.3);
    }

    /* 5. Feedback Tweaks: Slider, Services */
    .slider-section, .slider-container, .slide {
        height: 300px !important; /* Fixed height for mobile */
        min-height: 300px !important;
        background-color: #000;
    }

    .slide-content {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        padding: 20px !important;
        text-align: center !important;
        z-index: 25 !important;
    }

    .slide-content h1, .slide-content h2 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }

    .slide-content p {
        font-size: 14px !important; /* Slightly smaller than title for hierarchy */
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .slider-indicators {
        bottom: 15px !important;
    }
    .services-grid {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }

    .service-card {
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 14px 18px !important;
        background: #ffffff !important;
        border-radius: 18px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
        border: 1px solid rgba(0,0,0,0.02) !important;
        position: relative;
        gap: 15px;
        margin-bottom: 0 !important;
        transition: transform 0.2s ease;
    }

    .service-card:active {
        transform: scale(0.98);
        background-color: #f8fafc !important;
    }

    .service-icon {
        margin: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Colorful Icons like the image */
    .service-card:nth-child(1) .service-icon { background-color: #e6f0f9 !important; color: #005bb5 !important; }
    .service-card:nth-child(2) .service-icon { background-color: #fff9e6 !important; color: #ffc200 !important; }
    .service-card:nth-child(3) .service-icon { background-color: #e6f9ed !important; color: #10b981 !important; }
    .service-card:nth-child(4) .service-icon { background-color: #f3e6f9 !important; color: #8b5cf6 !important; }

    .service-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .service-card h3 {
        font-size: 0.95rem !important;
        margin: 0 !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        flex-grow: 1;
    }

    .service-card p {
        display: none !important;
    }

    /* Make the entire card clickable by expanding the footer link */
    .service-card .card-footer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0;
        z-index: 5;
    }

    .service-card .card-action-btn {
        display: block !important;
        width: 100%;
        height: 100%;
    }

    /* Chevron Arrow indicator */
    .service-card::after {
        content: '';
        width: 8px;
        height: 8px;
        border-top: 2px solid #cbd5e1;
        border-right: 2px solid #cbd5e1;
        transform: rotate(45deg);
        position: absolute;
        right: 20px;
    }

    /* Mobile Contact Action Button Above Blog Grid */
    .mobile-contact-action {
        display: block !important;
        padding: 0 20px 20px 20px;
    }
    
    .mobile-contact-action .btn {
        width: 100%;
        text-align: center;
        border-radius: 30px;
        font-weight: 700;
        box-shadow: 0 4px 10px rgba(0, 91, 181, 0.2);
    }
    
    /* Blog Page Interspersed Contact Buttons */
    .blog-mobile-contact-btn {
        display: block !important;
        margin: 15px 0;
        text-align: center;
        border-radius: 30px;
        font-weight: 700;
        box-shadow: 0 4px 10px rgba(0, 91, 181, 0.2);
        padding: 15px;
    }
}
