:root {
    --kanoon-cyan: #00B4DB;
    --kanoon-blue: #0083B0;
    --kanoon-cyan-dark: #005f73;
    --kanoon-cyan-light: #A5F3FF;
    --kanoon-text-primary: #1a202c;
    --kanoon-text-secondary: #4a5568;
}

body { margin: 0; direction: rtl; background-color: #f8fafc; font-family: sans-serif; }

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    padding: 8px 0; /* py-2 */
}

.header-container {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 8px; /* px-2 */
}

/* کارت شیشه‌ای اصلی */
.header-glass-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem; /* rounded-2xl */
    border: 1px solid rgba(0, 180, 219, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.header-flex-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem; /* h-16 */
    padding: 0 12px;
}

/* لوگو */
.brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-wrapper { position: relative; }

.logo-box {
    width: 2.5rem; /* w-10 */
    height: 2.5rem;
    background: linear-gradient(to bottom right, var(--kanoon-cyan), var(--kanoon-blue), var(--kanoon-cyan-dark));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 180, 219, 0.3);
    transition: all 0.3s ease;
}

.brand-group:hover .logo-box {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 180, 219, 0.4);
}

.logo-svg { width: 2.25rem; height: 2.25rem; }

/* دایره پالس */
.logo-pulse-dot {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 12px;
    height: 12px;
    background-color: #06b6d4;
    border-radius: 50%;
    animation: pulseInfinite 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseInfinite {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.2); }
}

/* متن برند */
.brand-info { display: none; } /* hidden */

.brand-title {
    font-size: 0.875rem; /* text-sm */
    font-weight: 900;
    color: var(--kanoon-text-primary);
    transition: color 0.3s;
}

.brand-group:hover .brand-title { color: var(--kanoon-cyan); }

.brand-subtitle {
    font-size: 10px;
    color: var(--kanoon-text-secondary);
    font-weight: 600;
}

/* منوی دسکتاپ */
.desktop-nav {
    display: none; /* hidden lg:flex */
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
    padding: 10px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--kanoon-text-secondary);
    text-decoration: none;
    border-radius: 1rem;
    transition: 0.2s;
    overflow: hidden;
}

.nav-item:hover { color: var(--kanoon-cyan); }

.nav-hover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(0, 180, 219, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-item:hover .nav-hover-gradient { opacity: 1; }

/* دکمه عملیاتی */
.action-area { display: none; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(to right, var(--kanoon-cyan), var(--kanoon-blue), var(--kanoon-cyan-dark));
    color: white;
    border: none;
    padding: 10px 16px;
    font-weight: 700;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 180, 219, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-btn:hover {
    background: linear-gradient(to right, var(--kanoon-cyan-dark), var(--kanoon-blue), var(--kanoon-cyan));
    box-shadow: 0 20px 25px -5px rgba(0, 180, 219, 0.4);
}

.sparkle-icon { width: 1rem; height: 1rem; transition: transform 0.3s; margin-left: 8px; }
.cta-btn:hover .sparkle-icon { transform: rotate(12deg); }

/* دکمه سه خطی موبایل */
.mobile-menu-toggle {
    display: flex;
    padding: 8px;
    background-color: rgba(0, 180, 219, 0.05);
    border: none;
    border-radius: 0.75rem;
    color: var(--kanoon-cyan);
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover { background-color: rgba(0, 180, 219, 0.1); }

/* تنظیمات واکنش‌گرا (Responsive) */

/* سایز sm (بیشتر از 640px) */
@media (min-width: 640px) {
    .header-container { padding: 0 16px; }
    .brand-info { display: block; } /* نمایش متن برند در تبلت و موبایل لنداسکیپ */
}

/* سایز lg (بیشتر از 1024px) */
@media (min-width: 1024px) {
    .sticky-header { padding: 12px 0; }
    .header-glass-card { border-radius: 1.5rem; }
    .header-flex-wrapper { height: 5rem; padding: 0 24px; }

    .logo-box { width: 3.5rem; height: 3.5rem; }
    .logo-svg { width: 2rem; height: 2rem; }

    .brand-title { font-size: 1.25rem; }
    .brand-subtitle { font-size: 0.75rem; }

    .desktop-nav { display: flex; }
    .action-area { display: flex; }
    .mobile-menu-toggle { display: none; }

    .cta-btn { padding: 14px 24px; font-size: 1rem; }
}

:root {
    --kanoon-cyan-dark: #0891b2;
    --kanoon-blue: #1e40af;
}

:root {
    --kanoon-cyan-dark: #0891b2;
    --kanoon-blue: #1d4ed8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: #f5f7fb;
}

.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    /*background: linear-gradient(to bottom right, var(--kanoon-cyan-dark), var(--kanoon-blue));*/
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .carousel-container {
        height: 620px;
    }
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    direction: rtl;
    display: block !important;
}

.hero-slide {
    position: relative;
}

.hero-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(6, 182, 212, 0.70), rgba(30, 64, 175, 0.88));
    z-index: 2;
    display: none !important;
}

