/* =========================================================
   BEA T. NAVATA — DARK GREEN & BLACK PORTFOLIO
   Complete stylesheet | Desktop screen-fit | Responsive
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ---------- COLORS ---------- */

:root {
    --bg: #050806;
    --bg2: #0b100d;
    --panel: #101a13;
    --panel2: #17251b;

    --gold: #4fbd7b;
    --gold-light: #c9f4d8;
    --gold-bright: #e5ffed;
    --gold-dark: #1d7446;

    --white: #f8f5ed;
    --muted: #b8aa8c;
    --line: rgba(79, 189, 123, 0.35);

    --heading: 'Cormorant Garamond', serif;
    --body: 'Montserrat', Arial, sans-serif;
}

/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;

    background: var(--bg);
    color: var(--white);

    font-family: var(--body);
    font-size: 13px;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

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

button {
    font-family: inherit;
}

/* ---------- GOLD BACKGROUND ---------- */

body {
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(79, 189, 123, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 5% 90%,
            rgba(29, 116, 70, 0.08),
            transparent 30%
        ),
        #050806;
}

/* ---------- MAIN STRUCTURE ---------- */

.site-shell {
    width: 100%;
    height: 100vh;
    height: 100svh;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

/* ---------- NAVIGATION ---------- */

.topbar {
    flex: 0 0 auto;

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    padding: 12px 5%;

    background: linear-gradient(
        110deg,
        #0d1b12,
        #183322,
        #0d1b12
    );

    border-bottom: 1px solid var(--gold);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-weight: 600;
    letter-spacing: 2px;
    font-size: 12px;
}

.brand small {
    display: block;

    color: var(--gold);
    font-size: 9px;
    letter-spacing: 3px;

    margin-top: 3px;
}

.brand-mark {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--gold);
    background: linear-gradient(
        145deg,
        #f1d27c,
        #2e9658
    );

    color: #050806;

    font-family: var(--heading);
    font-size: 20px;
    font-weight: 700;
}

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

    gap: 8px;
    flex-wrap: wrap;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 13px;

    border: 1px solid transparent;

    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.2px;

    transition: 0.25s ease;
}

.nav a span {
    color: var(--gold);
    font-size: 15px;
}

.nav a:hover,
.nav a.active {
    color: #050806;

    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold),
        #2f9b5b
    );

    border-color: var(--gold-light);
}

/* ---------- FOOTER ---------- */

footer {
    flex: 0 0 auto;

    text-align: center;

    border-top: 1px solid var(--line);

    padding: 9px 12px;

    color: #9c8c68;
    font-size: 9px;
    letter-spacing: 1.5px;
}

footer span {
    color: var(--gold);
    padding: 0 6px;
}

/* ---------- HOMEPAGE ---------- */

.home-main {
    flex: 1;
    min-height: 0;

    width: min(1200px, 90%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.85fr 1.15fr;

    align-items: center;

    gap: 5%;

    padding: 25px 0;

    overflow: hidden;
}

.hero-photo {
    height: 100%;
    max-height: 650px;
    min-height: 0;

    position: relative;

    border: 1px solid var(--gold-dark);

    overflow: hidden;

    background: linear-gradient(
        145deg,
        #183322,
        #050806
    );

    box-shadow:
        0 0 25px rgba(79, 189, 123, 0.08),
        inset 0 0 30px rgba(79, 189, 123, 0.04);
}

.hero-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.hero-photo::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.4),
        transparent 45%
    );

    pointer-events: none;
}

.photo-placeholder {
    display: grid !important;
    place-items: center;

    background: linear-gradient(
        145deg,
        #173522,
        #0a0907
    ) !important;
}

.placeholder-label {
    position: absolute;
    z-index: 2;

    text-align: center;

    color: var(--gold-light);

    font-size: 11px;
    letter-spacing: 2px;
    line-height: 2;
}

.placeholder-label small {
    display: block;

    color: var(--muted);

    font-size: 9px;
    letter-spacing: 1px;
}

.hero-copy {
    min-width: 0;

    padding: 15px 0;
}

.eyebrow {
    color: var(--gold-light);

    font-size: 10px;
    letter-spacing: 4px;

    margin-bottom: 12px;
}

.hero-copy h1,
.page-heading h1 {
    font-family: var(--heading);
    font-weight: 500;

    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.95;

    margin: 0;

    color: var(--white);
}

.hero-copy h1 em,
.page-heading h1 em,
.gallery-heading h2 em {
    color: var(--gold);
    font-style: normal;
}

.hero-sub {
    color: var(--gold-light);

    font-size: 11px;
    letter-spacing: 4px;

    margin-top: 18px;
}

.gold-rule {
    width: 75px;
    height: 2px;

    background: linear-gradient(
        90deg,
        var(--gold-light),
        var(--gold-dark)
    );

    margin: 22px 0;
}

.hero-note {
    color: var(--muted);

    max-width: 430px;

    font-size: 12px;
    line-height: 1.8;
}

.nav-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 24px;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 60px;

    padding: 12px;

    border: 1px solid var(--line);

    color: var(--white);

    font-size: 10px;
    letter-spacing: 1px;

    background: rgba(79, 189, 123, 0.04);

    transition: 0.3s ease;
}

.nav-card .card-icon {
    color: var(--gold);
    font-size: 21px;
}

.nav-card b {
    margin-left: auto;

    color: var(--gold);

    font-weight: 400;
}

.nav-card:hover {
    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold)
    );

    color: #050806;

    border-color: var(--gold-light);

    transform: translateY(-3px);
}

.nav-card:hover .card-icon,
.nav-card:hover b {
    color: #050806;
}

/* ---------- PAGE LAYOUT ---------- */

