@font-face {
    font-family: RegularYekan;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
        url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
}

@font-face {
    font-family: BoldYekan;
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
        url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
}


a:focus,
a:focus-visible {
    outline: none !important;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
    overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
    overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

.lenis.lenis-autoToggle {
    transition-property: overflow;
    transition-duration: 1ms;
    transition-behavior: allow-discrete;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "RegularYekan";
}

body {
    font-family: "RegularYekan";
    direction: rtl;
}

html {
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
    font-family: "BoldYekan";
}

p,
div,
a,
span {
    font-family: "RegularYekan";
}

/* Top Header */
.top-header {
    background: #0000001f;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s;
}

.top-header.scrolled {
    background: rgba(0, 70, 100, 0.95);
}

.list-news {
    text-decoration: none;
    color: #313131;
}

.top-header-content {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: white;
}

.top-links {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-icon {
    background: transparent;
    border: none;
}

.home-icon img {
    width: 30px;
}

.top-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 13px;
}

.search-icon {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    transition: opacity 0.3s;
}

.search-icon:hover {
    opacity: 0.8;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-modal input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 24px;
    border: 2px solid #ffa500;
    border-radius: 50px;
    background: white;
    outline: none;
    text-align: right;
}

.search-close {
    position: absolute;
    top: -50px;
    left: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.3s;
}

.mm-wrapper .mm-page {
    min-height: auto;
}

.search-close:hover {
    transform: rotate(90deg);
}

/* Main Header */
.main-header {
    background: transparent;
    position: absolute;
    top: 40px;
    width: 100%;
    z-index: 999;
    transition: background 0.3s;
}

.header-content {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 15px 20px;
    margin-top: 22px;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
}

.logo img {
    height:58px;
}

#mobileMenu.is-closed {
    display: none;
}

#mobileMenu.mm-menu--opened {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 1200px;
    /* Adjust to your design */
    margin: 0 auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
}

.main-nav>ul>li {
    position: relative;
    /* IMPORTANT: Changed from relative to static */
    margin: 0;
}

.main-nav>ul>li>a {
    display: block;
    padding: 16px 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-family: "BoldYekan";
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover effect for root menu items */
.main-nav>ul>li>a:hover,
.main-nav>ul>li:hover>a {
    color: #eb7d20;
    background: rgba(0, 123, 255, 0.05);
}

/* Active/Current page indicator */
.main-nav>ul>li>a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: #eb7d20;
    transition: transform 0.3s ease;
}

.main-nav>ul>li .mega-menu {
    display: flex;
}

.main-nav>ul>li:hover>a::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mega Menu Container - CRITICAL CHANGES HERE */
.mega-menu {
    position: absolute;
    top: 100%;
    min-width: 760px;
    /* Full width of main-nav */
    background: #4b4b4bbe;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 3px solid #eb7d20;
}

.main-nav>ul>li:nth-child(1) .mega-menu,
.main-nav>ul>li:nth-child(2) .mega-menu,
.main-nav>ul>li:nth-child(3) .mega-menu {
    right: 0;
    left: auto;
}

.main-nav>ul>li:nth-child(n+4) .mega-menu {
    right: auto;
    left: -200px;
}

/* Show mega menu on hover */
.main-nav>ul>li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Content Wrapper - 2 COLUMNS LAYOUT */

.mega-menu-content a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
}

/* Mega Menu Section */
.mega-menu-section {
    padding: 0;
    min-width: 0;
    /* Prevent overflow */
}

.main-nav ul.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* دو ستون برابر */
    grid-auto-flow: row;
    /* پر کردن به صورت ردیفی */
    gap: 10px 20px;
    /* فاصله بین آیتم‌ها */
    padding: 15px;
    list-style: none;
    margin: 0;
    width: 100%;
}

/* اگر کمتر از 6 آیتم داشتیم، تک ستونی نمایش بده */
.mega-menu-content:has(li:nth-child(-n+3):last-child) {
    grid-template-columns: 1fr;
}

.mega-menu-section {
    margin: 0;
    padding: 0;
}

.dropmenu_child {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dropmenu_child:hover {
    background-color: #626262;
}


/* Mega Menu Items */
.mega-menu-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mega Menu Items */
.mega-menu-section ul {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.mega-menu-section ul li {
    margin: 0;
    padding: 0;
}

.mega-menu-section ul li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mega-menu-section ul li a::before {
    content: "";
    position: absolute;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 123, 255, 0.1),
            transparent);
    transition: right 0.3s ease;
}

