/* Основные переменные и сброс */
:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;

    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-400: #fb923c;
    --orange-700: #c2410c;

    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-400: #4ade80;
    --green-700: #15803d;

    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-400: #c084fc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Главный контейнер (Карточка) */
.app-container {
    background-color: white;
    border-radius: 2.5rem;
    box-shadow: 0 15px 20px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    /* аналог max-w-6xl */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .app-container {
        flex-direction: row;
    }
}

/* Левая панель (Сайдбар) */
.sidebar {
    width: 100%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

@media (min-width: 768px) {
    .sidebar {
        width: 33.333%;
        background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    }
}

@media (min-width: 1024px) {
    .sidebar {
        width: 30%;
    }
}

.sidebar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #60a5fa, #1d4ed8);
    opacity: 0.9;
    pointer-events: none;
}

.sidebar-content {
    position: relative;
    z-index: 10;
}

.sidebar-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

/* Навигация */
.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: var(--blue-100);
    font-size: 1.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-btn i {
    font-size: 3rem;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background-color: white;
    color: var(--blue-600);
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sidebar-footer {
    position: relative;
    z-index: 10;
    margin-top: 2rem;
    padding-left: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

/* Правая панель (Контент) */
.main-content {
    width: 100%;
    padding: 2rem;
    background-color: white;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .main-content {
        width: 66.666%;
    }
}

@media (min-width: 1024px) {
    .main-content {
        width: 70%;
        padding: 3rem;
    }
}

.page-header {
    font-size: 2.5rem;
    /* text-3xl */
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 4rem;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    /* max-w-3xl */
    margin: 0 auto;
    gap: 1rem;
}

/* Карточки шагов */
.step-card {
    width: 100%;
    border-radius: 0.75rem;
    /* rounded-xl */
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-left-width: 8px;
    border-left-style: solid;
    transition: box-shadow 0.3s;
}

.step-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Темы карточек */
.theme-orange {
    background-color: var(--orange-100);
    border-left-color: var(--orange-400);
}

.theme-blue {
    background-color: var(--blue-100);
    border-left-color: #60a5fa;
    /* blue-400 equivalent */
}

.theme-green {
    background-color: var(--green-100);
    border-left-color: var(--green-400);
}

.theme-purple {
    background-color: var(--purple-100);
    border-left-color: var(--purple-400);
}

.theme-purple-light {
    background-color: #faf5ff;
    /* purple-50 */
    border: 1px solid var(--purple-200);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title {
    font-size: 1.5rem;
    /* text-xl */
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--color-body);
    margin-bottom: 1rem;
}

/* Бейджи (Начало, Экзамены и т.д.) */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
}

.badge-orange {
    background-color: var(--orange-200);
    color: var(--orange-700);
}

.badge-blue {
    background-color: var(--blue-200);
    color: var(--blue-700);
}

.badge-green {
    background-color: var(--green-200);
    color: var(--green-700);
}

/* Блок ссылок внутри карточки */
.links-block {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    padding: 2rem 1rem;
    margin-top: 0.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.action-link {
    color: var(--blue-600);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2.2rem;
}

.action-link:hover {
    text-decoration: underline;
}

/* Стрелка между шагами */
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-blue);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    transition: all 0.3s ease;
    /* animation: float 3s ease-in-out infinite; */
    cursor: pointer;
    border: 1px solid var(--blue-100);
}

.step-arrow:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
    background-color: var(--blue-300);
}

.step-arrow i {
    color: #fff;
    font-size: 1.25rem;
    line-height: 0.1rem !important;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: translateY(-10px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }
}

/* Анимация появления */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Утилиты видимости для табов */
.hidden {
    display: none;
}

.block {
    display: block;
}

/* Центрирование контента в пустых табах */
.center-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--slate-400);
    text-align: center;
}

.center-placeholder i {
    font-size: 3.75rem;
    /* text-6xl */
    margin-bottom: 1rem;
    color: var(--blue-200);
}