.page-main {
    flex: 1;
    min-height: 0;

    width: min(1300px, 94%);

    margin: 0 auto;

    padding: 18px 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.page-heading {
    flex: 0 0 auto;

    text-align: center;

    margin-bottom: 18px;
}

.page-heading h1 {
    font-size: clamp(36px, 4vw, 58px);
}

.page-heading .gold-rule {
    margin: 12px auto;
}

.page-heading .muted {
    margin-top: 5px;
}

.muted {
    color: var(--muted);
    font-size: 11px;
}

/* ---------- PERSONAL INFORMATION ---------- */

.profile-intro {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 20px;

    margin: 0 auto 15px;

    width: 100%;
    max-width: 900px;

    padding: 14px;

    border: 1px solid var(--line);

    background: linear-gradient(
        110deg,
        #101a13,
        #0b0a08
    );
}

.profile-photo {
    width: 135px;
    height: 155px;

    flex: 0 0 auto;

    position: relative;

    border: 1px solid var(--gold-dark);

    overflow: hidden;

    background: #0e1a12;
}

.profile-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.profile-name {
    min-width: 0;
}

.profile-name h2 {
    font-family: var(--heading);
    font-weight: 500;

    font-size: 35px;

    margin: 0;
}

.info-grid {
    flex: 1;
    min-height: 0;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    grid-auto-rows: min-content;

    align-items: start;

    gap: 12px;

    overflow: hidden;
}

.info-card {
    position: relative;

    display: block;

    height: auto;
    min-height: 0;

    padding: 13px 15px;

    border: 1px solid var(--line);

    background: rgba(17, 16, 13, 0.95);

    overflow: hidden;
}

.info-card h3 {
    font-family: var(--heading);
    font-weight: 600;

    font-size: 17px;

    color: var(--gold-light);

    margin: 0 0 9px;
}

.info-card p {
    margin: 0;

    color: #ded7c8;

    font-size: 11px;
    line-height: 1.5;
}

.info-card dl {
    display: grid;

    grid-template-columns: 100px minmax(0, 1fr);

    gap: 4px 10px;

    margin: 0;

    font-size: 11px;
    line-height: 1.45;
}

.info-card dt {
    color: var(--muted);

    min-width: 0;
}

.info-card dd {
    margin: 0;

    color: var(--white);

    min-width: 0;

    overflow-wrap: anywhere;
}

.info-card dd a {
    color: var(--gold-light);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 10px;
}

.tag-list span {
    border: 1px solid var(--line);

    padding: 4px 8px;

    color: var(--gold-light);

    font-size: 9px;
}

/* ---------- BUTTONS ---------- */

.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    border: 1px solid var(--gold);

    color: var(--gold-light);

    padding: 9px 12px;

    font-family: var(--body);
    font-weight: 500;

    font-size: 9px;
    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.25s ease;
}

.outline-btn:hover {
    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold)
    );

    color: #050806;
}

/* ---------- ACHIEVEMENTS ---------- */

.school-grid {
    flex: 1;
    min-height: 0;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;

    overflow: hidden;
}

.school-card {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--line);

    padding: 12px;

    background: linear-gradient(
        160deg,
        #101b13,
        #070b08
    );

    overflow: auto;

    transition: 0.25s ease;
}

.school-card:hover {
    border-color: var(--gold);

    box-shadow: 0 0 18px rgba(79, 189, 123, 0.08);
}

.school-logo {
    flex: 0 0 auto;

    height: 65px;
    width: 65px;

    margin: 0 auto 9px;

    position: relative;

    border: 1px solid var(--line);

    background: #17130c;

    overflow: hidden;

    display: grid;
    place-items: center;
}

.school-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.logo-placeholder .logo-text {
    display: block;
}

.logo-text {
    display: none;

    text-align: center;

    color: var(--gold-light);

    font-family: var(--heading);
    font-size: 20px;
}

.logo-text small {
    display: block;

    font-family: var(--body);
    font-size: 7px;

    letter-spacing: 1px;
}

.level {
    color: var(--gold);

    font-size: 8px;
    letter-spacing: 2px;

    margin: 0 0 5px;

    text-align: center;
}

.school-card h2,
.family-text h2 {
    font-family: var(--heading);
    font-weight: 500;

    font-size: 22px;
    line-height: 1.1;

    margin: 0 0 4px;
}

.school-card h2 {
    text-align: center;
}

.school-card .muted {
    text-align: center;

    margin: 0 0 8px;

    font-size: 9px;
}

.award-block {
    border-top: 1px solid rgba(79, 189, 123, 0.18);

    padding-top: 7px;
    margin-top: 7px;
}

.award-block h3 {
    color: var(--gold-light);

    font-size: 9px;
    letter-spacing: 1px;

    margin: 0 0 5px;

    text-transform: uppercase;
}

.award-block p {
    font-size: 9px;
    line-height: 1.45;

    color: #d6d0c4;

    margin: 3px 0;
}

/* ---------- ACHIEVEMENT GALLERY ---------- */

.gallery-section {
    flex: 0 0 auto;

    margin-top: 12px;

    border-top: 1px solid var(--line);

    padding-top: 10px;
}

.gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}

.gallery-heading h2 {
    font-family: var(--heading);
    font-weight: 500;

    font-size: 30px;

    margin: 0;
}

.gallery-controls {
    display: flex;
    gap: 6px;
}

.gallery-controls button,
.lightbox button {
    background: #08110b;

    border: 1px solid var(--gold);

    color: var(--gold-light);

    width: 34px;
    height: 34px;

    font-size: 22px;

    cursor: pointer;

    transition: 0.2s;
}

.gallery-controls button:hover,
.lightbox button:hover {
    background: var(--gold);
    color: #050806;
}

.carousel-viewport {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;

    gap: 10px;

    width: max-content;

    animation: gallery-scroll 80s linear infinite;
}

.carousel-viewport:hover .carousel-track {
    animation-play-state: paused;
}

.gallery-photo {
    width: 125px;

    aspect-ratio: 4 / 5;

    position: relative;

    border: 1px solid var(--line);

    overflow: hidden;

    cursor: pointer;

    background: #0c150f;

    flex-shrink: 0;
}

.gallery-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s;
}

.gallery-photo:hover img {
    transform: scale(1.05);
}

