:root {
    --golhisar-orange: #f59120;
    --golhisar-orange-dark: #d97a10;
    --golhisar-green: #8cc63f;
    --golhisar-green-dark: #6fa82e;
    --golhisar-blue: #008ed4;
    --golhisar-blue-dark: #006fa3;
    --bs-primary: var(--golhisar-blue);
    --bs-primary-rgb: 0, 142, 212;
    --bs-success: var(--golhisar-green);
    --bs-success-rgb: 140, 198, 63;
    --public-surface: #f4f6f9;
    --public-card-border: rgba(15, 23, 42, 0.06);
    --public-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --public-shadow-hover: 0 8px 28px rgba(15, 23, 42, 0.1);
    --public-radius: 1rem;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--public-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

.text-brand-blue {
    color: var(--golhisar-blue) !important;
}

.text-brand-orange {
    color: var(--golhisar-orange) !important;
}

/* —— Kurumsal marka bloğu (logo + GÖLMEK) —— */
.brand-block {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-block--link:hover .brand-block__title {
    color: var(--golhisar-green);
}

.brand-block__logo {
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.brand-block__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-block__title {
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: color 0.15s ease;
}

.brand-block__subtitle {
    font-weight: 500;
    opacity: 0.92;
}

.brand-block__municipality {
    font-size: 0.72rem;
    opacity: 0.75;
    margin-top: 0.15rem;
}

/* Navbar */
.brand-block--navbar .brand-block__logo {
    height: 52px;
    width: auto;
}

.brand-block--navbar .brand-block__title {
    font-size: 1.15rem;
    color: #fff;
}

.brand-block--navbar .brand-block__subtitle {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
}

.navbar-golhisar {
    background: linear-gradient(135deg, var(--golhisar-orange) 0%, #e88712 55%, var(--golhisar-orange-dark) 100%);
    padding: 0.65rem 0;
    box-shadow: 0 4px 24px rgba(217, 122, 16, 0.22);
    border-bottom: 3px solid rgba(255, 255, 255, 0.12);
}

.navbar-golhisar__brand {
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .navbar-golhisar__brand {
        margin-right: 2.25rem;
        padding-right: 2.25rem;
        border-right: 1px solid rgba(255, 255, 255, 0.22);
    }

    .navbar-golhisar__menu {
        gap: 0.3rem;
        margin-left: 0.5rem;
    }

    .navbar-golhisar__actions {
        gap: 0.25rem;
        margin-left: 1rem;
    }
}

.navbar-golhisar .nav-link {
    color: rgba(255, 255, 255, 0.94) !important;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.navbar-golhisar .nav-link:hover:not(.active):not(.btn) {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.14);
}

.navbar-golhisar .nav-link.active:not(.btn) {
    color: var(--golhisar-orange-dark) !important;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.navbar-golhisar .nav-link.btn {
    padding: 0.4rem 1.15rem;
    margin-left: 0.35rem;
}

.navbar-golhisar .navbar-user {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
}

.navbar-golhisar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
    padding: 0.4rem 0.55rem;
}

.navbar-golhisar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

@media (max-width: 991.98px) {
    .navbar-golhisar__brand {
        margin-right: auto;
    }

    .navbar-golhisar .navbar-collapse {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .navbar-golhisar__menu .nav-item,
    .navbar-golhisar__actions .nav-item {
        margin-bottom: 0.15rem;
    }

    .navbar-golhisar .nav-link {
        white-space: normal;
        padding: 0.5rem 0.85rem;
    }

    .navbar-golhisar .nav-link.btn {
        margin-left: 0;
        margin-top: 0.35rem;
        display: inline-block;
    }
}

.btn-golhisar-accent {
    background-color: var(--golhisar-green);
    border-color: var(--golhisar-green);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(111, 168, 46, 0.35);
}

.btn-golhisar-accent:hover {
    background-color: var(--golhisar-green-dark);
    border-color: var(--golhisar-green-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(111, 168, 46, 0.4);
}

.btn-primary {
    background-color: var(--golhisar-blue);
    border-color: var(--golhisar-blue);
}

.btn-primary:hover {
    background-color: var(--golhisar-blue-dark);
    border-color: var(--golhisar-blue-dark);
}

.bg-primary {
    background-color: var(--golhisar-blue) !important;
}

.table-primary {
    --bs-table-bg: rgba(0, 142, 212, 0.12);
    --bs-table-color: #212529;
}

/* Footer */
.footer-golhisar {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    color: rgba(255, 255, 255, 0.75);
}

.footer-golhisar .brand-block__title {
    color: #fff;
    font-size: 1.1rem;
}

.footer-golhisar .brand-block__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
}

.footer-golhisar .brand-block__municipality {
    color: var(--golhisar-orange);
    opacity: 1;
}

.footer-golhisar .brand-block__logo {
    height: 64px;
    width: auto;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copy-muted {
    color: rgba(255, 255, 255, 0.5);
}

/* Login */
.login-page .brand-block {
    flex-direction: column;
    text-align: center;
}

.brand-block--login .brand-block__logo {
    height: 100px;
    width: auto;
}

.brand-block--login .brand-block__title {
    font-size: 1.75rem;
    color: var(--golhisar-orange);
}

.brand-block--login .brand-block__subtitle {
    font-size: 1rem;
    color: var(--golhisar-blue);
}

/* Hakkımızda hero */
.brand-hero-banner {
    background: linear-gradient(135deg, var(--golhisar-orange) 0%, var(--golhisar-blue) 100%);
}

.brand-block--hero .brand-block__logo {
    height: 90px;
    width: auto;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.35rem;
}

.brand-block--hero .brand-block__title {
    font-size: 1.5rem;
    color: #fff;
}

.brand-block--hero .brand-block__subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.brand-block--hero .brand-block__municipality {
    color: var(--golhisar-green);
    font-weight: 600;
    opacity: 1;
}

/* Panel sidebar */
.panel-sidebar-brand {
    background: linear-gradient(135deg, var(--golhisar-orange) 0%, var(--golhisar-blue) 100%) !important;
    border-bottom: 3px solid var(--golhisar-green);
}

.brand-block--sidebar .brand-block__logo {
    height: 48px;
    width: auto;
}

.brand-block--sidebar .brand-block__title {
    font-size: 0.95rem;
    color: #fff;
}

.brand-block--sidebar .brand-block__subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Kurumsal ana sayfa */
.public-main {
    background-color: var(--public-surface);
}

.public-tab-panel {
    min-height: calc(100vh - 160px);
}

.public-section {
    animation: publicTabFadeIn 0.25s ease;
}

@keyframes publicTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.public-section-header {
    border-left: 4px solid var(--golhisar-orange);
    padding-left: 1rem;
}

.empty-state .bi {
    opacity: 0.5;
}

.navbar .nav-link.active {
    font-weight: 600;
}

.stat-card {
    border-left: 4px solid var(--golhisar-green);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.login-card {
    max-width: 480px;
    margin: 0 auto;
}

.login-card.register-form-card {
    max-width: 640px;
}

.login-page-body {
    background: linear-gradient(180deg, #eef1f5 0%, #f8f9fa 100%);
}

.login-type-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.login-type-switcher--triple {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 575.98px) {
    .login-type-switcher--triple {
        grid-template-columns: 1fr;
    }
}

.login-type-btn--admin.is-active {
    border-color: var(--golhisar-orange);
    background: linear-gradient(180deg, rgba(243, 112, 33, 0.12) 0%, rgba(243, 112, 33, 0.04) 100%);
}

.login-type-btn--admin.is-active i {
    color: var(--golhisar-orange);
}

.login-staff-link a {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.login-staff-link a:hover {
    opacity: 1;
    color: var(--golhisar-blue) !important;
}

.login-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    background: #fff;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.login-type-btn i {
    font-size: 1.5rem;
    color: var(--golhisar-blue);
}

.login-type-btn__title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.login-type-btn__hint {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.2;
}

.login-type-btn:hover {
    border-color: var(--golhisar-blue);
    background: rgba(0, 142, 212, 0.04);
}

.login-type-btn.is-active {
    border-color: var(--golhisar-blue);
    background: linear-gradient(180deg, rgba(0, 142, 212, 0.1) 0%, rgba(0, 142, 212, 0.04) 100%);
    color: var(--golhisar-blue-dark);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 142, 212, 0.15);
}

.login-type-btn.is-active i {
    color: var(--golhisar-orange);
}

.login-type-btn.is-active .login-type-btn__hint {
    color: var(--golhisar-blue);
}

.login-fields-panel__label {
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 3px solid var(--golhisar-orange);
}

/* Login mod etiket göster/gizle – CSS ile garantili */
.login-label-staff  { display: none; }
.login-label-parent { display: inline; }

.login-mode-staff  .login-label-staff,
button.login-mode-staff  .login-label-staff  { display: inline; }
.login-mode-staff  .login-label-parent,
button.login-mode-staff  .login-label-parent { display: none; }

button.login-mode-parent .login-label-parent { display: inline; }
button.login-mode-parent .login-label-staff  { display: none; }

.attendance-row:hover {
    background-color: #f8f9fa;
}

.panel-sidebar .list-group-item.active {
    background-color: var(--golhisar-blue);
    border-color: var(--golhisar-blue);
}

.panel-sidebar .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
}

.quick-action-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    color: inherit;
}

.quick-action-card .card-body {
    text-align: center;
    padding: 1.5rem;
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--golhisar-blue);
}

.table-search {
    max-width: 320px;
}

.badge-attendance-rate {
    font-size: 0.9rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

.card-header {
    background-color: #fff;
    font-weight: 600;
}

/* —— GUBYO tarzı ana sayfa (landing) —— */
.public-main--landing {
    background: var(--public-surface);
}

.min-vh-50 {
    min-height: 50vh;
}

.home-hero {
    position: relative;
    background: linear-gradient(125deg, var(--golhisar-blue-dark) 0%, var(--golhisar-blue) 42%, #0098c7 58%, var(--golhisar-orange) 100%);
    overflow: hidden;
}

/* ── Hero Slider ──────────────────────────────────────────── */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity .85s ease, transform .85s ease;
    will-change: opacity, transform;
}

.hero-slide--active {
    opacity: 1;
    transform: translateX(0);
}

.hero-slide--exit {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity .85s ease, transform .85s ease;
}

/* Overlay (her zaman mevcuttur; fotoğraf yoksa yalnızca gradient görünür) */
.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(125deg, rgba(15, 48, 90, 0.72) 0%, rgba(0, 112, 185, 0.45) 50%, rgba(0, 0, 0, 0.25) 100%),
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Metin ve butonların altındaki buğu şeridi */
.hero-text-fog {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.28) 40%,
        transparent 70%
    );
    backdrop-filter: blur(0px);
    pointer-events: none;
}

.home-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.home-hero__title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    letter-spacing: -0.01em;
}

.home-hero__brand-panel {
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.home-hero__brand-panel .brand-block--hero .brand-block__title {
    color: var(--golhisar-orange);
}

.home-hero__brand-panel .brand-block--hero .brand-block__subtitle {
    color: var(--golhisar-blue);
}

.home-content {
    background: var(--public-surface);
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(245, 145, 32, 0.22);
}

.home-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: #1a2b3c;
    letter-spacing: -0.01em;
}

.home-section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--golhisar-blue);
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.home-section-link:hover {
    color: var(--golhisar-orange);
    background: rgba(0, 142, 212, 0.08);
}

.home-announce-item,
.home-event-item,
.home-exam-item,
.home-quick-tile {
    border-radius: var(--public-radius) !important;
    border: 1px solid var(--public-card-border) !important;
    box-shadow: var(--public-shadow) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-announce-item:hover,
.home-event-item:hover,
.home-exam-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--public-shadow-hover) !important;
}

