/* ============================================================
   Hisar Akademi — Tema Override (Around teması üzerine)
   Marka rengi: #6E0D3E
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --hisar: #6E0D3E;
    --hisar-dark: #52092E;
    --hisar-darker: #3C0621;
    --hisar-light: #F7EDF2;
    --hisar-rgb: 110, 13, 62;
    --hisar-accent: #C9A24B; /* sıcak altın vurgu */

    /* Bootstrap primary'yi markaya bağla */
    --bs-primary: #6E0D3E;
    --bs-primary-rgb: 110, 13, 62;
    --bs-primary-text-emphasis: #52092E;
    --bs-primary-bg-subtle: #F7EDF2;
    --bs-primary-border-subtle: #E3C4D2;
    --bs-link-color: #6E0D3E;
    --bs-link-color-rgb: 110, 13, 62;
    --bs-link-hover-color: #52092E;
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body { font-family: var(--bs-body-font-family); }

/* ---- Buttons ---- */
.btn-primary {
    --bs-btn-bg: var(--hisar);
    --bs-btn-border-color: var(--hisar);
    --bs-btn-hover-bg: var(--hisar-dark);
    --bs-btn-hover-border-color: var(--hisar-dark);
    --bs-btn-active-bg: var(--hisar-darker);
    --bs-btn-active-border-color: var(--hisar-darker);
    --bs-btn-disabled-bg: var(--hisar);
    --bs-btn-disabled-border-color: var(--hisar);
}
.btn-outline-primary {
    --bs-btn-color: var(--hisar);
    --bs-btn-border-color: var(--hisar);
    --bs-btn-hover-bg: var(--hisar);
    --bs-btn-hover-border-color: var(--hisar);
    --bs-btn-active-bg: var(--hisar);
    --bs-btn-active-border-color: var(--hisar);
}

/* ---- Text / bg / links ---- */
.text-primary { color: var(--hisar) !important; -webkit-text-stroke: 0 !important; }
.bg-primary { background-color: var(--hisar) !important; }
.bg-primary-subtle { background-color: var(--hisar-light) !important; }
.link-primary { color: var(--hisar) !important; }
.link-primary:hover { color: var(--hisar-dark) !important; }
.badge.bg-primary { background-color: var(--hisar) !important; }
a { color: var(--hisar); }
a:hover { color: var(--hisar-dark); }

/* ============================================================
   FRONTEND
   ============================================================ */

