:root {
    --bg-1: #05060a;
    --bg-2: #071022;
    --glass-1: rgba(255, 255, 255, 0.05);
    --glass-2: rgba(255, 255, 255, 0.03);
    --accent-1: #7C5CFF;
    /* بنفش */
    --accent-2: #977DFF;
    --muted: #BFC6D9;
    --card-radius: 16px;
    --glass-border: rgba(255, 255, 255, 0.06);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    direction: rtl
}

body {
    margin: 0;
    font-family: 'kalameh', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #e6eef8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

/* container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px;
    display: block;
}

/* Hero */
.hero {
    height: 80vh;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

/* .hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #0a0e1a, #03050b);
    opacity: 0.92;
} */

.glow-text {
    text-shadow: 0 0 25px rgba(138, 75, 255, 0.35),
        0 0 50px rgba(99, 60, 190, 0.2);
}

.stagger-item {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scroll {
    animation: scroll 2s infinite;
}

@keyframes scroll {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ***************** */
/* ===== header ===== */
.nav a {
    transition: all 0.4s ease !important;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
    position: sticky;
    top: 12px;
    z-index: 60;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(2, 6, 20, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px) saturate(1.1);
}

/* brand */
.logo {
    height: 70px;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(124, 86, 255, 0.12));
    transition: transform .28s
}

.logo:hover {
    transform: scale(1.03)
}

/* nav */
.nav-list {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0
}

.nav-list a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all .18s
}

.nav-list a:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(124, 86, 255, 0.22);
    transform: translateY(-3px)
}

/* header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.socials a img {
    width: 28px;
    opacity: .9;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6))
}

.hamburger {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer
}

/* ===== hero ===== */
.hero {
    margin: 34px 0
}

.hero-card {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 26px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 40px rgba(6, 8, 20, 0.6);
    backdrop-filter: blur(16px) saturate(1.1);
    overflow: hidden;
}

/* hero text */
.hero-left h1 {
    font-size: 34px;
    margin: 0 0 10px 0;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 6px 28px rgba(124, 86, 255, 0.12)
}

.lead {
    color: #c2d4ea;
    margin: 6px 0 18px 0;
    max-width: 620px;
    line-height: 1.6
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: #021024;
    box-shadow: 0 8px 24px rgba(124, 86, 255, 0.18)
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.35)
}

.btn.outline {
    background: transparent;
    border: 1px solid rgba(127, 127, 127, 0.12);
    color: var(--muted)
}

/* hero right (lottie) */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center
}

/* ===== sections ===== */
.section {
    margin: 36px 0;
    padding: 6px
}

.section-title {
    font-size: 22px;
    margin: 6px 0 18px 0;
    color: #fff;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.6)
}

/* cards row */
.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px
}

.card {
    display: block;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all .36s;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 8px 10px 30px rgba(2, 8, 28, 0.6), -6px -6px 18px rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
}

.card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.card h5 {
    margin: 0 0 6px 0;
    color: #fff;
    font-size: 18px
}

.card p {
    margin: 0;
    color: #bfc8d9;
    font-size: 14px;
    line-height: 1.5
}

.card-img img {
    width: 86px;
    transform: translateZ(0);
    transition: transform .36s ease
}

/* hover effects */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 50px rgba(124, 86, 255, 0.16)
}

.card:hover .card-img img {
    transform: scale(1.08)
}

/* tabs */
.tabs .tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.tab {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--muted);
    cursor: pointer
}

.tab.active {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: #021024;
    box-shadow: 0 8px 26px rgba(124, 86, 255, 0.14)
}

.tabs-content .tab-panel {
    display: none
}

.tabs-content .tab-panel.active {
    display: block
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    min-width: 120px
}

.link-card img {
    max-width: 80%;
    height: auto
}

/* sites grid */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px
}

.site-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.site-card img {
    max-width: 82%
}

.site-card h5 {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 14px
}

