:root {
    --navy: #10233f;
    --blue: #1c4e80;
    --steel: #64748b;
    --light: #f5f7fb;
    --line: #d9dee7;
    --concrete: #e6e8ec;
    --gold: #c79a37;
    --burgundy: #7b2335;
    --text: #1d2430;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

.topbar {
    background: var(--navy);
    color: #fff;
    font-size: 0.875rem;
    padding: 0.55rem 0;
}

.topbar-info,
.topbar-links,
.header-actions,
.hero-actions,
.contact-actions,
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topbar-info span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 0.75rem;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: middle;
}

.topbar a {
    color: #fff;
    opacity: 0.88;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.navbar {
    padding: 0.9rem 0;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--navy);
}

.brand-lockup:hover {
    color: var(--navy);
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
}

.brand-lockup strong,
.brand-lockup small {
    display: block;
    line-height: 1.2;
}

.brand-lockup small {
    color: var(--steel);
    font-size: 0.78rem;
}

.navbar .nav-link {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
}

.header-actions {
    margin-left: 1rem;
}

.member-logout-form {
    margin: 0;
}

.navbar-toggler {
    border-color: var(--line);
}

.navbar-toggler-icon {
    background-image: linear-gradient(var(--navy), var(--navy));
    background-size: 22px 2px;
    background-position: center;
    background-repeat: no-repeat;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.btn-sm {
    padding: 0.46rem 0.72rem;
    font-size: 0.85rem;
}

.btn-navy,
.btn-light-navy {
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
}

.btn-navy:hover,
.btn-light-navy:hover {
    background: #0b1830;
    color: #fff;
}

.btn-gold {
    background: var(--gold);
    color: #111827;
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background: #b4872b;
    border-color: #b4872b;
}

.btn-outline-navy {
    color: var(--navy);
    border: 1px solid var(--navy);
    background: #fff;
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}

.btn-outline-light {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-section {
    background:
        linear-gradient(115deg, rgba(16, 35, 63, 0.96), rgba(28, 78, 128, 0.92)),
        linear-gradient(90deg, transparent 24px, rgba(255, 255, 255, 0.05) 25px),
        linear-gradient(transparent 24px, rgba(255, 255, 255, 0.05) 25px);
    background-size: auto, 50px 50px, 50px 50px;
    color: #fff;
    padding: 5rem 0 4.25rem;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-slide {
    display: none;
    padding: 5rem 0 5rem;
}

.hero-slide.is-active {
    display: block;
    animation: heroFade 0.45s ease;
}

@keyframes heroFade {
    from {
        opacity: 0.4;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-grid,
.president-grid,
.online-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 2rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
}

.hero-copy h1 {
    font-size: 4.2rem;
    line-height: 1.05;
    margin: 1rem 0;
    max-width: 900px;
}

.hero-copy p {
    font-size: 1.12rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
    max-width: 760px;
}

.eyebrow,
.section-title span,
.section-head span,
.page-hero span {
    display: inline-block;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.eyebrow.dark {
    color: var(--burgundy);
}

.hero-visual {
    min-height: 370px;
    display: grid;
    place-items: center;
}

.hero-image-card {
    width: min(100%, 500px);
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 60px rgba(4, 12, 28, 0.28);
}

.hero-slider-controls {
    position: absolute;
    left: 50%;
    bottom: 1.3rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
}

.hero-dot.is-active {
    background: var(--gold);
    border-color: var(--gold);
}

.site-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(16,35,63,0.12), rgba(199,154,55,0.16)),
        repeating-linear-gradient(45deg, #d8dde6 0 12px, #eef1f5 12px 24px);
}

.site-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.site-image span {
    display: none;
    min-height: 100%;
    place-items: center;
    padding: 1rem;
    color: var(--navy);
    font-weight: 800;
    text-align: center;
}

.site-image.image-failed span {
    display: grid;
}

.blueprint-card {
    width: min(100%, 460px);
    min-height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.08);
    background-size: 28px 28px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.plan-label,
.plan-note {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    font-weight: 700;
}

.plan-lines {
    position: absolute;
    inset: 70px 42px 70px 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.plan-lines::before,
.plan-lines::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
}

.plan-lines::before {
    width: 2px;
    height: 100%;
    left: 42%;
}

.plan-lines::after {
    width: 100%;
    height: 2px;
    top: 52%;
}

.city-line {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 48px;
    height: 52px;
    background:
        linear-gradient(to top, rgba(199,154,55,0.9) 0 42%, transparent 42%),
        linear-gradient(to top, rgba(255,255,255,0.72) 0 70%, transparent 70%);
    clip-path: polygon(0 100%, 0 45%, 8% 45%, 8% 20%, 20% 20%, 20% 62%, 31% 62%, 31% 34%, 42% 34%, 42% 12%, 52% 12%, 52% 54%, 65% 54%, 65% 30%, 77% 30%, 77% 66%, 88% 66%, 88% 42%, 100% 42%, 100% 100%);
}

.plan-note {
    position: absolute;
    right: 1.25rem;
    bottom: 1.1rem;
}

.section-band {
    background: var(--light);
}

.section-block,
.section-band,
.online-section,
.contact-section,
.stats-section {
    padding: 4.5rem 0;
}

.section-title,
.section-head {
    margin-bottom: 1.75rem;
}

.section-title h2,
.section-head h2,
.contact-section h2,
.president-grid h2,
.page-hero h1 {
    color: var(--navy);
    font-weight: 800;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.quick-grid a,
.content-card,
.document-card,
.event-card,
.form-panel,
.online-panel,
.admin-public-card {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.quick-grid a {
    min-height: 92px;
    padding: 1rem;
    display: flex;
    align-items: center;
    color: var(--navy);
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(16, 35, 63, 0.06);
}

.president-grid {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
}

.placeholder-photo {
    min-height: 360px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(16,35,63,0.14), rgba(199,154,55,0.17)),
        repeating-linear-gradient(45deg, #d8dde6 0 12px, #eef1f5 12px 24px);
    padding: 1rem;
}

.placeholder-inner {
    height: 100%;
    min-height: 328px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(16,35,63,0.18);
    border-radius: 8px;
    color: var(--navy);
    font-weight: 800;
}

.lead-text {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #405066;
}

.commitment-list,
.service-list,
.contact-list {
    display: grid;
    gap: 0.75rem;
}

.commitment-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commitment-list span,
.service-list span {
    padding: 0.8rem 0.9rem;
    border-radius: 6px;
    background: var(--light);
    color: var(--navy);
    font-weight: 700;
}

.content-grid,
.document-grid,
.event-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.content-card {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.card-image {
    aspect-ratio: 16 / 9;
    margin: -1.35rem -1.35rem 0;
    border-radius: 8px 8px 0 0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--steel);
    font-size: 0.88rem;
}

.content-card h3,
.document-card h3,
.event-card h3,
.news-row h3 {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 800;
}

.content-card p,
.document-card p,
.event-card p,
.news-row p {
    color: #56657a;
    line-height: 1.65;
}

.text-link {
    color: var(--burgundy);
    font-weight: 800;
}

.news-list {
    display: grid;
    gap: 1rem;
}

.news-row {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.news-row.has-media {
    grid-template-columns: 92px 132px 1fr auto;
}

.news-media {
    width: 132px;
    aspect-ratio: 4 / 3;
}

.news-date,
.event-date,
.pdf-icon {
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
}

.news-date {
    width: 76px;
    height: 76px;
}

.news-date strong,
.event-date strong {
    font-size: 1.6rem;
    line-height: 1;
}

.badge-soft {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #eef1f5;
    color: var(--burgundy);
    font-weight: 800;
    font-size: 0.78rem;
}

.online-section {
    background: var(--navy);
    color: #fff;
}

.section-title.light h2,
.section-title.light span {
    color: #fff;
}

.online-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
}

.online-panel,
.form-panel {
    padding: 1.4rem;
}

.online-panel {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.online-panel h3,
.form-panel h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.online-panel .service-list span {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-panel {
    display: grid;
    gap: 0.85rem;
    background: #fff;
    color: var(--text);
}

.form-panel input,
.form-panel textarea,
.form-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.78rem 0.85rem;
    color: var(--text);
}

.form-panel textarea {
    min-height: 118px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.light-panel {
    margin-top: 1rem;
}

.document-card {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.pdf-icon {
    width: 58px;
    height: 58px;
    background: var(--burgundy);
    font-weight: 800;
}

.document-card span {
    color: var(--steel);
    font-size: 0.85rem;
}

.event-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    padding: 1rem;
}

.event-card.has-media {
    grid-template-columns: 72px 130px 1fr;
}

.event-media {
    width: 130px;
    aspect-ratio: 4 / 3;
}

.event-date {
    height: 72px;
    background: var(--blue);
}

.stats-section {
    background: var(--navy);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stats-grid div {
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    padding: 1.4rem;
}

.stats-grid strong,
.stats-grid span {
    display: block;
}

.stats-grid strong {
    font-size: 2rem;
    color: var(--gold);
}

.contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.contact-list span {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.map-preview {
    margin-top: 1.2rem;
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.map-preview iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

.map-placeholder {
    min-height: 260px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(90deg, rgba(16,35,63,0.08) 1px, transparent 1px),
        linear-gradient(rgba(16,35,63,0.08) 1px, transparent 1px),
        #f0f3f7;
    background-size: 32px 32px;
    color: var(--navy);
    font-weight: 800;
}

.page-hero {
    padding: 4rem 0;
    background: linear-gradient(120deg, #f6f8fb, #e7ebf1);
    border-bottom: 1px solid var(--line);
}

.page-hero.compact {
    padding: 3.4rem 0;
}

.page-hero p {
    max-width: 780px;
    color: #56657a;
    font-size: 1.08rem;
}

.narrow {
    max-width: 880px;
}

.detail-body {
    font-size: 1.06rem;
    line-height: 1.85;
    color: #405066;
    margin-bottom: 2rem;
}

.detail-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
}

.site-footer {
    background: #0d1728;
    color: #dce3ee;
    padding: 3rem 0 1.2rem;
}

.footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
}

.footer-brand,
.site-footer h3 {
    color: #fff;
    font-weight: 800;
}

.site-footer h3 {
    font-size: 1rem;
}

.site-footer a,
.site-footer span {
    display: block;
    color: #dce3ee;
    margin: 0.35rem 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.14);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.global-toast-area {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    display: grid;
    gap: 0.75rem;
    width: min(420px, calc(100vw - 2rem));
}

.global-toast {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
    border: 1px solid var(--line);
    border-left-width: 5px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(16, 35, 63, 0.18);
    padding: 0.95rem 1rem;
    animation: toastIn 0.22s ease-out;
}

.global-toast strong,
.global-toast p {
    display: block;
    margin: 0;
}

.global-toast strong {
    color: var(--navy);
    font-size: 0.95rem;
}

.global-toast p {
    color: #405066;
    line-height: 1.5;
    margin-top: 0.18rem;
}

.global-toast button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #eef1f5;
    color: var(--navy);
    font-weight: 800;
    line-height: 1;
}

.global-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.global-toast.toast-success {
    border-left-color: #0f8f56;
}

.global-toast.toast-error {
    border-left-color: #b4233a;
}

.global-toast.toast-warning {
    border-left-color: var(--gold);
}

.global-toast.toast-info {
    border-left-color: var(--blue);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199px) {
    .navbar .nav-link {
        font-size: 0.86rem;
    }

    .header-actions {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .quick-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hero-grid,
    .president-grid,
    .online-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-grid,
    .document-grid,
    .event-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .hero-section,
    .section-block,
    .section-band,
    .online-section,
    .contact-section,
    .stats-section {
        padding: 3rem 0;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

    .quick-grid,
    .stats-grid,
    .commitment-list,
    .form-row {
        grid-template-columns: 1fr;
    }

    .news-row,
    .news-row.has-media,
    .event-card.has-media,
    .document-card {
        grid-template-columns: 1fr;
    }

    .news-media,
    .event-media {
        width: 100%;
    }

    .news-date,
    .event-date,
    .pdf-icon {
        width: 64px;
        height: 64px;
    }
}

.global-loader {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    background: rgba(9, 17, 31, 0);
    backdrop-filter: blur(0);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.24s ease, background-color 0.24s ease, backdrop-filter 0.24s ease;
}

.global-loader.is-visible {
    pointer-events: auto;
    opacity: 1;
    background: rgba(9, 17, 31, 0.46);
    backdrop-filter: blur(10px);
}

.global-loader-panel {
    width: min(300px, calc(100vw - 2rem));
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding: 1.45rem 1.35rem;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(244,247,251,0.84));
    box-shadow: 0 30px 90px rgba(3, 10, 21, 0.34);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.26s ease;
}

.global-loader.is-visible .global-loader-panel {
    transform: translateY(0) scale(1);
}

.loader-brand {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(17,31,53,0.16);
    position: relative;
    overflow: hidden;
}

.loader-brand::after {
    content: "";
    position: absolute;
    inset: -35%;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.78) 50%, transparent 64%);
    transform: translateX(-65%) rotate(12deg);
    animation: loaderSweep 1.7s ease-in-out infinite;
}

.loader-brand img {
    width: 58px;
    height: 58px;
    display: block;
}

.loader-line {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: #e4e9f2;
}

.loader-line span {
    display: block;
    width: 46%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--burgundy), var(--blue));
    animation: loaderRail 1.15s cubic-bezier(.65, 0, .35, 1) infinite;
}

.loader-points {
    display: flex;
    gap: 0.45rem;
}

.loader-points i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--navy);
    opacity: 0.42;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-points i:nth-child(2) {
    animation-delay: 0.14s;
}

.loader-points i:nth-child(3) {
    animation-delay: 0.28s;
}

.is-loading body {
    cursor: progress;
}

@keyframes loaderSweep {
    0% {
        transform: translateX(-75%) rotate(12deg);
    }

    48%,
    100% {
        transform: translateX(75%) rotate(12deg);
    }
}

@keyframes loaderRail {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(230%);
    }
}

@keyframes loaderPulse {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.36;
    }

    45% {
        transform: translateY(-4px);
        opacity: 0.92;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader-brand::after,
    .loader-line span,
    .loader-points i {
        animation: none;
    }
}

/* Modern kurumsal tasarım yenilemesi */
:root {
    --navy: #111f35;
    --blue: #245987;
    --steel: #66758a;
    --light: #f6f8fb;
    --line: #d7dde8;
    --concrete: #e8ebf0;
    --gold: #c79a37;
    --burgundy: #81283b;
    --text: #182234;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --shadow-sm: 0 10px 28px rgba(17, 31, 53, 0.07);
    --shadow-md: 0 18px 48px rgba(17, 31, 53, 0.12);
    --shadow-lg: 0 28px 80px rgba(8, 18, 34, 0.22);
}

body {
    background: var(--surface-soft);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a,
button,
.btn,
.content-card,
.quick-grid a,
.news-row,
.document-card,
.event-card,
.form-panel {
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.topbar {
    background: #0d1829;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
    padding: 0.48rem 0;
}

.topbar-info {
    color: rgba(255,255,255,0.84);
}

.topbar-links a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    font-size: 0.76rem;
    font-weight: 800;
}

.topbar-links a:hover {
    background: var(--gold);
    color: #101827;
    opacity: 1;
}

.site-header {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(215,221,232,0.9);
    box-shadow: 0 8px 26px rgba(17, 31, 53, 0.06);
}

.navbar {
    padding: 0.78rem 0;
}

.brand-lockup {
    gap: 0.82rem;
    min-width: 245px;
}

.brand-mark,
.brand-logo {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(199,154,55,0.22);
    box-shadow: 0 10px 22px rgba(17,31,53,0.12);
}

.brand-mark {
    background: linear-gradient(145deg, #12243d, #245987);
}

.brand-lockup strong {
    max-width: 300px;
    color: #111f35;
    font-size: 0.98rem;
}

.brand-lockup small {
    color: #758298;
}

.navbar .nav-link {
    position: relative;
    border-radius: 6px;
    color: #1f3048;
    font-size: 0.9rem;
    padding: 0.55rem 0.64rem;
}

.navbar .nav-link:hover {
    background: #f1f4f8;
    color: var(--navy);
}

.header-actions {
    gap: 0.55rem;
}

.btn {
    border-radius: 6px;
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-navy,
.btn-light-navy {
    background: linear-gradient(135deg, #111f35, #245987);
    border-color: #172b48;
}

.btn-gold {
    background: #c79a37;
    border-color: #c79a37;
    color: #111827;
    box-shadow: 0 10px 24px rgba(199,154,55,0.18);
}

.btn-outline-navy {
    background: rgba(255,255,255,0.9);
}

.hero-section {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(120deg, rgba(13,24,41,0.97), rgba(28,68,105,0.94)),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: auto, 54px 54px, 54px 54px;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 10px;
    background: linear-gradient(90deg, var(--gold), var(--burgundy), var(--blue));
    opacity: 0.95;
    z-index: -1;
}

.hero-slide {
    padding: 5.8rem 0 5.4rem;
}

.hero-grid {
    gap: 3rem;
}

.hero-copy h1 {
    font-size: 4.2rem;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 1.1rem 0;
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255,255,255,0.82);
}

.eyebrow,
.section-title span,
.section-head span,
.page-hero span {
    letter-spacing: 0.02rem;
}

.hero-actions {
    margin-top: 1.4rem;
}

.hero-image-card,
.blueprint-card {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.hero-image-card {
    width: min(100%, 520px);
    border: 1px solid rgba(255,255,255,0.24);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
}

.hero-arrow:hover,
.hero-dot:hover {
    border-color: var(--gold);
}

.hero-dot {
    width: 11px;
    height: 11px;
}

.section-block,
.section-band,
.online-section,
.contact-section,
.stats-section {
    padding: 5rem 0;
}

.section-band {
    background:
        linear-gradient(180deg, #f8fafc, #eef2f7);
}

.section-title h2,
.section-head h2,
.contact-section h2,
.president-grid h2,
.page-hero h1 {
    font-size: 2rem;
    letter-spacing: 0;
}

.quick-grid {
    gap: 1.1rem;
}

.quick-grid a {
    position: relative;
    min-height: 104px;
    align-items: end;
    padding: 1.15rem;
    overflow: hidden;
    border-color: rgba(215,221,232,0.95);
    box-shadow: var(--shadow-sm);
}

.quick-grid a::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--burgundy));
}

.quick-grid a::after {
    content: ">";
    position: absolute;
    right: 1rem;
    top: 0.9rem;
    color: rgba(17,31,53,0.28);
    font-weight: 800;
}

.quick-grid a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.placeholder-photo,
.placeholder-inner,
.map-preview,
.content-card,
.document-card,
.event-card,
.form-panel,
.online-panel,
.news-row {
    border-radius: 8px;
}

.placeholder-photo {
    box-shadow: var(--shadow-sm);
}

.placeholder-inner {
    background: rgba(255,255,255,0.54);
    backdrop-filter: blur(3px);
}

.commitment-list span,
.service-list span {
    border: 1px solid rgba(215,221,232,0.9);
    background: #fff;
}

.content-card,
.document-card,
.event-card,
.news-row,
.form-panel {
    border-color: rgba(215,221,232,0.95);
    box-shadow: var(--shadow-sm);
}

.content-card:hover,
.document-card:hover,
.event-card:hover,
.news-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-meta span,
.badge-soft,
.document-card span {
    color: var(--burgundy);
}

.news-row {
    grid-template-columns: 92px 1fr 80px;
}

.news-row > a {
    color: var(--burgundy);
    font-weight: 800;
}

.news-date,
.event-date,
.pdf-icon {
    background: linear-gradient(145deg, #111f35, #245987);
    box-shadow: 0 12px 26px rgba(17,31,53,0.16);
}

.pdf-icon {
    background: linear-gradient(145deg, #81283b, #b44456);
}

.online-section,
.stats-section {
    background:
        linear-gradient(120deg, rgba(12,24,42,0.98), rgba(31,69,101,0.96)),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: auto, 50px 50px, 50px 50px;
}

.online-panel {
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}

.form-panel input,
.form-panel textarea,
.form-panel select {
    min-height: 48px;
    background: #fbfcfe;
    border-color: #d8deea;
    outline: none;
}

.form-panel input:focus,
.form-panel textarea:focus,
.form-panel select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(36,89,135,0.1);
    background: #fff;
}

.document-card {
    grid-template-columns: 68px minmax(0, 1fr) auto;
}

.event-card.has-media,
.news-row.has-media {
    align-items: stretch;
}

.event-media,
.news-media,
.card-image,
.detail-image {
    background-color: #e9edf3;
}

.stats-grid div {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.contact-section {
    background: #fff;
}

.contact-list span {
    background: #f8fafc;
    border: 1px solid #e5e9f1;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.contact-actions {
    margin-top: 1.15rem;
}

.map-preview {
    box-shadow: var(--shadow-sm);
}

.page-hero {
    background:
        linear-gradient(120deg, rgba(248,250,252,0.98), rgba(235,240,247,0.96)),
        linear-gradient(90deg, rgba(17,31,53,0.045) 1px, transparent 1px),
        linear-gradient(rgba(17,31,53,0.04) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
}

.site-footer {
    background:
        linear-gradient(120deg, #0b1423, #101f35);
}

.site-footer a:hover {
    color: #fff;
}

.global-toast {
    box-shadow: var(--shadow-md);
}

@media (max-width: 1199px) {
    .brand-lockup strong {
        max-width: 230px;
    }

    .hero-copy h1 {
        font-size: 3.4rem;
    }
}

@media (max-width: 991px) {
    .site-header {
        position: sticky;
    }

    .navbar-collapse {
        padding-top: 0.8rem;
    }

    .header-actions {
        align-items: stretch;
    }

    .header-actions .btn,
    .member-logout-form,
    .member-logout-form .btn {
        width: 100%;
    }

    .hero-slide {
        padding: 4.2rem 0 4.6rem;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-image-card,
    .blueprint-card {
        width: 100%;
    }

    .document-card {
        grid-template-columns: 68px 1fr;
    }

    .document-card .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .topbar-info {
        gap: 0.4rem 0.65rem;
    }

    .topbar-info span + span::before {
        display: none;
    }

    .brand-lockup {
        min-width: 0;
    }

    .brand-lockup strong {
        max-width: 220px;
        font-size: 0.9rem;
    }

    .brand-lockup small {
        font-size: 0.72rem;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
    }

    .hero-copy p,
    .page-hero p {
        font-size: 1rem;
    }

    .section-title h2,
    .section-head h2,
    .contact-section h2,
    .president-grid h2,
    .page-hero h1 {
        font-size: 1.65rem;
    }

    .section-block,
    .section-band,
    .online-section,
    .contact-section,
    .stats-section {
        padding: 3.4rem 0;
    }

    .quick-grid a {
        min-height: 84px;
    }
}

/* Public content alignment fixes */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.container,
.hero-grid > *,
.quick-grid > *,
.president-grid > *,
.online-grid > *,
.contact-grid > *,
.content-grid > *,
.document-grid > *,
.event-grid > *,
.form-grid > *,
.footer-grid > *,
.news-row > *,
.gallery-grid > * {
    min-width: 0;
}

.hero-copy h1,
.section-title h2,
.section-head h2,
.contact-section h2,
.president-grid h2,
.page-hero h1,
.content-card h3,
.document-card h3,
.event-card h3,
.news-row h3,
.gallery-caption h3 {
    overflow-wrap: anywhere;
}

.topbar-info {
    min-width: 0;
}

.topbar-info span {
    overflow-wrap: anywhere;
}

.navbar .dropdown-menu {
    border: 1px solid rgba(215,221,232,0.95);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.navbar .dropdown-item {
    color: var(--navy);
    font-weight: 700;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: #f1f4f8;
    color: var(--navy);
}

.navbar > .container {
    gap: 0.75rem;
}

.navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto;
}

.online-section .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 1.1rem;
}

.public-empty-state {
    grid-column: 1 / -1;
    padding: 1.15rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: rgba(255,255,255,0.72);
    color: var(--steel);
    font-weight: 800;
}

.news-row.has-media {
    grid-template-columns: 92px 132px minmax(0, 1fr) 80px;
}

.gallery-section {
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid rgba(215,221,232,0.95);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gallery-image {
    aspect-ratio: 16 / 10;
    border-radius: 0;
}

.gallery-caption {
    padding: 1rem;
}

.gallery-caption span {
    display: inline-block;
    color: var(--burgundy);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.gallery-caption h3 {
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.gallery-caption p {
    color: #56657a;
    line-height: 1.6;
    margin: 0.55rem 0 0;
}

@media (max-width: 991px) {
    .brand-lockup {
        flex: 1 1 auto;
        max-width: calc(100% - 58px);
    }

    .online-section .form-grid,
    .gallery-grid,
    .news-row.has-media {
        grid-template-columns: 1fr;
    }

    .news-media {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .contact-actions .btn {
        width: 100%;
    }
}
