@font-face {
    font-family: 'iranSans';
    src: url('fonts/IranSanse/IRANSansXFaNum-Regular.woff2') format('woff2'),
        url('fonts/IranSanse/IRANSansXFaNum-Regular.woff') format('woff'),
        url('fonts/IranSanse/IRANSansXFaNum-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'iranSans';
    src: url('fonts/IranSanse/IRANSansXFaNum-Bold.woff2') format('woff2'),
        url('fonts/IranSanse/IRANSansXFaNum-Bold.woff') format('woff'),
        url('fonts/IranSanse/IRANSansXFaNum-Bold.ttf') format('truetype');
    font-weight: Bold;
    font-style: normal;
}

: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: iranSans, sans-serif;
    color: #e6eef8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

button {
    cursor: pointer;
}

h2 {
    color: #10a7ac;
}

.swiper-pagination-bullet-active{
    background-color: #10a7ac !important;
    width : 20px;
    border-radius : 8px;
}

/* container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px;
    display: block;
}

.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);
    }
}


.cursor{
    display: inline-block;
    animation: blink .8s infinite;
}

@keyframes blink{
    0%,50%{
        opacity:1;
    }
    51%,100%{
        opacity:0;
    }
}
/* ***************** */
/* ===== header ===== */
.nav a {
    transition: all 0.4s ease !important;
}

/* 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)
}

/* 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: #000;
    margin: 12px 0;
    font-size: 16px
}

/* scroll to top */
.scroll-to-top img {
    width: 46px;
    filter: drop-shadow(0 10px 28px rgba(124, 86, 255, 0.12))
}

/* ===== responsive ===== */
@media (max-width:980px) {
    .logo {
        height: 56px
    }
}

@media (max-width:640px) {
    .container {
        padding: 12px
    }

    .logo {
        height: 48px
    }

    .learning-row {
        grid-template-columns: 1fr
    }
}


/* 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;
}


.tabContent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    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: 1rem;
    outline: 1px solid #51458196;
    transition: all 0.4s ease;
}

.tabContentBox>a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.tabContentBox:hover {
    box-shadow: 0px 0px 20px 2px #977dff36;
}

.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);
}


@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;
    }

    /* استایل سکشن وبلاگ */
    .post {
        width: 40%;
    }

    .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;
    }

    #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;
    }

    .post {
        width: 100%;
    }

    /* استایل سکشن آموزش های واحد ICT */

    .learn-container,
    .team-container {
        flex-wrap: wrap;
        gap: 10px 5px !important;
    }


    .learning-title {
        font-size: 16px !important;
        text-align: center !important;
        margin: 20px 0 20px 0 !important;
    }

    .learning-btn {
        font-size: 12px !important;
        background: rgba(168, 85, 247, 0.22);
        box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.4);
        border-radius: 0.5rem !important;
    }

    .more-learning {
        font-size: 12px !important;
    }

    .team-sec-member-item {
        width: 49%;
    }

    /****/

    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: 7px !important;
        left: 55px;
        opacity: 100%;
    }

    .postInArchive .learning-btn:hover:after {
        left: 65px !important;
    }

    .search i {
        right: 7.5% !important;
    }

    #searchBox {
        width: 95% !important;
    }

    #tabs {
        display: flex;
        overflow: auto;
    }

    .hero {
        height: 8vh;
        min-height: 8vh;
        margin: 5px 0;
    }

    .hero h1 {
        font-size: 30px !important;
    }
}

/* weblog */
/* Learning Section Style */
.swiper-slide {
    display: flex !important;
}

.swiper-button-prev,
.swiper-button-next {
    --swiper-navigation-size: 20px !important;

}

.learning-item {
    box-shadow: 0 1px 5px 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;
    transition: filter 0.3s ease;
}

.learning-title {
    color: #000;
    font-size: 16px;
    margin: 20px 0 20px 0;
}

.learning-btn {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: #10a7ac;
    padding: 0.7rem 1.6rem;
    background: none;
    backdrop-filter: blur(12px);
    border: 1px solid #10a7ac;
    border-radius: 0.75rem;
    transition: all 0.35s ease;
    cursor: pointer;
    width: 100%;
}

.learning-btn:after {
    content: "»";
    font-family: sans-serif;
    position: absolute;
    opacity: 0;
    top: 10px;
    left: -20px;
    transition: 0.5s;
}

.learning-btn:hover {
    padding-right: 8px;
    padding-left: 25px;
}

.learning-btn:hover:after {
    opacity: 1;
    left: 10px;
}

.learning-btn i {
    margin-left: 8px;
}

.more-learning {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: #eafcff;
    padding: 0.7rem 1.6rem;
    background: #003049;
    backdrop-filter: blur(12px);
    border: 1px solid #003049;
    border-radius: 0.75rem;
    transition: all 0.35s ease;
    cursor: pointer;
    margin: auto;
}

.more-learning:hover {
    color: #003049;
    background: none;
}

.learn-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#learning {
    margin: auto;
}

/* Archive Style */

/* breadcrumb Style */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: right;
    color: #000;
    margin-top: 50px;
    font-size: 0.875rem;
}

.breadcrumb>span>a {
    color: #0000005e;
    transition: all 0.3s ease;
}

.breadcrumb>span>a:hover {
    text-shadow: 0px 0px 15px #90e0ef;
    color: #000;
}

.breadcrumb>img {
    margin: 0 5px;
}

/****/

.postArchive {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px 15px;
    padding: 20px;
    transition: all 0.4s ease;
    width: 100%;
}

.postInArchive {
    width: 24%;
}

.postArchive .learning-title {
    font-size: 16px;
}

.postInArchive .learning-btn,
.postInArchive>a {
    width: 80%;
    height: 45px;
    font-size: 14px;
}

.postInArchive .learning-btn::after {
    top: 9px;
    font-size: 16px;
}

.postInArchive .learning-btn:hover:after {
    left: 50px;
}

#tabs {
    margin: 15px 0;
}

/*****/

.search i {
    font-size: 18px;
    color: #10a7ac;
    transition: all 1s ease;
}

.search {
    width: 80%;
    padding: 10px 40px 10px 10px;
    font-size: 14px;
    color: #515151;
    border: 1px solid #90e0ef;
    border-radius: 50px;
    background-color: transparent;
    transition: all 1s ease;
}

#searchBox::placeholder {
    color: #515151;
}

.search:hover {
    border-color: #90e0ef;
    box-shadow: 0 0 15px #90e0ef54; 
}

.search:focus {
    border-color: #90e0ef;
    box-shadow: 0 0 15px #90e0ef54;
}

.search:hover i {
    text-shadow: 0px 0px 5px #90e0ef;
}

input:focus-visible {
    outline: none;
}

#posts {
    justify-content: center !important;
    gap: 10px 10px !important;
    padding: 15px 20px 30px 20px !important;
}

#noResultsMessage {
    display: none;
    color: #003940;
    font-size: 16px;
    margin-bottom: 30px;
}

/*** End Archive Page Style ***/