* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--background, #f8f5ef);
    color: var(--text, #1f2933);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 6vw;
    background: rgba(248, 245, 239, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 36, 56, 0.08);
}

.brand-text {
    font-family: Georgia, serif;
    font-size: 1.45rem;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.site-logo {
    height: 155px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 1.2rem;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--primary);
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.site-nav a:hover {
    opacity: 1;
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 6vw 5rem;
}

.hero > div:first-child {
    max-width: 760px;
}

.kicker {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero h1 {
    font-family: Georgia, serif;
    color: var(--primary);
    font-size: clamp(2.35rem, 5vw, 5rem);
    line-height: 0.98;
    margin: 1rem 0;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 680px;
}

.hero-card {
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(11, 36, 56, 0.08);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 0 24px 70px rgba(11, 36, 56, 0.12);
    max-width: 520px;
    margin-left: auto;
}

.hero-card img {
    width: 100%;
    border-radius: 1.5rem;
    display: block;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    border: 1px solid var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    color: var(--primary);
    background: transparent;
}

.section {
    padding: 4rem 6vw;
}

.section h2 {
    font-family: Georgia, serif;
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3.6rem);
    margin: 0 0 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(11, 36, 56, 0.08);
    border-radius: 1.4rem;
    padding: 1.4rem;
    min-height: 220px;
}

.info-card h3 {
    color: var(--primary);
    margin-top: 0;
}

.newsletter-band {
    margin: 3rem 6vw;
    padding: 2.5rem;
    border-radius: 2rem;
    background: var(--primary);
    color: white;
}

.newsletter-band input {
    width: 100%;
    padding: 0.9rem;
    border-radius: 999px;
    border: 0;
    margin-top: 0.6rem;
}

.newsletter-band button {
    margin-top: 1rem;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    background: var(--accent);
    color: var(--primary);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 6vw;
    border-top: 1px solid rgba(11, 36, 56, 0.08);
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.gate-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: #f8f5ef;
}

.gate-card {
    width: min(460px, 100%);
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 24px 70px rgba(11, 36, 56, 0.15);
    text-align: center;
}

.gate-brand {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: #0b2438;
}

.gate-tagline {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6f8374;
    font-size: 0.8rem;
}

.gate-card label {
    display: block;
    text-align: left;
    margin-top: 1rem;
    font-weight: 700;
}

.gate-card input {
    width: 100%;
    padding: 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid #ddd;
    margin-top: 0.4rem;
}

.gate-card button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    border: 0;
    border-radius: 999px;
    background: #0b2438;
    color: white;
    font-weight: 700;
}

