/* /guidepakistan/assets/css/responsive.css */

/* ============================================
RESPONSIVE STYLES
============================================ */

/* ============================================
LARGE DEVICES (Desktops, 992px and up)
============================================ */
@media (min-width: 992px) {
    /* Desktop specific styles */
}

/* ============================================
MEDIUM DEVICES (Tablets, 768px to 991px)
============================================ */
@media (max-width: 991.98px) {
    /* ===== NAVBAR MOBILE ===== */
    .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        padding: 15px 20px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
        border-radius: 0 0 12px 12px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        z-index: 999 !important;
        border-top: 1px solid #e9ecef !important;
    }
    
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none !important;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        font-size: 1rem !important;
    }
    
    /* ===== DROPDOWN MOBILE ===== */
    .navbar .dropdown-toggle {
        cursor: pointer !important;
    }
    
    .navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        padding: 8px 0 !important;
        margin-top: 5px !important;
        display: none !important;
    }
    
    .navbar .dropdown-menu.show {
        display: block !important;
    }
    
    .navbar .dropdown-menu .dropdown-item {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .navbar .dropdown-menu .dropdown-item:last-child {
        border-bottom: none !important;
    }
    
    .navbar .dropdown-menu .dropdown-item:hover {
        background: rgba(1, 65, 28, 0.05) !important;
    }
    
    .navbar .dropdown-menu .dropdown-divider {
        margin: 4px 0 !important;
    }
    
    /* ===== SEARCH BAR MOBILE ===== */
    .search-form {
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    .search-form .input-group {
        width: 100% !important;
    }
    
    .search-form .form-control {
        font-size: 0.9rem !important;
        padding: 8px 15px !important;
    }
    
    /* ===== HERO SECTION MOBILE ===== */
    .hero-section {
        padding: 50px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    /* ===== CATEGORIES MOBILE ===== */
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 15px !important;
    }
    
    /* ===== GUIDE CARDS MOBILE ===== */
    .guide-card .card-img-top {
        height: 180px !important;
    }
    
    /* ===== GUIDE DETAIL MOBILE ===== */
    .guide-detail {
        padding: 25px !important;
    }
    
    .guide-detail h1 {
        font-size: 2rem !important;
    }
    
    .guide-detail .guide-meta span {
        display: block !important;
        margin-bottom: 5px !important;
    }
    
    /* ===== SIDEBAR MOBILE ===== */
    .sidebar-widget {
        padding: 20px !important;
    }
}

/* ============================================
SMALL DEVICES (Phones, 576px to 767px)
============================================ */
@media (max-width: 767.98px) {
    /* ===== NAVBAR ===== */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.9rem !important;
    }
    
    .navbar-brand img {
        height: 32px !important;
    }
    
    /* ===== HERO SECTION ===== */
    .hero-section {
        padding: 35px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-section p {
        font-size: 0.95rem !important;
    }
    
    .hero-section .search-form .input-group {
        flex-wrap: nowrap !important;
    }
    
    .hero-section .search-form .form-control {
        font-size: 0.9rem !important;
        padding: 8px 15px !important;
    }
    
    .hero-section .search-form .btn {
        padding: 8px 15px !important;
        font-size: 0.9rem !important;
    }
    
    /* ===== CATEGORIES ===== */
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 12px !important;
    }
    
    .category-card {
        padding: 15px 10px !important;
    }
    
    .category-card .category-icon {
        font-size: 2rem !important;
    }
    
    .category-card h5 {
        font-size: 0.85rem !important;
    }
    
    .category-card small {
        font-size: 0.75rem !important;
    }
    
    /* ===== GUIDE CARDS ===== */
    .guide-card .card-img-top {
        height: 150px !important;
    }
    
    .guide-card .card-body {
        padding: 15px !important;
    }
    
    .guide-card .card-title {
        font-size: 1rem !important;
    }
    
    .guide-card .card-text {
        font-size: 0.85rem !important;
    }
    
    .guide-card .card-footer {
        padding: 12px 15px !important;
        font-size: 0.8rem !important;
    }
    
    /* ===== GUIDE DETAIL ===== */
    .guide-detail {
        padding: 20px !important;
    }
    
    .guide-detail h1 {
        font-size: 1.6rem !important;
    }
    
    .guide-detail .content-section h2 {
        font-size: 1.4rem !important;
    }
    
    .guide-detail .content-section h3 {
        font-size: 1.1rem !important;
    }
    
    .guide-detail .step-list li {
        padding: 12px 15px 12px 45px !important;
        font-size: 0.9rem !important;
    }
    
    .guide-detail .step-list li::before {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.75rem !important;
        left: 10px !important;
        top: 12px !important;
    }
    
    .guide-detail .info-box {
        padding: 15px 18px !important;
    }
    
    /* ===== FAQ ===== */
    .faq-item .faq-question {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }
    
    .faq-item .faq-answer {
        font-size: 0.9rem !important;
    }
    
    /* ===== PAGINATION ===== */
    .pagination .page-link {
        padding: 5px 10px !important;
        font-size: 0.85rem !important;
    }
    
    /* ===== FOOTER ===== */
    .footer {
        padding: 30px 0 20px !important;
    }
    
    .footer h5 {
        font-size: 1rem !important;
        margin-top: 20px !important;
    }
    
    .footer .text-muted {
        font-size: 0.85rem !important;
    }
    
    .footer .social-links a {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 0.8rem !important;
    }
}

