/* AppBar look */
.appbar {
    background-color: #ffffff;
}
/* Layout: make footer stick to bottom (not fixed) */
.mud-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* top bar look */
.mud-toolbar.mud-toolbar-appbar {
    backdrop-filter: saturate(180%) blur(8px);
}

/* thinner lower bar */
.lower-bar {
    border-top: 1px solid var(--mud-palette-lines-default);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* tighten button text a bit like docs */
.mud-button-text-inherit {
    text-transform: none;
    font-weight: 500;
}
.appbar-border {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    backdrop-filter: saturate(180%) blur(8px);
}
/* Mega menu panel look (light, airy) */
.mega-panel {
    min-width: 640px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(2,6,23,0.12);
    border: 1px solid rgba(2,6,23,0.06);
}
/* Hero Section Background */
.hero-background {
    position: relative;
    background-image: url('/images/background.jpeg'); /* place background.jpeg into wwwroot/images */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh; /* adjust as needed (e.g. 100vh for full viewport) */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 12px; /* matches MudPaper rounded look; remove if you prefer flush edges */
    overflow: hidden;
}

/* dark overlay so white text remains readable over the image */
.hero-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(2,6,23,0.55), rgba(2,6,23,0.25));
    z-index: 0;
}

/* ensure child content sits above overlay */
.hero-background > * {
    position: relative;
    z-index: 1;
}

/* responsive tweak: shorter height on small screens */
@media (max-width: 900px) {
    .hero-background {
        min-height: 42vh;
        padding: 2rem 1rem;
    }
}

/* Titles like MudBlazor site: part colored */
.mega-title {
    font-weight: 700;
    letter-spacing: .2px;
}

.accent-blue {
    color: #2d6cdf;
}
/* Primary-ish */
.accent-orange {
    color: #ff8a00;
}
/* Accent for second column */

/* Keep top bar & lower bar clean */
.appbar.appbar-border {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.mega-panel {
    min-width: 640px;
    border-radius: 12px;
    background: #fff;
}

.mega-title {
    font-weight: 700;
    text-align: center;
}
/* Smaller paddings on desktop, comfy on mobile */
.navmenu-desktop .mud-nav-link {
    padding: 6px 10px;
}

.navmenu-mobile .mud-nav-link {
    padding: 12px 14px;
    font-size: 1.05rem;
}

.mega-item-title {
    font-weight: 700;
}
.mega-item-desc {
    color: #64748b;
    font-size: 0.85rem;
}
    /* title bold */
.mega-item-brief {
    font-weight: 400;
    opacity: .9;
}

.menu-item {
    display: flex;
    align-items: flex-start;
}

.menu-item-icon {
    color: var(--mud-palette-primary);
    margin-top: 2px;
}
/* item icons colored */

/* brief normal text weight */
.accent-blue {
    color: #2d6cdf;
}

.accent-orange {
    color: #ff8a00;
}

.nav-link {
    text-transform: none;
    font-weight: 500;
}

/* Optional: make list secondary text a bit cooler like docs */
.mud-list-item .mud-typography-body2 {
    color: #6b7280;
}
/* Tailwind gray-500-ish */

.nav-link {
    text-transform: none;
    font-weight: 500;
}

.lower-bar {
    border-top: 1px solid var(--mud-palette-lines-default);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* shrink icon buttons a touch */
.mud-icon-button {
    margin-left: .125rem;
    margin-right: .125rem;
}

.mud-main-content {
    flex: 1 0 auto;
}
.course-page { /* keeps content centered and gives breathing room */
    width: 100%;
}

.course-summary-card {
    position: sticky;
    top: 1rem; /* below app bar */
}
.fallback-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    opacity: .25;
}

.leading-relaxed {
    line-height: 1.7;
}
/* Footer look */
.site-footer {
    border-top: 1px solid rgba(2,6,23,.06);
    background: #f8fafc; /* soft light */
    color: #64748b; /* slate-500 */
    padding: 18px 0 24px;
}
.person-avatar {
    border-radius: 9999px;
    width: 120px;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(2,6,23,.15);
}

.person-role {
    color: #0EA5E9;
    font-weight: 600;
}
.footer-col {
    text-align: left;
}

@media (max-width: 600px) {
    .footer-col {
        text-align: center;
    }
}

.footer-label {
    font-weight: 600;
    color: #475569; /* slate-600 */
    display: block;
    margin-bottom: 2px;
}

.footer-text, .footer-link {
    color: #64748b;
}
.person-card {
    border-radius: 14px;
    transition: box-shadow .25s ease, transform .25s ease;
    background: #ffffff;
}

    .person-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(15,23,42,.14);
    }

.person-avatar {
    border-radius: 9999px;
    width: 120px;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(2,6,23,.15);
}

