:root {
    --green-dark: #064428;
    --green-light: #0d683d;
    --green-soft: #eaf3ee;
    --gold: #d4af37;
    --bg-color: #f4f6f4;
    --card-bg: #ffffff;
    --border-color: #e2e8e4;
    --text-dark: #1f2924;
    --text-muted: #66756d;
}

@font-face {
    font-family: 'Faiz Nastaliq';
    src: url('fonts/FaizNastaleeq.ttf') format('truetype');
}

@font-face {
    font-family: 'Jameel Noori Kasheeda';
    src: url('fonts/JameelNooriKasheeda.ttf') format('truetype'); 
}

@font-face {
    font-family: 'Bombay Black';
    src: url('fonts/BombayBlack.ttf') format('truetype');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Faiz Nastaliq', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 18px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ہیڈر اور آزاد لوگو (بغیر کٹے سفید بیک گراؤنڈ پر صاف نظر آئے گا) */
.top-header {
    background-color: #ffffff;
    padding: 18px 0;
    border-bottom: 2px solid var(--border-color);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.header-titles { text-align: right; }

.urdu-title {
    font-family: 'Jameel Noori Kasheeda', serif;
    font-size: 44px;
    color: var(--green-dark);
    line-height: 1.2;
}

.eng-title {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: var(--green-light);
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.tagline {
    font-size: 18px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.gold-line {
    height: 2px;
    width: 35px;
    background-color: var(--gold);
    display: inline-block;
}

/* لوگو کو گول دائرے کی قید سے آزاد کر دیا گیا ہے تاکہ ذرا بھی نہ کٹے */
.site-logo-img {
    height: 92px;
    width: auto;
    max-width: 125px;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* نیویگیشن بار */
.main-navbar {
    background-color: var(--green-dark);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-top-nav {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
}

.quick-nav-links {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 1;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 8px;
}

.quick-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 2px 6px;
    transition: 0.2s;
    white-space: nowrap;
}

.quick-nav-links a:hover { color: var(--gold); }

.nav-divider {
    color: var(--gold);
    opacity: 0.6;
    font-size: 14px;
    padding: 0 4px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    font-size: 17px;
    border-left: 1px solid rgba(255,255,255,0.12);
    transition: 0.25s;
}

.nav-links li:last-child a { border-left: none; }
.nav-links li a:hover, .nav-links li a.active {
    background-color: var(--gold);
    color: var(--green-dark);
}

.mobile-toggle {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 10px;
}

/* اسمارٹ سلائیڈر */
.banner-section { padding: 18px 0 10px; }

.slider-container {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    background: var(--green-dark);
}

.slider-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide { min-width: 100%; }

.smart-banner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: var(--green-dark);
}

.smart-banner-wrap::before {
    content: "";
    position: absolute;
    inset: -20px;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.55);
    z-index: 1;
}

.main-banner-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: 0.3s;
}

.dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 6px;
}

/* کارڈز اور لے آؤٹ */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.content-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.card-heading {
    font-family: 'Jameel Noori Kasheeda', serif;
    font-size: 28px;
    color: var(--green-dark);
    margin-bottom: 10px;
    font-weight: normal;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-light);
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    margin-top: 8px;
}

.card-link:hover { color: var(--gold); }

/* اعلانات کی فہرست */
.clean-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.2s;
}

.list-row:last-child { border-bottom: none; }
.list-row:hover { background-color: var(--bg-color); border-radius: 8px; }

.row-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.row-icon {
    font-size: 20px;
    color: var(--green-light);
    background: var(--green-soft);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.row-text h4 {
    font-size: 19px;
    font-weight: normal;
    color: var(--text-dark);
    line-height: 1.4;
}

.row-text span {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
}

.row-arrow { font-size: 13px; color: var(--text-muted); }

/* آئندہ پروگرام */
.event-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8faf8;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin: 10px 0;
    gap: 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: 0.2s;
}
.event-box:hover { border-color: var(--gold); background-color: #f1f7f3; }

.event-date {
    background-color: var(--green-soft);
    border: 1px solid #cce0d4;
    border-radius: 10px;
    min-width: 82px;
    padding: 8px 10px;
    text-align: center;
}

.ev-day {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--green-dark);
    display: block;
    line-height: 1.1;
}

