@font-face{font-display:swap;font-family:IRANSans;font-style:normal font-weight:400;src:url(IRANSans.woff2) format('woff2');font-display:auto}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: IRANSans;
    background: #f7fbff;
    color: #172b4d;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

img,video{
	width:100%;
	height:auto;
}

button {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.header {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    width: min(1180px, calc(100% - 30px));
    margin: auto;

    min-height: 76px;

    padding: 10px 16px 10px 20px;

    display: flex;
    align-items: center;
    gap: 20px;

    background: rgba(255,255,255,.94);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(31,116,220,.08);

    box-shadow:
        0 10px 40px rgba(29,86,145,.10);

    border-radius: 22px;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.brand-logo {
    width: 50px;
    height: 50px;

    border-radius: 15px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #1689ef,
        #0c61ca
    );

    color: white;

    box-shadow:
        0 8px 20px rgba(22,137,239,.25);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text strong {
    display: block;

    font-size: 17px;

    color: #103c70;
}

.brand-text span {
    display: block;

    font-size: 10px;

    color: #7d8da4;

    white-space: nowrap;
}


.nav-links {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 3px;
}

.nav-links a {
    padding: 10px 13px;

    color: #50627a;

    font-size: 13px;

    font-weight: 500;

    border-radius: 12px;

    transition: .25s;
}

.nav-links a:hover {
    background: #edf7ff;
    color: #0876dd;
}


.student-login {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px 17px;

    color: white;

    background: linear-gradient(
        135deg,
        #1689ef,
        #0a63c7
    );

    border-radius: 13px;

    font-size: 13px;

    white-space: nowrap;

    box-shadow:
        0 8px 18px rgba(20,128,228,.22);

    transition: .25s;
}

.student-login:hover {
    opacity:0.7;
}

.menu-button {
    width: 44px;
    height: 44px;

    border: none;

    border-radius: 13px;

    background: #edf7ff;

    color: #0876dd;

    cursor: pointer;

    font-size: 18px;

    display: none;
}


.mobile-overlay {
    position: fixed;

    inset: 0;

    background: rgba(7,32,61,.35);

    backdrop-filter: blur(3px);

    z-index: 1100;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}


.mobile-menu {
    position: fixed;

    top: 0;
    right: -330px;

    width: 310px;
    height: 100vh;

    background: white;

    z-index: 1200;

    padding: 25px;

    box-shadow:
        -10px 0 40px rgba(0,0,0,.15);

    transition: .35s ease;

    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}


.mobile-menu-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding-bottom: 22px;

    border-bottom: 1px solid #edf2f7;
}


.close-menu {
    border: none;

    width: 40px;
    height: 40px;

    border-radius: 12px;

    background: #f2f7fb;

    color: #64748b;

    cursor: pointer;

    font-size: 18px;
}


.mobile-links {
    margin-top: 25px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}


.mobile-links a {
    padding: 14px;

    border-radius: 12px;

    color: #40556f;

    display: flex;
    align-items: center;

    gap: 12px;

    font-size: 14px;

    transition: .2s;
}


.mobile-links a:hover {
    background: #edf7ff;

    color: #0876dd;
}

.hero {
    padding: 105px 10px 0;
}

.header-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    direction: ltr;
    background: #eee;
}

.slides-wrapper {
    width: 100%;
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.slide {
    min-width: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.slide img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}


/* لایه تیره روی عکس */

.slide::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.05) 65%
    );

    pointer-events: none;
}


/* عنوان */

.slide-title {
    position: absolute;

    right: 6%;
    bottom: 55px;

    z-index: 2;

    max-width: 80%;

    color: #fff;

    font-size: 28px;
    font-weight: 700;

    line-height: 1.7;

    text-align: right;

    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}



.slider-dots {
    position: absolute;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    z-index: 10;
}

.slider-dot {
    width: 9px;
    height: 9px;

    padding: 0;
    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,0.55);

    cursor: pointer;

    transition:
        width 0.3s ease,
        background 0.3s ease;
}

.slider-dot.active {
    width: 25px;
    border-radius: 10px;
    background: #fff;
}