.home-quick-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--public-shadow-hover) !important;
}

.home-date-badge {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    background: linear-gradient(145deg, var(--golhisar-blue) 0%, var(--golhisar-blue-dark) 100%);
    color: #fff;
    border-radius: 0.65rem;
    padding: 0.4rem 0.25rem;
    line-height: 1.1;
    box-shadow: 0 2px 8px rgba(0, 111, 163, 0.25);
}

.home-date-badge--event {
    background: linear-gradient(145deg, var(--golhisar-green) 0%, var(--golhisar-green-dark) 100%);
    box-shadow: 0 2px 8px rgba(111, 168, 46, 0.25);
}

.home-date-badge__day {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
}

.home-date-badge__mon {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.home-exam-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 142, 212, 0.1);
    color: var(--golhisar-blue);
    border-radius: 0.65rem;
    font-size: 1.1rem;
}

.home-instagram-wrap {
    min-height: 100%;
}

.home-instagram-card {
    min-height: 480px;
    border-radius: var(--public-radius) !important;
    border: 1px solid var(--public-card-border) !important;
    box-shadow: var(--public-shadow) !important;
    overflow: hidden;
}

/* Duyurular sayfası — sütun yüksekliği hizası */
.public-page-duyurular .public-duyurular-layout {
    align-items: flex-start !important;
}

