/* ================= GOOGLE FONTS IMPORT ================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================= GLOBAL RESET & TYPOGRAPHY ================= *[cite: 5] */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

body {
    background-color: #f4f7fa;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ================= PAGE CONTAINERS ================= *[cite: 5] */
.container,
.main-container,
.news-container,
.orders-container,
.court-container,
.gallery-section,
.about-section,
.membership-container,
.membership-section {
    max-width: 1000px;
    margin: 35px auto !important;
    padding: 0 20px;
    width: 100%;
}

/* ================= HEADER STYLING ================= *[cite: 5] */
header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid #e0a800;
}

.top-header .logo img, .logo img {
    height: 65px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.top-header .title h1 {
    font-size: 1.4rem;
    color: #07366d;
    font-weight: 700;
}

.top-header .title p {
    font-size: 0.95rem;
    color: #198754;
    font-weight: 600;
}

/* NAVIGATION BAR *[cite: 5] */
nav {
    background: #07366d;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

nav a:hover, nav a.active {
    color: #ffeb3b;
    background: rgba(255, 255, 255, 0.08);
}

/* ================= HERO & PAGE HEADINGS ================= *[cite: 5] */
.hero {
    background: linear-gradient(135deg, #04244d 0%, #07366d 50%, #0b5da8 100%);
    color: white;
    text-align: center;
    padding: 55px 20px;
    border-bottom: 4px solid #e0a800;
    position: relative;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    color: #e0e6ed;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

.page-heading {
    background: linear-gradient(135deg, #04244d 0%, #07366d 50%, #0b5da8 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 4px solid #e0a800;
}

.page-heading h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-heading p {
    color: #e0e6ed;
    font-size: 0.95rem;
}

/* ================= PREMIUM HERO BUTTONS ================= *[cite: 5] */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.hero-buttons a {
    text-decoration: none;
    display: inline-block;
}

.btn-join-hero,
.btn-orders-hero {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    outline: none;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Join Association Button *[cite: 5] */
.btn-join-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-join-hero:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.65);
}

/* Govt Orders Button *[cite: 5] */
.btn-orders-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
}

.btn-orders-hero:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.65);
}

/* ================= NOTICE TICKER (FIXED OVERLAP & SPACING) ================= *[cite: 5] */
.notice {
    max-width: 960px;
    margin: 30px auto 35px !important;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 18px;
    border-left: 6px solid #e0a800;
    position: relative;
    z-index: 20;
}

.notice-title {
    background: #07366d;
    color: #ffeb3b;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
}

/* ================= HOMEPAGE CARDS ================= *[cite: 5] */
.services {
    max-width: 1000px;
    margin: 35px auto;
    padding: 0 20px;
    text-align: center;
}

.services h2 {
    font-size: 1.8rem;
    color: #07366d;
    margin-bottom: 5px;
    font-weight: 700;
}

.services .subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaedf1;
    border-top: 4px solid #07366d;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(7, 54, 109, 0.12);
}

.card .icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: inline-block;
}

.card h3 {
    color: #07366d;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card p {
    color: #6c757d;
    font-size: 0.88rem;
}

/* ================= ABOUT US PAGE STYLES ================= *[cite: 5] */
.about-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    margin-bottom: 35px;
}

.about-logo {
    flex: 0 0 120px;
    text-align: center;
}

.about-logo img {
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    max-height: 120px !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}

.about-content {
    flex: 1;
    min-width: 260px;
}

.about-content h2 {
    color: #07366d;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 3px solid #e0a800;
    display: inline-block;
    padding-bottom: 4px;
    font-weight: 700;
}

.about-content p {
    color: #444444;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.mission-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    text-align: center;
    border-top: 4px solid #07366d;
}

/* ================= COURT CASES & GOVT ORDERS STYLING ================= *[cite: 5] */
.news-card, .order-card, .court-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #07366d;
    text-align: left;
}

.court-card h2, .order-card h2, .news-card h2 {
    color: #07366d;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.court-buttons, .order-buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px !important;
    margin-top: 18px;
    align-items: center;
}

.view-btn, 
.download-btn,
.court-buttons a,
.order-buttons a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
}

.view-btn {
    background: #07366d !important;
    color: #ffffff !important;
    border: none;
}

.view-btn:hover {
    background: #0b5da8 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(7, 54, 109, 0.35);
}

.download-btn {
    background: #198754 !important;
    color: #ffffff !important;
    border: none;
}

.download-btn:hover {
    background: #146c43 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(25, 135, 84, 0.35);
}

/* ================= MEMBERSHIP FORM CARD STYLING ================= *[cite: 5] */
.form-card {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
    border-top: 5px solid #07366d;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px dashed #eaedf1;
    padding-bottom: 18px;
}

.form-header h2 {
    color: #07366d;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.form-header p {
    color: #666;
    font-size: 0.92rem;
}

.form-section-title {
    margin: 25px 0 15px;
    border-bottom: 2px solid #e0a800;
    padding-bottom: 6px;
    color: #07366d;
}

.form-section-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.photo-upload-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

#photoPreview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px dashed #07366d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.btn-upload {
    background: #07366d;
    color: white;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 500;
}

.btn-upload:hover {
    background: #198754;
}

.file-hint {
    font-size: 0.78rem;
    color: #666;
    margin-top: 4px;
}

.form-row, .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #07366d;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 0.92rem;
    background: #fdfdfd;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #07366d;
    box-shadow: 0 0 6px rgba(7, 54, 109, 0.2);
}

.payment-card-box {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
}

.membership-submit {
    background: #07366d;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.membership-submit:hover {
    background: #198754;
}

/* GALLERY PAGE FIXED STYLING */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px)) !important;
    justify-content: center !important;
    gap: 22px !important;
    margin-top: 20px;
}

.gallery-item {
    background: #ffffff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #eaedf1;
    width: 100% !important;
    max-width: 360px !important; /* Isse akeli image bhi poori screen par nahi phailegi */
    margin: 0 auto !important;
}

.gallery-item img {
    width: 100% !important;
    height: 200px !important;
    object-type: cover !important;
    object-fit: cover !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 !important;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-caption {
    padding: 15px !important;
    text-align: left !important;
}

.gallery-caption h3 {
    color: #07366d !important;
    font-size: 1.1rem !important;
    margin-bottom: 5px !important;
}

.gallery-caption p {
    color: #555555 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

/* FLOATING SCROLL TO TOP *[cite: 5] */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #07366d;
    color: #e0a800;
    border: 2px solid #e0a800;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 1000;
}

#scrollTopBtn:hover {
    background: #e0a800;
    color: #07366d;
}

/* ================= MOBILE RESPONSIVENESS ================= *[cite: 5] */
@media (max-width: 768px) {
    /* MOBILE PAR HEADER STICKY PROBLEM FIX *[cite: 5] */
    header {
        position: static !important;
        top: auto !important;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn-join-hero,
    .btn-orders-hero {
        padding: 12px 24px;
        font-size: 0.92rem;
    }

    .notice {
        margin: 20px 15px 25px !important;
        flex-direction: column;
        text-align: center;
    }

    .form-row, .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .form-card {
        padding: 22px 18px;
    }

    .about-intro {
        flex-direction: column;
        text-align: center;
    }

    .top-header {
        flex-direction: column;
        text-align: center;
    }
}