/* responsive-fixes.css - Complete responsive fixes for all pages */

/* ==================== GENERAL FIXES ==================== */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-left: 90px;
    min-height: 100vh;
}

@media (max-width: 991px) {
    body {
        padding-left: 0;
        padding-bottom: 70px;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== FIXED BLOG PAGE SCROLLING ==================== */
.blog-section {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    padding: 30px 0 50px;
}

.blog-posts-wrapper {
    height: auto;
    overflow: visible;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-card .card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==================== FIXED ABOUT PAGE SCROLLING ==================== */
.about-section {
    height: 100vh;
    overflow: hidden;
}

.about-warp {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.about-left,
.about-right {
    overflow-y: auto;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .about-section,
    .about-warp {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    
    .about-left,
    .about-right {
        height: auto;
        overflow: visible;
    }
}

/* ==================== ADMIN FIXES ==================== */
@media (max-width: 991px) {
    .admin-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 280px;
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: flex;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1060;
        width: 45px;
        height: 45px;
        background: #D4A017;
        border: none;
        border-radius: 5px;
        color: white;
        font-size: 20px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* ==================== MOBILE BOTTOM NAVIGATION ==================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0 12px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    
    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #999;
        font-size: 11px;
        transition: color 0.3s ease;
        flex: 1;
    }
    
    .mobile-bottom-nav-item i {
        font-size: 22px;
        margin-bottom: 4px;
        color: #999;
    }
    
    .mobile-bottom-nav-item.active,
    .mobile-bottom-nav-item.active i,
    .mobile-bottom-nav-item.active span {
        color: #D4A017;
    }
}

/* ==================== COUNTDOWN TIMER ==================== */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.countdown-item {
    flex: 0 1 auto;
    min-width: 100px;
    background: #D4A017;
    color: white;
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.countdown-item .countdown-number {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 5px;
}

.countdown-item .countdown-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .countdown-wrapper {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 10px 5px;
    }
    
    .countdown-item .countdown-number {
        font-size: 24px;
    }
    
    .countdown-item .countdown-label {
        font-size: 10px;
    }
}

/* ==================== GALLERY FIXES ==================== */
.gallery-section {
    height: 100vh;
    overflow: hidden;
}

@media (max-width: 991px) {
    .gallery-section {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 30px 0;
    }
}

/* ==================== FORM FIXES ==================== */
.form-control:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

/* ==================== TABLE RESPONSIVE ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==================== ADMIN PANEL FIXES ==================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ==================== 100VH FIX FOR MOBILE ==================== */
@supports (-webkit-touch-callout: none) {
    .hero-section,
    .about-section,
    .about-warp,
    .about-left,
    .about-right {
        height: -webkit-fill-available;
    }
}

/* ==================== PAGINATION FIXES ==================== */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 20px 0;
    gap: 5px;
}

.pagination .page-item .page-link {
    display: block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-item.active .page-link {
    background: #D4A017;
    color: white;
    border-color: #D4A017;
}

.pagination .page-item .page-link:hover {
    background: #f0f0f0;
}

/* ==================== BLOG DETAILS FIXES ==================== */
.blog-details {
    min-height: 100vh;
    padding: 40px 0;
}

.single-blog-page {
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .single-blog-page {
        padding: 0 15px;
    }
    
    .blog-title {
        font-size: 28px !important;
    }
}