.person-role {
    color: #0EA5E9; /* Secondary */
    font-weight: 600;
    text-decoration: none;
}

    .person-role:hover {
        text-decoration: underline;
    }

    .footer-link:hover {
        color: #0f172a; /* slate-900 */
        text-decoration: none;
    }

.footer-social {
    color: #94a3b8; /* slate-400 */
    font-size: 1.25rem;
}

    .footer-social:hover {
        color: #0f172a; /* slate-900 */
    }

.footer-copy {
    color: #94a3b8;
    margin-top: 6px;
}

.appbar-border {
    border-bottom: 1px solid rgba(2, 6, 23, .06); /* çok hafif çizgi */
}

/* Brand */
.brand-title {
    color: #0f172a; /* slate-900 */
    font-weight: 700;
}

/* Center nav links */
.nav-link {
    color: #334155 !important; /* slate-700 */
    text-transform: none !important;
    font-weight: 600;
    padding: 0.25rem 0 !important;
    min-width: 0 !important;
}

    .nav-link:hover {
        color: #0f172a !important; /* slate-900 */
        background: transparent !important;
    }

/* Utility */
.cursor-pointer {
    cursor: pointer;
}

/* Reduce default container vertical padding on the AppBar */
.mud-appbar .mud-container {
    padding-top: .5rem;
    padding-bottom: .5rem;
}
.appbar {
    background: #fff;
}

.appbar-border {
    border-bottom: 1px solid rgba(2,6,23,.06);
}

.brand-title {
    color: #0f172a;
    font-weight: 700;
}
.mud-popover .mud-menu {
    min-width: 220px;
}

.mud-popover .mud-paper {
    border: 1px solid rgba(2,6,23,.06);
    box-shadow: 0 8px 24px rgba(2,6,23,.12);
}
.hero-section {
    background: linear-gradient(120deg, #0f172a, #1e3a8a);
    min-height: 320px;
    border-radius: 16px;
    margin-top: 1rem;
    margin-inline: auto;
    width: 90%;
    color: white;
    padding: 3rem 1rem;
}

.feature-card {
    transition: all .25s ease;
    border-radius: 12px;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, .15);
    }

.nav-link {
    color: #334155 !important;
    text-transform: none !important;
    font-weight: 600;
    padding: .25rem 0 !important;
    min-width: 0 !important;
}

    .nav-link:hover {
        color: #0f172a !important;
        background: transparent !important;
    }

.mud-appbar .mud-container {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100vh;
    min-height: 100vh;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZ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4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.dialog-background {
    backdrop-filter: blur(10px);
}


.mud-input,
.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: 0.875rem; /* 1 rem is default */
}
/* Quick override: force header and drawer background to white and hide stray pseudo backgrounds */
.appbar,
.mud-appbar,
.appbar .mud-container,
.mud-drawer,
.mud-drawer .mud-drawer-paper {
    background-color: #ffffff !important;
    background-image: none !important;
}

    /* remove possible ::before / ::after dark badges */
    .appbar::before,
    .appbar::after,
    .mud-appbar::before,
    .mud-appbar::after {
        background: transparent !important;
        content: none !important;
    }

.h100 {
    height: 100%;
}

.esri-attribution__powered-by {
    display:none!important;
    
}

.wide-dropdown {
    min-width: 400px !important;
}

.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    cursor: grab;
    padding: 8px;
    user-select: none;
}

    .scroll-container.dragging {
        cursor: grabbing;
    }

/* Header: right-group ordering and spacing */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* search field sizing */
.header-search {
    width: 220px;
    min-width: 160px;
}

/* uniform icon style for header controls */
.header-icon {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    color: var(--mud-palette-appbar-text, #1F2937) !important;
    border-radius: 8px;
}

/* subtle hover for header icons */
.header-icon:hover {
    background: rgba(0,0,0,0.04);
}

/* avatar sizing and spacing (right-most) */
.header-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
}

/* tighten center nav spacing slightly */
.nav-links .nav-link {
    padding: 6px 8px !important;
    font-size: 0.95rem;
}