.hisar-topbar {
    background: var(--hisar-darker);
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
}
.hisar-topbar a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.hisar-topbar a:hover { color: #fff; }

/* Navbar */
.hisar-navbar {
    background: #fff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.hisar-navbar .navbar-brand { font-weight: 800; color: var(--hisar); font-size: 1.85rem; letter-spacing: .3px; display: inline-flex; align-items: center; gap: .5rem; }
.hisar-navbar .navbar-brand-icon { height: 34px; width: auto; background-color: transparent; }
.hisar-navbar .nav-link { font-weight: 500; color: #2a2a2a; padding: .5rem 1rem; }
.hisar-navbar .nav-link:hover,
.hisar-navbar .nav-link.active { color: var(--hisar); }
.navbar .navbar-nav .nav-link { text-transform: none; }
.hisar-navbar .navbar-toggler { padding: .35rem .55rem; }
.hisar-navbar .navbar-toggler:focus { box-shadow: none; }
.hisar-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236E0D3E' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.hisar-navbar .dropdown-menu { border: 0; box-shadow: 0 12px 40px rgba(0, 0, 0, .12); border-radius: .75rem; padding: .5rem; }
.hisar-navbar .dropdown-item { border-radius: .5rem; font-weight: 500; }
.hisar-navbar .dropdown-item:hover { background: var(--hisar-light); color: var(--hisar); }

/* Hero */
.hisar-hero {
    position: relative;
    background: linear-gradient(120deg, var(--hisar-darker) 0%, var(--hisar) 60%, #8a1550 100%);
    color: #fff;
    overflow: hidden;
}
.hisar-hero::after {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(201, 162, 75, .28), transparent 70%);
    border-radius: 50%;
}
.hisar-hero-content { position: relative; z-index: 2; }
.hisar-hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.hisar-hero p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; }
.hisar-hero .btn-light { color: var(--hisar); font-weight: 600; }
.hisar-hero .stat-num { font-size: 2rem; font-weight: 800; color: var(--hisar-accent); }

.hisar-hero-carousel .carousel-control-prev,
.hisar-hero-carousel .carousel-control-next { width: 4%; opacity: .6; z-index: 3; }
.hisar-hero-carousel .carousel-control-prev:hover,
.hisar-hero-carousel .carousel-control-next:hover { opacity: 1; }
.hisar-hero-carousel .carousel-indicators { z-index: 3; margin-bottom: .5rem; }
.hisar-hero-carousel .carousel-indicators [data-bs-target] { background-color: #fff; opacity: .5; width: 10px; height: 10px; border-radius: 50%; border: 0; }
.hisar-hero-carousel .carousel-indicators .active { opacity: 1; }
.hisar-hero-carousel .carousel-item:not(.hisar-hero-media) { min-height: 540px; }
.hisar-hero-carousel .carousel-item:not(.hisar-hero-media) > .container { display: flex; align-items: center; min-height: inherit; }

/* Resimli hero: resim tam genişlik, kırpılmadan, yükseklik resmin oranına göre.
   min-height sadece metnin sığması için bir alt sınır; resim doğal olarak daha
   uzunsa (çoğu ekranda olduğu gibi) yükseklik tamamen resme göre belirlenir. */
.hisar-hero-media { min-height: 420px; }
.hisar-hero-media .hisar-hero-img { display: block; width: 100%; height: auto; }
.hisar-hero-media .hisar-hero-overlay { position: absolute; inset: 0; }
.hisar-hero-media .hisar-hero-content { position: absolute; inset: 0; display: flex; align-items: center; }

/* Section */
.section { padding: 4.5rem 0; }
.section-title { font-weight: 800; color: var(--hisar); }
.section-title span { color: var(--hisar); }
.section-sub { color: #6b6b6b; max-width: 640px; margin: 0 auto; }
.eyebrow {
    color: var(--hisar);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .78rem;
}

/* Discipline cards */
.discipline-card {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
    min-height: 220px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.discipline-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(var(--hisar-rgb), .28); }
.discipline-card .disc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.discipline-card:hover .disc-bg { transform: scale(1.08); }
.discipline-card .disc-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(60, 6, 33, .15) 0%, rgba(60, 6, 33, .85) 100%); }
.discipline-card .disc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.4rem; }
.discipline-card h3 { font-weight: 700; font-size: 1.25rem; margin: 0; color: #fff; }
.discipline-card .disc-count { font-size: .85rem; color: rgba(255, 255, 255, .8); }

/* Course cards */
.course-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, .12); }
.course-card .cc-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--hisar-light); }
.course-card .cc-img.cc-img-contain { object-fit: contain; }
.course-card .cc-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.course-card .cc-cat { color: var(--hisar); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.course-card h3 { font-size: 1.05rem; font-weight: 700; margin: .35rem 0 .5rem; color: #1c1c1c; }
.course-card p { color: #6b6b6b; font-size: .88rem; margin: 0; }
.course-card .cc-more { margin-top: auto; padding-top: .8rem; color: var(--hisar); font-weight: 600; font-size: .85rem; }

/* CTA */
.hisar-cta { background: linear-gradient(120deg, var(--hisar) 0%, var(--hisar-darker) 100%); color: #fff; border-radius: 1.5rem; }

/* Footer */
.hisar-footer { background: var(--hisar-darker); color: rgba(255, 255, 255, .78); }
.hisar-footer h5 { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.hisar-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.hisar-footer a:hover { color: #fff; }
.hisar-footer .foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

/* Page header (category / content) */
.page-hero {
    background: linear-gradient(120deg, var(--hisar-darker), var(--hisar));
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero > .container::after {
    content: "";
    position: absolute;
    right: 0;               /* container'ın sağ kenarı — daha içeride */
    bottom: 0;
    top: 0;
    width: 42%;
    background: url('/images/joy.png') right center / contain no-repeat;
    opacity: .9;
    z-index: -1;            /* metnin arkasında kalsın */
    pointer-events: none;
}
@media (max-width: 991.98px) {
    .page-hero > .container::after {
        width: 46%;
        opacity: .75;
        background-position: right bottom;
    }
}
.page-hero h1 { font-weight: 800; }
.breadcrumb-hisar .breadcrumb-item, .breadcrumb-hisar a { color: rgba(255, 255, 255, .8); }
.breadcrumb-hisar .breadcrumb-item.active { color: #fff; }
.content-body { line-height: 1.85; color: #333; font-size: 1.02rem; }
.content-body h2, .content-body h3 { color: var(--hisar); font-weight: 700; margin-top: 1.6rem; }
.content-body p { margin-bottom: 1rem; }
.content-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.content-body ul li { margin-bottom: .5rem; }
.content-body ul li::marker { color: var(--hisar); }

/* Ders çizelgesi akordeonu */
.schedule-accordion .accordion-item { background: #fff; }
.schedule-accordion .accordion-button { border-radius: .75rem; }
.schedule-accordion .accordion-button:not(.collapsed) {
    background: var(--hisar-light);
    color: var(--hisar);
    box-shadow: none;
}
.schedule-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.schedule-accordion .accordion-button::after { margin-left: .75rem; }

/* Dönem takvimi tablosu */
.term-table { background: #fff; border: 3px solid #d8d8d8; }
.term-table-title {
    background: var(--hisar);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
    padding: .9rem 1rem;
}
.term-table-body { display: flex; flex-direction: column; }
.term-block { border-top: 15px solid var(--hisar); }
.term-block:first-child { border-top: 0; }
.term-block:last-child { border-bottom: 15px solid var(--hisar); }
.term-side-label {
    background: var(--hisar);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem .25rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    flex: 0 0 auto;
    width: 40px;
}
.term-inner-table { text-align: center; margin: 0; }
.term-inner-table th {
    background: var(--hisar-light);
    color: var(--hisar);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .5px;
    border-color: #e3d3db;
    white-space: nowrap;
}
.term-inner-table td { border-color: #eee; vertical-align: middle; font-size: .92rem; }
.term-inner-table .term-idx-col { width: 2.4rem; font-weight: 800; color: var(--hisar); background: var(--hisar-light); }
.term-inner-table .term-tatil { font-weight: 800; color: var(--hisar); background: #f4e6ed; }

/* Mobil takvim: bordürsüz, kompakt, günler alt alta (yatay kaydırma yok) */
.term-mobile { background: #fff; }
.term-mobile-title {
    background: var(--hisar);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
    padding: .6rem .75rem;
}
.term-mobile-section { padding: .75rem; }
.term-mobile-heading {
    color: var(--hisar);
    font-weight: 800;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: .5rem 0 .5rem;
}
.term-mobile-day { margin-bottom: .75rem; }
.term-mobile-day:last-child { margin-bottom: 0; }
.term-mobile-day-name {
    color: var(--hisar);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--hisar-light);
    padding: .3rem .5rem;
}
.term-mobile-table { width: 100%; text-align: center; border-collapse: collapse; margin: 0; }
.term-mobile-table td, .term-mobile-table th { padding: .35rem .4rem; font-size: .8rem; border-bottom: 1px solid #eee; }
.term-mobile-table th {
    background: var(--hisar-light);
    color: var(--hisar);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .3px;
}
.term-mobile-table .term-idx-col { width: 1.8rem; font-weight: 800; color: var(--hisar); background: var(--hisar-light); }
.term-mobile-table .term-tatil { font-weight: 700; color: var(--hisar); background: #f4e6ed; }
.term-mobile-table-wide th, .term-mobile-table-wide td { font-size: .85rem; padding: .4rem .5rem; }
.term-inner-table tbody tr:nth-child(even) td:not(.term-idx-col):not(.term-tatil) { background: #fafafa; }