.public-announce-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.public-announce-list .public-news-card {
    margin-bottom: 0 !important;
}

.public-duyurular-sidebar .home-instagram-card,
.public-duyurular-instagram .home-instagram-card {
    min-height: 0;
}

.public-duyurular-instagram .instagram-carousel--card .instagram-carousel__track {
    min-height: 320px;
    aspect-ratio: 4 / 5;
}

.public-duyurular-sidebar {
    position: sticky;
    top: 1rem;
}

.home-instagram-card__header {
    background: linear-gradient(90deg, #fdf497 0%, #fd5949 50%, #d6249f 100%);
    color: #fff;
    border-bottom: none;
}

.home-instagram-card__username {
    color: #fff !important;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.home-instagram-card__username:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

.home-instagram-card .card-body {
    min-height: 0;
}

.instagram-carousel--card {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.instagram-carousel--card .instagram-carousel__track {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 420px;
    height: auto;
    overflow: hidden;
    background: #1a1a1a;
}

.instagram-carousel--card .instagram-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-carousel--card .instagram-slide__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    background: #1a1a1a;
}

.instagram-carousel--card .instagram-slide__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    flex-shrink: 0;
}

.instagram-carousel--card .instagram-slide__caption {
    font-size: 0.7rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Instagram carousel (genel) */
.instagram-section {
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    border-top: 1px solid #e9ecef;
}

.instagram-carousel {
    max-width: 520px;
    margin: 0 auto;
}

.instagram-carousel__track {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #111;
}

.instagram-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 0;
}

.instagram-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.instagram-slide__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: #fff;
    text-decoration: none;
}

.instagram-slide__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    background: #1a1a1a;
}

.instagram-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.instagram-slide.is-active .instagram-slide__overlay,
.instagram-slide__link:hover .instagram-slide__overlay {
    opacity: 1;
}

.instagram-slide__overlay .bi-instagram {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.instagram-slide__caption {
    font-size: 0.85rem;
    line-height: 1.35;
}

.instagram-carousel__footer {
    background: #fff;
    border-top: 1px solid #eee;
}

.instagram-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    margin: 0 4px;
    background: #dee2e6;
    transition: background 0.2s ease, transform 0.2s ease;
}

.instagram-dot.is-active {
    background: #e1306c;
    transform: scale(1.2);
}

