/* فونت فارسی حرفه‌ای */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;800&display=swap');

html {
    scroll-behavior: smooth; /* اسکرول نرم */
}

body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: #000;
    color: #f5f5f5;
}

/* نوار بالا */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 2px solid gold;
    display: flex;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

/* لوگو سمت چپ */
.nav-left {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.nav-logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

/* منوی وسط واقعی */
.nav-center {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-35%);
}

.nav-center a {
    color: #fff8b0;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-center a:hover {
    color: gold;
    text-shadow: 0 0 10px gold;
}

/* صفحه ورود */
.hero {
    position: relative;
    height: 140vh;
    background: url("../img/file_00000000d3488210a5a648986f778907.png") center center / cover fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.hero-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -45%);
    text-align: center;
    color: gold;
    width: 90%;
}

.hero-title {
    font-size: 80px;
    font-weight: 900;
    text-shadow: 0 0 40px gold;
}

/* افکت چشمک‌زن */
.glow-text {
    animation: glowFlash 2s infinite;
}

@keyframes glowFlash {
    0% { opacity: 1; text-shadow: 0 0 40px gold; }
    50% { opacity: 0.4; text-shadow: 0 0 5px gold; }
    100% { opacity: 1; text-shadow: 0 0 40px gold; }
}

.hero-slogan {
    font-size: 22px;
    color: #fff8b0;
    margin-top: 15px;
}

.hero-desc {
    font-size: 17px;
    color: #e0e0e0;
    margin-top: 10px;
}

/* سکشن‌ها */
.section {
    padding: 70px 10%;
    background: radial-gradient(circle at top, #222 0, #000 40%, #050505 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.25);
}

.section-title {
    font-size: 32px;
    color: gold;
    text-align: center;
    margin-bottom: 35px;
}

/* گرید */
.info-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

/* کارت‌ها */
.info-card,
.admin-card,
.news-card {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid gold;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
    transition: 0.3s;
}

.info-card:hover,
.admin-card:hover,
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 26px rgba(255, 215, 0, 0.9);
}