.hero-content-box {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
}

.hero-title,
.hero-subtitle,
.hero-desc {
    color: #fff;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.5;
    max-width: 900px;
}

.hero-subtitle {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.8;
    max-width: 750px;
}

.hero-desc {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.9;
    max-width: 700px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 1.1rem;
    }
}

.hero-button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-btn {
    border: none;
    outline: none;
    cursor: pointer;
    height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-btn-primary {
    background: #fff;
    color: var(--kanoon-cyan-dark);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

.hero-btn-glass {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}

.hero-btn-glass:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-swiper-prev,
.hero-swiper-next {
    width: 52px !important;
    height: 52px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 20 !important;
    transition: all 0.3s ease;
}

.hero-swiper-prev:hover,
.hero-swiper-next:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-swiper-prev::after,
.hero-swiper-next::after {
    display: none !important;
}

.hero-swiper-prev svg,
.hero-swiper-next svg {
    width: 22px;
    height: 22px;
}

.hero-swiper-prev {
    left: 24px !important;
    right: auto !important;
}

.hero-swiper-next {
    right: 24px !important;
    left: auto !important;
}

.hero-swiper-pagination {
    bottom: 88px !important;
    z-index: 20 !important;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.45);
    margin: 0 4px !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: #fff !important;
    width: 24px;
    border-radius: 999px;
}

.stats-pill-wrapper {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--kanoon-cyan-dark);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #06b6d4;
    display: inline-block;
}

.label-text {
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .carousel-container {
        height: 480px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-btn {
        height: 46px;
        padding: 0 20px;
        font-size: 0.95rem;
    }

    .hero-swiper-prev,
    .hero-swiper-next {
        width: 44px !important;
        height: 44px !important;
    }

    .hero-swiper-prev {
        left: 14px !important;
    }

    .hero-swiper-next {
        right: 14px !important;
    }

    .hero-swiper-pagination {
        bottom: 78px !important;
    }

    .header-pill {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}



:root {
    --kanoon-cyan: #06b6d4;
    --kanoon-cyan-dark: #0891b2;
    --kanoon-cyan-light: #e0f7fa;
    --kanoon-blue: #2196f3;
    --kanoon-text: #4b5563;
}

.stats-section { max-width: 1200px; margin: -5px auto 40px; padding: 20px; text-align: center; }

.header-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; background: rgba(255,255,255,0.9); border-radius: 50px; border: 1px solid rgba(6, 182, 212, 0.2); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.pulse-dot { width: 10px; height: 10px; background: var(--kanoon-cyan); border-radius: 50%; animation: pulse 2s infinite; }

.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin-top: 20px; }

.stat-card { background: linear-gradient(135deg, rgba(224,247,250,0.4), rgba(33,150,243,0.05)); border: 2px solid rgba(6, 182, 212, 0.2); border-radius: 20px; padding: 20px; transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); border-color: var(--kanoon-cyan); box-shadow: 0 10px 20px rgba(6, 182, 212, 0.1); }

.icon-box { color: var(--kanoon-cyan); margin-bottom: 8px; display: flex; justify-content: center; }
.number { font-size: 28px; font-weight: 900; color: var(--kanoon-cyan-dark); }
.label { font-size: 13px; color: var(--kanoon-text); font-weight: bold; }

@keyframes pulse { 0% { transform: scale(0.95); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.7; } 100% { transform: scale(0.95); opacity: 1; } }

/* برای موبایل */
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
 } }

:root {
    --kanoon-cyan: #06b6d4;
    --kanoon-cyan-dark: #0891b2;
    --kanoon-bg-light: #e0f7fa;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --card-border: #e5e7eb;
}