.ev-month { font-size: 15px; color: var(--green-light); }
.event-details { flex: 1; }
.event-details h3 { font-size: 21px; color: var(--green-dark); font-weight: normal; }
.event-details p { font-size: 16px; color: var(--text-muted); }
.event-icon { font-size: 24px; color: var(--green-light); padding-left: 8px; }

/* ہوم پیج عہدیداران (صرف صدر اور نائب صدر کے لیے 2 کالم) */
.bearers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.bearer-item {
    background-color: #f8faf8;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bearer-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.bearer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--green-soft);
    color: var(--green-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1.5px solid var(--gold);
}
.bearer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bearer-info h4 { font-size: 21px; color: var(--green-dark); font-weight: normal; }
.bearer-info p { font-size: 16px; color: var(--text-muted); }
.mobile-arrow { display: none; }

/* اندرونی صفحے کے تفصیلی عہدیداران اور ارکان کارڈز */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.person-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--green-dark);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.person-photo {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 50%;
    background: var(--green-soft);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--green-dark);
    font-size: 24px;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }

.person-details { flex: 1; }
.person-badge {
    display: inline-block;
    background: var(--green-dark);
    color: var(--gold);
    padding: 1px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 4px;
}
.person-details h3 { font-size: 22px; color: var(--green-dark); font-weight: normal; line-height: 1.3; margin-bottom: 4px; }
.person-meta { font-size: 16px; color: #333; line-height: 1.6; }
.person-meta i { color: var(--green-light); width: 20px; text-align: center; }

/* تنظیم کے شعبے */
.section-outer-heading {
    font-family: 'Jameel Noori Kasheeda', serif;
    font-size: 28px;
    color: var(--green-dark);
    margin-bottom: 14px;
    font-weight: normal;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.dept-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dept-card i {
    font-size: 28px;
    color: var(--green-light);
    margin-bottom: 10px;
}

.dept-card span { font-size: 19px; color: var(--text-dark); }
.dept-card:hover { border-color: var(--gold); transform: translateY(-3px); }

/* سرگرمیاں */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 15px 0;
}

.activity-item {
    background-color: #f8faf8;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: 0.2s;
}
.activity-item:hover { border-color: var(--gold); }

.act-thumb {
    background-color: var(--green-soft);
    height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--green-light);
    gap: 6px;
    overflow: hidden;
}

.act-thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-thumb i { font-size: 32px; }
.act-thumb span { font-size: 14px; color: var(--text-muted); }
.act-info { padding: 14px; }
.act-info h4 { font-size: 20px; color: var(--text-dark); font-weight: normal; }
.act-info p { font-size: 15px; color: var(--text-muted); }

/* دستاویزات */
.docs-list { display: flex; flex-direction: column; margin: 10px 0; }
.doc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background-color: #f8faf8; border-radius: 8px; }
.doc-name { display: flex; align-items: center; gap: 12px; font-size: 19px; }
.doc-icon { font-size: 22px; color: var(--green-light); }
.download-icon { font-size: 16px; color: var(--text-muted); }

/* گیلری */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 15px 0;
}

.gallery-box {
    background-color: #f2f5f3;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--green-light);
    font-size: 28px;
    text-decoration: none;
    overflow: hidden;
    transition: 0.2s;
}
.gallery-box img { width: 100%; height: 100%; object-fit: cover; }
.gallery-box:hover { background-color: var(--green-soft); border-color: var(--gold); }

/* اندرونی صفحات */
.breadcrumb-bar {
    background: var(--green-soft);
    padding: 10px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #cce0d4;
}

.breadcrumb-links a {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: bold;
}