.form-error {
    background: #fff0f0;
    color: #9b1c1c;
    padding: 0.8rem;
    border-radius: 0.8rem;
    margin: 1rem 0;
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.3rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

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

    .site-footer {
        flex-direction: column;
    }
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(11, 36, 56, 0.15);
    background: rgba(255,255,255,0.7);
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.consent-box input {
    width: auto;
    margin-top: 0.25rem;
}

@media (max-width: 900px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px 1fr;
    background: var(--background, #f8f5ef);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem 1.3rem;
    background: var(--primary, #0b2438);
    color: white;
}

.admin-brand {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255,255,255,0.08);
}

.admin-brand-main {
    font-family: Georgia, serif;
    font-size: 1.5rem;
}

.admin-brand-sub {
    margin-top: 0.25rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-nav {
    display: grid;
    gap: 0.45rem;
}

.admin-nav a {
    padding: 0.85rem 1rem;
    border-radius: 999px;
    color: rgba(255,255,255,0.86);
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-main {
    padding: 2rem 4vw;
}

.admin-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
    color: var(--primary);
}

.admin-kicker {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-page-heading {
    margin-bottom: 1.5rem;
}

.admin-page-heading h1 {
    margin: 0.3rem 0;
    font-family: Georgia, serif;
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.admin-page-heading p {
    max-width: 780px;
    line-height: 1.7;
}

.admin-help-card,
.admin-panel,
.admin-stat-card {
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(11, 36, 56, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(11, 36, 56, 0.08);
}

.admin-help-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-help-card h2,
.admin-panel h2 {
    margin-top: 0;
    color: var(--primary);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    padding: 1.4rem;
}

.admin-stat-card span {
    display: block;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-stat-card strong {
    display: block;
    color: var(--primary);
    font-size: 2.4rem;
    font-family: Georgia, serif;
}

.admin-panel {
    padding: 1.5rem;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.admin-small-button {
    display: inline-flex;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem;
    text-align: left;
    border-bottom: 1px solid rgba(11, 36, 56, 0.08);
}

.admin-table th {
    color: var(--primary);
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        justify-content: flex-start;
    }
}

.admin-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}

.admin-filter-row a {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(11, 36, 56, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.admin-form {
    display: grid;
    gap: 0.9rem;
}

.admin-form label {
    font-weight: 700;
    color: var(--primary);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(11, 36, 56, 0.16);
    background: rgba(255,255,255,0.75);
    font-family: inherit;
    font-size: 1rem;
}

.admin-message-box {
    line-height: 1.8;
    padding: 1.2rem;
    border-radius: 1.2rem;
    background: rgba(11, 36, 56, 0.05);
}

.admin-notes-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-note {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(11, 36, 56, 0.05);
}

.admin-note span {
    display: block;
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }
}

.success-message {
    max-width: 760px;
    margin-top: 1.5rem;
    padding: 1.2rem 1.4rem;
    border-radius: 1.2rem;
    margin-left: auto;
    margin-right: auto;
    background: rgba(105, 210, 132, 0.4);
    border: 1px solid rgba(111, 131, 116, 0.28);
    color: var(--primary);
}

.success-message p {
    margin-bottom: 0;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: rgba(11, 36, 56, 0.04);
}

.admin-button-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-search-form {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.admin-search-form input {
    min-width: 320px;
    flex: 1;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 36, 56, 0.14);
    background: rgba(255,255,255,0.78);
    font-size: 1rem;
}

@media (max-width: 900px) {

    .admin-search-form {
        flex-direction: column;
    }

    .admin-search-form input {
        min-width: 100%;
    }

}

.newsletter-success {
    background: rgba(105, 210, 132, 0.18);
    color: white;
    border-color: rgba(255,255,255,0.35);
}

.admin-stat-link {
    display: block;
    text-decoration: none;
}

.admin-stat-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(11, 36, 56, 0.12);
}

.admin-section-label {
    margin-bottom: 1.5rem;
}

.admin-section-label h2 {
    margin-bottom: 0.4rem;
}

.muted {
    color: rgba(31, 41, 51, 0.65);
}

.admin-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
}

.admin-checkbox-label input {
    width: auto;
}

.admin-muted-link {
    color: var(--secondary);
    font-weight: 700;
}

.danger-button {
    background: #8a1f1f !important;
    color: white !important;
}

.danger-button:hover {
    background: #6f1717 !important;
}

.danger-panel {
    border-color: rgba(138, 31, 31, 0.25);
    background: rgba(138, 31, 31, 0.04);
}

.team-hero {
    text-align: center;
}

.team-hero h2 {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.team-hero p {
    max-width: 820px;
    margin: 1rem auto 0;
    line-height: 1.8;
}

.team-card-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 2rem;
}

.team-flip-card {
    position: relative;
    perspective: 1400px;
    height: 560px;
}

.team-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.75s ease;
    transform-style: preserve-3d;
}

.team-flip-card.is-flipped .team-flip-inner {
    transform: rotateY(180deg);
}

.team-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 1.6rem;
    overflow: hidden;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(11, 36, 56, 0.1);
    box-shadow: 0 18px 55px rgba(11, 36, 56, 0.11);
}

.team-card-front {
    display: grid !important;
    grid-template-columns: 46% 54%;
}

.team-front-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-front-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-role-pill {
    align-self: flex-start;
    background: var(--secondary);
    color: white;
    padding: 0.4rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.team-front-content h3,
.team-back-header h3 {
    font-family: Georgia, serif;
    color: var(--primary);
    font-size: 2.1rem;
    line-height: 1;
    margin: 0 0 0.75rem;
}

.team-front-content p {
    line-height: 1.65;
    font-size: 0.95rem;
}

.team-flip-button {
    margin-top: 1.2rem;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.15rem;
    background: var(--primary);
    color: white;
    font-weight: 800;
    cursor: pointer;
    align-self: flex-start;
}

.team-card-back {
    transform: rotateY(180deg);
    padding: 1.5rem;
    overflow-y: auto;
}

.team-back-button {
    background: transparent;
    color: var(--primary);
    padding: 0;
    margin: 0 0 1rem;
}

.team-back-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-back-header img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: center top;
    border-radius: 1rem;
}

.team-back-header p {
    margin: 0;
    color: var(--secondary);
    font-weight: 700;
}

.team-back-bio,
.team-detail-block p {
    line-height: 1.55;
    font-size: 0.9rem;
}

.team-detail-block {
    border-top: 1px solid rgba(11, 36, 56, 0.14);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.team-detail-block h4 {
    margin: 0 0 0.35rem;
    color: var(--secondary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.team-contact-row {
    border-top: 1px solid rgba(11, 36, 56, 0.14);
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.team-contact-row a {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.88rem;
}


@media (max-width: 1000px) {
    .team-card-grid {
        grid-template-columns: 1fr;
        max-width: 680px;
    }
}

@media (max-width: 700px) {
    .team-flip-card,
    .team-flip-card:first-child {
        height: 760px;
    }

    .team-card-front {
        grid-template-columns: 1fr;
        grid-template-rows: 48% 52%;
    }

    .team-front-content {
        padding: 1.4rem;
    }

    .team-back-header img {
        width: 78px;
        height: 78px;
    }
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.insight-card {
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(11, 36, 56, 0.08);
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(11, 36, 56, 0.09);
}

.insight-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.insight-card-body {
    padding: 1.5rem;
}

.insight-card h3 {
    font-family: Georgia, serif;
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1.1;
    margin: 0.7rem 0 1rem;
}

.insight-card p {
    line-height: 1.7;
}

.article-section {
    max-width: 920px;
    margin: 0 auto;
}

.article-date {
    color: var(--secondary);
    font-weight: 700;
}

.article-featured-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 18px 50px rgba(11, 36, 56, 0.1);
}

.article-content p {
    font-size: 1.12rem;
    line-height: 1.9;
}

@media (max-width: 1000px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

.g-recaptcha {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 500px) {
    .g-recaptcha {
        transform: scale(0.92);
        transform-origin: left top;
    }
}