/* Osztalyok page refresh */
.osztalyaink {
    padding: 52px 20px 76px !important;
    color: #24384f !important;
    background: #f3f7fb !important;
    overflow-x: clip;
}

.osztaly-container { width: min(100%, 1280px); max-width: 1280px !important; }
.osztaly-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 26px !important;
    padding: clamp(25px, 5vw, 48px) !important;
    border-radius: 20px;
    background: linear-gradient(118deg, #073b70 0%, #075fa5 62%, #1284b7 100%);
    text-align: left !important;
    box-shadow: 0 18px 42px rgba(15, 56, 91, .13);
}
.osztaly-header::after { position: absolute; top: -115px; right: -55px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 75px rgba(255,255,255,.025); content: ""; pointer-events: none; }
.osztaly-label { position: relative; z-index: 1; margin: 0 0 14px !important; padding: 0 !important; border-radius: 0 !important; background: transparent !important; color: #9ce3ed !important; font-size: 11px !important; letter-spacing: .16em !important; }
.osztaly-header h1 { position: relative; z-index: 1; margin: 0 0 10px !important; color: #fff !important; font-size: clamp(30px, 5vw, 48px) !important; letter-spacing: -.045em; line-height: 1.08; }
.osztaly-header p { position: relative; z-index: 1; max-width: 560px; margin: 0 !important; color: rgba(255,255,255,.78) !important; font-size: 14px !important; line-height: 1.7; }

.osztaly-table-wrapper { overflow: auto; border: 1px solid #e1e9f0; border-radius: 15px !important; background: #fff !important; box-shadow: 0 15px 38px rgba(22,57,88,.07) !important; scrollbar-color: #b8cbd9 #f2f6f9; scrollbar-width: thin; }
.osztaly-table { width: 100%; min-width: 890px !important; border-collapse: separate !important; border-spacing: 0; }
.osztaly-table thead th { position: sticky; top: 0; z-index: 1; padding: 15px 17px !important; border-bottom: 1px solid #dfe8ef; background: #eff5fa !important; color: #45627e !important; font-size: 11px !important; font-weight: 800 !important; letter-spacing: .055em !important; text-transform: uppercase; }
.osztaly-table td { padding: 13px 17px !important; border-bottom: 1px solid #edf1f5 !important; color: #56697c; font-size: 13px !important; line-height: 1.55; }
.osztaly-table tbody tr:not(.category-row):hover td { background: #f7fbfe !important; }
.osztaly-table td:nth-child(2) { color: #145f9d !important; font-weight: 800 !important; white-space: nowrap; }
.osztaly-table td:first-child { color: #63788c; font-weight: 600 !important; }
.osztaly-table .category-row td { padding: 11px 17px !important; background: #e9f3fa !important; color: #1b5b8d !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .04em; text-align: left !important; }
.osztaly-table tr:last-child td { border-bottom: 0 !important; }
.osztaly-mobile-view { display: none; }

@media (max-width: 760px) {
    .osztalyaink { padding: 25px 16px 48px !important; }
    .osztaly-header { margin-bottom: 21px !important; padding: 26px 22px !important; border-radius: 16px; }
    .osztaly-header::after { top: -108px; right: -175px; width: 290px; height: 290px; }
    .osztaly-label { margin-bottom: 11px !important; }
    .osztaly-header p { max-width: 380px; font-size: 13px !important; }
    .osztaly-table-wrapper { display: none !important; }
    .osztaly-mobile-view { display: grid; gap: 24px; }
    .mobile-class-section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #1b5b8d; font-size: 16px; letter-spacing: -.01em; }
    .mobile-class-section h2::before { width: 4px; height: 19px; border-radius: 8px; background: #1e83bb; content: ""; }
    .mobile-class-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
    .mobile-class-card { min-width: 0; padding: 17px; border: 1px solid #e2eaf1; border-radius: 13px; background: #fff; box-shadow: 0 7px 20px rgba(22,57,88,.045); }
    .mobile-class-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #edf1f5; }
    .mobile-class-card h3 { margin: 0; color: #183b67; font-size: 21px; letter-spacing: -.025em; line-height: 1.15; }
    .mobile-class-type { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; background: #edf6fb; color: #33749f; font-size: 10px; font-weight: 700; }
    .mobile-class-type::before { width: 6px; height: 6px; border-radius: 50%; background: #27a89a; content: ""; }
    .mobile-class-branch { margin: 10px 0 0; color: #63788c; font-size: 11px; font-weight: 700; }
    .mobile-specialties { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
    .mobile-specialties li { position: relative; padding-left: 15px; color: #52667a; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
    .mobile-specialties li::before { position: absolute; top: .58em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #55a3cf; content: ""; }
}

@media (min-width: 520px) and (max-width: 760px) {
    .mobile-class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
    .osztalyaink { padding-right: 12px !important; padding-left: 12px !important; }
    .osztaly-header { padding: 23px 18px !important; }
    .mobile-class-card { padding: 14px; }
    .mobile-class-card h3 { font-size: 19px; }
    .mobile-class-type { font-size: 9px; }
}
