/* =========================================================
   Math Dept Website Template - Common CSS
   =========================================================
   Author: Berk Bavaş
   ========================================================= */

:root {
    --topbar-height: 42px;
    --navigation-height: 128px;
    --navigation-max-width: 1320px;
    --container-max-width: 1260px;
    --card-max-width: 770px;

    --background-color: #f9f9f9;

    --margin-0: 4px;
    --margin-1: 8px;
    --margin-2: 12px;
    --margin-3: 16px;
    --margin-4: 24px;
    --margin-5: 32px;

    --padding-1: 8px;
    --padding-2: 12px;
    --padding-3: 16px;
    --padding-4: 24px;
    --padding-5: 32px;

    --gap-1: 8px;
    --gap-2: 12px;
    --gap-3: 16px;
    --gap-4: 24px;
    --gap-5: 32px;

    --muted: #474e5a;
    --accent: #2d2a62;
    ;
    --border: #E5E7EB;
    --text-color: rgba(17, 17, 17, .92);
    --accent-darker: rgba(45, 42, 98, 0.451);
    --page-hero-badge-color: rgba(17, 17, 17, .82);
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

html,
body {
    height: 100%;
    scrollbar-gutter: stable;
}

body {
    font-family: "Fira Sans", sans-serif;
    color: #000000;
    line-height: 1.55;
    background: var(--background-color);
    padding-top: 144px;
    /* Navbar + topbar yüksekliği */
}

/* Mobilde topbar gizlendiği için boşluğu azalt */
@media (max-width: 1024px) {
    body {
        padding-top: 96px;
        /* Navbar + topbar yüksekliği */
    }
}

h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    margin: 0 0 1.2rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-color);
}

a {
    color: inherit;
    border-bottom: 1px dashed var(--accent-darker);
    text-decoration: none;
}

a i {
    margin-left: 0.5rem;
}

a:hover {
    border-bottom-style: solid;
}

ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: square;
}

ul li {
    margin-bottom: .6rem;
}

ul li:last-child {
    margin-bottom: 0;
}

.container {
    width: min(var(--container-max-width), calc(100% - 2.2rem));
    margin: 0 auto;
}

.card-max-width {
    max-width: 836px;
}

.spacer-24 {
    width: 100%;
    height: 24px;
}

.no-max-width {
    max-width: none !important;
}

.centered-text {
    text-align: center;
}

.muted-text {
    color: var(--muted);
}

/* Shared Components */
.page-hero {
    position: relative;
    margin: var(--gap-4) 0 var(--gap-4);
    padding: 1.4rem 0 1.4rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid var(--border);
}

.no-border-bottom {
    border-bottom: none !important;
}

.page-hero h1 {
    margin-top: 1rem;
}

.page-hero-badge {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.page-lead {
    margin-top: var(--margin-3);
    margin-bottom: var(--margin-3);
    max-width: var(--card-max-width);
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.75;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-1);
    margin-top: var(--margin-1);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-head {
    margin-top: var(--margin-4);
}

.page-search-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
    .page-search-actions {
        grid-template-columns: 1fr;
    }
}

.search-label {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #FFFFFF;
    height: 46px;
    overflow: hidden;
}

.search-icon {
    width: 44px;
    height: 46px;
    display: grid;
    place-items: center;
    color: rgba(17, 17, 17, .55);
}

.search-input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px 0 0;
    font-size: 16px;
    color: #000000;
}

.search-input::placeholder {
    color: rgba(17, 17, 17, .45);
}

/* Card */
.card {
    max-width: var(--card-max-width);
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

.card p {
    margin: 0 0 1.2rem;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(17, 17, 17, .92);
}

.card p:last-child {
    margin-bottom: 0;
}

.card strong {
    font-weight: 700;
    color: rgba(17, 17, 17, .95);
}

.card h2 {
    letter-spacing: -0.02em;
    margin: 0 0 1rem 0;
}

.card ul {
    margin-top: 1rem;
    margin-bottom: 1.2rem;
}

.card ul li {
    margin-bottom: .6rem;
}

/* Emphasis card */
.card-emphasis {
    position: relative;
    overflow: hidden;
}

.card-emphasis::before {
    content: "";
    position: absolute;
    inset: -1px auto -1px -1px;
    width: 6px;
    background: var(--accent);
    opacity: .9;
    border-radius: 16px;
}

.person-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
    transition: transform .22s ease, box-shadow .22s ease;
    overflow: hidden;
}