.slider-btn {
    position: absolute;

    top: 50%;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(0,0,0,0.35);

    color: #fff;

    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 10;

    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.65);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}


@media (max-width: 900px) {

    .slide img {
        height: 320px;
    }

    .slide-title {
        font-size: 23px;
        bottom: 50px;
    }

}

@media (max-width: 600px) {

    .slide img {
        height: 230px;
    }

    .slide-title {
        right: 18px;
        bottom: 42px;

        max-width: calc(100% - 36px);

        font-size: 17px;
        line-height: 1.6;
    }

    .slider-btn {
        width: 32px;
        height: 32px;

        font-size: 16px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        bottom: 12px;
        gap: 6px;
    }

    .slider-dot {
        width: 7px;
        height: 7px;
    }

    .slider-dot.active {
        width: 20px;
    }

}

.section {
    padding: 30px 0;
}


.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;
}



.section-title h2 {
    margin-top: 4px;

    font-size: 28px;

    color: #123c69;
}


.more-link {
color: #fff;
    font-size: 13px;
    background: #0876dd;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px;
    border-radius: 24px;
}

.services-section {
    position: relative;
}


.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 18px;
}


.service-card {
    background: white;

    border-radius: 24px;

    padding: 16px;

    border: 1px solid #e9f1f7;

    box-shadow:
        0 12px 35px rgba(22,79,127,.07);

    transition: .3s;

    overflow: hidden;
}


.service-card:hover {
    box-shadow:
        0 20px 45px rgba(22,79,127,.13);
}


.service-image {
    border-radius: 18px;

    overflow: hidden;

    position: relative;

    background: #eaf5fd;
}


.service-image img {
    height: 100%;

    object-fit: cover;

    transition: .5s;
}


.service-card:hover
.service-image img {
    transform: scale(1.06);
}


.service-icon {
    position: absolute;

    bottom: 12px;
    right: 12px;

    width: 48px;
    height: 48px;

    border-radius: 15px;

    background: white;

    color: #0876dd;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 18px;

    box-shadow:
        0 7px 20px rgba(0,0,0,.12);
}


.service-content {
    padding: 18px 8px 8px;
}


.service-content h3 {
    font-size: 17px;

    color: #173f6b;

    margin-bottom: 7px;
}


.service-content p {
    font-size: 14px;

    color: #7a8da4;

    line-height: 2;
}

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 20px;
}


.news-card {
    background: white;

    border: 1px solid #eaf0f5;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 8px 30px rgba(27,78,122,.06);

    transition: .3s;
}


.news-card:hover {
    box-shadow:
        0 18px 40px rgba(27,78,122,.11);
}


.news-image {
    height: 190px;

    overflow: hidden;
}


.news-image img {
    height: 100%;

    object-fit: cover;

    transition: .4s;
}


.news-card:hover
.news-image img {
    transform: scale(1.05);
}


.news-content {
    padding: 18px;
}


.news-date {
    color: #1689ef;

    font-size: 10px;

    font-weight: 500;
}


.news-title {
    color: #183e66;

    font-size: 16px;

    margin: 7px 0 10px;

    line-height: 1.8;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}