.top-schools-section { max-width: 1200px; margin: 60px auto; padding: 0 20px; direction: rtl; }
/* هدر که شامل عنوان و لینک مشاهده همه است */
.header-container-2 {
    display: flex;
    justify-content: space-between; /* چسباندن عنوان به راست و لینک به چپ */
    align-items: center;            /* تراز عمودی دقیق */
    margin-bottom: 25px;            /* فاصله هدر از کارت‌های پایین */
}

.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.section-title { font-size: 28px; font-weight: 900; color: var(--text-primary); }

.view-all-btn {
    display: flex; align-items: center; gap: 5px; background: none; border: none;
    color: var(--kanoon-cyan); font-weight: bold; cursor: pointer; transition: 0.2s;
}

.view-all-btn:hover { color: var(--kanoon-cyan-dark); gap: 8px; }
.view-all-link {
    display: inline-flex;   /* استفاده از فلکس برای چیدمان داخلی */
    align-items: center;    /* تراز عمودی متن و آیکون */
    flex-direction: row-reverse; /* جابه‌جایی جایگاه متن و آیکون (آیکون می‌رود راست) */
    gap: 8px;               /* فاصله بین متن و فلش */
    color: #06b6d4;         /* رنگ فیروزه‌ای کانون */
    font-weight: 700;       /* ضخامت متن */
    text-decoration: none;  /* حذف خط زیر لینک */
    font-size: 16px;
}
/* افکت هاور (وقتی موس روی آن می‌رود) */
.view-all-link:hover {
    background-color: #22d3ee;      /* ظاهر شدن پس‌زمینه فیروزه‌ای */
    color: #000000;                 /* تغییر رنگ متن به مشکی مطابق تصویر */
    padding: 8px 24px;              /* کمی کشیده‌تر شدن دکمه در هاور */
    border-radius: 50px;

}
.view-all-link svg {
    display: block;
    /* اگر نیاز بود فلش کمی بالاتر یا پایین‌تر بیاید از margin استفاده کنید */
    margin-top: 1px;
}
.view-all-link:hover svg {
    stroke: #000000;                /* تغییر رنگ فلش به مشکی در هاور */
}
/* گرید کارت‌ها */
.schools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* کارت هنرستان */
.school-card {
    background: #fff; border: 1px solid var(--card-border); border-radius: 20px;
    overflow: hidden; transition: all 0.3s ease;
}
.school-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.08); border-color: var(--kanoon-cyan); }

/* بخش تصویر بالای کارت */
.card-header-image {
    height: 120px; background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(33,150,243,0.05));
    display: flex; align-items: center; justify-content: center;
}
.logo-box {
    width: 70px; height: 70px; background: var(--kanoon-cyan); border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 30px; font-weight: 900;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05); border: 2px solid rgba(6,182,212,0.1);
}

/* بدنه کارت */
.card-body { padding: 20px; }
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.school-name { font-size: 18px; font-weight: 800; color: var(--text-primary); margin: 0; line-height: 1.4; }
.badge-status { background: rgba(6,182,212,0.1); color: var(--kanoon-cyan); padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: bold; }

.location { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 5px; }