/* learning row */
.learning-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px
}

.learning-item {
    padding: 12px;
    border-radius: 12px;
    text-align: center
}

.learning-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px
}

.learning-title {
    color: #fff;
    margin: 12px 0;
    font-size: 16px
}

/* team */
.team-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px
}

.team-card {
    text-align: center;
    padding: 12px;
    border-radius: 12px
}

.team-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px
}

/* footer */
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    margin-top: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.app-footer h5 {
    margin: 0;
    color: var(--muted);
    font-weight: 500
}

/* scroll to top */
.scroll-to-top img {
    width: 46px;
    filter: drop-shadow(0 10px 28px rgba(124, 86, 255, 0.12))
}

/* glass-card shared class (for reveal) */
.glass-card {
    opacity: 0;
    transform: translateY(16px);
    transition: all .7s cubic-bezier(.2, .9, .2, 1)
}

.glass-card.reveal {
    opacity: 1;
    transform: none
}

/* small helpers */
.badge {
    position: absolute;
    left: 10px;
    bottom: 12px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
    color: #021024;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 6px 18px rgba(124, 86, 255, 0.12)
}

/* ===== responsive ===== */
@media (max-width:980px) {
    .hero-card {
        flex-direction: column;
        align-items: stretch
    }

    .logo {
        height: 56px
    }

    .nav-list {
        display: none
    }

    .hamburger {
        display: inline-block
    }

    .header-actions .socials {
        display: none
    }
}

@media (max-width:640px) {
    .container {
        padding: 12px
    }

    .logo {
        height: 48px
    }

    .hero-left h1 {
        font-size: 22px
    }

    .hero-right {
        display: none
    }

    .cards-row {
        grid-template-columns: 1fr
    }

    .learning-row {
        grid-template-columns: 1fr
    }

    .team-row {
        grid-template-columns: 1fr
    }
}

/* ===== mobile drawer styles ===== */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    pointer-events: none
}

.mobile-drawer .close-drawer {
    position: absolute;
    top: 18px;
    left: 18px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 20px;
    padding: 10px
}

.mobile-drawer .drawer-list {
    width: 320px;
    max-width: 88vw;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    height: 100%;
    padding: 60px 18px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateX(30px);
    pointer-events: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.03)
}

.mobile-drawer .drawer-list a {
    color: var(--muted);
    text-decoration: none;
    padding: 12px;
    border-radius: 8px
}

.mobile-drawer.open {
    pointer-events: auto
}

.mobile-drawer.open .drawer-list {
    transform: translateX(0);
    transition: transform .32s cubic-bezier(.2, .9, .2, 1)
}

/* Tabs */
.links-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.links-tab-btn {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    color: #a1a1aa;
    padding: 0.7rem 1.6rem;
    background: rgba(30, 35, 70, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 0.75rem;
    transition: all 0.35s ease;
    cursor: pointer;
}

.links-tab-btn:hover {
    color: white;
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.35);
}

.links-tab-btn.active {
    color: white;
    background: rgba(168, 85, 247, 0.22);
    border-color: #a78bfa;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.4);
}

.links-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 2.5px;
    background: #a78bfa;
    border-radius: 2px;
}

.tab {
    background-color: transparent;
    color: #fff;
    border: 1px solid #ffffff23;
    border-radius: 50px;
    font-family: kalameh;
    font-size: 16px;
    min-width: 120px;
    height: 50px;
    margin: 20px 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab:hover,
.active {
    text-shadow: 0px 0px 8px #977DFF;
    box-shadow: 0 0 20px 1px #977DFF;
    cursor: pointer;
}

.tabContent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}

.tabContentBox {
    width: 15%;
    height: 100px;
    display: flex;
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    padding: 5px;
    border-radius: 25px;
    outline: 2px solid #51458196;
    transition: all 0.4s ease;
}