.gallery-photo .photo-fallback {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    text-align: center;

    color: var(--gold-light);

    font-size: 9px;
    letter-spacing: 1px;

    padding: 8px;

    background: linear-gradient(
        145deg,
        #14291b,
        #090807
    );
}

.gallery-tip {
    text-align: center;

    color: #8e8062;

    font-size: 9px;
    letter-spacing: 1px;

    margin-top: 5px;
}

@keyframes gallery-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 20;

    background: rgba(0, 0, 0, 0.96);

    align-items: center;
    justify-content: center;

    gap: 15px;

    padding: 45px 15px 25px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-height: 82vh;
    max-width: 75vw;

    object-fit: contain;

    border: 1px solid var(--line);
}

.lightbox-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 40px !important;
    height: 40px !important;

    font-size: 27px !important;
}

.lightbox p {
    position: absolute;

    bottom: 8px;

    color: var(--gold-light);

    font-size: 9px;
    letter-spacing: 2px;
}

.lightbox button {
    flex: 0 0 auto;
}

/* ---------- FAMILY ---------- */

.family-grid {
    flex: 1;
    min-height: 0;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    overflow: hidden;
}

.family-card {
    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-columns: minmax(120px, 0.8fr) 1.2fr;

    border: 1px solid var(--line);

    background: #0b100d;

    overflow: hidden;
}

.family-photo {
    min-height: 0;

    position: relative;

    background: #17130c;

    overflow: hidden;
}

.family-photo img {
    width: 100%;
    height: 100%;

    position: absolute;

    object-fit: cover;
}

.family-text {
    min-width: 0;

    padding: 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;
}

.family-text h2 {
    font-size: 26px;
}

.family-text p:not(.level) {
    font-size: 10px;

    color: #c7c0b7;

    margin: 5px 0;

    overflow-wrap: anywhere;
}

.family-text .outline-btn {
    align-self: flex-start;

    margin-top: 7px;
}

.closing-note {
    flex: 0 0 auto;

    text-align: center;

    margin: 12px 0 0;

    padding: 10px;

    border-top: 1px solid var(--line);

    font-family: var(--heading);
    font-style: italic;

    font-size: 20px;

    color: var(--gold-light);
}

/* ---------- MESSAGE MODAL ---------- */

.message-modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.85);

    z-index: 30;

    align-items: center;
    justify-content: center;

    padding: 15px;
}

.message-modal.open {
    display: flex;
}

.message-box {
    max-width: 500px;
    width: 100%;

    background: #0b100d;

    border: 1px solid var(--gold);

    padding: 30px;

    position: relative;
}

.message-box p:last-child {
    font-family: var(--heading);

    font-size: 22px;

    color: var(--white);
}

.modal-close {
    position: absolute;

    right: 12px;
    top: 10px;

    border: 0;

    background: none;

    color: var(--gold);

    font-size: 25px;

    cursor: pointer;
}

/* =========================================================
   LAPTOP / SMALL DESKTOP
   ========================================================= */