.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.tag { background: #f3f4f6; padding: 4px 10px; border-radius: 20px; font-size: 11px; color: #4b5563; font-weight: 500; }
.tag.open { background: var(--kanoon-bg-light); color: var(--kanoon-cyan-dark); }

.desc-2 { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 15px; height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.stats-mini { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #f3f4f6; font-size: 12px; color: #9ca3af; }
/* بخش آمار */
.stats-row {
    display: flex; gap: 20px; padding: 12px 0; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6;
    margin-bottom: 15px; color: #6b7280; font-size: 12px;
}
.stat-item { display: flex; align-items: center; gap: 6px; }

.phone-row { display: flex; align-items: center; gap: 8px; color: #374151; font-weight: 600; font-size: 14px; margin-bottom: 20px; }
/* دکمه‌های عملیاتی */
.action-buttons { display: flex; gap: 12px; }
.btn-fill { flex: 1; padding: 10px; background: var(--kanoon-cyan); color: white; border: none; border-radius: 20px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-border { flex: 1; padding: 10px; background: white; color: var(--kanoon-cyan); border: 2px solid var(--kanoon-cyan); border-radius: 20px; cursor: pointer; font-weight: bold; transition: 0.2s; }

.btn-fill:hover { background: var(--kanoon-cyan-dark); }
.btn-border:hover { background: var(--kanoon-cyan); color: white; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .section-title { font-size: 22px; }
    .schools-grid { grid-template-columns: 1fr; }
}


:root{
    --kanoon-cyan:#06b6d4;
    --kanoon-blue:#3b82f6;
    --kanoon-text-primary:#0f172a;
    --kanoon-text-secondary:#64748b;
    --kanoon-font:"IRANSansX","Yekan Bakh","Vazirmatn","Dana","Segoe UI",Tahoma,sans-serif;
}

*{
    box-sizing:border-box;
}

.k-majors-section{
    position:relative;
    overflow:hidden;
    padding:64px 0;
    margin-bottom:32px;
    direction:rtl;
    font-family:var(--kanoon-font);
}

.k-majors-bg{
    position:absolute;
    inset:0;
    background:
            linear-gradient(
                    to bottom right,
                    rgba(6,182,212,.05),
                    rgba(59,130,246,.05),
                    rgba(168,85,247,.05)
            );
    pointer-events:none;
}

.k-majors-grid{
    position:absolute;
    inset:0;
    opacity:.4;
    pointer-events:none;
    background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAxMCAwIEwgMCAwIDAgMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzA2YjZkNCIgc3Ryb2tlLW9wYWNpdHk9IjAuMDUiIHN0cm9rZS13aWR0aD0iMSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmlkKSIvPjwvc3ZnPg==");
}

.k-majors-container{
    position:relative;
    z-index:2;
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:0 16px;
}

.k-majors-header{
    text-align:center;
    margin-bottom:48px;
}

.k-majors-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 16px;
    margin-bottom:24px;
    background:rgba(255,255,255,.8);
    border:1px solid rgba(6,182,212,.2);
    border-radius:9999px;
    box-shadow:0 10px 20px rgba(15,23,42,.10);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}

.k-majors-badge-dot{
    width:8px;
    height:8px;
    border-radius:9999px;
    background:linear-gradient(to right,var(--kanoon-cyan),var(--kanoon-blue));
    animation:kPulse 1.8s infinite;
    flex:0 0 auto;
}

.k-majors-badge-text{
    font-size:14px;
    line-height:1;
    font-weight:700;
    background:linear-gradient(to right,var(--kanoon-cyan),var(--kanoon-blue));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    white-space:nowrap;
}

.k-majors-title{
    margin:0 0 16px;
    color:var(--kanoon-text-primary);
    font-size:30px;
    line-height:1.15;
    font-weight:900;
    letter-spacing:-.02em;
}

.k-majors-subtitle{
    margin:0 auto;
    max-width:42rem;
    color:var(--kanoon-text-secondary);
    font-size:18px;
    line-height:1.8;
    font-weight:400;
}

.k-majors-tabs{
    display:flex;
    flex-direction:column;
    gap:8px;
    width:100%;
}

.k-majors-tablist{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:center;
    justify-content:center;
    width:100%;
    max-width:448px;
    margin:0 auto 48px;
    height:56px;
    padding:8px;
    border-radius:24px;
    border:2px solid rgba(6,182,212,.2);
    background:rgba(255,255,255,.8);
    box-shadow:0 20px 30px rgba(15,23,42,.10);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}

.k-majors-tab{
    appearance:none;
    -webkit-appearance:none;
    border:1px solid transparent;
    outline:none;
    background:transparent;
    color:#111827;
    height:calc(100% - 1px);
    border-radius:16px;
    padding:4px 8px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    white-space:nowrap;
    cursor:pointer;
    font-family:var(--kanoon-font);
    font-size:16px;
    line-height:1;
    font-weight:700;
    transition:
            color .25s ease,
            background .25s ease,
            box-shadow .25s ease,
            transform .25s ease;
}

.k-majors-tab svg{
    width:20px;
    height:20px;
    flex:0 0 auto;
    pointer-events:none;
}

.k-majors-tab.active{
    color:#fff;
    background:linear-gradient(to right,var(--kanoon-cyan),var(--kanoon-blue));
    box-shadow:0 10px 18px rgba(6,182,212,.28);
}

.k-majors-panel{
    display:none;
    flex:1;
    outline:none;
    margin-top:0;
}

.k-majors-panel.active{
    display:block;
    animation:kFadeUp .35s ease;
}

.k-majors-grid-cards{
    display:grid;
    grid-template-columns:1fr;
    gap:24px;
}

.k-major-card{
    position:relative;
    overflow:hidden;
    cursor:pointer;
    border:2px solid transparent;
    border-radius:12px;
    background:#fff;
    transition:
            transform .3s ease,
            box-shadow .3s ease,
            border-color .3s ease;
}

.k-major-card:hover{
    transform:scale(1.05);
    border-color:#fff;
    box-shadow:0 25px 50px rgba(15,23,42,.16);
}

.k-major-overlay{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .3s ease;
    pointer-events:none;
}

.k-major-card:hover .k-major-overlay{
    opacity:.1;
}

.k-major-blob-top{
    position:absolute;
    top:-40px;
    right:-40px;
    width:128px;
    height:128px;
    border-radius:9999px;
    background:rgba(255,255,255,.2);
    filter:blur(32px);
    transition:all .5s ease;
    pointer-events:none;
}

.k-major-card:hover .k-major-blob-top{
    background:rgba(255,255,255,.4);
}

.k-major-blob-bottom{
    position:absolute;
    bottom:-32px;
    left:-32px;
    width:96px;
    height:96px;
    border-radius:9999px;
    background:rgba(255,255,255,.3);
    filter:blur(24px);
    pointer-events:none;
}

.k-major-content{
    position:relative;
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.k-major-icon-holder{
    display:flex;
    justify-content:center;
}

.k-major-icon{
    position:relative;
    width:80px;
    height:80px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 20px 25px rgba(15,23,42,.14);
    transition:
            transform .3s ease,
            box-shadow .3s ease;
}

.k-major-card:hover .k-major-icon{
    transform:scale(1.1) rotate(6deg);
    box-shadow:0 25px 35px rgba(15,23,42,.18);
}

.k-major-emoji{
    font-size:40px;
    line-height:1;
    filter:drop-shadow(0 4px 10px rgba(0,0,0,.22));
}

.k-major-dot{
    position:absolute;
    top:-4px;
    right:-4px;
    width:16px;
    height:16px;
    border-radius:9999px;
    background:#facc15;
    animation:kPulse 1.6s infinite;
}

.k-major-title{
    margin:0;
    text-align:center;
    color:var(--kanoon-text-primary);
    font-size:20px;
    line-height:1.3;
    font-weight:900;
    letter-spacing:-.01em;
    transition:all .3s ease;
}

.k-major-card:hover .k-major-title{
    background:linear-gradient(to right,var(--kanoon-cyan),var(--kanoon-blue));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.k-major-desc{
    margin:0;
    min-height:2.5rem;
    text-align:center;
    color:var(--kanoon-text-secondary);
    font-size:14px;
    line-height:1.65;
    font-weight:400;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.k-major-divider{
    height:1px;
    background:linear-gradient(to right,transparent,rgba(6,182,212,.3),transparent);
}

.k-major-footer{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:var(--kanoon-cyan);
    font-size:14px;
    line-height:1;
    font-weight:700;
    transition:gap .3s ease;
}

.k-major-card:hover .k-major-footer{
    gap:12px;
}

.k-major-footer svg{
    width:16px;
    height:16px;
    flex:0 0 auto;
}

.k-major-sparkles{
    transition:transform .3s ease;
}

.k-major-arrow{
    transition:transform .3s ease;
}

.k-major-card:hover .k-major-sparkles{
    transform:rotate(12deg);
}

.k-major-card:hover .k-major-arrow{
    transform:translateX(-4px);
}

.k-major-shine{
    position:absolute;
    inset:0;
    background:linear-gradient(to right,transparent,rgba(255,255,255,.2),transparent);
    transform:translateX(-100%);
    transition:transform 1s ease;
    pointer-events:none;
}

.k-major-card:hover .k-major-shine{
    transform:translateX(100%);
}

.theme-lab-1{
    background:linear-gradient(to bottom right,#eff6ff,#f8fbff);
}
.theme-lab-1 .k-major-overlay{
    background:linear-gradient(to bottom right,#06b6d4,#14b8a6,#22d3ee);
}
.theme-lab-1 .k-major-icon{
    background:linear-gradient(to bottom right,#06b6d4,#14b8a6,#22d3ee);
}

.theme-lab-2{
    background:linear-gradient(to bottom right,#faf5ff,#f5f3ff);
}
.theme-lab-2 .k-major-overlay{
    background:linear-gradient(to bottom right,#2563eb,#3b82f6,#60a5fa);
}
.theme-lab-2 .k-major-icon{
    background:linear-gradient(to bottom right,#2563eb,#3b82f6,#60a5fa);
}

.theme-lab-3{
    background:linear-gradient(to bottom right,#ecfeff,#f0fdfa);
}
.theme-lab-3 .k-major-overlay{
    background:linear-gradient(to bottom right,#a855f7,#8b5cf6,#c084fc);
}
.theme-lab-3 .k-major-icon{
    background:linear-gradient(to bottom right,#a855f7,#8b5cf6,#c084fc);
}

.theme-work-1{
    background:linear-gradient(to bottom right,#f8fafc,#f3f4f6);
}
.theme-work-1 .k-major-overlay{
    background:linear-gradient(to bottom right,#475569,#4b5563,#52525b);
}
.theme-work-1 .k-major-icon{
    background:linear-gradient(to bottom right,#475569,#4b5563,#52525b);
}

.theme-work-2{
    background:linear-gradient(to bottom right,#fff7ed,#fffbeb);
}
.theme-work-2 .k-major-overlay{
    background:linear-gradient(to bottom right,#f97316,#f59e0b,#eab308);
}
.theme-work-2 .k-major-icon{
    background:linear-gradient(to bottom right,#f97316,#f59e0b,#eab308);
}

.theme-work-3{
    background:linear-gradient(to bottom right,#ecfdf5,#f0fdf4);
}
.theme-work-3 .k-major-overlay{
    background:linear-gradient(to bottom right,#10b981,#22c55e,#84cc16);
}
.theme-work-3 .k-major-icon{
    background:linear-gradient(to bottom right,#10b981,#22c55e,#84cc16);
}

@keyframes kPulse{
    0%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(250,204,21,.45);
    }
    70%{
        transform:scale(1.05);
        box-shadow:0 0 0 10px rgba(250,204,21,0);
    }
    100%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(250,204,21,0);
    }
}

@keyframes kFadeUp{
    from{
        opacity:0;
        transform:translateY(6px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media (min-width:640px){
    .k-majors-grid-cards{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (min-width:768px){
    .k-majors-title{
        font-size:36px;
    }
}

@media (min-width:1024px){
    .k-majors-grid-cards{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:32px;
    }
}

@media (max-width:520px){
    .k-majors-tablist{
        max-width:100%;
    }

    .k-majors-tab{
        font-size:13px;
        gap:6px;
        padding:4px 6px;
    }

    .k-majors-tab svg{
        width:18px;
        height:18px;
    }
}
:root {
    --k-text-main: #0f172a;
    --k-text-muted: #64748b;
    --k-blue: #06b6d4;
    --k-purple: #a855f7;
    --k-orange: #f97316;
    --k-font: "IRANSansX", Tahoma, sans-serif;
}

.k-services-section {
    direction: rtl;
    font-family: var(--k-font);
    padding: 40px 0;
    background-color: #f8fafc;
}

.k-services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.k-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Column Header */
.k-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.k-icon-main {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.k-icon-main svg { width: 24px; height: 24px; }

.k-header-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--k-text-main);
}

.k-header-text p {
    margin: 0;
    font-size: 12px;
    color: var(--k-text-muted);
}

/* Card Style */
.k-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.k-item-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    cursor: pointer;
}

.k-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}

.k-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.k-item-icon svg { width: 20px; height: 20px; }

.k-item-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--k-text-main);
    transition: color 0.2s;
}

.k-item-info span {
    font-size: 11px;
    color: var(--k-text-muted);
}

/* Themes & Hovers */
/* Blue */
.bg-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.bg-blue-light { background: #ecfeff; }
.text-blue { color: var(--k-blue); }
.k-item-card.border-blue:hover { border-color: var(--k-blue); }
.k-item-card.border-blue:hover h4 { color: var(--k-blue); }

/* Purple */
.bg-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.bg-purple-light { background: #f5f3ff; }
.text-purple { color: var(--k-purple); }
.k-item-card.border-purple:hover { border-color: var(--k-purple); }
.k-item-card.border-purple:hover h4 { color: #9333ea; }

/* Orange */
.bg-orange { background: linear-gradient(135deg, #f97316, #fbbf24); }
.bg-orange-light { background: #fff7ed; }
.text-orange { color: var(--k-orange); }
.k-item-card.border-orange:hover { border-color: var(--k-orange); }
.k-item-card.border-orange:hover h4 { color: var(--k-orange); }

/* Buttons */
.k-btn-more {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    font-family: var(--k-font);
}

.btn-blue { border: 1px solid var(--k-blue); color: var(--k-blue); }
.btn-blue:hover { background: var(--k-blue); color: white; }

.btn-purple { border: 1px solid var(--k-purple); color: #7c3aed; }
.btn-purple:hover { background: var(--k-purple); color: white; }

.btn-orange { border: 1px solid var(--k-orange); color: #ea580c; }
.btn-orange:hover { background: var(--k-orange); color: white; }

/* Responsive */
@media (max-width: 992px) {
    .k-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .k-services-grid { grid-template-columns: 1fr; }
}
:root {
    --k-cyan: #06b6d4;
    --k-cyan-light: rgba(6, 182, 212, 0.1);
    --k-text-dark: #1e293b;
    --k-text-gray: #64748b;
    --k-border: #e2e8f0;
    --k-font-family: "IRANSansX", Tahoma, sans-serif;
}

.k-news-section {
    direction: rtl;
    font-family: var(--k-font-family);
    padding: 40px 20px;
    background-color: #ffffff;
}

.k-news-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.k-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.k-news-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--k-text-dark);
}

.k-btn-view-all {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--k-cyan);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

/* Grid Layout */
.k-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card Styling */
.k-news-card {
    background: white;
    border: 1px solid var(--k-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.k-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--k-cyan);
}

.k-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.k-badge {
    background: var(--k-cyan-light);
    color: var(--k-cyan);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px; /* Pill style */
    width: fit-content;
}

.k-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--k-text-dark);
    margin: 0;
    line-height: 1.6;
}

.k-card-excerpt {
    font-size: 13px;
    color: var(--k-text-gray);
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Data */
.k-card-meta {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.k-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #94a3b8;
}

/* Read More Button */
.k-btn-read-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    margin-top: 10px;
    background: transparent;
    border: none;
    color: var(--k-cyan);
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.k-btn-read-more:hover {
    background: var(--k-cyan-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .k-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .k-news-grid { grid-template-columns: 1fr; }
    .k-news-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
:root {
    --k-cyan: #06b6d4;
    --k-blue: #0284c7;
    --k-font: "IRANSansX", Tahoma, sans-serif;
}

.k-cta-section {
    direction: rtl;
    font-family: var(--k-font);
    background: linear-gradient(135deg, var(--k-cyan), var(--k-blue));
    padding: 30px 20px;
    text-align: center;
    color: #ffffff;
}

.k-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.k-cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.k-cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.k-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button styles */
.k-btn {
    padding: 12px 30px;
    border-radius: 17px; /* کپسولی */
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--k-font);
}

.k-btn-white {
    background: #ffffff;
    color: var(--k-cyan);
}

.k-btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.k-btn-outline {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
}

.k-btn-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .k-cta-title { font-size: 1.5rem; }
    .k-cta-description { font-size: 0.95rem; }
    .k-btn { width: 100%; max-width: 300px; }
}
:root {
    --k-footer-bg: #147a33;
    --k-white: #ffffff;
    --k-text-light: rgba(255, 255, 255, 0.8);
    --k-font-family: "IRANSansX", Tahoma, sans-serif;
}

.k-footer {
    margin-top: 50px; /* مقدار فاصله را می‌توانید به دلخواه کم یا زیاد کنید */
    direction: rtl;
    background-color: var(--k-footer-bg);
    color: var(--k-white);
    padding: 50px 20px;
    font-family: var(--k-font-family);
    position: relative;
}

.k-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.k-footer-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.k-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.k-footer-links li {
    margin-bottom: 12px;
}

.k-footer-links a {
    color: var(--k-text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.k-footer-links a:hover {
    color: var(--k-white);
}

/* Contact Info */
.k-contact-info {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: var(--k-text-light);
}

.k-contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.k-work-hours {
    margin-top: 20px;
    padding-right: 26px;
    font-size: 13px;
}

/* Social Icons */
.k-social-icons {
    display: flex;
    gap: 12px;
}

.k-social-item {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--k-white);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.k-social-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Floating Help Button */
.k-floating-help {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: var(--k-footer-bg);
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .k-footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .k-footer-container { grid-template-columns: 1fr; text-align: center; }
    .k-contact-info li { justify-content: center; }
    .k-social-icons { justify-content: center; }
}