/* ============================================
EXTRA SMALL DEVICES (Very small phones, less than 576px)
============================================ */
@media (max-width: 575.98px) {
    body {
        padding-top: 55px !important;
    }
    
    /* ===== NAVBAR ===== */
    .navbar {
        padding: 8px 0 !important;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-brand .brand-text {
        font-size: 0.85rem !important;
    }
    
    .navbar-brand img {
        height: 28px !important;
    }
    
    .navbar-toggler {
        padding: 4px 8px !important;
        font-size: 0.8rem !important;
    }
    
    .navbar-collapse {
        padding: 10px 15px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 0 !important;
        font-size: 0.9rem !important;
    }
    
    .navbar .dropdown-menu .dropdown-item {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
    
    /* ===== SEARCH BAR ===== */
    .search-form .form-control {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
    }
    
    .search-form .btn {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }
    
    /* ===== HERO SECTION ===== */
    .hero-section {
        padding: 25px 0 !important;
        margin-bottom: 25px !important;
    }
    
    .hero-section h1 {
        font-size: 1.4rem !important;
    }
    
    .hero-section p {
        font-size: 0.85rem !important;
    }
    
    .hero-section .search-form .form-control {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
    }
    
    .hero-section .search-form .btn {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }
    
    /* ===== CATEGORIES ===== */
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 10px !important;
        margin: 15px 0 !important;
    }
    
    .category-card {
        padding: 12px 8px !important;
    }
    
    .category-card .category-icon {
        font-size: 1.6rem !important;
    }
    
    .category-card h5 {
        font-size: 0.75rem !important;
    }
    
    .category-card small {
        font-size: 0.65rem !important;
    }
    
    /* ===== GUIDE CARDS ===== */
    .guide-card .card-img-top {
        height: 120px !important;
    }
    
    .guide-card .card-body {
        padding: 12px !important;
    }
    
    .guide-card .card-title {
        font-size: 0.9rem !important;
    }
    
    .guide-card .card-text {
        font-size: 0.8rem !important;
    }
    
    .guide-card .card-footer {
        padding: 10px 12px !important;
        font-size: 0.75rem !important;
    }
    
    .guide-card .category-badge {
        font-size: 0.65rem !important;
        padding: 2px 10px !important;
        top: 10px !important;
        right: 10px !important;
    }
    
    /* ===== GUIDE DETAIL ===== */
    .guide-detail {
        padding: 15px !important;
        margin-top: 15px !important;
    }
    
    .guide-detail h1 {
        font-size: 1.3rem !important;
    }
    
    .guide-detail .guide-meta {
        font-size: 0.8rem !important;
    }
    
    .guide-detail .content-section h2 {
        font-size: 1.2rem !important;
        margin-top: 25px !important;
    }
    
    .guide-detail .content-section h3 {
        font-size: 1rem !important;
    }
    
    .guide-detail .step-list li {
        padding: 10px 12px 10px 38px !important;
        font-size: 0.85rem !important;
    }
    
    .guide-detail .step-list li::before {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.65rem !important;
        left: 8px !important;
        top: 10px !important;
    }
    
    .guide-detail .info-box {
        padding: 12px 15px !important;
    }
    
    /* ===== FAQ ===== */
    .faq-item .faq-question {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .faq-item .faq-answer {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }
    
    /* ===== BREADCRUMBS ===== */
    .breadcrumb {
        padding: 10px 0 !important;
        font-size: 0.8rem !important;
    }
    
    /* ===== PAGINATION ===== */
    .pagination .page-link {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }
    
    /* ===== SIDEBAR ===== */
    .sidebar-widget {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .sidebar-widget .widget-title {
        font-size: 1rem !important;
    }
    
    /* ===== FOOTER ===== */
    .footer {
        padding: 20px 0 15px !important;
        margin-top: 30px !important;
    }
    
    .footer h5 {
        font-size: 0.9rem !important;
        margin-top: 15px !important;
    }
    
    .footer .text-muted {
        font-size: 0.8rem !important;
    }
    
    .footer .social-links a {
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
        font-size: 0.7rem !important;
    }
    
    /* ===== BUTTONS ===== */
    .btn {
        font-size: 0.85rem !important;
        padding: 6px 14px !important;
    }
    
    .btn-lg {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
    }
    
    /* ===== CARDS ===== */
    .card-header {
        padding: 10px 15px !important;
    }
    
    .card-header h5 {
        font-size: 0.9rem !important;
    }
    
    .card-body {
        padding: 12px 15px !important;
    }
    
    /* ===== TABLES ===== */
    .table thead th {
        font-size: 0.7rem !important;
        padding: 5px 8px !important;
    }
    
    .table tbody td {
        font-size: 0.8rem !important;
        padding: 5px 8px !important;
    }
    
    /* ===== BADGE ===== */
    .badge {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }
}

/* ============================================
DROPDOWN FIX FOR ALL MOBILE SIZES
============================================ */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        padding: 8px 0 !important;
        margin-top: 5px !important;
        display: none !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    .dropdown-item {
        padding: 10px 20px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .dropdown-item:last-child {
        border-bottom: none !important;
    }
    
    .dropdown-item:hover {
        background: rgba(1, 65, 28, 0.05) !important;
    }
    
    .dropdown-divider {
        margin: 4px 0 !important;
    }
}

/* ============================================
UTILITY FIXES FOR MOBILE
============================================ */
@media (max-width: 767.98px) {
    /* Hide on mobile */
    .d-mobile-none {
        display: none !important;
    }
    
    /* Show on mobile */
    .d-mobile-block {
        display: block !important;
    }
    
    /* Text alignment */
    .text-mobile-center {
        text-align: center !important;
    }
    
    /* Margins */
    .mt-mobile-2 {
        margin-top: 10px !important;
    }
    
    .mb-mobile-2 {
        margin-bottom: 10px !important;
    }
    
    /* Gap fixes */
    .gap-mobile-1 {
        gap: 5px !important;
    }
}

/* ============================================
PRINT STYLES
============================================ */
@media print {
    .navbar,
    .footer,
    .sidebar,
    .search-form,
    .breadcrumb,
    .pagination,
    .back-to-top {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        background: white !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}