.subcat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.subcat-pill {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    color: var(--text-dark);
    transition: 0.2s;
}

.subcat-pill.active, .subcat-pill:hover {
    background: var(--green-dark);
    color: var(--gold);
    border-color: var(--gold);
}

.article-body {
    text-align: justify;
    font-size: 20px;
    line-height: 2.2;
}

.article-body h2 {
    font-family: 'Jameel Noori Kasheeda', serif;
    color: var(--green-dark);
    font-size: 30px;
    margin: 20px 0 10px;
    border-right: 4px solid var(--gold);
    padding-right: 10px;
}

.article-body h3 {
    color: var(--green-light);
    font-size: 24px;
    margin: 16px 0 8px;
}

.article-img-box {
    width: 100%;
    max-height: 520px;
    background: #062917;
    border-radius: 12px;
    overflow: hidden;
    margin: 18px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--gold);
}

.article-img-box img {
    max-width: 100%;
    max-height: 516px;
    object-fit: contain;
    display: block;
}

/* فوٹر */
.clean-footer { margin: 30px 0 25px; }
.footer-card {
    background-color: var(--green-dark);
    color: #ffffff;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
}
.footer-title {
    font-family: 'Jameel Noori Kasheeda', serif;
    font-size: 32px;
    color: #ffffff;
    font-weight: normal;
    margin-bottom: 10px;
    user-select: none;
}
.footer-nav { display: flex; justify-content: center; gap: 12px; font-size: 18px; margin-bottom: 10px; }
.footer-nav a { color: #e0ece5; text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-nav span { color: rgba(255,255,255,0.4); }
.footer-address { font-size: 16px; color: #cde0d5; margin-bottom: 16px; }
.footer-socials { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.footer-socials a {
    color: #ffffff; background: rgba(255,255,255,0.12); width: 38px; height: 38px;
    border-radius: 50%; display: inline-flex; justify-content: center; align-items: center;
    text-decoration: none; font-size: 17px; transition: 0.25s;
}
.footer-socials a:hover { background: var(--gold); color: var(--green-dark); }
.footer-copy { font-size: 15px; color: #b5ccc0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 14px; user-select: none; }

/* موبائل رسپانسو سیٹنگز */
@media (max-width: 768px) {
    body { font-size: 16px; }
    .header-flex { flex-direction: column-reverse; text-align: center; gap: 8px; }
    .header-titles { text-align: center; }
    .urdu-title { font-size: 32px; }
    .eng-title { font-size: 13px; }
    .tagline { justify-content: center; font-size: 15px; }
    .gold-line { width: 22px; }
    .site-logo-img { height: 76px; margin: 0 auto; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--green-dark);
        text-align: right;
        border-top: 1px solid rgba(255,255,255,0.15);
    }
    .nav-links.active { display: flex; }
    .nav-links li a { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 10px 18px; }

    .mobile-top-nav { display: flex; }

    .smart-banner-wrap { height: auto; aspect-ratio: 16 / 9; }
    .main-banner-img { object-fit: cover; }

    .content-card { padding: 18px; }
    .card-heading, .section-outer-heading { font-size: 24px; }

    .bearers-grid { grid-template-columns: 1fr; gap: 0; }
    .bearer-item {
        flex-direction: row; justify-content: space-between; text-align: right;
        background: transparent; border: none; border-bottom: 1px solid var(--border-color);
        border-radius: 0; padding: 12px 4px; gap: 14px;
    }
    .bearer-item:last-child { border-bottom: none; }
    .bearer-avatar { margin-bottom: 0; width: 50px; height: 50px; font-size: 19px; }
    .bearer-info { flex: 1; }
    .bearer-info h4 { font-size: 19px; }
    .bearer-info p { font-size: 15px; }
    .mobile-arrow { display: block; font-size: 13px; color: var(--text-muted); }

    .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dept-card { padding: 18px 10px; }
    .dept-card span { font-size: 17px; }

    .activities-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .directory-grid { grid-template-columns: 1fr; }
}