.instagram-thumb {
    display: block;
    width: 100%;
    border: 3px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.instagram-thumb.is-active {
    border-color: #e1306c;
}

.instagram-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.instagram-empty {
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .brand-block--navbar .brand-block__subtitle {
        display: none;
    }

    .brand-block--navbar .brand-block__logo {
        height: 44px;
    }
}

.brand-block--compact .brand-block__logo {
    height: 40px;
    width: auto;
}

.brand-block--compact .brand-block__title {
    font-size: 0.9rem;
    color: var(--golhisar-orange);
}

.brand-block--compact .brand-block__subtitle {
    font-size: 0.65rem;
    color: var(--golhisar-blue);
}

@media (max-width: 575.98px) {
    .footer-golhisar .brand-block {
        flex-direction: column;
        text-align: center;
    }
}

/* —— Genel alt sayfalar (Hakkımızda, Duyurular, vb.) —— */
.public-main--page {
    background: var(--public-surface);
}

.public-page-hero {
    position: relative;
    overflow: hidden;
}

.public-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 85% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.public-page-hero--about {
    background: linear-gradient(135deg, var(--golhisar-blue-dark) 0%, var(--golhisar-blue) 60%, var(--golhisar-green) 100%);
}

.public-page-hero--staff {
    background: linear-gradient(135deg, #1a3a5c 0%, var(--golhisar-blue) 55%, #2e7d52 100%);
}

.public-page-hero--gallery {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, var(--golhisar-blue-dark) 100%);
}

/* ── Ana Sayfa Galeri ────────────────────────────────── */
.home-gallery-section {
    background: #f4f6f9;
    padding: 3rem 0 0;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 576px) {
    .home-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .home-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.home-gallery-item {
    cursor: pointer;
}
.home-gallery-item:hover .home-gallery-overlay {
    opacity: 1;
}
.home-gallery-item:hover .home-gallery-img {
    transform: scale(1.04);
}

/* Sabit oran çerçeve — padding-top triki, CSS'siz de çalışır */
.home-gallery-frame {
    position: relative;
    width: 100%;
    padding-top: 75%;   /* 4:3 */
    border-radius: .75rem;
    overflow: hidden;
    background: #1a2a3a;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.home-gallery-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.home-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,59,102,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
    border-radius: .75rem;
}
.home-gallery-overlay__icon {
    font-size: 1.8rem;
    color: #fff;
}
.home-gallery-caption {
    font-size: .78rem;
    color: #555;
    text-align: center;
    margin: .4rem 0 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Admin galeri yönetimi çerçeve */
.gallery-admin-frame {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: .5rem .5rem 0 0;
    background: #e9ecef;
}
.gallery-admin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Deneme PDF Kartları ─────────────────────────────── */
.exam-pdf-card {
    border-radius: .75rem !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.exam-pdf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
}
.exam-pdf-card__icon {
    font-size: 2.5rem;
    line-height: 1;
    color: #dc3545;
}

/* ── Personel Kartları ───────────────────────────────── */
.staff-card {
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    border-radius: 1rem !important;
}
.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}
.staff-card__photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--golhisar-blue);
    background: linear-gradient(135deg, var(--golhisar-blue-dark), var(--golhisar-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}
.staff-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    border: none;
}
.staff-card__avatar {
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
}
.staff-card__name {
    font-size: .95rem;
    color: #1a2a3a;
}
.staff-card__title {
    background: var(--golhisar-blue);
    color: #fff;
    font-size: .72rem;
    letter-spacing: .03em;
    padding: .25em .65em;
    border-radius: 999px;
}
.staff-card__branch {
    font-size: .78rem;
}
.staff-card__btn {
    font-size: .8rem;
    border-radius: 999px;
    padding: .25rem .85rem;
}

/* Modal fotoğraf */
.staff-modal__photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--golhisar-blue);
    background: linear-gradient(135deg, var(--golhisar-blue-dark), var(--golhisar-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.staff-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    border: none;
}
.staff-modal__avatar {
    font-size: 3rem;
    color: #fff;
    line-height: 1;
}

/* ── Cropper.js kırpma modalı ──────────────────────── */
.cropper-container { display: block !important; }

/* Kırpma kutusunu daire yap */
.cropper-crop-box { border-radius: 50% !important; }
.cropper-view-box {
    border-radius: 50% !important;
    outline: 2px solid rgba(255,255,255,.85) !important;
    outline-offset: -2px;
}
.cropper-face { background: transparent !important; }

/* Dış karanlık örtü opaklık */
.cropper-modal { opacity: .7 !important; }

/* Küçük daire önizleme */
.crop-circle-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--golhisar-blue);
    background: #e9ecef;
    flex-shrink: 0;
}
.crop-circle-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.public-page-hero--news {
    background: linear-gradient(135deg, var(--golhisar-orange) 0%, #c45a00 50%, var(--golhisar-blue) 100%);
}

.public-page-hero--exam {
    background: linear-gradient(135deg, var(--golhisar-blue-dark) 0%, var(--golhisar-blue) 70%, #1a5276 100%);
}

.public-page-hero--events {
    background: linear-gradient(135deg, var(--golhisar-green-dark) 0%, var(--golhisar-green) 50%, var(--golhisar-blue) 100%);
}

.public-page-hero__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.public-page-hero__title {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.public-page-hero__logo-box .brand-block--hero .brand-block__title {
    color: var(--golhisar-orange);
}

.public-subnav {
    background: #fff;
    border-radius: var(--public-radius);
    padding: 0.65rem 1rem;
    border: 1px solid var(--public-card-border);
    box-shadow: var(--public-shadow);
}

.public-subnav .nav-link {
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 2rem;
    padding: 0.45rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.public-subnav .nav-link.active {
    background: var(--golhisar-blue);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 142, 212, 0.3);
}

.public-subnav .nav-link:not(.active):hover {
    background: rgba(0, 142, 212, 0.1);
    color: var(--golhisar-blue);
}

.public-main .card.border-0.shadow-sm,
.public-main .public-feature-card,
.public-main .public-news-card,
.public-main .public-exam-card,
.public-main .public-event-card,
.public-main .public-link-tile {
    border-radius: var(--public-radius) !important;
    border: 1px solid var(--public-card-border) !important;
    box-shadow: var(--public-shadow) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-stat-pill {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    text-align: center;
    color: #fff;
}

.public-stat-pill--muted {
    opacity: 0.85;
}

.public-stat-pill__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.public-stat-pill__label {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
}

.public-feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.public-feature-card__icon--blue {
    background: rgba(0, 142, 212, 0.12);
    color: var(--golhisar-blue);
}

.public-feature-card__icon--green {
    background: rgba(76, 175, 80, 0.12);
    color: var(--golhisar-green-dark);
}

.public-feature-card__icon--orange {
    background: rgba(243, 112, 33, 0.12);
    color: var(--golhisar-orange);
}

.public-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-check-list li {
    padding: 0.35rem 0 0.35rem 1.75rem;
    position: relative;
}

.public-check-list li::before {
    content: "\F26B";
    font-family: bootstrap-icons;
    position: absolute;
    left: 0;
    color: var(--golhisar-green);
}

.public-cta-card {
    background: linear-gradient(135deg, var(--golhisar-blue) 0%, var(--golhisar-blue-dark) 100%);
}

.home-date-badge--new {
    background: var(--golhisar-orange);
}

.public-news-card:hover,
.public-exam-card:hover,
.public-event-card:hover,
.public-link-tile:hover,
.public-main .public-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--public-shadow-hover) !important;
}

.public-exam-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 142, 212, 0.12);
    color: var(--golhisar-blue);
    border-radius: 0.75rem;
    font-size: 1.35rem;
}