.tabContentBox>a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.new-label {
    position: absolute;
    top: 50px;
    left: -8px;
    background: linear-gradient(to right, #0086AA 0%, #92FE9D 80%);
    color: #021024;
    padding: 5px 35px;
    border-radius: 5px;
    font-size: 12px;
    transform: rotate(-40deg);
    transform-origin: left bottom;
}

.tabContentBox:hover {
    box-shadow: 0px 0px 10px 2px #977DFF;
}

.links-hidden {
    display: none;
}

.links-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.85s ease-out;
}

.links-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* web section Style */
.webIcon {
    width: 160px;
    height: 160px;
    margin: 20px;
    border: 1px solid #2E2E2E;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.webIcon>img {
    margin-top: -50px;
    width: 150%;
}

.webIcon>h5 {
    color: #a8a8a8;
    font-size: 15px;
    margin-top: -40px;
}

.webIcon:hover {
    border-radius: 10%;
}

#ansarWeb {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly
}

@media (min-width: 600px) and (max-width: 1023px) {

    h1,
    h2 {
        font-size: 24px;
    }

    /* header Style*/
    header>img {
        height: 60px;
    }

    .menu {
        font-size: 10px;
        width: 100%;
    }

    .menu>li {
        padding: 0 10px;
    }

    .social>li>a>img {
        width: 25px;
        margin: 5px;
    }

    /* استایل سکشن سامانه های اداری */

    .iconBox {
        line-height: 1.5em;
    }

    .iconBox>div>img {
        width: 100px;
    }

    .iconBox>div>h5 {
        font-size: 14px;
    }

    .iconBox>div>p {
        font-size: 12px;
    }

    /* استایل سکشن وبلاگ */
    .post {
        width: 40%;
    }

    /* استایل سکشن وب سایت های موسسه */
    .webIcon {
        width: 120px;
        height: 120px;
        margin: 15px;
        border-radius: 30px;
    }

    .webIcon>img {
        margin-top: -30px;
    }

    .webIcon>h5 {
        font-size: 12px;
        margin-top: -50px;
    }

    .serviceTitleNeon {
        top: 35px;
        font-size: 20px;
    }

    .systemTitleNeon {
        top: 60px;
        font-size: 20px;
    }

    /* استایل سکشن لینک های مفید */
    #tabs {
        justify-content: normal;
    }

    .tabContent {
        gap: 30px;
    }

    .tabContentBox {
        height: 120px;
        width: 25%;
    }

    .tabContentBox>a>h6,
    .tabContentBox>a>h5 {
        font-size: 12px;
    }

    .learning-title {
        font-size: 14px !important;
        text-align: center !important;
    }

    /* Archive Page Style */
    .postArchive {
        padding: 20px 5px !important;
    }

    .postInArchive .learning-btn,
    .postInArchive>a {
        height: 35px !important;
        font-size: 12px !important;
    }

    .postInArchive .learning-btn::after {
        top: 9px !important;
        left: 30px;
        opacity: 100%;
    }

    .postInArchive .learning-btn:hover:after {
        left: 40px !important;
    }

    .postInArchive .learning-title {
        font-size: 14px !important;
    }

    .search i {
        right: 7.5% !important;
    }

    #searchBox {
        width: 90% !important;
    }
}

/****/