.mega-menu-section ul li a:hover::before {
    right: 100%;
}

.mega-menu-section ul li a:hover {
    background: rgb(255 242 203 / 8%);
    color: #ffffff;
    padding-right: 20px;
}

.mega-menu-section ul li a::after {
    content: "←";
    margin-right: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.mega-menu-section ul li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Mega Menu Icon */
.mega-menu-icon {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 80px;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
}

/* If mega menu has only 1 section, center it */
.mega-menu-content:has(.mega-menu-section:only-child) {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

/* If mega menu has 3 or more sections, adjust layout */
.mega-menu-content:has(.mega-menu-section:nth-child(6)) {
    grid-template-columns: repeat(2, 1fr);
    /* Keep 2 columns */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mega-menu-content {
        grid-template-columns: 1fr;
        /* Stack to 1 column on tablets */
        gap: 30px;
        padding: 30px 20px;
    }
}

/* Responsive Design */
@media (max-width: 560px) {

    .top-links .home-icon,
    .top-links .site_date,
    .top-links .top_toolbar_menu {
        display: none;
    }
}



[class*="icono"] {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    color: #666;
    box-sizing: border-box;
}

[class*="icono"]:after,
[class*="icono"]:before {
    content: "";
    box-sizing: border-box;
}

[class*="icono-arrow1"] {
    width: 10px;
    height: 10px;
    color: #fff;
    border-width: 2px 2px 0 0;
    border-style: solid;
    margin: 4px;
}

[class*="icono-arrow1"]:before {
    right: 0;
    top: -2px;
    position: absolute;
    height: 2px;
    color: #fff;
    box-shadow: inset 0 0 0 32px;
    transform: rotate(-45deg);
    width: 16px;
    transform-origin: right top;
}

[class*="icono-arrow1"][class*="-left"] {
    transform: rotate(315deg) scaleX(-1);
}

@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
    }

    .main-nav {
        display: none;
        /* Hide on mobile, show mobile menu instead */
    }
}

[dir="rtl"] .mm-panel {
    --mm-panel-child-offset: 0;
    --mm-panel-parent-offset: 0;
}

#searchBtn img {
    width: 24px;
    height: 24px;
    position: relative;
    top: 6px;
}

/* Dropdown indicator for items with mega menu */
.main-nav>ul>li:has(.mega-menu)>a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.main-nav>ul>li:hover:has(.mega-menu)>a::before {
    opacity: 1;
}

/* Smooth animation for mega menu appearance */
@keyframes megaMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav>ul>li:hover .mega-menu {
    animation: megaMenuFadeIn 0.3s ease-out;
}

/* Optional: Add a subtle gradient background to mega menu */
.mega-menu::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    pointer-events: none;
}

/* Focus states for accessibility */
.main-nav>ul>li>a:focus,
.mega-menu-section ul li a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #1e3a52;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    display: block;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    background: #152a3d;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-back {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-menu-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #1e3a52;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

.mobile-menu-panel.main {
    position: relative;
    transform: translateX(0);
}

/* Mobile Menu List */
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-panel>ul {
    padding: 10px 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a,
.mobile-menu .menu-item-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    background: none;
    border: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.mobile-menu a:hover,
.mobile-menu .menu-item-parent:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffa500;
}

.mobile-menu .menu-arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

/* Submenu styling */
.mobile-menu .submenu-content {
    padding: 10px 0;
}

.mobile-menu .submenu-content li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-menu .submenu-content a {
    padding: 14px 20px;
    font-size: 14px;
    color: #d0d0d0;
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    position: relative;
    margin-top: 0;
}

.hero-slide {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e5a7a 0%, #2d8cb8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    display: flex;
    z-index: 2;
    flex-direction: column;
}

.hero-content .hero-btn {
    background: #f57f20c2;
    padding: 10px;
    border-radius: 10px;
    margin-top: 30px;
    top: 20px;
    border: 1px solid #fbfbfb73;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    text-decoration: dotted;
    color: #fff;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-illustration {
    max-width: 600px;
}

/* Icon Buttons */
.icon-buttons-container {
    position: relative;
}

.icon-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 90%;
}

.icon-buttons.moved {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    background: white;
    flex-wrap: wrap;
    margin-top: 0;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 13px 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
    min-width: 90px;
}