.public-exam-card--urgent {
    border-left: 4px solid #dc3545 !important;
}

.public-exam-card--soon {
    border-left: 4px solid var(--golhisar-orange) !important;
}

.public-event-card__date-col {
    min-width: 72px;
}

.public-event-card__date-col .home-date-badge {
    width: 100%;
    min-height: 100%;
    border-radius: 0.5rem 0 0 0.5rem;
}

.public-link-tile:hover .fw-semibold {
    color: var(--golhisar-blue) !important;
}

.public-sidebar-card .card-header {
    border-bottom: 1px solid #eee;
}

/* —— Öğretmen paneli: yoklama & deneme notu —— */
.wizard-steps {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wizard-step {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #fff;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-size: 0.875rem;
}

.wizard-step.active {
    border-color: var(--golhisar-blue);
    color: var(--golhisar-blue);
    background: rgba(0, 142, 212, 0.06);
}

.wizard-step.done {
    border-color: var(--golhisar-green);
    color: var(--golhisar-green-dark);
}

.wizard-step__num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #e9ecef;
    font-size: 0.8rem;
}

.wizard-step.active .wizard-step__num {
    background: var(--golhisar-blue);
    color: #fff;
}

.wizard-step.done .wizard-step__num {
    background: var(--golhisar-green);
    color: #fff;
}

.class-pick-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    border: 2px solid transparent;
}

.class-pick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 142, 212, 0.15) !important;
    border-color: var(--golhisar-blue);
}

.class-pick-card__level {
    font-size: 2rem;
    font-weight: 800;
    color: var(--golhisar-blue);
    line-height: 1;
}

.lesson-pick-card {
    border: 2px solid #e9ecef;
    transition: all 0.15s ease;
}

.lesson-pick-card:hover {
    border-color: var(--golhisar-blue);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 142, 212, 0.12);
}

.lesson-pick-card--active {
    border-color: var(--golhisar-blue);
    background: rgba(0, 142, 212, 0.08);
}

.lesson-pick-card__icon {
    font-size: 1.25rem;
    color: var(--golhisar-blue);
    display: block;
    margin-bottom: 0.25rem;
}

.score-entry-table .score-input {
    max-width: 7rem;
    margin-left: auto;
    font-weight: 600;
}

.teacher-sticky-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.attendance-stats-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.attendance-stat {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.attendance-stat--present {
    color: var(--golhisar-green-dark);
}

.attendance-stat--absent {
    color: #dc3545;
}

.attendance-student-list .attendance-student-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
}

.attendance-student-item__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attendance-student-item__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 142, 212, 0.12);
    color: var(--golhisar-blue);
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.attendance-toggle .btn {
    min-width: 4.5rem;
    font-weight: 600;
}

.attendance-toggle .btn-check:checked + .btn-outline-success {
    background-color: var(--golhisar-green);
    border-color: var(--golhisar-green);
    color: #fff;
}

.attendance-toggle .btn-check:checked + .btn-outline-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.session-meta-bar {
    background: #f8fafb;
}

@media (max-width: 576px) {
    .attendance-student-list .attendance-student-item {
        flex-direction: column;
        align-items: stretch;
    }

    .attendance-toggle {
        width: 100%;
    }

    .attendance-toggle .btn {
        flex: 1;
    }
}

/* Öğrenci özeti: devamsızlık + not */
.student-overview-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.student-overview-item__identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
}

.student-overview-item__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.attendance-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.35rem 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.attendance-mini__var {
    color: var(--golhisar-green-dark);
}

.attendance-mini__yok {
    color: #dc3545;
}

.exam-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.exam-mini__chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.35rem 0.6rem;
    background: rgba(0, 142, 212, 0.08);
    border: 1px solid rgba(0, 142, 212, 0.2);
    border-radius: 0.5rem;
    min-width: 4.5rem;
}