.news-description {
    color: #7d8da0;

    font-size: 12px;

    line-height: 2;

    margin-bottom: 13px;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.news-meta {
    display: flex;

    justify-content: space-between;

    align-items: center;
}


.news-author {
    color: #8a9bad;

    font-size: 10px;
}


.read-more {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #0876dd;

    font-size: 14px;

    transition: .2s;
}


.read-more:hover {
    gap: 10px;
}

.articles-section {
    background: #f0f7fc;
}

.cardbox {
	background: white;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #e9f1f7;
    box-shadow: 0 12px 35px rgba(22, 79, 127, .07);
    transition: .3s;
    overflow: hidden;
	margin-top: 5em;
}
.cardtitle{
	padding: 10px;
    border-bottom: 2px solid #747474;
    font-size: 10px;
    border-right: 5px solid #747474;
    border-radius: 20px;
	display: flex;
    justify-content: space-between;
    align-items: center;
}
.cardtitle span{
	background: #127ee3;
    color: #fff;
    padding: 5px;
    border-radius: 24px;
    text-align: center;
}
.cardpost{
	line-height:2.5
}
.cardpost img{
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 450px;
    margin: 1em auto;
    object-fit: contain;
    text-align:center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    background-color: #f7fafc;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
}
.pagination a:first-child,
.pagination a:last-child {
    background-color: #edf2f7;
    color: #2d3748;
    padding: 0 18px;
    min-width: 80px;
}
.pagination a:first-child:hover,
.pagination a:last-child:hover {
    background-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.pagination a:hover:not(:first-child):not(:last-child) {
    background-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}
.pagination .active {
    background: linear-gradient(135deg, #3F51B5 0%, #2396f1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border-color: transparent;
    transform: scale(1.05);
}
.pagination a:active {
    transform: scale(0.95);
}
.footer {
    background: #082d52;

    color: white;

    padding-top: 65px;
}


.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1.2fr
        1fr;

    gap: 45px;

    padding-bottom: 50px;
}


.footer h3 {
    font-size: 17px;

    margin-bottom: 18px;
}


.footer-about p {
    color: #a9c0d6;

    font-size: 13px;

    line-height: 2.2;

    max-width: 330px;
}


.footer-links {
    display: flex;

    flex-direction: column;

    gap: 9px;
}


.footer-links a {
    color: #a9c0d6;

    font-size: 14px;

    transition: .2s;
}


.footer-links a:hover {
    color: white;

}


.contact-item {
    display: flex;

    gap: 3px;

    color: #a9c0d6;

    font-size: 14px;

    margin-bottom: 12px;
	
	align-items: center;
}


.contact-item i {
    color: #49a9ff;

    width: 18px;

    margin-top: 4px;
}


.social-buttons {
    display: flex;

    gap: 8px;

    margin-top: 18px;
}


.social-btn {
    width: 38px;
    height: 38px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255,255,255,.08);

    color: white;

    transition: .25s;
}


.social-btn:hover {
    background: #1689ef;
}


.app-buttons {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.app-button {
    display: flex;

    align-items: center;

    gap: 10px;

    border: 1px solid rgba(255,255,255,.1);

    background: rgba(255,255,255,.05);

    padding: 10px 13px;

    border-radius: 12px;

    font-size: 14px;

    transition: .2s;
}


.app-button:hover {
    background: rgba(255,255,255,.1);
}


.app-button i {
    font-size: 20px;

    color: #55b2ff;
}


.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);

    padding: 20px 0;

    color: #8fa9c0;

    font-size: 11px;

    text-align: center;
}


.footer-bottom a {
    color: #55b2ff;
}


@media (max-width: 1050px) {

    .nav-links {
        display: none;
    }

    .menu-button {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .navbar {
        gap: 8px;
    }

    .student-login {
        margin-right: auto;
    }

    .services-grid,
    .news-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .footer-grid {
        grid-template-columns:
            repeat(2,1fr);
    }
}


@media (max-width: 700px) {

    .container {
        width:
            min(100% - 24px, 1180px);
    }

    .header {
        top: 10px;
    }

    .navbar {
        min-height: 68px;

        border-radius: 17px;

        padding: 8px 9px;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 43px;
        height: 43px;

        border-radius: 13px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text span {
        display: none;
    }


    .student-login {
        width: 43px;
        height: 43px;

        padding: 0;

        border-radius: 13px;

        margin-right: auto;

        font-size: 0;
    }
.student-login span{display:none}
    .student-login i {
        font-size: 16px;
    }


    .menu-button {
        width: 43px;
        height: 43px;
    }


    .hero {
        padding: 95px 5px 0;
    }


    .section {
        padding: 20px 0;
    }
    .cardtitle h1{font-size:16px}
    .section-title h2 {
        font-size: 23px;
    }


    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }


    .service-image {
        height: 210px;
    }


    .news-image {
        height: 220px;
    }


    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .services-section::before {
        top: 70px;

        height: 650px;
    }
}