.person-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .12);
}

.person-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity .22s ease;
}

.person-card:hover::before {
    opacity: 1;
}

/* Page KPIS */
.page-kpis {
    margin-top: var(--margin-4);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.page-kpi {
    background: linear-gradient(180deg, #fff, #fbfbfd);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.page-kpi-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.page-kpi-value {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #000000;
}


/* Layout */
.hbox-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-4);
    align-items: start;
}

@media (max-width: 768px) {
    .hbox-grid-layout {
        grid-template-columns: 1fr;
    }
}

.vbox-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-4);
    align-items: start;
}

.hbox-flex-layout {
    display: flex;
    gap: var(--gap-4);
    align-items: start;
}

.vbox-flex-layout {
    display: flex;
    flex-direction: column;
    gap: var(--gap-4);
    align-items: start;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid #E5E5E5;
    font-weight: 800;
    cursor: pointer;
    background-color: #FFFFFF;
    color: #000000;
    text-decoration: none;
    transition: all .2s ease;
}

.btn:hover {
    background-color: #f8f8f8;
}

.btn:active {
    transform: scale(0.98);
}

.btn i {
    margin-right: var(--margin-0);
}

.btn-black {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 4px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    background-color: #000;
    text-decoration: none;
    color: #fff;
    transition: all .2s ease;
}

.btn-black:hover {
    background-color: #222;
}

.btn-black:active {
    transform: scale(0.98);
}

.btn-black i {
    margin-right: var(--margin-0);
}

.btn-ghost {
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #d0d0d0;
    transition: all .2s ease;
}

.btn-ghost:hover {
    background-color: #e0e0e0;
}

.btn-black:active {
    transform: scale(0.98);
}

/* Pill */
.pill,
.chip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .65);
    font-weight: 800;
    font-size: 14px;
    gap: 8px;
    align-items: center;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 3.5rem 0 2.5rem 0;
    background: linear-gradient(135deg, #1a1744 0%, #2d2a62 50%, #3d3a7a 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer h4 {
    padding-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer h4 i {
    font-size: 1rem;
    color: #ffffff;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff;
}

.footer .small {
    font-size: .9rem;
    margin: 0;
    line-height: 1.6;
}

.footer .small i {
    color: rgba(255, 255, 255, 0.75);
    width: 18px;
    margin-right: 4px;
}

.footer .footer-link i {
    margin: 0;
}

.footer-social .small {
    display: flex;
    align-items: center;
}

.footer-social .small i {
    font-size: 1rem;
}

.footer-social a {
    text-decoration: none;
}

.footer-signature {
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #151234 0%, #1a1744 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.divider {
    height: 1px;
    background: var(--border);
    border: none;
    margin: 1.4rem 0;
    padding: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer h4 {
        justify-content: center;
    }
    
    .footer-social .small {
        justify-content: center;
    }
}

[data-lang][hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.85rem;
    }

    .page-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-kpis {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .card h2 {
        font-size: 1.25rem;
    }

    .page-lead {
        font-size: 1rem;
    }

    .btn, .btn-black {
        padding: 14px;
        font-size: 0.95rem;
    }

    .vbox-flex-layout {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        margin: 1rem 0;
        padding: 1rem 0;
        margin-bottom: 1.2rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
        margin-top: 0.75rem;
    }

    .page-hero-badge {
        gap: 6px;
        flex-wrap: wrap;
    }

    .pill, .chip {
        padding: 5px 8px;
        font-size: 12px;
    }

    .page-lead {
        font-size: 0.92rem;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.65;
    }

    .page-hero-actions {
        margin-top: 1rem;
        gap: 0.6rem;
    }

    .btn, .btn-black {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .card {
        padding: 1.2rem;
        border-radius: 14px;
    }

    .card h2 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .card p {
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: 1rem;
    }

    .page-kpis {
        margin-top: 1rem;
        gap: 10px;
    }

    .page-kpi {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .page-kpi-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .page-kpi-value {
        font-size: 1.4rem;
    }

    .spacer-24 {
        height: 16px;
    }

    .vbox-flex-layout {
        gap: 0.85rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .footer {
        margin-top: 2rem;
        padding: 2.5rem 0 1.5rem 0;
    }

    .footer h4 {
        font-size: 1rem;
        padding-bottom: 10px;
    }

    .footer .small {
        font-size: 0.85rem;
    }

}