/* Mobile size */
@media (max-width: 600px) {

    .title>h1,
    .title>h2 {
        font-size: 24px;
    }


    /* استایل سکشن لینک های مفید */
    #tabs {
        justify-content: normal;
    }

    .tab {
        font-size: 14px;
        min-width: 100px !important;
        height: 50px;
        margin: 20px 5px;
    }

    .tabContent {
        gap: 25px;

    }

    .tabContentBox {
        height: 100px;
        width: 40%;
    }

    .tabContentBox>a {
        flex-direction: column;
    }

    .tabContentBox>a>h6,
    .tabContentBox>a>h5 {
        font-size: 12px;
    }

    /* استایل سکشن وب سایت های موسسه */
    .webIcon {
        width: 150px;
        height: 150px;
        margin: 10px 0;
    }

    .webIcon>img {
        width: 135%;
        margin-top: -30px;
    }

    .webIcon>h5 {
        margin-top: -50px;
    }

    .post {
        width: 100%;
    }

    /* استایل سکشن آموزش های واحد ICT */
    
    .learn-container {
    flex-wrap: wrap;
}

    .learning-title {
        font-size: 12px !important;
        text-align: center !important;
    }

    .learning-btn {
        padding: 3px 10px !important;
        font-size: 10px !important;
    }

    .more-learning {
        font-size: 12px !important;
    }

    /****/

    footer {
        flex-direction: column;
        text-align: center;
    }

    .scroll {
        bottom: 10px !important;
        left: 10px !important;
    }

    .scroll>img {
        width: 40px;
    }

    /* Archive Page Style */
    .postArchive {
        padding: 30px 20px !important;
    }

    .postInArchive {
        width: 100% !important;
    }

    .postInArchive .learning-btn,
    .postInArchive>a {
        height: 40px !important;
        font-size: 12px !important;
    }

    .postInArchive .learning-title {
        font-size: 16px !important;
        margin: 20px 0 20px 0 !important;
    }

    .postInArchive .learning-btn::after {
        top: 10px !important;
        left: 55px;
        opacity: 100%;
    }

    .postInArchive .learning-btn:hover:after {
        left: 65px !important;
    }

    .search i {
        right: 7.5% !important;
    }

    #searchBox {
        width: 95% !important;
    }
}

/* weblog */
/* Learning Section Style */
.slide-content,
.slide-team-content {
    margin: 0 40px;
    padding: 10px 20px;
    overflow: hidden;
}

.slide-container {
    max-width: 1200px !important;
    width: 100%;
    padding: 40px 0;
    display: block !important;
}

.swiper-slide {
    display: flex !important;
}

.swiper-button-prev,
.swiper-button-next {
    color: #a8a8a8 !important;
    --swiper-navigation-size: 20px !important;

}

.learning-item {
    background: rgba(0, 0, 0, 0.041);
    box-shadow: 0 8px 12px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 30px 0;
}

.learning-img {
    border-radius: 12px 12px 0 0;
    box-shadow: 1px 1px 20px black;
    filter: saturate(30%);
    transition: filter 0.3s ease;
    box-shadow: 0 8px 12px 0 rgba(31, 38, 135, 0.37);
}

.learning-item:hover img {
    filter: saturate(100%);
}

.learning-title {
    color: white;
    font-size: 16px;
    margin: 20px 0 40px 0;
}

.learning-btn {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    color: #a1a1aa;
    padding: 0.7rem 1.6rem;
    background: rgba(30, 35, 70, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 0.75rem;
    transition: all 0.35s ease;
    cursor: pointer;
}

.learning-btn:after {
    content: "»";
    font-family: serif;
    position: absolute;
    opacity: 0;
    top: 7px;
    left: -20px;
    transition: 0.5s;
}

.learning-btn:hover {
    padding-right: 8px;
    padding-left: 25px;
    color: white;
    background: rgba(168, 85, 247, 0.22);
    border-color: #a78bfa;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.4);
}

.learning-btn:hover:after {
    opacity: 1;
    left: 10px;
}

.learning-btn i {
    margin-left: 8px;
}

.more-learning {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    color: #a1a1aa;
    padding: 0.7rem 1.6rem;
    background: rgba(30, 35, 70, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 0.75rem;
    transition: all 0.35s ease;
    cursor: pointer;
    margin: auto;
}

.more-learning:hover {
    color: white;
    background: rgba(168, 85, 247, 0.22);
    border-color: #a78bfa;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.4);
}

.learn-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#learning {
    margin: auto;
}