/* ========================================
   PakistaniChat.net - Modern Responsive Theme
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== FULL-WIDTH HEADER ========== */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f5c2f, #1e8449);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.logo i {
    background: none;
    color: #1e8449;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e8449;
    background: none;
    border: none;
    padding: 8px;
    transition: 0.2s;
}

.menu-icon:hover {
    color: #0f5c2f;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    transition: 0.2s;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e8449, #0f5c2f);
    transition: width 0.25s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #1e8449;
}

/* ========== HERO SECTION ========== */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px 0 60px;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1;
}
.hero-badge {
    background: #e8f5e9;
    color: #1e8449;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f172a;
}
.hero-content h1 span {
    color: #1e8449;
}
.hero-content p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 30px;
}

/* Fancy button */
.btn-primary {
    background: linear-gradient(95deg, #1e8449, #0f5c2f);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(30, 132, 73, 0.25);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(30, 132, 73, 0.35);
}
.btn-primary:active {
    transform: translateY(1px);
}

/* Responsive image fix - ensures all images scale properly */
.hero-image {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?w=600&h=400&fit=crop') center/cover;
    border-radius: 30px;
    min-height: 320px;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
}

/* Article images - fixed size for mobile */
.article-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 24px;
    object-fit: cover;
}

/* ========== FEATURES ========== */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 60px 0 15px;
    color: #0f172a;
}
.section-sub {
    text-align: center;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 0.95rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.feature-card {
    background: white;
    padding: 28px 20px;
    border-radius: 28px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #e5e7eb;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
    border-color: #1e8449;
}
.feature-icon {
    font-size: 2.5rem;
    background: #eef2ff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    margin: 0 auto 18px;
    color: #1e8449;
}
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.feature-card p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* ========== ARTICLE ========== */
.article-section {
    background: white;
    border-radius: 36px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
}
.article-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #0f5c2f;
}
.article-section h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #1e8449;
}
.article-section p {
    margin-bottom: 1rem;
    color: #4b5563;
}
.article-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
}
.article-text {
    flex: 2;
}
.article-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
}
.keyword-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}
.keyword-pill {
    background: #e8f5e9;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e8449;
}

/* ========== ROOM GRID ========== */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 30px 0;
}
.room-card {
    background: white;
    padding: 14px;
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    color: #374151;
}
.room-card:hover {
    background: #1e8449;
    color: white;
    transform: translateY(-3px);
}

/* ========== SEARCH SECTION ========== */
.search-section {
    background: #f8fafc;
    border-radius: 40px;
    padding: 32px 24px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}
.search-tag {
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #e2e8f0;
    color: #334155;
}
.search-tag:hover {
    background: #1e8449;
    color: white;
}

/* ========== SAFETY CARDS ========== */
.safety-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 40px 0;
}
.safety-card {
    background: white;
    border-radius: 28px;
    padding: 28px 20px;
    flex: 1;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: 0.2s;
}
.safety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.safety-card i {
    font-size: 2.2rem;
    color: #1e8449;
    margin-bottom: 12px;
}

/* ========== FULL-WIDTH FOOTER ========== */
footer {
    width: 100%;
    background: linear-gradient(135deg, #1f2937, #111827);
    padding: 48px 24px 32px;
    margin-top: 60px;
    text-align: center;
    color: #cbd5e1;
}
footer p {
    margin-bottom: 12px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 16px;
}
footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: 0.2s;
}
footer a:hover {
    color: #1e8449;
    text-decoration: underline;
}

/* ========== RESPONSIVE STYLES (FIXED) ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .navbar {
        padding: 12px 20px;
    }
    .menu-icon {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        border-radius: 28px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        border: 1px solid #e2e8f0;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links a::after {
        display: none;
    }
    .hero {
        flex-direction: column;
        padding: 30px 0 40px;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-image {
        min-height: 220px;
        width: 100%;
        background-size: cover;
    }
    /* Center button on mobile */
    .btn-primary {
        margin: 0 auto;
        display: inline-flex;
        justify-content: center;
    }
    .hero-content .btn-primary {
        margin: 0 auto;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .features-grid {
        gap: 20px;
    }
    .feature-card {
        padding: 20px 16px;
    }
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }
    .article-section {
        padding: 24px 20px;
    }
    .article-section h2 {
        font-size: 1.5rem;
    }
    .article-grid {
        flex-direction: column;
    }
    /* Ensure article images are responsive and not small */
    .article-image {
        width: 100%;
        max-width: 100%;
    }
    .article-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }
    .room-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    .room-card {
        padding: 10px;
        font-size: 0.85rem;
    }
    .search-section {
        padding: 24px 16px;
    }
    .search-tag {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    .safety-grid {
        flex-direction: column;
        gap: 16px;
    }
    footer {
        padding: 32px 16px 24px;
    }
    .footer-links {
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .btn-primary {
        padding: 10px 22px;
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .feature-card h3 {
        font-size: 1.1rem;
    }
    .keyword-pill {
        font-size: 0.7rem;
    }
}