/* فوتر */
footer {
    background: #000;
    border-top: 2px solid gold;
    padding: 20px;
    text-align: center;
    color: gold;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {

    .hero {
        height: 110vh;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-slogan {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .nav-center {
        position: static;
        transform: none;
        margin: 10px auto 0 auto;
        flex-direction: column;
        gap: 15px;
    }

    .section {
        padding: 50px 5%;
    }
}


/* ===== GOLDEN STATE HEADER ALIGNMENT FIXES ===== */
.top-nav {
    box-sizing: border-box;
    width: 100%;
    left: 0;
    right: 0;
    padding: 0 clamp(12px, 2.5vw, 38px);
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(64px, 1fr);
    direction: rtl;
    column-gap: clamp(10px, 2vw, 28px);
}
.top-nav .gs-brand {
    grid-column: 1;
    justify-self: start;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.top-nav .gs-brand .nav-logo {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.top-nav .gs-brand span {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(11px, 1.15vw, 16px);
    letter-spacing: clamp(.5px, .12vw, 2px);
    line-height: 1.2;
}
.top-nav .nav-center {
    grid-column: 2;
    position: static;
    left: auto;
    transform: none;
    justify-self: center;
    min-width: 0;
    gap: clamp(10px, 1.8vw, 28px);
    white-space: nowrap;
}
.top-nav .nav-center a { font-size: clamp(12px, 1.15vw, 16px); }
.top-nav .gs-emblem-wrap {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    display: flex;
    align-items: center;
}
.top-nav .gs-emblem-image {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform .55s ease, filter .35s ease;
    filter: drop-shadow(0 0 4px #d7a83e55);
}
.top-nav .gs-emblem-wrap:hover .gs-emblem-image {
    transform: rotate(24deg) scale(1.09);
    filter: brightness(1.3) drop-shadow(0 0 10px #ffdc78);
}
@media (max-width: 900px) {
    .top-nav {
        grid-template-columns: minmax(130px, auto) 1fr 48px;
        column-gap: 8px;
        padding: 0 10px;
    }
    .top-nav .nav-center {
        justify-self: center;
        gap: 9px;
        white-space: normal;
        flex-wrap: wrap;
    }
    .top-nav .nav-center a { font-size: 11px; }
    .top-nav .gs-brand .nav-logo,
    .top-nav .gs-emblem-image { width: 36px; height: 36px; }
    .top-nav .gs-brand span { font-size: 10px; letter-spacing: .4px; }
}
@media (max-width: 600px) {
    .top-nav {
        height: auto;
        min-height: 70px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        row-gap: 5px;
        padding: 8px 10px;
    }
    .top-nav .gs-brand { grid-column: 1; grid-row: 1; justify-self: start; }
    .top-nav .gs-emblem-wrap { grid-column: 2; grid-row: 1; justify-self: end; }
    .top-nav .nav-center {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: center;
        gap: 8px 13px;
        padding: 2px 0 5px;
    }
    .top-nav .nav-center a { font-size: 11px; }
    .top-nav .gs-brand .nav-logo,
    .top-nav .gs-emblem-image { width: 32px; height: 32px; }
    .top-nav .gs-brand span { font-size: 11px; }
}
/* ===== END GOLDEN STATE HEADER ALIGNMENT FIXES ===== */

/* FINAL HEADER LAYOUT: TEXT LEFT, EMBLEM RIGHT */
.top-nav{box-sizing:border-box;width:100%;left:0;right:0;padding:0 28px;display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(70px,1fr);direction:ltr;column-gap:24px}
.top-nav .gs-brand{grid-column:1;justify-self:start;margin:0;min-width:0;overflow:visible}
.top-nav .gs-brand span{display:block;white-space:nowrap;font-size:clamp(12px,1.2vw,17px);letter-spacing:2px}
.top-nav .nav-center{grid-column:2;position:static;left:auto;transform:none;justify-self:center;white-space:nowrap}
.top-nav .gs-emblem-wrap{grid-column:3;justify-self:end;display:flex;align-items:center;min-width:0}
.top-nav .gs-emblem-image{display:block;width:46px;height:46px;object-fit:contain;border-radius:50%;transition:transform .55s ease,filter .35s ease;filter:drop-shadow(0 0 5px #d7a83e66)}
.top-nav .gs-emblem-wrap:hover .gs-emblem-image{transform:rotate(24deg) scale(1.09);filter:brightness(1.3) drop-shadow(0 0 10px #ffdc78)}
@media(max-width:900px){.top-nav{padding:0 12px;grid-template-columns:minmax(130px,1fr) auto minmax(48px,1fr);column-gap:8px}.top-nav .nav-center{white-space:normal;flex-wrap:wrap;gap:8px 10px}.top-nav .nav-center a{font-size:11px}.top-nav .gs-emblem-image{width:36px;height:36px}}
@media(max-width:600px){.top-nav{height:auto;min-height:70px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:5px;padding:8px 12px}.top-nav .gs-brand{grid-column:1;grid-row:1}.top-nav .gs-emblem-wrap{grid-column:2;grid-row:1}.top-nav .nav-center{grid-column:1/-1;grid-row:2;width:100%;justify-content:center;gap:7px 12px}.top-nav .gs-emblem-image{width:32px;height:32px}.top-nav .gs-brand span{font-size:11px}}


/* =========================================================
   GOLDEN STATE — MOBILE RESPONSIVE NAVIGATION & LAYOUT
   Desktop styles remain unchanged; these rules apply to phones.
   ========================================================= */
.mobile-menu-toggle,
.mobile-menu-backdrop {
    display: none;
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 78px;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .top-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 68px !important;
        min-height: 68px !important;
        box-sizing: border-box !important;
        padding: 8px 14px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px 42px !important;
        grid-template-rows: 1fr !important;
        align-items: center !important;
        gap: 8px !important;
        direction: ltr !important;
        background: rgba(5, 5, 5, .97) !important;
        backdrop-filter: blur(14px);
        z-index: 3000 !important;
    }

    .top-nav .gs-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        min-width: 0 !important;
    }

    .top-nav .gs-brand span {
        font-size: clamp(12px, 3.5vw, 15px) !important;
        letter-spacing: 1.2px !important;
        white-space: nowrap !important;
    }

    .mobile-menu-toggle {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        align-self: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        border: 1px solid rgba(255, 215, 0, .65) !important;
        border-radius: 12px !important;
        background: rgba(255, 215, 0, .08) !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-toggle span {
        display: block !important;
        width: 18px !important;
        height: 2px !important;
        border-radius: 3px !important;
        background: #f5cf55 !important;
        transition: transform .25s ease, opacity .2s ease !important;
    }

    .top-nav.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .top-nav.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .top-nav.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .top-nav .gs-emblem-wrap {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
    }

    .top-nav .gs-emblem-image {
        width: 36px !important;
        height: 36px !important;
    }

    .top-nav .nav-center {
        position: fixed !important;
        top: 68px !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: min(82vw, 330px) !important;
        height: calc(100dvh - 68px) !important;
        max-height: calc(100dvh - 68px) !important;
        box-sizing: border-box !important;
        padding: 24px 18px 35px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 5px !important;
        overflow-y: auto !important;
        white-space: normal !important;
        flex-wrap: nowrap !important;
        background: linear-gradient(160deg, #17130a, #050505 72%) !important;
        border-left: 1px solid rgba(255, 215, 0, .55) !important;
        box-shadow: -14px 0 35px rgba(0, 0, 0, .55) !important;
        transform: translateX(110%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: transform .3s ease, opacity .25s ease, visibility .3s !important;
        z-index: 3002 !important;
    }

    .top-nav.mobile-menu-open .nav-center {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .top-nav .nav-center a {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 13px !important;
        margin: 0 !important;
        border: 1px solid rgba(255, 215, 0, .12) !important;
        border-radius: 10px !important;
        color: #fff2bd !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        text-align: right !important;
        text-decoration: none !important;
        background: rgba(255, 255, 255, .025) !important;
    }

    .top-nav .nav-center a:active,
    .top-nav .nav-center a:hover {
        color: #ffd84d !important;
        background: rgba(255, 215, 0, .1) !important;
        border-color: rgba(255, 215, 0, .45) !important;
    }

    .mobile-menu-backdrop.is-visible {
        display: block !important;
        position: fixed !important;
        inset: 68px 0 0 !important;
        background: rgba(0, 0, 0, .58) !important;
        z-index: 2998 !important;
    }

    body.menu-is-open {
        overflow: hidden !important;
    }

    /* Comfortable phone spacing and readable text */
    .hero {
        min-height: 100svh !important;
        height: auto !important;
        background-attachment: scroll !important;
        background-position: center !important;
    }

    .hero-content {
        top: 48% !important;
        width: 90% !important;
    }

    .hero-title {
        font-size: clamp(36px, 10vw, 52px) !important;
        line-height: 1.2 !important;
        overflow-wrap: anywhere;
    }

    .hero-slogan {
        font-size: clamp(14px, 4vw, 17px) !important;
        line-height: 1.9 !important;
    }

    .section {
        padding: 42px 5% !important;
        box-sizing: border-box;
    }

    .section-title {
        font-size: clamp(22px, 6vw, 28px) !important;
        line-height: 1.6 !important;
        margin-bottom: 22px !important;
    }

    .section-text,
    .long-text,
    .long-text p,
    .rights-box,
    .info-card p,
    .admin-card p {
        font-size: 14px !important;
        line-height: 2 !important;
        overflow-wrap: anywhere;
    }

    .info-grid,
    .admin-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 15px !important;
    }

    .info-card,
    .admin-card,
    .news-card {
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 17px !important;
    }

    img, video, iframe, canvas {
        max-width: 100%;
    }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    input, select, textarea, button {
        max-width: 100%;
        font-size: 16px;
    }

    footer {
        padding: 18px 5% !important;
        font-size: 13px !important;
        line-height: 1.9 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-nav .nav-center,
    .mobile-menu-toggle span {
        transition: none !important;
    }
}

/* Mobile hero redesign requested */
@media (max-width: 700px) {
  .hero { min-height: 100svh !important; height: 100svh !important; background-attachment: scroll !important; background-position: 72% center !important; }
  .hero-overlay { background: rgba(0,0,0,.30) !important; backdrop-filter: none !important; }
  .hero-content { top: 50% !important; left: 50% !important; transform: translate(-50%,-50%) !important; width: 92% !important; }
  .hero-title { display: none !important; }
  .hero-slogan { margin: 0 auto !important; max-width: 520px; font-size: clamp(17px, 4.7vw, 22px) !important; line-height: 2.05 !important; color: #fff4c4 !important; text-shadow: 0 2px 12px #000, 0 0 8px #000 !important; }
  .hero-slogan .mobile-slogan-line { display: block; }
  .top-nav .gs-brand { display: none !important; }
  .top-nav .gs-emblem-wrap { grid-column: 1 !important; justify-self: start !important; }
  .top-nav { grid-template-columns: 1fr 44px 42px !important; }
}


/* Mobile hero: quote first, then the three-line motto */
@media (max-width: 700px) {
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 13px !important;
  }
  .hero-slogan {
    display: block !important;
    margin: 0 auto !important;
    font-size: clamp(14px, 3.8vw, 17px) !important;
    line-height: 2 !important;
    text-align: center !important;
  }
  .hero-motto {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 2px !important;
    color: #ffd85a !important;
    font-size: clamp(17px, 4.8vw, 22px) !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    text-align: center !important;
    text-shadow: 0 2px 12px #000, 0 0 8px #000 !important;
  }
  .hero-motto span { display: block !important; }
}

/* ===== MOBILE TOP BAR: EMBLEM LEFT, THREE-DOT MENU RIGHT ===== */
@media (max-width: 700px) {
  .top-nav {
    display: grid !important;
    grid-template-columns: 1fr 48px !important;
    grid-template-rows: 1fr !important;
    direction: ltr !important;
    align-items: center !important;
    padding: 8px 14px !important;
    min-height: 66px !important;
    height: 66px !important;
    gap: 0 !important;
  }

  /* Replace the GOLDEN STATE text with the emblem in its former brand area. */
  .top-nav .gs-brand { display: none !important; }
  .top-nav .gs-emblem-wrap {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-items: center !important;
    margin: 0 !important;
  }
  .top-nav .gs-emblem-image {
    display: block !important;
    width: 43px !important;
    height: 43px !important;
    object-fit: contain !important;
  }

  /* Three small horizontal dots at the far right. */
  .top-nav .mobile-menu-toggle {
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    width: 42px !important;
    height: 42px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 215, 0, .65) !important;
    border-radius: 12px !important;
    background: rgba(255, 215, 0, .08) !important;
  }
  .top-nav .mobile-menu-toggle span {
    display: block !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #f5cf55 !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .top-nav.mobile-menu-open .mobile-menu-toggle span {
    transform: none !important;
    opacity: 1 !important;
  }
}


/* ===== MOBILE BRAND TITLE BETWEEN EMBLEM AND THREE-DOT MENU ===== */
.mobile-top-title { display: none; }
@media (max-width: 700px) {
  .top-nav {
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    grid-template-rows: 1fr !important;
    column-gap: 8px !important;
    direction: ltr !important;
  }
  .top-nav .gs-emblem-wrap {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }
  .top-nav .mobile-top-title {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    min-width: 0 !important;
    color: #f5cf55 !important;
    font-size: clamp(13px, 4.2vw, 18px) !important;
    font-weight: 800 !important;
    letter-spacing: clamp(1px, .45vw, 2px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
    text-shadow: 0 0 9px rgba(245, 207, 85, .35) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .top-nav .mobile-menu-toggle {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }
}
@media (max-width: 360px) {
  .top-nav { column-gap: 4px !important; padding-left: 9px !important; padding-right: 9px !important; }
  .top-nav .mobile-top-title { font-size: 12px !important; letter-spacing: .6px !important; }
}