@media (max-height: 800px) and (min-width: 901px) {

    .topbar {
        min-height: 65px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .home-main {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .hero-copy h1 {
        font-size: clamp(45px, 5vw, 68px);
    }

    .hero-photo {
        max-height: 570px;
    }

    .page-main {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .page-heading {
        margin-bottom: 10px;
    }

    .page-heading h1 {
        font-size: 44px;
    }

    .profile-intro {
        padding: 10px;
        margin-bottom: 10px;
    }

    .profile-photo {
        width: 110px;
        height: 125px;
    }

    .info-grid {
        gap: 8px;
    }

    .info-card {
        padding: 10px;
    }

    .info-card h3 {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .info-card dl {
        gap: 3px 8px;
        font-size: 10px;
    }

    .school-card {
        padding: 9px;
    }

    .school-card h2 {
        font-size: 20px;
    }

    .award-block {
        padding-top: 5px;
        margin-top: 5px;
    }

    .award-block p {
        font-size: 8.5px;
    }

    .gallery-photo {
        width: 110px;
    }

    .gallery-heading h2 {
        font-size: 26px;
    }

    .family-text {
        padding: 10px;
    }

    .family-text h2 {
        font-size: 23px;
    }
}

/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 900px) {

    .topbar {
        flex-direction: column;
        align-items: center;

        gap: 10px;

        padding: 10px 4%;
    }

    .nav {
        justify-content: center;
    }

    .home-main {
        grid-template-columns: 0.9fr 1.1fr;

        gap: 4%;

        width: 92%;
    }

    .hero-photo {
        min-height: 0;
    }

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

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

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

    .family-photo {
        height: 180px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .site-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .topbar {
        padding: 12px 4%;
    }

    .brand {
        justify-content: center;
    }

    .nav {
        width: 100%;

        display: grid;
        grid-template-columns: repeat(2, 1fr);

        gap: 5px;
    }

    .nav a {
        justify-content: center;

        padding: 8px 5px;

        font-size: 9px;
    }

    .home-main {
        width: 90%;

        display: grid;
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 20px 0 25px;

        overflow: visible;
    }

    .hero-photo {
        height: 350px;
        min-height: 0;
        max-height: none;
    }

    .hero-copy h1 {
        font-size: 58px;
    }

    .nav-cards {
        gap: 7px;
    }

    .nav-card {
        min-height: 55px;

        padding: 9px;

        font-size: 9px;
    }

    .page-main {
        width: 92%;

        height: auto;
        min-height: 0;

        padding: 20px 0;

        overflow: visible;
    }

    .page-heading h1 {
        font-size: 40px;
    }

    .profile-intro {
        flex-direction: column;

        text-align: center;

        padding: 12px;
    }

    .profile-photo {
        width: 150px;
        height: 180px;
    }

    .profile-name h2 {
        font-size: 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;

        overflow: visible;
    }

    .info-card {
        padding: 12px;
    }

    .info-card dl {
        grid-template-columns: 95px minmax(0, 1fr);
        font-size: 10px;
    }

    .school-grid {
        grid-template-columns: 1fr;

        overflow: visible;
    }

    .school-card {
        overflow: visible;
    }

    .gallery-heading h2 {
        font-size: 29px;
    }

    .gallery-photo {
        width: 135px;
    }

    .family-grid {
        grid-template-columns: 1fr;

        overflow: visible;
    }

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

    .family-photo {
        height: 280px;
    }

    .family-text {
        padding: 15px;
    }

    .closing-note {
        font-size: 19px;
    }

    .lightbox img {
        max-width: 70vw;
    }
}
/* =========================================
   PERSONAL INFORMATION — SCREEN-FIT ARRANGEMENT
   ========================================= */

body {
    overflow: hidden !important;
}

.site-shell {
    height: 100vh !important;
    height: 100svh !important;
    overflow: hidden !important;
}

/* Main personal page */
.page-main {
    padding: 10px 0 !important;
    gap: 8px !important;
    overflow: hidden !important;
}

/* Smaller title area */
.page-heading {
    margin-bottom: 5px !important;
}

.page-heading h1 {
    font-size: 44px !important;
}

.page-heading .gold-rule {
    margin: 8px auto !important;
}

/* Compact profile header */
.profile-intro {
    max-width: 1000px !important;
    padding: 10px !important;
    gap: 15px !important;
    margin-bottom: 5px !important;
}

.profile-photo {
    width: 95px !important;
    height: 110px !important;
}

.profile-name h2 {
    font-size: 30px !important;
}

/* Arrange cards into two balanced columns */
.info-grid {
    flex: 1 !important;
    min-height: 0 !important;

    display: grid !important;

    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;

    grid-auto-flow: row !important;

    gap: 10px !important;

    overflow: hidden !important;
}

/* All cards */
.info-card {
    min-height: 0 !important;
    height: 100% !important;

    padding: 10px 12px !important;

    overflow: hidden !important;
}

/* Card headings */
.info-card h3 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
}

/* PERSONAL DETAILS:
   two sets of label/value per row */
.info-card:nth-child(1) dl {
    display: grid !important;

    grid-template-columns:
        75px minmax(80px, 1fr)
        75px minmax(80px, 1fr) !important;

    gap: 3px 8px !important;

    font-size: 10px !important;
    line-height: 1.4 !important;
}

/* Other cards: normal label/value columns */
.info-card:not(:nth-child(1)) dl {
    display: grid !important;

    grid-template-columns: 90px minmax(0, 1fr) !important;

    gap: 4px 10px !important;

    font-size: 10px !important;
    line-height: 1.45 !important;
}

/* Prevent text from overflowing */
.info-card dd {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

/* Education and About Me */
.info-card p {
    font-size: 10px !important;
    line-height: 1.5 !important;
}

/* Footer */
footer {
    padding: 7px !important;
}

/* Smaller laptop screens */
@media (max-height: 750px) {
    .page-heading h1 {
        font-size: 36px !important;
    }

    .profile-photo {
        width: 75px !important;
        height: 85px !important;
    }

    .profile-intro {
        padding: 7px !important;
    }

    .info-card {
        padding: 7px 9px !important;
    }

    .info-card dl {
        font-size: 9px !important;
        gap: 2px 6px !important;
    }
}
/* FIX PERSONAL DETAILS ADDRESS CUT-OFF */

.info-grid {
    grid-template-rows: auto auto !important;
    align-content: start !important;
}

.info-card:nth-child(1) {
    height: auto !important;
    min-height: 195px !important;
    overflow: visible !important;
    padding-bottom: 14px !important;
}

.info-card:nth-child(1) dl {
    row-gap: 5px !important;
    line-height: 1.5 !important;
}

.info-card:nth-child(1) dd,
.info-card:nth-child(1) dt {
    height: auto !important;
    overflow: visible !important;
}

@media (max-height: 800px) {
    .info-card:nth-child(1) {
        min-height: 205px !important;
    }
}
/* ==========================================
   ACHIEVEMENTS: REMOVE SCHOOL CARD SCROLLBARS
   ========================================== */

.school-grid {
    overflow: hidden !important;
    min-height: 0 !important;
}

.school-card {
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;

    padding: 8px !important;
    gap: 0 !important;
}

.school-card::-webkit-scrollbar {
    display: none !important;
}

/* Compact school logos */
.school-logo {
    width: 55px !important;
    height: 55px !important;
    margin-bottom: 5px !important;
}

/* School headings */
.school-card h2 {
    font-size: 18px !important;
    line-height: 1.15 !important;
    margin-bottom: 3px !important;
}

.school-card .level {
    font-size: 7px !important;
    margin-bottom: 3px !important;
}

.school-card .muted {
    font-size: 8px !important;
    margin-bottom: 5px !important;
}

/* Award sections */
.award-block {
    padding-top: 5px !important;
    margin-top: 5px !important;
}

.award-block h3 {
    font-size: 8px !important;
    margin-bottom: 3px !important;
}

.award-block p {
    font-size: 8px !important;
    line-height: 1.25 !important;
    margin: 2px 0 !important;
}

/* Laptop screen */
@media (max-height: 800px) {
    .school-card {
        padding: 7px !important;
    }

    .school-logo {
        width: 48px !important;
        height: 48px !important;
    }

    .school-card h2 {
        font-size: 17px !important;
    }

    .award-block p {
        font-size: 7.5px !important;
        line-height: 1.2 !important;
    }
}
/* ACHIEVEMENT TEXT FORMAT */

.award-block {
    text-align: left;
}

.award-block h3 {
    margin-bottom: 8px;
}

.award-block p {
    margin: 3px 0;
    line-height: 1.4;
}

/* Main achievement lines */
.award-main {
    font-weight: 700;
    color: #c9f4d8;
}

/* Indented placements */
.award-sub {
    padding-left: 15px;
    font-weight: 400;
    color: #ded7c8;
}

/* Grade lines */
.award-grade {
    font-weight: 700;
    color: #ffffff;
}
/* =========================================
   ACHIEVEMENTS — FIT FULL TEXT WITHOUT SCROLL
   ========================================= */

.school-grid {
    height: 54vh !important;
    flex: 0 0 54vh !important;
    overflow: hidden !important;
}

.school-card {
    overflow: hidden !important;
    padding: 6px !important;
}

/* Smaller school header */
.school-logo {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 3px !important;
}

.school-card h2 {
    font-size: 16px !important;
    margin-bottom: 2px !important;
}

.school-card .level {
    font-size: 7px !important;
    margin-bottom: 2px !important;
}

.school-card .muted {
    font-size: 7px !important;
    margin-bottom: 3px !important;
}

/* Tighten award spacing */
.award-block {
    padding-top: 4px !important;
    margin-top: 4px !important;
}

.award-block h3 {
    font-size: 8px !important;
    margin-bottom: 3px !important;
}

.award-block p {
    font-size: 7.5px !important;
    line-height: 1.15 !important;
    margin: 1px 0 !important;
}

/* Gallery takes less space */
.gallery-section {
    margin-top: 6px !important;
    padding-top: 6px !important;
}

.gallery-heading h2 {
    font-size: 24px !important;
}

.gallery-photo {
    width: 90px !important;
}

.gallery-photo {
    aspect-ratio: 4 / 5 !important;
}

/* Shorter screen */
@media (max-height: 750px) {
    .school-grid {
        height: 50vh !important;
        flex-basis: 50vh !important;
    }

    .award-block p {
        font-size: 7px !important;
    }
}

/* =========================================================
   CLEAN FINAL OVERRIDES — DARK GREEN / BLACK THEME
   ACHIEVEMENTS: 20% + 20% + 20% + 40% PORTRAIT CAROUSEL
   ========================================================= */
:root {
  --bg: #050806;
  --bg2: #0b100d;
  --panel: #101a13;
  --panel2: #17251b;
  --gold: #4fbd7b;
  --gold-light: #c9f4d8;
  --gold-bright: #e5ffed;
  --gold-dark: #1d7446;
  --white: #f4fff7;
  --muted: #a8c0ae;
  --line: rgba(79, 189, 123, .32);
}
body {
  background:
    radial-gradient(circle at 85% 10%, rgba(79,189,123,.12), transparent 35%),
    radial-gradient(circle at 5% 90%, rgba(29,116,70,.10), transparent 30%),
    #050806;
}

/* General buttons and interactive elements */
button, a, .nav-card, .school-card, .gallery-photo, .family-card, .info-card {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Achievements page shell */
.achievements-main, .page-main.achievements-main {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  padding: 12px 1.5% !important;
}
.achievement-heading, .achievements-main .page-heading {
  flex: 0 0 auto !important;
  margin: 0 0 10px !important;
  text-align: center;
}
.achievement-heading h1, .achievements-main .page-heading h1 {
  font-family: var(--heading);
  font-size: clamp(27px, 3vw, 42px) !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.achievement-heading p, .achievements-main .page-heading .muted {
  font-size: 9px !important;
  letter-spacing: 2px !important;
  margin: 3px 0 0 !important;
}
.achievement-heading .gold-rule, .achievements-main .page-heading .gold-rule {
  margin: 8px auto !important;
  width: 55px !important;
}

/* Exact 20/20/20/40 layout */
.achievements-layout {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) !important;
  gap: 9px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  align-items: stretch !important;
}
.achievement-school, .school-card.achievement-school, .achievements-layout .school-card {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 8px !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: linear-gradient(155deg, #102017, #070b08) !important;
  box-shadow: inset 0 0 20px rgba(79,189,123,.025) !important;
}
.achievement-school:hover, .achievements-layout .school-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 0 18px rgba(79,189,123,.09) !important;
}
.achievement-school .school-logo, .achievements-layout .school-logo {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  margin: 0 auto 5px !important;
}
.achievement-school h2, .achievements-layout .school-card h2 {
  font-size: clamp(13px, 1.1vw, 17px) !important;
  line-height: 1.08 !important;
  margin: 0 0 3px !important;
  text-align: center !important;
}
.achievement-school .level, .achievements-layout .school-card .level {
  font-size: 7px !important;
  letter-spacing: 1.2px !important;
  margin: 0 0 3px !important;
}
.achievement-school .muted, .achievements-layout .school-card .muted {
  font-size: 7px !important;
  line-height: 1.2 !important;
  margin: 0 0 5px !important;
}
.achievement-school .award-block, .achievements-layout .award-block {
  margin: 4px 0 0 !important;
  padding: 4px 0 0 !important;
  border-top: 1px solid rgba(79,189,123,.16) !important;
  text-align: left !important;
}
.achievement-school .award-block h3, .achievements-layout .award-block h3 {
  font-size: 7px !important;
  line-height: 1.1 !important;
  letter-spacing: .7px !important;
  margin: 0 0 3px !important;
}
.achievement-school .award-block p, .achievements-layout .award-block p {
  font-size: clamp(6.5px, .55vw, 8px) !important;
  line-height: 1.2 !important;
  margin: 1.5px 0 !important;
  overflow-wrap: anywhere !important;
}
.achievement-school .award-main, .achievements-layout .award-main {
  color: var(--gold-light) !important;
  font-weight: 600 !important;
}
.achievement-school .award-sub, .achievements-layout .award-sub {
  padding-left: 7px !important;
}

/* Portrait vertical gallery — right-hand 40% */
.portrait-gallery {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  padding: 8px !important;
  background: linear-gradient(155deg, #102017, #070b08) !important;
}
.portrait-gallery-heading {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin: 0 0 7px !important;
}
.portrait-gallery-heading h2, .portrait-gallery .gallery-heading h2 {
  font-family: var(--heading) !important;
  font-size: clamp(18px, 2vw, 28px) !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.portrait-gallery-heading p, .portrait-gallery .gallery-tip {
  color: var(--muted) !important;
  font-size: 7px !important;
  letter-spacing: 1px !important;
  margin: 3px 0 0 !important;
}
.portrait-gallery .gallery-controls {
  display: flex !important;
  gap: 4px !important;
}
.portrait-gallery .gallery-controls button {
  width: 25px !important;
  height: 25px !important;
  font-size: 15px !important;
  border-radius: 5px !important;
}
.portrait-viewport, .portrait-gallery .carousel-viewport {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  border-radius: 5px !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
}
.portrait-track, .portrait-gallery .carousel-track {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: max-content !important;
  animation: portrait-scroll-up 55s linear infinite !important;
  will-change: transform !important;
}
.portrait-viewport:hover .portrait-track,
.portrait-gallery .carousel-viewport:hover .carousel-track {
  animation-play-state: paused !important;
}
.portrait-track .gallery-photo, .portrait-gallery .gallery-photo {
  width: min(72%, 210px) !important;
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
  flex: 0 0 auto !important;
  border-radius: 7px !important;
  border: 1px solid rgba(79,189,123,.35) !important;
  overflow: hidden !important;
  position: relative !important;
}
.portrait-track .gallery-photo img, .portrait-gallery .gallery-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
@keyframes portrait-scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Lightbox appearance */
.lightbox, #lightbox {
  background: rgba(2,6,3,.94) !important;
  border: 1px solid var(--gold) !important;
}
.lightbox img, #lightbox-img {
  max-width: min(90vw, 1100px) !important;
  max-height: 82vh !important;
  object-fit: contain !important;
}

/* Laptop: keep pages inside viewport */
@media (max-width: 1200px) {
  .achievements-layout { gap: 6px !important; }
  .achievement-school, .achievements-layout .school-card { padding: 6px !important; }
  .achievement-school .school-logo, .achievements-layout .school-logo { width: 40px !important; height: 40px !important; flex-basis: 40px !important; }
  .achievement-school .award-block p, .achievements-layout .award-block p { font-size: 7px !important; }
  .portrait-track .gallery-photo, .portrait-gallery .gallery-photo { width: min(82%, 185px) !important; }
}
@media (max-height: 760px) and (min-width: 801px) {
  .achievements-main, .page-main.achievements-main { padding-top: 7px !important; padding-bottom: 7px !important; }
  .achievement-heading, .achievements-main .page-heading { margin-bottom: 6px !important; }
  .achievement-heading h1, .achievements-main .page-heading h1 { font-size: 30px !important; }
  .achievement-school .school-logo, .achievements-layout .school-logo { width: 35px !important; height: 35px !important; flex-basis: 35px !important; }
  .achievement-school .award-block p, .achievements-layout .award-block p { font-size: 6.5px !important; line-height: 1.14 !important; }
  .portrait-gallery { padding: 5px !important; }
  .portrait-track, .portrait-gallery .carousel-track { gap: 7px !important; animation-duration: 45s !important; }
}

/* Smaller screens: stack panels and allow natural page flow */
@media (max-width: 800px) {
  body, .site-shell { height: auto !important; min-height: 100vh !important; overflow: auto !important; }
  .page-main, .achievements-main { height: auto !important; min-height: calc(100vh - 130px) !important; overflow: visible !important; }
  .achievements-layout { grid-template-columns: 1fr !important; height: auto !important; overflow: visible !important; }
  .achievement-school, .achievements-layout .school-card { height: auto !important; min-height: 0 !important; overflow: visible !important; }
  .portrait-gallery { height: 420px !important; min-height: 320px !important; }
  .portrait-track .gallery-photo, .portrait-gallery .gallery-photo { width: min(60%, 180px) !important; }
  .profile-intro { flex-wrap: wrap; }
  .info-grid { overflow: visible !important; grid-template-columns: 1fr !important; }
}
@media (max-width: 520px) {
  .topbar { padding: 10px 4% !important; flex-wrap: wrap !important; }
  .nav { justify-content: center !important; }
  .nav a { padding: 7px 8px !important; font-size: 8px !important; }
  .home-main { grid-template-columns: 1fr !important; height: auto !important; overflow: visible !important; }
  .hero-photo { min-height: 320px !important; }
  .nav-cards { grid-template-columns: 1fr 1fr !important; }
  .profile-photo { width: 105px !important; height: 125px !important; }
}
/* =========================================================
   FINAL THEME — BLACK & PROMINENT GOLD
   KEEP ALL EXISTING LAYOUTS AND ANIMATIONS
   ========================================================= */

:root {
    --bg: #050505;
    --bg2: #0a0a0a;
    --panel: #111111;
    --panel2: #1a1a1a;

    --gold: #D4AF37;
    --gold-light: #F5D77A;
    --gold-bright: #FFD700;
    --gold-dark: #A67C00;

    --white: #FFFFFF;
    --muted: #D0C4A0;

    --line: rgba(212, 175, 55, 0.65);
}

/* BLACK BACKGROUND WITH GOLD GLOW */
body {
    background:
        radial-gradient(circle at 85% 10%, rgba(212,175,55,.13), transparent 35%),
        radial-gradient(circle at 5% 90%, rgba(255,215,0,.08), transparent 30%),
        #050505 !important;
    color: #ffffff !important;
}

/* NAVIGATION */
.topbar {
    background: linear-gradient(
        110deg,
        #050505,
        #211a08,
        #050505
    ) !important;

    border-bottom: 2px solid var(--gold) !important;
}

.brand small,
.brand-mark,
.nav a span {
    color: var(--gold-bright) !important;
}

.brand-mark {
    background: linear-gradient(
        135deg,
        #FFD700,
        #D4AF37,
        #A67C00
    ) !important;

    color: #000000 !important;
    border: 1px solid #FFD700 !important;
}

.nav a:hover,
.nav a.active {
    background: linear-gradient(
        135deg,
        #FFD700,
        #D4AF37,
        #B8860B
    ) !important;

    color: #000000 !important;
    border-color: #FFD700 !important;
}

/* GOLD HEADINGS */
.page-heading h1,
.hero-copy h1 em,
.page-heading h1 em,
.gallery-heading h2 em,
.profile-name h2,
.school-card h2,
.family-text h2 {
    color: var(--gold-bright) !important;
}

/* GOLD SECTION LABELS */
.eyebrow,
.hero-sub,
.level,
.award-block h3,
.info-card h3,
.placeholder-label,
.logo-text,
.gallery-tip,
.closing-note {
    color: var(--gold-light) !important;
}

/* GOLD RULES */
.gold-rule {
    background: linear-gradient(
        90deg,
        #FFD700,
        #D4AF37,
        #A67C00
    ) !important;
    box-shadow: 0 0 10px rgba(255,215,0,.35);
}

/* GOLD BORDERS */
.hero-photo,
.profile-photo,
.profile-intro,
.info-card,
.school-card,
.school-logo,
.family-card,
.gallery-photo,
.portrait-gallery,
.message-box {
    border-color: rgba(212,175,55,.7) !important;
}

/* GOLD EMPHASIS ON CARDS */
.info-card,
.school-card,
.family-card,
.portrait-gallery {
    background: linear-gradient(
        145deg,
        #17140c,
        #080808,
        #111111
    ) !important;
}

/* SCHOOL CARDS */
.school-card:hover,
.achievement-school:hover {
    border-color: #FFD700 !important;

    box-shadow:
        0 0 18px rgba(255,215,0,.18),
        inset 0 0 12px rgba(212,175,55,.04) !important;
}

/* ACHIEVEMENT TITLES */
.award-block h3 {
    color: #FFD700 !important;
    font-weight: 700 !important;
}

/* IMPORTANT AWARDS */
.award-main {
    color: #F5D77A !important;
    font-weight: 700 !important;
}

.award-grade {
    color: #FFD700 !important;
    font-weight: 700 !important;
}

/* GOLD DIVIDERS */
.award-block {
    border-top-color: rgba(212,175,55,.4) !important;
}

.award-block p {
    color: #F0E8D5 !important;
}

/* PERSONAL INFORMATION */
.info-card h3 {
    color: #FFD700 !important;
}

.info-card dt {
    color: #D4AF37 !important;
}

.info-card dd {
    color: #FFFFFF !important;
}

.info-card dd a {
    color: #FFD700 !important;
}

/* TAGS */
.tag-list span {
    color: #FFD700 !important;
    border-color: rgba(212,175,55,.65) !important;
    background: rgba(212,175,55,.06) !important;
}

/* BUTTONS — GOLD BACKGROUND */
.outline-btn:hover {
    background: linear-gradient(
        135deg,
        #FFD700,
        #D4AF37
    ) !important;

    color: #000000 !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 12px rgba(255,215,0,.3);
}

/* HOMEPAGE CARDS */
.nav-card {
    border-color: rgba(212,175,55,.45) !important;
    background: rgba(212,175,55,.04) !important;
}

.nav-card .card-icon,
.nav-card b {
    color: #FFD700 !important;
}

.nav-card:hover {
    background: linear-gradient(
        135deg,
        #FFD700,
        #D4AF37
    ) !important;

    color: #000000 !important;
    border-color: #FFD700 !important;
}

.nav-card:hover .card-icon,
.nav-card:hover b {
    color: #000000 !important;
}

/* GOLD PHOTO CAROUSEL */
.gallery-photo,
.portrait-track .gallery-photo,
.portrait-gallery .gallery-photo {
    border-color: rgba(212,175,55,.75) !important;
}

.gallery-photo:hover {
    border-color: #FFD700 !important;
    box-shadow: 0 0 15px rgba(255,215,0,.25);
}

/* GALLERY BUTTONS */
.gallery-controls button,
.lightbox button {
    background: #111111 !important;
    color: #FFD700 !important;
    border-color: #D4AF37 !important;
}

.gallery-controls button:hover,
.lightbox button:hover {
    background: #FFD700 !important;
    color: #000000 !important;
}

/* GOLD FAMILY PAGE */
.family-card {
    border-color: rgba(212,175,55,.6) !important;
}

.family-text h2 {
    color: #FFD700 !important;
}

/* FOOTER */
footer {
    border-top-color: rgba(212,175,55,.5) !important;
    color: #C4A45A !important;
}

footer span {
    color: #FFD700 !important;
}

/* GOLD FOCUS */
button:focus-visible,
a:focus-visible {
    outline-color: #FFD700 !important;
}

/* GOLD LIGHTBOX */
.lightbox,
#lightbox {
    background: rgba(0,0,0,.96) !important;
    border-color: #D4AF37 !important;
}

.lightbox img,
#lightbox-img {
    border-color: #D4AF37 !important;
}

/* GOLD MESSAGE MODAL */
.message-box {
    background: #111111 !important;
    border-color: #D4AF37 !important;
}

.modal-close {
    color: #FFD700 !important;
}
/* ==========================================
   ACHIEVEMENTS — IMPROVED TEXT VISIBILITY
   ========================================== */

/* School names */
.achievements-layout .school-card h2 {
    font-size: 18px !important;
    line-height: 1.2 !important;
}

/* School level */
.achievements-layout .school-card .level {
    font-size: 9px !important;
    letter-spacing: 1px !important;
}

/* School location and year */
.achievements-layout .school-card .muted {
    font-size: 9px !important;
    line-height: 1.35 !important;
}

/* Section headings */
.achievements-layout .award-block h3 {
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.8px !important;
    color: #FFD700 !important;
    font-weight: 700 !important;
}

/* Achievement descriptions */
.achievements-layout .award-block p {
    font-size: 10px !important;
    line-height: 1.45 !important;
    margin: 3px 0 !important;
}

/* Main achievement text */
.achievements-layout .award-main {
    font-size: 10px !important;
    color: #F5D77A !important;
    font-weight: 700 !important;
}

/* Grade titles */
.achievements-layout .award-grade {
    font-size: 10px !important;
    color: #FFD700 !important;
    font-weight: 700 !important;
}

/* Indented awards */
.achievements-layout .award-sub {
    padding-left: 12px !important;
    font-size: 9.5px !important;
    color: #FFFFFF !important;
}

/* School logos */
.achievements-layout .school-logo {
    width: 48px !important;
    height: 48px !important;
}

/* Small laptop screen */
@media (max-height: 760px) and (min-width: 801px) {
    .achievements-layout .award-block p {
        font-size: 9px !important;
        line-height: 1.35 !important;
    }

    .achievements-layout .award-block h3 {
        font-size: 9.5px !important;
    }
}
/* FIX: ACHIEVEMENT CARDS CUTTING OFF CONTENT */
.achievements-layout .school-card {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: #D4AF37 #111111 !important;
    padding-bottom: 12px !important;
}

/* GOLD SCROLLBAR */
.achievements-layout .school-card::-webkit-scrollbar {
    width: 5px;
}

.achievements-layout .school-card::-webkit-scrollbar-track {
    background: #111111;
}

.achievements-layout .school-card::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}

/* KEEP ACHIEVEMENT TEXT READABLE */
.achievements-layout .award-block p {
    font-size: 10px !important;
    line-height: 1.45 !important;
}
/* ELEMENTARY ONLY — FIT CONTENT WITHOUT SCROLLING */
.achievements-layout .school-card:nth-child(1) {
    overflow: hidden !important;
}

/* Compact Elementary achievement text only */
.achievements-layout .school-card:nth-child(1) .award-block p {
    font-size: 8.5px !important;
    line-height: 1.25 !important;
    margin: 2px 0 !important;
}

.achievements-layout .school-card:nth-child(1) .award-block h3 {
    font-size: 9px !important;
    margin: 3px 0 !important;
}

.achievements-layout .school-card:nth-child(1) .award-block {
    margin-bottom: 5px !important;
}

/* Reduce spacing between Elementary achievements */
.achievements-layout .school-card:nth-child(1) .award-sub {
    padding-left: 10px !important;
    line-height: 1.25 !important;
}

/* Keep Elementary card within the screen */
.achievements-layout .school-card:nth-child(1) {
    padding: 8px !important;
}
/* REMOVE SCROLL FROM JUNIOR HIGH */
.achievements-layout .school-card:nth-child(2) {
    overflow: hidden !important;
}

/* ELEMENTARY — REDUCE FONT BY ONE MORE SIZE */
.achievements-layout .school-card:nth-child(1) .award-block p {
    font-size: 7.5px !important;
}

.achievements-layout .school-card:nth-child(1) .award-block h3 {
    font-size: 8px !important;
}

.achievements-layout .school-card:nth-child(1) .award-sub {
    font-size: 8.5px !important;
}
/* ==========================================
   ACHIEVEMENTS — FIT EVERYTHING IN SCHOOL CARDS
   NO OVERLAPPING / NO SCROLLING
========================================== */

/* SCHOOL CARDS */
.achievements-layout .school-card {
    overflow: hidden !important;
    min-width: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

/* SCHOOL LOGO */
.achievements-layout .school-logo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    margin: 0 auto 5px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.achievements-layout .school-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 2px !important;
    display: block !important;
}

/* SCHOOL LEVEL LABEL */
.achievements-layout .school-card .level {
    font-size: 8px !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
    margin: 3px 0 !important;
}

/* SCHOOL NAME */
.achievements-layout .school-card h2 {
    font-size: 12px !important;
    line-height: 1.25 !important;
    margin: 4px 0 !important;
    overflow-wrap: break-word !important;
}

/* LOCATION */
.achievements-layout .school-card .muted {
    font-size: 8px !important;
    line-height: 1.3 !important;
    margin: 2px 0 !important;
}

/* SCHOOL YEAR */
.achievements-layout .school-card .school-year {
    font-size: 8px !important;
    line-height: 1.2 !important;
    margin: 2px 0 5px !important;
}

/* SECTION HEADINGS */
.achievements-layout .school-card .award-block h3 {
    font-size: 9px !important;
    line-height: 1.2 !important;
    margin: 4px 0 3px !important;
    letter-spacing: 0.3px !important;
}

/* ACADEMIC AWARDS */
.achievements-layout .school-card .award-grade {
    font-size: 8px !important;
    line-height: 1.25 !important;
    margin: 2px 0 !important;
}

/* GRADE LABELS */
.achievements-layout .school-card .award-main {
    font-size: 8px !important;
    line-height: 1.2 !important;
    margin: 3px 0 1px !important;
}

/* AWARD DETAILS */
.achievements-layout .school-card .award-sub {
    font-size: 7.5px !important;
    line-height: 1.2 !important;
    margin: 1px 0 !important;
    padding-left: 7px !important;
    overflow-wrap: anywhere !important;
}

/* REDUCE EMPTY SPACE BETWEEN SECTIONS */
.achievements-layout .school-card .award-block {
    margin: 3px 0 !important;
    padding: 0 !important;
}

/* ELEMENTARY — EXTRA COMPACT BECAUSE IT HAS MORE CONTENT */
.achievements-layout .elementary-card .award-sub {
    font-size: 7px !important;
    line-height: 1.15 !important;
}

.achievements-layout .elementary-card .award-main {
    font-size: 7.5px !important;
    margin: 2px 0 1px !important;
}

.achievements-layout .elementary-card .award-block h3 {
    font-size: 8px !important;
    margin: 3px 0 2px !important;
}

/* PREVENT CONTENT FROM PUSHING OUT OF CARDS */
.achievements-layout .school-card * {
    box-sizing: border-box !important;
}

/* KEEP THE THREE SCHOOL CARDS STABLE */
.achievements-layout .school-card {
    height: 100% !important;
    max-height: 100% !important;
}
/* ABOUT ME — PREVENT TEXT FROM BEING CUT */
.about-section,
.about-card,
.about-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.about-section p,
.about-card p,
.about-content p {
    line-height: 1.6 !important;
    overflow-wrap: break-word !important;
}