/* ensure appbar background remains white */
.appbar,
.mud-appbar,
.appbar .mud-container {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Override .hero-section's gradient when hero-background is applied */
.hero-section.hero-background {
    background-image: url('/images/background.jpeg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Ensure overlay exists and content sits above it */
.hero-section.hero-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(2,6,23,0.55), rgba(2,6,23,0.25));
    z-index: 0;
}
.hero-section.hero-background > * {
    position: relative;
    z-index: 1;
}

:root {
    --nav-font-size: 15px;
    --nav-icon-size: 18px;
    --nav-radius: 14px;
    --nav-pad-y: 10px;
    --nav-pad-x: 14px;
}

/* TOP NAV button */
.nav-link {
    font-size: var(--nav-font-size) !important;
    font-weight: 650;
    letter-spacing: .1px;
    text-transform: none;
    color: rgba(15, 23, 42, .92);
    border-radius: 999px;
    padding: 8px 12px;
    transition: background .14s ease, transform .08s ease, color .14s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

    .nav-link:hover {
        background: rgba(14,165,233,0.10);
        transform: translateY(-1px);
        color: rgba(15, 23, 42, 1);
    }

.nav-link--menu .nav-link-text {
    font-size: var(--nav-font-size) !important;
}

.nav-link-icon {
    font-size: var(--nav-icon-size) !important;
    color: var(--mud-palette-primary);
    margin-left: 2px;
}

.nav-caret {
    font-size: 18px !important;
    opacity: .65;
    margin-left: 2px;
}

/* ---------- Dropdown panels ---------- */
.mega-panel,
.edu-panel,
.mud-menu .mud-paper {
    border-radius: var(--nav-radius) !important;
    overflow: hidden;
    border: 1px solid rgba(2,6,23,0.08);
    backdrop-filter: blur(8px);
}

/* Titles in mega menus */
.mega-title {
    font-size: 14px !important;
    font-weight: 750;
    color: rgba(15, 23, 42, .95);
    margin-bottom: 4px;
}

/* ---------- Submenu items (MudMenuItem + MudListItem) ---------- */
/* Force same font size everywhere in dropdowns */
.mud-menu-item,
.mud-list-item,
.mega-item-title,
.edu-title {
    font-size: var(--nav-font-size) !important;
}

/* Make MudMenuItem look consistent */
.mud-menu-item {
    border-radius: 12px !important;
    padding: var(--nav-pad-y) var(--nav-pad-x) !important;
    transition: background .14s ease, transform .06s ease;
    min-height: 42px;
    align-items: center;
}

    .mud-menu-item:hover {
        background: rgba(14,165,233,0.08) !important;
        transform: translateX(3px);
    }

    /* Make icons same size in submenu items */
    .mud-menu-item .mud-icon-root,
    .mud-list-item .mud-icon-root {
        font-size: 20px !important;
        min-width: 22px;
        color: var(--mud-palette-primary);
        opacity: .95;
    }

/* Mega menu list items */
.mega-list {
    padding-top: 2px;
}

.mega-list-item {
    border-radius: 12px !important;
    padding: var(--nav-pad-y) var(--nav-pad-x) !important;
    transition: background .14s ease, transform .06s ease;
    margin: 2px 0;
}

    .mega-list-item:hover {
        background: rgba(14,165,233,0.08);
        transform: translateX(3px);
    }

.mega-item-title {
    font-weight: 700;
    color: rgba(15, 23, 42, .96);
    line-height: 1.1;
}

.mega-item-desc {
    font-size: 12.5px !important;
    color: rgba(15, 23, 42, .65);
    margin-top: 2px;
}

/* Education divider */
.edu-divider {
    margin: 0;
    border-top: 2px solid rgba(2,6,23,0.08);
}

/* Right header icons also consistent */
.header-icon .mud-icon-root {
    font-size: 22px !important;
}
/* ---- Screenshot-style submenu panel ---- */
.subpanel {
    min-width: 520px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(2,6,23,.10);
    background: #fff;
}

/* Group header (icon + bold title) */
.subgroup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 2px 6px 2px;
}

.subgroup-icon {
    font-size: 18px !important;
    color: rgba(15,23,42,.85);
}

.subgroup-title {
    font-size: 14px;
    font-weight: 750;
    color: rgba(15,23,42,.95);
}

/* Horizontal line like screenshot */
.subgroup-divider {
    border-top: 2px solid rgba(2,6,23,.14);
    margin: 2px 0 8px 0;
}

/* Indented items under each group */
.subgroup-items {
    padding-left: 30px; /* indent */
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 4px;
}

.subitem {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(15,23,42,.88);
    padding: 6px 10px;
    border-radius: 10px;
    transition: background .12s ease, transform .06s ease;
}

    .subitem:hover {
        background: rgba(14,165,233,.08);
        transform: translateX(3px);
    }

/* Spacing between groups */
.subgroup-gap {
    height: 8px;
}

/* Single rows at bottom (icon + text) with divider */
.subsingle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 2px;
    border-radius: 10px;
    color: rgba(15,23,42,.95);
    font-weight: 700;
    font-size: 13.8px;
    transition: background .12s ease, transform .06s ease;
}

    .subsingle:hover {
        background: rgba(14,165,233,.08);
        transform: translateX(3px);
    }

.subsingle-icon {
    font-size: 18px !important;
    color: rgba(15,23,42,.85);
}

.subsingle-divider {
    border-top: 2px solid rgba(2,6,23,.14);
    margin: 0;
}

/* Mobile/desktop visibility helpers for AppHeader */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

@media (max-width: 767.98px) {
    .mobile-only { display: flex !important; }
    .desktop-only { display: none !important; }
}