.center-placeholder p {
    font-size: 1.5rem;
    /* text-xl */
}

.placeholder-text {
    color: var(--slate-500);
    text-align: center;
}

/* ========================================
   FACULTY TABS STYLES
   ======================================== */

/* Главный контейнер табов факультетов */
.faculty-tabs-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .faculty-tabs-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .faculty-tabs-container {
        grid-template-columns: 58% 42%;
        /* gap: 40px; */
    }
}

/* Левая панель с подробным описанием */
.faculty-detail-panel {
    position: relative;
    background: linear-gradient(135deg, #d4f4dd 0%, #b8e6c9 100%);
    border-radius: 24px;
    padding: 20px;
    min-height: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background 0.4s ease;
}

/* Цвета фона для каждого факультета через data-атрибут */
.faculty-detail-panel[data-active-faculty="faculty-psychology"] {
    background: linear-gradient(135deg, #d4f4dd 0%, #b8e6c9 100%);
}

.faculty-detail-panel[data-active-faculty="faculty-pedagogy"] {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.faculty-detail-panel[data-active-faculty="faculty-geography"] {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.faculty-detail-panel[data-active-faculty="faculty-history"] {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.faculty-detail-panel[data-active-faculty="faculty-physics"] {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.faculty-detail-panel[data-active-faculty="faculty-philology"] {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.faculty-detail-panel[data-active-faculty="faculty-bashkir"] {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.faculty-detail-panel[data-active-faculty="faculty-sports"] {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

.faculty-detail-panel[data-active-faculty="faculty-art"] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.faculty-detail-panel[data-active-faculty="faculty-college"] {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

@media (max-width: 767px) {
    .faculty-detail-panel {
        padding: 25px;
        min-height: 400px;
    }
}

/* Контент факультета */
.faculty-detail-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.faculty-detail-content.active-faculty {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    height: 100%;
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок факультета */
.faculty-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}


/* Большая иконка факультета */
.faculty-icon-large {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faculty-icon-large i {
    font-size: 4rem;
    color: #2563eb;
}

@media (max-width: 767px) {
    .faculty-icon-large {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .faculty-icon-large i {
        font-size: 3rem;
    }
}

/* Текст заголовка */
.faculty-header-text {
    flex: 1;
}

.faculty-detail-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.faculty-detail-description {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

@media (max-width: 767px) {
    .faculty-detail-title {
        font-size: 2rem;
    }

    .faculty-detail-description {
        font-size: 1.5rem;
    }
}

/* Видео плейсхолдер */
.faculty-video-placeholder {
    position: relative;
    width: 100%;
    height: 360px;
    background: linear-gradient(135deg, #5b6fd8 0%, #4338ca 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.faculty-video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px);
    pointer-events: none;
}

@media (max-width: 767px) {
    .faculty-video-placeholder {
        height: 280px;
    }
}

/* Кнопка воспроизведения */
.video-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    border: 6px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.video-play-button:hover {
    transform: scale(1.1);
    background: #ffffff;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.video-play-button i {
    font-size: 2.8rem;
    color: #f43053;
    margin-left: 4px;
}

@media (max-width: 767px) {
    .video-play-button {
        width: 60px;
        height: 60px;
    }

    .video-play-button i {
        font-size: 2.2rem;
    }
}

/* Правая панель со списком факультетов */
.faculty-list-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 767px) {
    .faculty-list-panel {
        gap: 10px;
    }
}

/* Элемент таба факультета */
.faculty-tab-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    /* overflow: hidden; */
}

.faculty-tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.faculty-tab-item:hover::before {
    background: rgba(255, 255, 255, 0.3);
}

.faculty-tab-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.faculty-tab-item.active-tab {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.02) translateX(-28px);
    position: relative;
}


/* Три вертикальные точки справа для активного таба */
.faculty-tab-item.active-tab::after {
    content: '⋮';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4.2rem;
    line-height: 1;
    color: rgba(255, 255, 255, 1);
    font-weight: bold;
}

@media (max-width: 767px) {
    .faculty-tab-item {
        padding: 14px 16px;
        gap: 12px;
    }
}

/* Иконка таба */
.faculty-tab-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faculty-tab-item:hover .faculty-tab-icon {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.faculty-tab-icon i {
    font-size: 2.4rem;
    color: #1e293b;
}

@media (max-width: 767px) {
    .faculty-tab-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .faculty-tab-icon i {
        font-size: 2rem;
    }
}

/* Название факультета в табе */
.faculty-tab-name {
    flex: 1;
    padding-right: 10px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .faculty-tab-name {
        font-size: 1.4rem;
    }
}

/* Адаптивность для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
    .faculty-tabs-container {
        grid-template-columns: 1fr;
    }

    .faculty-list-panel {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


/* ТАБЫ ДЛЯ СТРАНИЦ */

/* .my-page-tabs {
    margin: 2rem 0;
} */

.my-tabs-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    /* border-bottom: 2px solid #e2e8f0; */
}

.my-tab-item * {
    transition: all 0.5s ease;
}

.my-tab-item {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 1rem 2rem !important;
    height: 52px;
    cursor: pointer;
    font-size: 1.4rem !important;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #ddd;
    list-style: none !important;
    color: #333;
    background: #ddd;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.my-tab-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(94.38deg, #0d6efd 0%, #3383f9 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.my-tab-item>* {
    position: relative;
    z-index: 1;
}

.my-tab-item:hover {
    color: #fff;
    border-color: #0d6efd;
}

.my-tab-item:hover::before {
    opacity: 1;
}

.my-tab-item.active {
    color: #fff;
    border-color: #0d6efd;
}

.my-tab-item.active::before {
    opacity: 1;
}

.my-tab-item span {
    transition: transform 0.5s ease;
}

.my-tab-content {
    display: none;
    padding: 3rem 0 0;
}

.my-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}


/* СПЕЦИАЛЬНОСТИ */
.specialty-filters-title {
    margin-bottom: 0 !important;
}

.specialty-shortcode .faculty-detail-panel {
    max-height: 580px;
}

.specialty-shortcode .faculty-tabs-container {
    grid-template-columns: 58% 42%;
    gap: 0;
}

.specialty-shortcode .faculty-tab-item.active-tab {
    transform: scale(1.02) translateX(-16px);
}

.specialty-shortcode .faculty-tabs-container {
    line-height: 2.2rem;
}

.specialty-shortcode .faculty-tab-item {
    max-width: 100%;
    padding: 12px 12px;
}

.specialty-shortcode .faculty-icon-large img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.specialty-shortcode .faculty-tab-icon img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specialty-shortcode .faculty-detail-content.active-faculty {
    justify-content: start;
}


.specialty-shortcode .rts-btn {
    height: 36px;
    flex-shrink: 0;
    font-size: 1.4rem;
}


.specialty-shortcode .faculty-tab-name {
    font-size: 1.5rem;
}

.faculty-detail-faculty {
    font-size: 1.4rem;
}

.specialty-shortcode .faculty-detail-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #000;
}

.specialty-shortcode .faculty-detail-min-levels {
    margin-top: 8px;
}


.specialty-shortcode .faculty-detail-min-levels-list {
    margin: 0;
    padding-left: 18px;
}

.specialty-shortcode .faculty-detail-admission-title {
    margin-bottom: 4px;
    font-size: 1.4rem;
    color: #666;
}

.specialty-shortcode ul.faculty-detail-min-levels-list li,
.specialty-shortcode .faculty-detail-body ul li {
    padding: 0;
    margin: 0;
    color: #000;
    font-size: 1.5rem;
}

.specialty-shortcode .faculty-detail-admission-list,
.specialty-shortcode .faculty-detail-body ul {
    margin: 0;
    padding-left: 18px;
}

.specialty-shortcode .faculty-list-panel {
    gap: 6px;
    max-height: 580px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 28px;
    padding-right: 8px;
    scrollbar-color: #94a3b8 #f1f5f9;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.specialty-shortcode .faculty-detail-exams-subtitle {
    margin-bottom: 4px;
    color: #1d4ed8;
    font-size: 1.4rem;
}

ul+.faculty-detail-exams-subtitle {
    margin-top: 10px;
}


.specialty-shortcode .faculty-detail-body p {
    font-size: 1.4rem;
    margin: 0 0 10px;
    line-height: 2.4rem;
    color: #000;
}

.specialty-shortcode .faculty-list-panel::-webkit-scrollbar {
    width: 8px;
}

.specialty-shortcode .faculty-list-panel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.specialty-shortcode .faculty-list-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 999px;
    border: 1px solid #f1f5f9;
    background-clip: padding-box;
}

.specialty-shortcode .faculty-list-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.specialty-filters {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.specialty-filters-wrap .col-lg-12 {
    display: flex;
    margin-left: 5px;
    max-width: 1305px;
    flex-direction: column;
    gap: 0;
    background: #eaf0ff;
    border-radius: 10px;
    padding: 10px 40px;
    box-shadow: 0 4px 16px rgba(110, 135, 196, 0.08);
}

.specialty-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(113, 140, 206, 0.22);
    transition: padding-bottom 0.35s ease, border-color 0.35s ease;
}

.specialty-filters-wrap:not(.is-open) .specialty-filters-head {
    padding-bottom: 0;
    border-bottom-color: transparent;
}

.specialty-filters-title {
    margin: 0 !important;
    font-size: 1.8rem !important;
    line-height: 1.2;
    font-weight: 700;
    color: #25335d;
}

.specialty-filters-toggle {
    width: 42px;
    max-width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50% !important;
    border: 0 !important;
    background: rgba(93, 146, 255, 0.18);
    color: #5d92ff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    box-shadow: none !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.specialty-filters-toggle:hover {
    background: rgba(255, 139, 106, 0.08) !important;
    transform: scale(1.03);
}

.specialty-filters-toggle span {
    display: block;
    font-size: 2.8rem;
    line-height: 4.2rem;
    font-weight: 500;
    transform: translateY(-1px);
    transition: transform 0.25s ease;
}

.specialty-filters-toggle:focus {
    border: 1px solid #ff8b6a !important;
    background: rgba(255, 139, 106, 0.14) !important;
    box-shadow: 0 0 0 0.2rem rgb(253 83 14 / 50%);
}

.specialty-filters-wrap.is-open .specialty-filters-toggle {
    border-color: #ff8b6a !important;
    background: rgba(255, 139, 106, 0.08) !important;
    color: #ff5572 !important;
}

.specialty-filters-wrap.is-open .specialty-filters-toggle:hover {
    background: rgba(255, 139, 106, 0.14) !important;
}

.specialty-filters-wrap.is-open .specialty-filters-toggle span {
    transform: translateY(-1px) rotate(45deg);
}

.specialty-filters-panel[hidden] {
    display: none !important;
}

.specialty-filters-panel {
    overflow: hidden;
    padding-top: 0;
}

.specialty-filters-wrap.is-open .specialty-filters-panel {
    padding-top: 15px;
    padding-bottom: 10px;
}

@media (max-width: 767px) {
    .specialty-filters-wrap .col-lg-12 {
        padding: 14px 16px;
    }

    .specialty-filters-head {
        gap: 10px;
    }

    .specialty-filters-title {
        font-size: 1.8rem;
    }
}

.specialty-filters__form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 12px;
    align-items: end;
}

.specialty-filters__row {
    min-width: 240px;
    flex: 1 1 240px;
}

.specialty-filters__label {
    display: block;
    margin-bottom: 9px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #25335d;
    line-height: 1.4;
}

.specialty-filters__select {
    width: 100%;
    height: 40px;
    border: 1px solid #c9d9ff;
    border-radius: 10px;
    padding: 0 14px;
    background: #ffffff;
    color: #34456f;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(110, 135, 196, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.specialty-filters__select:focus {
    border-color: #4f80f7;
    box-shadow: 0 0 0 3px rgba(79, 128, 247, 0.12);
    outline: none;
}

.specialty-filters__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    flex: 0 0 auto;
}

.specialty-filters__actions .rts-btn {
    min-width: 148px;
    min-height: 40px;
    border-radius: 24px;
    padding: 12px 22px;
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 700;
    border: 0;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.specialty-filters__actions .rts-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(78, 107, 181, 0.18);
}

.specialty-filters__actions .btn-primary:not(.background-orange) {
    background: #1f2a37;
    color: #ffffff;
}

.specialty-filters__actions .specialty-filters__reset,
.specialty-filters__actions .background-orange {
    background: #ef9a08;
    color: #ffffff;
}

@media (max-width: 991px) {
    .specialty-filters-wrap .col-lg-12 {
        padding: 15px 24px;
    }

    .specialty-filters__row {
        min-width: calc(50% - 12px);
        flex-basis: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .specialty-filters__form {
        gap: 12px;
    }
    
    .specialty-filters__label {
        font-size: 1.5rem;
    }

    .specialty-filters__select {
        height: 46px;
        font-size: 1.5rem;
    }

    .specialty-filters__actions {
        margin-top: 10px;
    }

    .specialty-filters__actions .rts-btn {
        width: 100%;
        min-width: 0;
    }
}

.specialty-empty {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-weight: 600;
}

.specialty-shortcode .faculty-detail-body {
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    max-height: 450px;
    min-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
    scrollbar-gutter: stable;
    line-height: 2.2rem;
}

.specialty-shortcode .faculty-detail-body::-webkit-scrollbar {
    width: 10px;
}

.specialty-shortcode .faculty-detail-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.specialty-shortcode .faculty-detail-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 999px;
    border: 2px solid #f1f5f9;
}

.specialty-shortcode .faculty-detail-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.specialty-shortcode .faculty-detail-title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.4;
}

.specialty-shortcode .faculty-detail-body-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.specialty-shortcode .faculty-detail-code {
    margin-right: 20px;
    color: #000;
}

.specialty-shortcode .faculty-detail-name {
    display: block;
    margin-bottom: 4px;
    font-size: 1.4rem;
    color: #666;
}

.specialty-shortcode ul.faculty-detail-admission-list {
    padding: 0;
}

.specialty-shortcode ul.faculty-detail-admission-list li {
    list-style: none !important;
    padding: 0;
    margin: 0;
    color: #000;
    font-size: 1.4rem;
    line-height: 2.2rem;
}

.faculty-detail-area {
    margin-top: 8px;
}

.specialty-shortcode .container,
.my-page-content .container {
    padding: 0 !important;
}

.has_documents_tab {
    padding: 40px 0 !important;
}

.specialty-department-file-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe 0%, #c7d9f5 100%);
    border-radius: 16px;
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
}

.specialty-department-file-banner__content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.specialty-department-file-banner__title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 16px;
}

.specialty-department-file-banner__btn {
    display: flex;
    width: 100%;
    max-width: 38rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #5b8bd6;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 12px 48px;
    border-radius: 30px;
    text-decoration: none;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}

.specialty-department-file-banner__btn:hover {
    background: #4a78c2;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(74, 120, 194, 0.4);
    color: #fff;
}

.shortcode-faculty-tabs .faculty-detail-header {
    display: flex;
    align-items: start; 
    gap: 16px;
    margin-bottom: 16px;
}

.shortcode-faculty-tabs .faculty-tab-icon, .shortcode-faculty-tabs .faculty-icon-large {
    border-radius: 50%;
    overflow: hidden;
}

.shortcode-faculty-tabs .faculty-list-panel {
    gap: 10px;
}
.shortcode-faculty-tabs .faculty-tab-item {
    padding: 14px 20px;
}

.faculty-tabs-area.specialty-shortcode {
    padding-bottom: 0px;
}