.exam-mini__score {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--golhisar-blue);
    line-height: 1.2;
}

.exam-mini__label {
    font-size: 0.65rem;
    color: #6c757d;
    text-align: center;
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .student-overview-item {
        flex-direction: column;
        align-items: stretch;
    }

    .student-overview-item__stats {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Deneme sınavı girişi — öğretmen paneli */
.deneme-wizard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.deneme-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.deneme-stepper__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #adb5bd;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.deneme-stepper__item.is-active {
    color: var(--golhisar-blue);
}

.deneme-stepper__item.is-done {
    color: var(--golhisar-green-dark);
}

.deneme-stepper__dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #e9ecef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.deneme-stepper__item.is-active .deneme-stepper__dot {
    background: var(--golhisar-blue);
    color: #fff;
}

.deneme-stepper__item.is-done .deneme-stepper__dot {
    background: var(--golhisar-green);
    color: #fff;
}

.deneme-stepper__line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.75rem;
    min-width: 1.5rem;
}

.deneme-stepper__line.is-done {
    background: var(--golhisar-green);
}

/* Özel toggle — taşma yok */
.deneme-option-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
    width: 100%;
}

.deneme-option-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.deneme-option-toggle__track {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    background: #ced4da;
    border-radius: 1rem;
    flex-shrink: 0;
    transition: background 0.2s;
}

.deneme-option-toggle__thumb {
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.2rem;
    height: 1.2rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.deneme-option-toggle__input:checked + .deneme-option-toggle__track {
    background: var(--golhisar-blue);
}

.deneme-option-toggle__input:checked + .deneme-option-toggle__track .deneme-option-toggle__thumb {
    transform: translateX(1.25rem);
}

.deneme-option-toggle__input:focus-visible + .deneme-option-toggle__track {
    outline: 2px solid var(--golhisar-blue);
    outline-offset: 2px;
}

.deneme-option-toggle__text {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.deneme-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
}

.deneme-subject-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    min-height: 2.75rem;
}

.deneme-subject-chip__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.deneme-subject-chip:has(.deneme-subject-chip__input:checked) {
    border-color: var(--golhisar-blue);
    background: rgba(0, 142, 212, 0.1);
    color: var(--golhisar-blue);
}

.deneme-empty-hint {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    color: #adb5bd;
    font-size: 0.9rem;
}

.deneme-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.deneme-meta-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    background: #f1f3f5;
    border-radius: 1rem;
    color: #495057;
}

.deneme-meta-pill--warn {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.deneme-results-panel {
    overflow: hidden;
}

.deneme-student-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
}

.deneme-student-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.deneme-student-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.deneme-student-card__identity {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.deneme-student-card__num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--golhisar-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deneme-student-card__name {
    font-weight: 700;
    font-size: 0.95rem;
}

.deneme-student-card__net {
    text-align: right;
    flex-shrink: 0;
}

.deneme-student-card__net small {
    display: block;
    font-size: 0.65rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.deneme-student-card__net .deneme-row-net {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--golhisar-blue);
    line-height: 1.2;
}

.deneme-student-card__subjects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem;
    padding: 0.85rem 1.15rem 1rem;
}

.deneme-subject-block {
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 0.55rem 0.65rem;
}

.deneme-subject-block__title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deneme-subject-block__inputs {
    display: flex;
    gap: 0.35rem;
}

.deneme-count-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
}