.icon-buttons.moved .icon-btn {
    background: white;
    border: 2px solid #333;
    color: #333;
    min-width: calc(25% - 15px);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.icon-buttons.moved .icon-btn:hover {
    background: #f0f0f0;
    border-color: #ffa500;
}

.icon-btn i {
    font-size: 28px;
}

.icon-btn span {
    font-size: 14px;
    text-align: center;
}

/* Container */
.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section */
.section {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #1e5a7a;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffa500;
}

/* News Slider - 3 Columns */
.news-slider {
    margin-top: 30px;
}

.news-card {
    width: 32%;
    margin: 0 10px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card a {
    text-decoration: none;
}

.news-card-content {
    padding: 20px;
}

.news-slider .flickity-viewport {
    height: 320px !important;
}

.news-card-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.news-card-content .date {
    color: #999;
    font-size: 13px;
}

/* Two Column Section */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.column-box {
    background: url(../assets/section-bg.jpg);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background-size: cover;
    height: 400px;
}

.colum-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.colum-box-header a {
    line-height: 26px;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #ffb228;
    border-radius: 8px;
    padding: 10px 32px;
    text-decoration: none;
}

.column-box h3 span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.column-box h3 span span {
    width: 10px;
    height: 5px;
    background: #2b04d6;
    border-radius: 5px;
}

.column-box h3 span::before {
    content: "";
    width: 40px;
    height: 5px;
    background: #2b3e98;
    border-radius: 5px;
    margin: 0 0 0 5px;
}

.arrow {
    margin-right: 19px;
    border: solid rgb(255, 255, 255);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.arrow.right {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.column-box h3 span::after {
    content: "";
    width: 10px;
    height: 5px;
    background: #2b3e98;
    border-radius: 5px;
    margin: 0 5px 0 0;
}

.vertical-news-slider {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #ffa500 #f0f0f0;
}

.vertical-news-slider::-webkit-scrollbar {
    width: 6px;
}

.vertical-news-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.vertical-news-slider::-webkit-scrollbar-thumb {
    background: #ffa500;
    border-radius: 10px;
}

.vertical-news-slider::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
}

.vertical-news-slider::after {
    display: none;
}

.news-item {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.3s;
    background: #ffffff94;
    box-shadow: 0px 0px 3px #dadada;
    border-radius: 10px;
}

.new-date {
    font-weight: 500;
    font-size: 14px;
    line-height: 23px;
    background-color: var(--red);
    text-align: center;
    margin: 0 15px 0 0;
    color: #fff;
    background: #064e98;
    -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 13px 8px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 90px;
    flex: 0 0 90px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.news-item .list-news {
    display: flex;
    justify-content: space-between;
}

.news-item:hover {
    background: white;
}

.statistics {
    background-image: url(../assets/section-agri.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 80px 0;
}

.statistics .content {
    margin-top: 40px;
}

.statistics .section-title {
    color: #fff;
}

.statistics .section-connect {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.statistics .section-connect p,
.statistics .section-connect h5 {
    color: #fff;
    font-size: 20px;
}

.statistics img {
    width: 120px;
}

.news-item p {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

/* Accordion Section */
.accordion-section {
    background: linear-gradient(135deg, #2d3e50 0%, #1a2634 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.accordion-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="100" fill="rgba(255,255,255,0.02)"/><circle cx="800" cy="800" r="150" fill="rgba(255,255,255,0.02)"/></svg>');
    opacity: 0.3;
}

.accordion-container {
    position: relative;
    z-index: 1;
}

.accordion-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.accordion-tabs span {
    display: block;
    color: #fff;
    font-family: "BoldYekan";
    font-size: 20px;
    position: relative;
    z-index: 10;
}

.accordion-tab {
    background: rgba(255, 255, 255, 0.986);
    background-image: url("assets/ub.webp");
    color: white;
    border: none;
    padding: 40px 20px;
    border-radius: 15px;
    cursor: pointer;
    text-align: right;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.accordion-tab.active[data-tab="students"] {
    background-image: url(assets/u1.jpg) !important;
    background-size: 100% 100%;
}

.accordion-tab.active[data-tab="faculty"] {
    background-image: url(assets/ccc.jpg) !important;
    background-size: 100% 100%;
}

.accordion-tab.active[data-tab="citizens"] {
    background-image: url(assets/bbb.jpg) !important;
    background-size: 100% 100%;
}

.accordion-tab.active[data-tab="staff"] {
    background-image: url(assets/u1.jpg) !important;
    background-size: 100% 100%;
}

.accordion-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 7;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgb(16 15 11 / 30%) 0%,
            rgb(255 200 0 / 92%) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.accordion-tab:hover {
    transform: translateY(-3px);
}

.accordion-tab.active {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.4);
    transform: translateY(-5px);
}

.accordion-tab.active::before {
    opacity: 1;
}

.accordion-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.accordion-icon-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    transform: translateY(-5px);
    border-color: #ffa500;
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.3);
}

.accordion-icon-btn i {
    font-size: 42px;
}

.accordion-icon-btn span {
    font-size: 14px;
}

/* Quick Access Links */
.quick-links {
    margin-top: 30px;
}

.quick-links ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
}

.quick-links li {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.quick-links li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.quick-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-links a:hover {
    color: #ffa500;
}

/* Footer */
.footer {
    background: #fff;
}

/* Footer */
.footer .mainfooter {
    background: url(../assets/footer-bg1.jpg);
    max-width: 100%;
    background-position: bottom;
    padding: 0 190px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.footer .contacs {

    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.footer .contacs a {
    text-decoration: none;
    color: #0957a5;
}

.footer .contacs .contact__title {
    font-size: 18px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    border-top: 2px solid #0d4c8e52;
    padding-top: 38px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #ffa500;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 5px 0;
}

.footer-section a {
    color: #3a3a3a;
    text-decoration: none;
    font-size: 18px;
}

.footer-section a:hover {
    color: rgb(10, 6, 226);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1200px) {

    .footer .mainfooter {
        padding: 0 60px;
    }

    .icon-buttons {
        padding: 20px 40px;
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        max-width: 100%;
    }

    .icon-buttons {
        position: relative;
        bottom: auto;
        transform: none;
        left: auto;
        margin-top: 0;
        flex-wrap: wrap;
        background: white;
    }

    .icon-btn {
        background: white;
        border: 2px solid #333;
        color: #333;
        min-width: calc(25% - 15px);
    }

    .icon-btn:hover {
        background: #f0f0f0;
        border-color: #ffa500;
    }

    .quick-links ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .statistics .section-connect {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Creates 2 equal columns */
        gap: 16px;
        /* Optional: adds space between items */
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .icon-btn {
        min-width: calc(50% - 15px);
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .accordion-tabs {
        grid-template-columns: 1fr;
    }

    .accordion-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .news-card {
        width: 90%;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .mega-menu {
        display: none !important;
    }
}

@media (min-width: 769px) {

    .mobile-menu,
    .mobile-overlay {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .icon-buttons {
        display: grid;
        justify-content: center;
        grid-template-columns: 1fr 1fr;
        padding: 40px;
    }

    .quick-links ul {
        grid-template-columns: 1fr;
    }
}

/* Flickity Custom Styles */
.flickity-page-dots {
    bottom: -30px;
}

.flickity-page-dots .dot {
    background: #949494;
    width: 20px;
    border-radius: 6px;
}

.flickity-page-dots .dot.is-selected {
    opacity: 1;
    background: #ffa500;
}

.flickity-page-dots .dot.is-selected {
    width: 30px;
}

.flickity-button {
    background: rgba(255, 255, 255, 0.3);
}

.flickity-button:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Fix Horizontal Scroller */
.accordion-container {
    display: flex;
}

.accordion-tabs {
    flex: 0 0 30%;
    flex: 0 0 28%;
    margin-left: 2%;
    margin-bottom: 0;
}

.accordion-tabs button {
    writing-mode: vertical-rl;
}

.accordion-content {
    flex: 0 0 70%;
    background: transparent;
    border: 0;
    padding: 0;
}

@media (max-width: 1200px) {
    .accordion-container {
        display: flex;
        flex-direction: column;
    }

    .accordion-tabs {
        flex: 0 0 30%;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .accordion-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        text-align: right;
    }

    .accordion-tabs button {
        padding: 25px;
    }

    .accordion-tabs button {
        writing-mode: horizontal-tb;
    }
}

/* Unique styles from page.css not present in style.css */

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.breadcrumb li::after {
    content: "/";
    color: #999;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: #1a4d5c;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ffa500;
}

/* Content Wrapper (2-column layout for article + sidebar) */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin: 30px 0;
}

/* Article Content */
.article-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 24px;
    color: #1a4d5c;
    line-height: 1.8;
}

.article-image {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
}

.article-body {
    line-height: 2;
    color: #333;
    font-size: 15px;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.bottom-content-action {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eeeeee;
    margin-top: 30px;
    padding-top: 20px;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #1a4d5c;
}

.article-tags {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.article-tags h4 {
    margin-bottom: 15px;
    color: #1a4d5c;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    border: 1px solid #ddd;
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.comments-section h3 {
    color: #1a4d5c;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffa500;
}

.comment-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

.submit-btn {
    background: #1a4d5c;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2d6b7f;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: #1a4d5c;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffa500;
    font-size: 16px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.sidebar-widget a:hover {
    color: #ffa500;
}

.sidebar-widget a::before {
    content: "◀";
    font-size: 10px;
    color: #ffa500;
}

/* Contact Info (Footer specific from page.css) */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* Mobile Menu Specific Styles from page.css */
.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments for Article Pages */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .bottom-content-action {
        flex-direction: column;
        gap: 10px;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 20px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }
}


/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003d82 0%, #0957a5 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #a01829 0%, #c41e3a 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(160, 24, 41, 0.4);
}

.scroll-top-btn:active {
    transform: translateY(-3px) scale(1.05);
}



@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes arrowBounceHover {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (min-width: 1740px) {
    .footer .mainfooter {
        padding: 0 200px;
    }
}

/* نسخه پیشرفته */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #003d82 0%, #0957a5 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(0, 61, 130, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    overflow: hidden;
}

.scroll-top-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.scroll-top-btn:hover::before {
    width: 100%;
    height: 100%;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #a01829 0%, #c41e3a 100%);
    transform: translateY(-8px) scale(1.15) rotate(360deg);
    box-shadow: 0 8px 30px rgba(160, 24, 41, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}



[class*="icono"] {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    color: #666;
    box-sizing: border-box;
}

[class*="icono"]:after,
[class*="icono"]:before {
    content: "";
    color: #fff;
    box-sizing: border-box;
}

[class*="icono-arrow1"] {
    width: 6px;
    height: 6px;
    color: #fdc208;
    border-width: 2px 2px 0 0;
    border-style: solid;
    margin: 10px;
}

[class*="icono-arrow1"]:before {
    right: 0;
    top: -2px;
    position: absolute;
    height: 2px;
    color: #fdc208;
    box-shadow: inset 0 0 0 32px;
    transform: rotate(-45deg);
    width: 10px;
    transform-origin: right top;
}

. [class*="icono-arrow1"][class*="-left"] {
    transform: rotate(45deg);
}

[class*="icono-arrow1"][class*="-left"][class*="-up"] {
    transform: none;
}

[class*="icono-arrow1"][class*="-left"][class*="-down"] {
    transform: rotate(90deg);
}

[class*="icono-arrow1"][class*="-right"] {
    transform: rotate(-135deg);
}

[class*="icono-arrow1"][class*="-right"][class*="-up"] {
    transform: rotate(-90deg);
}

[class*="icono-arrow1"][class*="-right"][class*="-down"] {
    transform: rotate(180deg);
}

[class*="icono-arrow1"][class*="-up"] {
    transform: rotate(-45deg);
}

[class*="icono-arrow1"][class*="-down"] {
    transform: rotate(135deg);
}


.contact__col {
    text-align: center;
    padding: 30px;
    transition: all 0.5s;
    border-radius: 15px;
}

.contact__col img {
    width: 90px;
}

.contact__col:hover {
    border: 1px solid #007bff;

}

/* در app.css */

/* View Statistics Section */
.view-statistics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.stat-item img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.stat-label {
    color: rgba(59, 58, 58, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    color: #0e0e0e;
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: auto;
}

@media (max-width: 768px) {
   

    .view-statistics {
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.6rem;
        gap: 0.5rem;
    }

    .stat-item img {
        width: 20px;
        height: 20px;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-value {
        font-size: 1rem;
    }
}



@media (max-width: 1280px) {
    .footer .mainfooter {
        padding: 0 70px;
    }

    .footer .contacs {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        /* 2 equal columns */
        gap: 10px;
        /* optional spacing */
    }

    /* Make the 5th child span full width */
    .footer .contacs> :nth-child(5) {
        grid-column: span 2;
        /* spans both columns */
    }
}



@media (max-width: 768px) {

     .footer .contacs {
        grid-template-columns: 1fr 1fr;
    }
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
        font-size: 1rem;
    }

    .contact__col {
        padding: 10px;
    }
}

@media (max-width: 480px) {

    .footer .contacs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 equal columns */
        gap: 10px;
        /* optional spacing */
    }

    /* Make the 5th child span full width */
    .footer .contacs> :nth-child(5) {
        grid-column: span 2;
        /* spans both columns */
    }

    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: 15px;
        font-size: 0.9rem;
    }
}

.one-column-mega-menu {
    min-width: 600px !important;
}