.deneme-count-field span {
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.deneme-count-field--d span { color: #198754; }
.deneme-count-field--y span { color: #dc3545; }
.deneme-count-field--b span { color: #6c757d; }

.deneme-count-field input {
    width: 100%;
    max-width: 3.5rem;
    padding: 0.3rem 0.2rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
    border-radius: 0.35rem;
}

.deneme-count-field input:focus {
    border-color: var(--golhisar-blue);
    box-shadow: 0 0 0 2px rgba(0, 142, 212, 0.15);
    outline: none;
}

.deneme-entry-actions {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

.deneme-entry-actions__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.deneme-entry-actions__confirm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    margin-left: auto;
}

.deneme-entry-actions__hint {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
    line-height: 1.3;
}

.deneme-success-card .deneme-success-icon {
    font-size: 3.5rem;
    color: var(--golhisar-green);
    line-height: 1;
}

@media (max-width: 767px) {
    .deneme-stepper__text {
        display: none;
    }

    .deneme-stepper__line {
        margin: 0 0.4rem;
    }

    .deneme-student-card__subjects {
        grid-template-columns: 1fr 1fr;
    }

    .deneme-entry-actions__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .deneme-entry-actions__confirm {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

    .deneme-entry-actions__hint {
        text-align: center;
    }

    .deneme-entry-actions__confirm .btn {
        width: 100%;
    }
}

/* Sınıf seçim kartları (admin takip) */
.class-pick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
    min-height: 5rem;
}

.class-pick-card:hover {
    border-color: var(--golhisar-blue);
    background: rgba(0, 142, 212, 0.05);
    color: inherit;
}

.class-pick-card--active {
    border-color: var(--golhisar-blue);
    background: rgba(0, 142, 212, 0.1);
}

.class-pick-card--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.class-pick-card__level {
    font-weight: 700;
    font-size: 1.1rem;
}

.class-pick-card__count {
    font-size: 0.8rem;
    color: #6c757d;
}

.stat-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card__label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-card--success .stat-card__value { color: var(--golhisar-green-dark); }
.stat-card--danger .stat-card__value { color: #dc3545; }
.stat-card--primary .stat-card__value { color: var(--golhisar-blue); }
.stat-card--info .stat-card__value { color: #0dcaf0; }

.deneme-subject-detail__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

/* Veli paneli v2 */
.parent-dashboard--v2 {
    background: linear-gradient(180deg, rgba(0, 142, 212, 0.04) 0%, transparent 320px);
}

.parent-hero {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.parent-hero__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--golhisar-blue);
    font-weight: 700;
}

.parent-hero__title {
    font-size: 1.75rem;
    font-weight: 800;
}

.parent-stat-card {
    position: relative;
    padding: 1.25rem;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: 110px;
}

.parent-stat-card__icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
    opacity: 0.2;
}

.parent-stat-card__label {
    display: block;
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 600;
}

.parent-stat-card__value {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.25rem;
}

.parent-stat-card__delta {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.parent-stat-card--green { border-left: 4px solid var(--golhisar-green); }
.parent-stat-card--red { border-left: 4px solid #dc3545; }
.parent-stat-card--blue { border-left: 4px solid var(--golhisar-blue); }
.parent-stat-card--orange { border-left: 4px solid var(--golhisar-orange, #f37021); }

.parent-card {
    border-radius: 1rem !important;
}

.parent-exam-item {
    border: 1px solid #eee;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: #fafbfc;
}

.parent-exam-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.parent-exam-item__score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--golhisar-blue);
}

.parent-exam-item__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.parent-exam-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 1rem;
    background: #fff;
}

.parent-exam-pill--d { color: #198754; border: 1px solid rgba(25, 135, 84, 0.3); }
.parent-exam-pill--y { color: #dc3545; border: 1px solid rgba(220, 53, 69, 0.3); }
.parent-exam-pill--b { color: #6c757d; border: 1px solid #dee2e6; }

.parent-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.parent-subject-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.65rem;
    text-align: center;
}

.parent-subject-card__name {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.parent-subject-card__nums {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.parent-subject-card__net {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--golhisar-blue);
}

.parent-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.parent-summary-list li:last-child {
    border-bottom: none;
}

/* Admin sınav yönetimi */
.admin-exam-edit-card {
    border: 1px solid #e9ecef;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-exam-edit-card--active {
    border-color: var(--golhisar-blue);
    box-shadow: 0 4px 20px rgba(0, 142, 212, 0.12);
}

.admin-exam-info {
    background: #f8f9fa;
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
}

.admin-exam-info__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #eee;
}

.admin-exam-info__row:last-of-type {
    border-bottom: none;
}

.admin-exam-info__label {
    color: #6c757d;
    font-weight: 600;
    flex-shrink: 0;
}

.admin-exam-info__subjects {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.admin-exam-table tr.table-primary {
    --bs-table-bg: rgba(0, 142, 212, 0.08);
}

/* —— Veli: bugünkü yoklama —— */
.parent-today-card {
    border-left: 4px solid #dee2e6;
}

.parent-today-card--ok {
    border-left-color: var(--golhisar-green);
    background: linear-gradient(90deg, rgba(140, 198, 63, 0.08) 0%, #fff 100%);
}

.parent-today-card--warn {
    border-left-color: #dc3545;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.06) 0%, #fff 100%);
}

.parent-today-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.parent-today-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.parent-today-chip--ok {
    background: rgba(140, 198, 63, 0.15);
    color: #4a7a18;
}

.parent-today-chip--bad {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}

/* —— Deneme karnesi (yazdır / PDF) —— */
.deneme-karnesi-sheet {
    max-width: 820px;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--public-shadow);
}

.deneme-karnesi-info-box {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
}

.deneme-karnesi-info-box__label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.15rem;
}

.deneme-karnesi-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(0, 142, 212, 0.08) 0%, rgba(245, 145, 32, 0.08) 100%);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.deneme-karnesi-summary__net span {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

.deneme-karnesi-summary__net strong {
    font-size: 2rem;
    color: var(--golhisar-blue);
}

.deneme-karnesi-summary__stats {
    display: flex;
    gap: 1rem;
    font-weight: 700;
}

.deneme-karnesi-table th {
    background: #f8f9fa;
}

@media print {
    .no-print,
    .navbar,
    .footer-golhisar {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .deneme-karnesi-sheet {
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }
}

/* —— Yaklaşan deneme takvimi (admin) —— */
.deneme-calendar-card .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.deneme-calendar {
    min-height: 360px;
}

.deneme-calendar__toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.deneme-calendar__heading {
    min-width: 0;
}

.deneme-calendar__month {
    color: #1a2b3c;
    letter-spacing: -0.01em;
}

.deneme-calendar__today-label {
    font-size: 0.78rem;
}

.deneme-calendar__today-btn {
    white-space: nowrap;
}

.deneme-calendar__weekdays,
.deneme-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
}

.deneme-calendar__weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    padding: 0.35rem 0;
}

.deneme-calendar__day {
    min-height: 52px;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    background: #fff;
    color: #212529;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.deneme-calendar__day-num {
    font-size: 0.95rem;
    line-height: 1;
}

.deneme-calendar__day:not(:disabled):not(.deneme-calendar__day--outside):hover {
    border-color: var(--golhisar-blue);
    background: rgba(0, 142, 212, 0.08);
    transform: translateY(-1px);
}

.deneme-calendar__day.is-today {
    border-color: var(--golhisar-orange);
    box-shadow: inset 0 0 0 2px rgba(245, 145, 32, 0.35);
}

.deneme-calendar__day.is-selected {
    background: linear-gradient(145deg, var(--golhisar-blue) 0%, var(--golhisar-blue-dark) 100%);
    border-color: var(--golhisar-blue-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 142, 212, 0.28);
}

.deneme-calendar__day--outside {
    opacity: 0.28;
    background: #f8f9fa;
    border-style: dashed;
}

.deneme-calendar__day--past {
    background: #f1f3f5;
    color: #adb5bd;
    cursor: not-allowed;
}

.deneme-calendar__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.deneme-calendar__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.deneme-calendar__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.deneme-calendar__dot--selected {
    background: var(--golhisar-blue);
}

.deneme-calendar__dot--today {
    border: 2px solid var(--golhisar-orange);
    background: #fff;
}

@media (max-width: 575.98px) {
    .deneme-calendar__toolbar {
        grid-template-columns: auto 1fr auto;
    }

    .deneme-calendar__today-btn {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .deneme-calendar__grid,
    .deneme-calendar__weekdays {
        gap: 0.25rem;
    }

    .deneme-calendar__day {
        min-height: 42px;
        border-radius: 0.5rem;
    }

    .deneme-calendar__day-num {
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   ANA SAYFA RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 991px) ─────────────────────────────────── */
@media (max-width: 991.98px) {
    /* Hero yüksekliği */
    .min-vh-50 { min-height: 44vh; }

    /* Hero başlık küçült */
    .home-hero__title { font-size: 2rem; }
    .home-hero__lead  { font-size: 1rem; }

    /* Hero buğu şeridini tam genişliğe yay (mobilde metin tam ekran) */
    .hero-text-fog {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.15) 60%,
            transparent 100%
        );
    }

    /* İçerik bölümleri — dikey boşlukları azalt */
    .home-content .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }

    /* Instagram kartı yüksekliği tablet'te gerekmez */
    .home-instagram-card { min-height: 360px; }
    .home-instagram-wrap { min-height: 0; }

    /* Galeri bölümü padding */
    .home-gallery-section { padding-top: 2rem; }
}

/* ── Mobil (≤ 767px) ──────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Hero */
    .min-vh-50 { min-height: 52vh; }
    .home-hero__title { font-size: 1.75rem; }
    .home-hero__lead  { font-size: 0.95rem; }
    .home-hero__badge { font-size: 0.78rem; padding: 0.3rem 0.8rem; }

    /* Hero padding (row içi py-5 → py-4 görünümü) */
    .home-hero .row.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

    /* Butonları küçült */
    .home-hero .btn-lg { padding: 0.5rem 1rem; font-size: 0.95rem; }

    /* İçerik boşlukları */
    .home-content .container { padding-top: 2rem; padding-bottom: 2rem; }
    .home-content .row.g-4.mb-5 { margin-bottom: 2rem !important; }

    /* Section başlığı */
    .home-section-title { font-size: 1.1rem; }
    .home-section-link  { font-size: 0.82rem; padding: 0.25rem 0.6rem; }

    /* Duyuru / etkinlik kartı */
    .home-announce-item .card-body,
    .home-event-item .card-body { padding: 0.75rem 1rem; gap: 0.75rem; }

    /* Tarih rozeti küçük */
    .home-date-badge { width: 48px; }
    .home-date-badge__day { font-size: 1.05rem; }
    .home-date-badge__mon { font-size: 0.58rem; }

    /* Sınav satırı */
    .home-exam-item .card-body { padding: 0.6rem 0.9rem; }
    .home-exam-icon { width: 34px; height: 34px; font-size: 0.95rem; }

    /* Instagram kartı mobilde daha kısa */
    .home-instagram-card { min-height: 260px; }

    /* Galeri ızgara — 2 kolon sabit */
    .home-gallery-section { padding-top: 1.5rem; }
    .home-gallery-grid { gap: 0.6rem; }

    /* Hızlı kısayol şeridi — 2x2 */
    .home-quick-strip.row { margin-top: 0; }
    .home-quick-tile .card-body { padding: 1.1rem 0.5rem; }
    .home-quick-tile .card-body i.fs-3 { font-size: 1.4rem !important; }
    .home-quick-tile .card-body div.fw-semibold { font-size: 0.82rem; }
}

/* ── Küçük Mobil (≤ 575px) ────────────────────────────── */
@media (max-width: 575.98px) {
    /* Hero tam mobil */
    .min-vh-50 { min-height: 55vh; }
    .home-hero__title { font-size: 1.55rem; }

    /* Yazı satırını sıkıştır */
    .home-hero .col-lg-7 p.mb-4 { font-size: 0.85rem; margin-bottom: 1rem !important; }

    /* Butonları tam genişliğe yay */
    .home-hero .d-flex.flex-wrap.gap-2 { flex-direction: column; }
    .home-hero .btn-lg { width: 100%; text-align: center; }

    /* Duyuru özet metni */
    .home-announce-item .card-body p.small { display: none; }

    /* Galeri ızgara — 2 kolon, sıkı */
    .home-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .home-gallery-caption { display: none; }

    /* Kısayol kutucukları */
    .home-quick-tile .card-body { padding: 0.9rem 0.4rem; }
}

