/* ==========================================================
   NEXANANTHA DESIGN SYSTEM
   Version : 2.0
   Project : NexAnantha Public Website
   Author  : NexAnantha Team OrzyRaj Maestroz

   ----------------------------------------------------------
   DESIGN DIRECTION

   Modern institution
   + Kerala heritage
   + Editorial / magazine layout
   + Restrained brand colour
   + Strong typography
   + Generous whitespace

   Brand Colours
   Nex Blue       #1F5EA8
   Travancore    #6A1B2A
   Nex Gold       #D4AF37

   ========================================================== */


/* ==========================================================
   01. RESET
   ========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

::selection {
    background: rgba(31, 94, 168, .16);
    color: var(--text-primary);
}


/* ==========================================================
   02. VARIABLES
   ========================================================== */

:root {

    /* ---------- Core ---------- */

    --background: #ffffff;
    --surface: #f7f8fa;
    --surface-blue: #f3f7fc;
    --surface-maroon: #faf5f6;
    --surface-gold: #fcf9ef;

    --text-primary: #17191c;
    --text-secondary: #5f646b;
    --text-muted: #858a91;

    --border: #e6e8eb;
    --border-light: #f0f1f3;

    /* ---------- Brand ---------- */

    --nex-blue: #1F5EA8;
    --nex-maroon: #6A1B2A;
    --nex-gold: #D4AF37;

    /* ---------- Supporting colours ---------- */

    --green: #4c9a72;
    --purple: #6b5bb5;
    --orange: #d69a2d;
    --red: #d95f5f;

    /* ---------- Shadows ---------- */

    --shadow-small:
        0 4px 18px rgba(20, 30, 45, .055);

    --shadow-medium:
        0 12px 32px rgba(20, 30, 45, .09);

    --shadow-large:
        0 24px 60px rgba(20, 30, 45, .13);

    /* ---------- Geometry ---------- */

    --radius-small: 12px;
    --radius: 20px;
    --radius-large: 28px;

    --container: 1160px;
    --wide-container: 1280px;

    /* ---------- Motion ---------- */

    --transition: .25s ease;

}


/* ==========================================================
   03. GLOBAL TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -.025em;
}

h1,
h2 {
    font-weight: 800;
}

h3,
h4 {
    font-weight: 700;
}

p {
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
}


/* ==========================================================
   04. NAVIGATION
   ========================================================== */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 78px;

    padding: 16px 52px;

    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(0, 0, 0, .07);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo {
    position: relative;

    color: var(--nex-blue);

    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo::after {
    content: "";

    display: inline-block;

    width: 6px;
    height: 6px;

    margin-left: 5px;

    background: var(--nex-gold);
    border-radius: 50%;

    vertical-align: middle;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 28px;

    list-style: none;
}

nav li {
    list-style: none;
}

nav a {
    position: relative;

    display: inline-block;

    padding: 8px 0;

    color: #555b63;

    font-size: .91rem;
    font-weight: 550;
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 1px;

    width: 0;
    height: 2px;

    background: var(--nex-gold);

    transition: width .25s ease;
}

nav a:hover {
    color: var(--nex-blue);
}

nav a:hover::after {
    width: 100%;
}


/* ==========================================================
   05. GLOBAL LAYOUT
   ========================================================== */

section {
    width: 100%;
    max-width: var(--container);

    margin: 0 auto;
    padding: 65px 30px;
}

section + section {
    border-top: 0;
}

section h1 {
    text-align: center;
}



section h2 {
    margin-bottom: 22px;

    font-size: clamp(2.1rem, 4vw, 3.15rem);
    font-weight: 800;

    text-align: center;
}

section p {
    max-width: 800px;

    margin: 0 auto 18px;

    font-size: 1.03rem;
    line-height: 1.85;

    text-align: center;
}


/* ==========================================================
   06. SECTION HEADINGS
   ========================================================== */

.section-title {
    max-width: 900px;
    margin: 0 auto 20px;

    font-size: clamp(2.1rem, 4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.12;

    text-align: center;
    color: var(--text-primary);
}

section h2,
.section-title {
    color: var(--nex-blue);
}

.section-subtitle {
    max-width: 720px;

    margin: 0 auto 52px;

    color: var(--text-secondary);

    font-size: 1.05rem;
    line-height: 1.85;

    text-align: center;
}


/* ==========================================================
   07. SECTION SIGNATURE
   ========================================================== */

.section-mark {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 9px;

    min-height: 8px;

    margin-bottom: 20px;
}

.section-mark span {
    display: block;

    width: 7px;
    height: 7px;

    flex: 0 0 7px;
}

.section-mark span:nth-child(1) {
    background: var(--nex-blue);
    border-radius: 50%;
}

.section-mark span:nth-child(2) {
    background: var(--nex-maroon);
    border-radius: 2px;
}

.section-mark span:nth-child(3) {
    background: var(--nex-gold);
    border-radius: 50%;
}


/* ==========================================================
   08. HERO
   ========================================================== */

.hero {
    position: relative;

    max-width: none;

    margin: 0;
    padding: 105px 30px 125px;

    overflow: hidden;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfd 100%
        );

    border-bottom: 1px solid var(--border-light);
}

.hero::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    top: -190px;
    left: -120px;

    border: 1px solid rgba(31, 94, 168, .08);
    border-radius: 50%;

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -110px;
    bottom: -150px;

    border: 1px solid rgba(106, 27, 42, .08);
    border-radius: 50%;

    pointer-events: none;
}

.hero-logo {
    position: relative;
    z-index: 1;

    margin-bottom: 38px;
}

.hero-logo img {
    width: min(560px, 88%);
    margin: 0 auto;
}

.hero h1 {
    position: relative;
    z-index: 1;

    max-width: 1050px;

    margin: 0 auto 25px;

    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 1.03;
    letter-spacing: -.055em;

    color: var(--text-primary);
}

.hero p {
    position: relative;
    z-index: 1;

    max-width: 700px;

    margin: 0 auto 42px;

    color: var(--text-secondary);

    font-size: 1.18rem;
    line-height: 1.9;
}

.hero-dot {
    color: var(--nex-maroon);
}


/* ==========================================================
   09. BUTTONS
   ========================================================== */

.buttons,
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;
    gap: 14px;
}

.primary,
.secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 50px;

    padding: 13px 27px;

    border-radius: 999px;

    font-size: .96rem;
    font-weight: 650;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background-color .25s ease,
        border-color .25s ease;
}

.primary {
    background: var(--nex-blue);
    color: #fff;

    border: 1px solid var(--nex-blue);
}

.primary:hover {
    background: #184e8d;
    border-color: #184e8d;

    transform: translateY(-3px);

    box-shadow: 0 12px 26px rgba(31, 94, 168, .20);
}

.secondary {
    background: #fff;
    color: var(--nex-maroon);

    border: 1px solid rgba(106, 27, 42, .35);
}

.secondary:hover {
    background: var(--nex-maroon);
    border-color: var(--nex-maroon);
    color: #fff;

    transform: translateY(-3px);

    box-shadow: 0 12px 26px rgba(106, 27, 42, .16);
}


/* ==========================================================
   10. EDITORIAL DIVIDERS
   ========================================================== */

section:nth-of-type(even) {
    position: relative;
}

section:nth-of-type(even)::before {
    content: "";

    display: block;

    width: 42px;
    height: 2px;

    margin: 0 auto 45px;

    background: linear-gradient(
        90deg,
        var(--nex-blue) 0 33%,
        var(--nex-maroon) 33% 66%,
        var(--nex-gold) 66% 100%
    );
}


/* ==========================================================
   11. CARD SYSTEM
   ========================================================== */

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 24px;

    margin-top: 52px;
}

.card {
    position: relative;

    width: 270px;

    display: flex;
    flex-direction: column;

    padding: 30px;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: none;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background: var(--nex-blue);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .3s ease;
}

.card:hover {
    transform: translateY(-7px);

    border-color: #dfe3e8;

    box-shadow: var(--shadow-medium);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    margin-bottom: 13px;

    font-size: 1.18rem;
    line-height: 1.35;
}

.card p {
    flex-grow: 1;

    margin: 0;

    color: var(--text-secondary);

    font-size: .96rem;
    line-height: 1.75;

    text-align: left;
}

.card img {
    width: 100%;
    height: 220px;

    margin-bottom: 22px;

    object-fit: cover;

    border-radius: 14px;

    transition: transform .4s ease;
}

.card:hover img {
    transform: scale(1.035);
}


/* ==========================================================
   12. CARD BRAND ACCENTS
   ========================================================== */

.card:nth-child(3n + 1)::before {
    background: var(--nex-blue);
}

.card:nth-child(3n + 2)::before {
    background: var(--nex-maroon);
}

.card:nth-child(3n + 3)::before {
    background: var(--nex-gold);
}


/* ==========================================================
   13. MEMBERSHIP CARDS
   ========================================================== */

.membership-card {
    position: relative;
}

.membership-dot {
    display: block;

    width: 8px;
    height: 8px;

    margin-bottom: 20px;
}

.dot-blue {
    background: var(--nex-blue);
    border-radius: 50%;
}

.dot-maroon {
    background: var(--nex-maroon);
    border-radius: 2px;
}

.dot-gold {
    background: var(--nex-gold);
    border-radius: 50%;
}

.dot-green {
    background: var(--green);
    border-radius: 50%;
}

.dot-purple {
    background: var(--purple);
    border-radius: 50%;
}


/* ==========================================================
   14. CONTACT OPTIONS
   ========================================================== */

.contact-options .section-subtitle {
    margin-bottom: 10px;
}

.contact-options .cards {
    align-items: stretch;
    gap: 22px;
}

.contact-option {
    width: calc((100% - 44px) / 3);
    min-width: 0;

    padding: 30px;

    cursor: default;
}

.contact-option:hover {
    transform: translateY(-5px);
}

.contact-option h3 {
    margin-bottom: 15px;

    font-size: 1.18rem;
}

.contact-option p {
    margin-bottom: 13px;

    font-size: .94rem;
}

.contact-option p:last-child {
    margin-bottom: 0;
}

.contact-mark {
    width: 9px;
    height: 9px;

    margin-bottom: 20px;
}

.contact-mark.blue {
    background: var(--nex-blue);
    border-radius: 50%;
}

.contact-mark.maroon {
    background: var(--nex-maroon);
    border-radius: 2px;
}

.contact-mark.gold {
    background: var(--nex-gold);
    border-radius: 50%;
}


/* ==========================================================
   15. CONTACT FORM
   ========================================================== */

form {
    max-width: 760px;

    margin: 55px auto 0;
    padding: 42px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

form p {
    max-width: none;

    margin: 0 0 18px;

    text-align: left;
}

form input,
form select,
form textarea {
    width: 100%;

    padding: 14px 16px;

    color: var(--text-primary);
    background: #fff;

    border: 1px solid #d9dde2;
    border-radius: 11px;

    outline: none;

    font-size: .96rem;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

form input::placeholder,
form textarea::placeholder {
    color: #9aa0a7;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--nex-blue);

    box-shadow:
        0 0 0 4px rgba(31, 94, 168, .08);
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

form label {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    color: var(--text-secondary);

    font-size: .92rem;
    line-height: 1.6;
}

form label input[type="checkbox"] {
    width: auto;

    margin-top: 5px;

    accent-color: var(--nex-blue);
}

form button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 48px;

    padding: 13px 30px;

    border: 1px solid var(--nex-blue);
    border-radius: 999px;

    background: var(--nex-blue);
    color: #fff;

    font-size: .96rem;
    font-weight: 650;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

form button:hover {
    background: var(--nex-maroon);
    border-color: var(--nex-maroon);

    transform: translateY(-3px);

    box-shadow: 0 10px 24px rgba(106, 27, 42, .15);
}


/* ==========================================================
   16. CONTACT INFORMATION CARDS
   ========================================================== */

section .cards .card {
    width: 320px;
}


/* ==========================================================
   17. GALLERY
   ========================================================== */

.gallery-card {
    cursor: pointer;
}

.gallery-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-card h3 {
    margin-top: 4px;
}

.gallery-card:hover {
    transform: translateY(-6px);
}


/* ==========================================================
   18. PEOPLE / FOUNDERS
   ========================================================== */

.people-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 22px;
}

.people-grid .card {
    width: 260px;
    flex: 0 0 260px;

    padding: 20px;
}

.people-grid .card img {
    height: 285px;

    margin-bottom: 18px;

    border-radius: 14px;
}

.people-grid .card h3 {
    margin-bottom: 6px;

    font-size: 1.05rem;
}

.people-grid .card p {
    font-size: .9rem;
}

.advisor-container {
    display: flex;
    justify-content: center;

    margin-top: 55px;
}

.advisor-container .card {
    width: 320px;
}


/* ==========================================================
   19. VISION
   ========================================================== */

.vision {
    max-width: 920px;

    margin: 0 auto;

    color: var(--text-primary);

    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;

    line-height: 1.45;
    letter-spacing: -.035em;

    text-align: center;
}

.vision::after {
    content: "";

    display: block;

    width: 46px;
    height: 3px;

    margin: 35px auto 0;

    background: var(--nex-gold);
}


/* ==========================================================
   20. HOME — NEXT PROGRAM
   ========================================================== */

.next-program {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, .85fr);

    gap: 65px;

    align-items: center;

    max-width: 1080px;

    margin: 0 auto;
}

.program-poster {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.program-poster img {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition: transform .45s ease;
}

.program-poster:hover img {
    transform: scale(1.025);
}

.program-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.program-details h3 {
    margin-bottom: 14px;

    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.program-details p {
    margin: 0 0 28px;

    text-align: left;
}


/* ==========================================================
   21. HOME — FEATURED PROJECTS
   ========================================================== */

.featured-projects .cards {
    align-items: stretch;
}

.featured-projects .card {
    width: calc((100% - 48px) / 3);
    min-width: 240px;
}

.featured-projects .card a {
    display: inline-flex;
    align-items: center;

    margin-top: 22px;

    color: var(--nex-blue);

    font-weight: 650;
}

.featured-projects .card a:hover {
    color: var(--nex-maroon);
    transform: translateX(4px);
}


/* ==========================================================
   22. HOME — LATEST VIDEO
   ========================================================== */

.video-container {
    max-width: 920px;

    margin: 0 auto 28px;
}

.video-placeholder {
    min-height: 430px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 50px 30px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            var(--surface-blue),
            #ffffff
        );

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.video-placeholder i {
    margin-bottom: 20px;

    color: var(--nex-blue);

    font-size: 4rem;
}

.video-placeholder h3 {
    margin-bottom: 10px;

    font-size: 1.45rem;
}

.video-placeholder p {
    margin: 0;
}


/* ==========================================================
   23. WHERE WE LOOK — SECTOR CARDS
   ========================================================== */

.sector-card {
    position: relative;
}

.sector-dot {
    display: block;

    width: 8px;
    height: 8px;

    margin-bottom: 18px;

    border-radius: 50%;
}

.sector-dot.healthcare {
    background: var(--red);
}

.sector-dot.education {
    background: var(--nex-blue);
}

.sector-dot.logistics {
    background: var(--orange);
}

.sector-dot.technology {
    background: var(--purple);
}

.sector-dot.tourism {
    background: var(--green);
}

.sector-dot.more {
    background: #777;
}


/* ==========================================================
   24. RESOURCE CARDS
   ========================================================== */

.resource-card {
    position: relative;
}

.resource-dot {
    display: block;

    width: 8px;
    height: 8px;

    margin-bottom: 18px;

    border-radius: 50%;
}

.resource-blue {
    background: var(--nex-blue);
}

.resource-maroon {
    background: var(--nex-maroon);
}

.resource-gold {
    background: var(--nex-gold);
}

.resource-purple {
    background: var(--purple);
}

.resource-green {
    background: var(--green);
}

.resource-link {
    margin-top: 22px !important;
}

.resource-link a {
    color: var(--nex-blue);
    font-weight: 650;
}

.resource-link a:hover {
    color: var(--nex-maroon);
}

.resource-status {
    margin-top: 22px !important;

    color: var(--text-muted) !important;

    font-size: .88rem !important;
    font-style: italic;
}


/* ==========================================================
   25. CHALLENGE PROCESS
   ========================================================== */

.challenge-card {
    position: relative;
}

.challenge-dot {
    display: block;

    width: 8px;
    height: 8px;

    margin-bottom: 18px;

    border-radius: 50%;
}

.challenge-dot.step-one {
    background: var(--nex-blue);
}

.challenge-dot.step-two {
    background: var(--nex-maroon);
    border-radius: 2px;
}

.challenge-dot.step-three {
    background: var(--nex-gold);
}

.challenge-dot.step-four {
    background: var(--green);
}

.challenge-dot.step-five {
    background: var(--purple);
}

.challenge-dot.step-six {
    background: var(--orange);
}

.challenge-dot.step-seven {
    background: var(--red);
}

.challenge-dot.step-eight {
    background: #777;
}


/* ==========================================================
   26. CHALLENGES — FOCUS AREAS
   ========================================================== */

.challenge-area-card {
    position: relative;
}

.challenge-area-dot {
    display: block;

    width: 8px;
    height: 8px;

    margin-bottom: 18px;
}

.challenge-area-dot.blue {
    background: var(--nex-blue);
    border-radius: 50%;
}

.challenge-area-dot.maroon {
    background: var(--nex-maroon);
    border-radius: 2px;
}

.challenge-area-dot.gold {
    background: var(--nex-gold);
    border-radius: 50%;
}

.challenge-area-dot.green {
    background: var(--green);
    border-radius: 50%;
}

.challenge-area-dot.purple {
    background: var(--purple);
    border-radius: 50%;
}

.challenge-area-dot.grey {
    background: #777;
    border-radius: 50%;
}


/* ==========================================================
   27. INSIGHTS
   ========================================================== */

.insight-card {
    position: relative;
}

.insight-dot {
    display: block;

    width: 8px;
    height: 8px;

    margin-bottom: 18px;

    border-radius: 50%;
}

.insight-blue {
    background: var(--nex-blue);
}

.insight-maroon {
    background: var(--nex-maroon);
}

.insight-gold {
    background: var(--nex-gold);
}

.insight-green {
    background: var(--green);
}

.insight-purple {
    background: var(--purple);
}

.insight-status {
    display: block;

    margin-top: 22px;

    color: var(--text-muted);

    font-size: .88rem;

    font-style: italic;
}


/* ==========================================================
   28. FLAGSHIP EVENT
   ========================================================== */

.event-coming-soon {
    background: var(--nex-maroon);
    border-color: var(--nex-maroon);
    color: #fff;
}

.event-coming-soon:hover {
    background: #531520;
    border-color: #531520;
    color: #fff;
}


/* ==========================================================
   29. NEXANANTHA ACTION BUTTONS
   ========================================================== */

.hero-buttons .primary {
    background: var(--nex-blue);
    border-color: var(--nex-blue);
    color: #fff;
}

.hero-buttons .primary:hover {
    background: #184e8d;
    border-color: #184e8d;
    color: #fff;
}

.hero-buttons .secondary {
    background: var(--nex-maroon);
    border-color: var(--nex-maroon);
    color: #fff;
}

.hero-buttons .secondary:hover {
    background: #531520;
    border-color: #531520;
    color: #fff;
}


/* ==========================================================
   30. FOOTER
   ========================================================== */

footer {
    position: relative;

    margin-top: 30px;

    padding: 82px 40px 32px;

    background:
        linear-gradient(
            180deg,
            #f7f8fa 0%,
            #f4f5f7 100%
        );

    border-top: 1px solid var(--border);
}

footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 70px;
    height: 3px;

    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        var(--nex-blue),
        var(--nex-maroon),
        var(--nex-gold)
    );
}


/* ==========================================================
   31. FOOTER GRID
   ========================================================== */

.footer-container {
    max-width: var(--wide-container);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1.3fr
        1.3fr;

    gap: 55px;
}


/* ==========================================================
   32. FOOTER BRAND
   ========================================================== */

.footer-brand h3 {
    margin-bottom: 16px;

    color: var(--nex-blue);

    font-size: 1.35rem;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.footer-brand p {
    max-width: 380px;

    color: var(--text-secondary);

    line-height: 1.8;

    text-align: left;
}


/* ==========================================================
   33. FOOTER COLUMNS
   ========================================================== */

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    margin-bottom: 16px;

    color: var(--text-primary);

    font-size: .94rem;
    font-weight: 700;
}

.footer-column p {
    margin-bottom: 9px;

    color: var(--text-secondary);

    font-size: .91rem;
    line-height: 1.7;

    text-align: left;
}

.footer-column a {
    color: var(--text-secondary);

    font-size: .91rem;
}

.footer-column a[href^="mailto"],
.footer-column a[href^="tel"] {
    color: var(--nex-blue);
}

.footer-column a:hover {
    color: var(--nex-maroon);
}


/* ==========================================================
   34. FOOTER BOTTOM
   ========================================================== */

.footer-bottom {
    max-width: var(--wide-container);

    margin: 48px auto 0;
    padding-top: 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;

    color: #858a91;

    font-size: .82rem;
}


/* ==========================================================
   35. SOCIAL ICONS
   ========================================================== */

.footer-social {
    display: flex;

    gap: 8px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 40px;
    height: 40px;

    color: #70757c;

    border: 1px solid transparent;
    border-radius: 50%;
}

.footer-social a:hover {
    color: var(--nex-blue);

    border-color: rgba(31, 94, 168, .18);

    transform: translateY(-3px);
}


/* ==========================================================
   36. VAULT B — DISCREET ADMIN ENTRY
   ========================================================== */

.admin-access {
    padding-top: 18px;
    padding-bottom: 36px;

    text-align: center;
}

.vault-b-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    color: #999;

    transition: .25s ease;
}

.vault-b-link .section-mark {
    gap: 7px;

    margin-bottom: 0;

    transition: .25s ease;
}

.vault-b-link .section-mark span {
    width: 6px;
    height: 6px;

    opacity: .55;
}

.vault-b-label {
    font-size: .72rem;
    letter-spacing: 1px;

    opacity: .5;
}

.vault-b-label i {
    margin-right: 5px;

    font-size: .68rem;
}

.vault-b-link:hover {
    color: var(--nex-maroon);

    transform: translateY(-2px);
}

.vault-b-link:hover .section-mark span {
    opacity: 1;
}


/* ==========================================================
   37. UTILITIES
   ========================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}


/* ==========================================================
   38. VAULT B — ADMIN ACCESS PAGE
   ========================================================== */

.vault-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            rgba(106, 27, 42, .045),
            transparent 45%
        ),
        #fff;
}

.vault-container {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;

    padding: 70px 20px 50px;
}

.vault-intro {
    padding: 30px 20px 20px;

    text-align: center;
}

.vault-mark {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 7px;

    margin-bottom: 30px;
}

.vault-mark span {
    display: block;

    width: 7px;
    height: 7px;
}

.vault-mark span:nth-child(1) {
    background: var(--nex-blue);
    border-radius: 50%;
}

.vault-mark span:nth-child(2) {
    background: var(--nex-maroon);
    border-radius: 2px;
}

.vault-mark span:nth-child(3) {
    background: var(--nex-gold);
    border-radius: 50%;
}

.vault-lock {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 54px;
    height: 54px;

    margin: 0 auto 24px;

    color: var(--nex-maroon);

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 50%;

    box-shadow: var(--shadow-small);
}

.vault-lock i {
    font-size: 1.1rem;
}

.vault-intro h1 {
    margin-bottom: 8px;

    color: var(--nex-blue);

    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;

    letter-spacing: -.045em;
}

.vault-subtitle {
    margin-bottom: 18px;

    color: var(--nex-maroon);

    font-size: .88rem;
    font-weight: 650;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.vault-description {
    max-width: 500px;

    margin: 0 auto;

    color: var(--text-secondary);

    font-size: .98rem;
}


/* ==========================================================
   39. VAULT ACCESS PANEL
   ========================================================== */

.vault-access {
    padding: 30px 0;
}

.vault-panel {
    max-width: 520px;

    margin: 0 auto;
    padding: 42px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.vault-panel-mark {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 42px;
    height: 42px;

    margin: 0 auto 20px;

    color: var(--nex-blue);

    background: rgba(31, 94, 168, .07);

    border-radius: 50%;
}

.vault-panel h2 {
    margin-bottom: 12px;

    font-size: 1.8rem;

    text-align: center;
}

.vault-panel > p {
    margin-bottom: 30px;

    font-size: .94rem;

    text-align: center;
}


/* ==========================================================
   40. VAULT FORM
   ========================================================== */

.vault-field {
    margin-bottom: 20px;
}

.vault-field label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-primary);

    font-size: .88rem;
    font-weight: 650;
}

.vault-field input {
    width: 100%;

    padding: 14px 16px;

    color: var(--text-primary);
    background: #fff;

    border: 1px solid #d9dde2;
    border-radius: 11px;

    outline: none;

    font-size: .96rem;

    transition: .25s ease;
}

.vault-field input:focus {
    border-color: var(--nex-blue);

    box-shadow:
        0 0 0 4px rgba(31, 94, 168, .08);
}

.vault-button {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 9px;

    margin-top: 10px;

    padding: 14px 24px;

    border: 1px solid var(--nex-maroon);
    border-radius: 999px;

    background: var(--nex-maroon);
    color: #fff;

    font-size: .96rem;
    font-weight: 650;

    cursor: pointer;

    transition: .25s ease;
}

.vault-button:hover {
    background: #531520;
    border-color: #531520;

    transform: translateY(-3px);

    box-shadow: 0 10px 24px rgba(106, 27, 42, .15);
}

.vault-message {
    min-height: 24px;

    margin-top: 18px;

    color: var(--nex-maroon);

    font-size: .88rem;

    text-align: center;
}


/* ==========================================================
   41. VAULT KEY
   ========================================================== */

.vault-key {
    padding: 10px 20px 30px;

    text-align: center;
}

.key-symbol {
    margin-bottom: 12px;

    color: #aaa;

    font-size: 1rem;
}

.vault-key p {
    margin: 0;

    color: #999;

    font-size: .78rem;
    font-style: italic;
}


/* ==========================================================
   42. VAULT RETURN
   ========================================================== */

.vault-return {
    padding: 20px;

    text-align: center;
}

.vault-return a {
    color: #888;

    font-size: .84rem;
}

.vault-return a:hover {
    color: var(--nex-maroon);
}

.vault-return i {
    margin-right: 6px;
}


/* ==========================================================
   43. RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 960px) {

    nav {
        padding-left: 30px;
        padding-right: 30px;
    }

    nav ul {
        gap: 18px;
    }

    section {
        padding: 85px 25px;
    }

    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .featured-projects .card {
        width: calc((100% - 24px) / 2);
    }

    .next-program {
        gap: 40px;
    }
}


/* ==========================================================
   44. RESPONSIVE — MOBILE
   ========================================================== */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }


    /* ---------- Navigation ---------- */

    nav {
        position: sticky;

        flex-direction: column;

        justify-content: center;

        padding: 17px 20px;

        min-height: 70px;

        background: rgba(255, 255, 255, .97);

        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .logo {
        margin-bottom: 8px;
    }

    nav ul {
        display: none;

        width: 100%;

        flex-direction: column;

        gap: 3px;

        padding: 8px 0 0;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;

        width: 100%;

        padding: 9px;

        text-align: center;
    }


    /* ---------- Hero ---------- */

    .hero {
        padding: 65px 20px 85px;
    }

    .hero-logo {
        margin-bottom: 28px;
    }

    .hero-logo img {
        width: min(330px, 90%);
    }

    .hero h1 {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
        line-height: 1.08;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.8;
    }


    /* ---------- Buttons ---------- */

    .buttons,
    .hero-buttons {
        flex-direction: column;

        align-items: stretch;

        width: 100%;
        max-width: 310px;

        margin-left: auto;
        margin-right: auto;
    }

    .primary,
    .secondary {
        width: 100%;
    }


    /* ---------- Sections ---------- */

section {
    padding: 50px 20px;
}

section:nth-of-type(even)::before {
    margin-bottom: 24px;
}

section h2,
.section-title {
    font-size: 2rem;
}

section p {
    font-size: .98rem;
}

.section-subtitle {
    margin-bottom: 32px;

    font-size: .98rem;
}

    /* ---------- Cards ---------- */

    .cards {
        flex-direction: column;

        align-items: center;

        gap: 18px;

        margin-top: 38px;
    }

    .card {
        width: 100%;
        max-width: 390px;

        padding: 27px;
    }

    .card img {
        height: 215px;
    }

    .contact-option {
        width: 100%;
        max-width: 390px;
    }


    /* ---------- People ---------- */

    .people-grid {
        flex-direction: column;

        align-items: center;

        gap: 18px;
    }

    .people-grid .card {
        width: 100%;
        max-width: 350px;

        flex: none;
    }

    .people-grid .card img {
        height: 300px;
    }

    .advisor-container .card {
        width: 100%;
        max-width: 350px;
    }


    /* ---------- Vision ---------- */

    .vision {
        font-size: 2rem;
        line-height: 1.4;
    }


    /* ---------- Home ---------- */

    .next-program {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .program-details {
        align-items: center;

        text-align: center;
    }

    .program-details p {
        text-align: center;
    }

    .featured-projects .card {
        width: 100%;
        min-width: 0;
    }

    .video-placeholder {
        min-height: 300px;

        padding: 40px 20px;
    }

    .video-placeholder i {
        font-size: 3.5rem;
    }


    /* ---------- Forms ---------- */

    form {
        padding: 28px 22px;

        border-radius: 20px;
    }


    /* ---------- Footer ---------- */

    footer {
        padding: 65px 25px 28px;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 36px;

        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;

        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-column p {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 12px;

        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }


    /* ---------- Vault ---------- */

    .vault-container {
        padding: 45px 20px 35px;
    }

    .vault-panel {
        padding: 32px 24px;
    }

    .vault-intro h1 {
        font-size: 2.8rem;
    }

}


/* ==========================================================
   45. RESPONSIVE — SMALL PHONES
   ========================================================== */

@media (max-width: 430px) {

    nav {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero {
        padding-left: 17px;
        padding-right: 17px;
    }

    section {
        padding-left: 17px;
        padding-right: 17px;
    }

    .card {
        padding: 24px;
    }

    .card img {
        height: 195px;
    }

    .vision {
        font-size: 1.75rem;
    }

    form {
        padding: 25px 18px;
    }

    .vault-panel {
        padding: 28px 20px;
    }

}


/* ==========================================================
   46. ACCESSIBILITY
   ========================================================== */

:focus-visible {
    outline: 3px solid rgba(31, 94, 168, .35);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================
   47. FINAL NEXANANTHA HOME / BRAND POLISH
   ----------------------------------------------------------
   Final presentation layer for the current public index page.
   Firebase / CMS behaviour is intentionally untouched.
   ========================================================== */

/* ---------- Brand gradient ---------- */

.brand-gradient {
    display: inline;
    background: linear-gradient(
        90deg,
        var(--nex-blue) 0%,
        var(--nex-maroon) 52%,
        var(--nex-gold) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Navigation brand ---------- */

.logo {
    color: var(--nex-blue);
    letter-spacing: .08em;
}

.logo::after {
    background: var(--nex-gold);
}

/* ---------- Hero ---------- */

.hero {
    min-height: 690px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 88px 30px 105px;
    background:
        radial-gradient(circle at 18% 12%, rgba(31,94,168,.045), transparent 28%),
        radial-gradient(circle at 84% 86%, rgba(106,27,42,.045), transparent 25%),
        linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.hero-logo {
    width: min(760px, 92vw);
    margin: 0 auto 34px;
}

.hero-logo img {
    display: block;
    width: min(620px, 100%);
    max-height: 235px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.hero h1 {
    max-width: 1050px;
    margin: 0 auto 24px;
    color: var(--nex-blue);
    font-size: clamp(2.85rem, 6vw, 5.5rem);
    line-height: 1.04;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.hero h1 .brand-gradient {
    font-weight: 800;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 36px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.85;
    text-wrap: pretty;
}

.hero-buttons {
    position: relative;
    z-index: 2;
    gap: 14px;
}

/* ---------- Public page sections ---------- */

section > h2 {
    color: var(--nex-blue);
    text-wrap: balance;
}

.section-title {
    color: var(--nex-blue);
}

/* Keep editorial text readable without forcing every page into a card layout. */
section > p {
    text-wrap: pretty;
}

/* ---------- Next program ---------- */

.next-program {
    max-width: 1080px;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    gap: 56px;
}

.program-poster {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.program-poster img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .45s ease;
}

.program-poster:hover img {
    transform: scale(1.025);
}

.program-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.program-details h3 {
    margin-bottom: 12px;
    color: var(--nex-blue);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.25;
}

.program-details .program-meta,
.cms-card-meta {
    display: block;
    margin: 0 0 14px;
    color: var(--nex-maroon);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .1em;
    line-height: 1.5;
    text-transform: uppercase;
}

.program-details p:not(.program-meta) {
    max-width: 620px;
    margin: 0 0 26px;
    text-align: left;
}

/* ---------- Standard cards ---------- */

.cards {
    align-items: stretch;
}

.card {
    min-height: 100%;
}

.card h3 {
    color: var(--nex-blue);
}

.card a,
.cms-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    color: var(--nex-blue);
    font-weight: 650;
}

.card a:hover,
.cms-link:hover {
    color: var(--nex-maroon);
    transform: translateX(4px);
}

/* ---------- NexIdea / NexVenture ---------- */

.two-column-grid {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 0 auto;
}

.feature-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 36px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-panel:hover {
    transform: translateY(-5px);
    border-color: #dfe3e8;
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 15px;
    background: rgba(31,94,168,.08);
    color: var(--nex-blue);
    font-size: 1.25rem;
}

.feature-panel:nth-child(2) .feature-icon {
    background: rgba(106,27,42,.08);
    color: var(--nex-maroon);
}

.feature-panel h3 {
    margin-bottom: 13px;
    color: var(--nex-blue);
    font-size: 1.45rem;
    line-height: 1.3;
}

.feature-panel p {
    width: 100%;
    max-width: none;
    margin: 0 0 15px;
    text-align: left;
}

.feature-panel > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 12px;
    color: var(--nex-blue);
    font-weight: 650;
}

.feature-panel > a:hover {
    color: var(--nex-maroon);
    transform: translateX(4px);
}

/* ---------- Featured CMS content ---------- */

.home-feature-grid,
.card-grid {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin: 30px auto 0;
}

.home-feature-card {
    width: auto;
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-feature-card:hover {
    transform: translateY(-5px);
    border-color: #dfe3e8;
    box-shadow: var(--shadow-medium);
}

.home-feature-card h3 {
    margin-bottom: 12px;
    color: var(--nex-blue);
    line-height: 1.35;
}

.home-feature-card p {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    text-align: left;
}

.home-feature-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 12px;
    color: var(--nex-blue);
    font-weight: 650;
}

.home-feature-card a:hover {
    color: var(--nex-maroon);
    transform: translateX(4px);
}

/* ---------- Latest video ---------- */

.video-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 28px;
}

.video-placeholder {
    min-height: 390px;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--surface-blue), #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.video-placeholder i {
    color: var(--nex-blue);
}

.video-placeholder h3 {
    color: var(--nex-blue);
}

/* ---------- Home CTA ---------- */

.home-cta {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 68px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--surface-blue), var(--surface-maroon));
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.home-cta h2 {
    color: var(--nex-blue);
}

.home-cta > p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* ---------- Footer brand ---------- */

.footer-brand h3 {
    color: var(--nex-blue);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {

    .hero {
        min-height: 620px;
        padding: 75px 25px 95px;
    }

    .hero-logo {
        width: min(680px, 90vw);
    }

    .hero-logo img {
        max-height: 205px;
    }

    .next-program {
        grid-template-columns: minmax(0, 1fr) minmax(270px, .85fr);
        gap: 38px;
    }

    .home-feature-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .hero {
        min-height: auto;
        padding: 64px 20px 78px;
    }

    .hero-logo {
        width: min(500px, 92vw);
        margin-bottom: 28px;
    }

    .hero-logo img {
        width: min(430px, 100%);
        max-height: 165px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 10vw, 3.45rem);
        line-height: 1.07;
    }

    .hero p {
        max-width: 600px;
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero-buttons {
        width: 100%;
        max-width: 330px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .primary,
    .hero-buttons .secondary {
        width: 100%;
    }

    .next-program {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .program-details {
        align-items: center;
        text-align: center;
    }

    .program-details p:not(.program-meta) {
        text-align: center;
    }

    .two-column-grid,
    .home-feature-grid,
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-panel,
    .home-feature-card {
        padding: 28px;
    }

    .home-cta {
        padding: 52px 26px;
    }
}

@media (max-width: 480px) {

    .hero {
        padding: 52px 16px 65px;
    }

    .hero-logo {
        width: 94vw;
        margin-bottom: 23px;
    }

    .hero-logo img {
        width: 100%;
        max-height: 135px;
    }

    .hero h1 {
        font-size: clamp(2.05rem, 11vw, 2.9rem);
    }

    .hero p {
        font-size: .96rem;
    }

    .feature-panel,
    .home-feature-card {
        padding: 24px;
    }

    .home-cta {
        padding: 44px 20px;
    }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .hero-logo img,
    .program-poster img {
        transition: none;
    }
}

/* ==========================================================

   END OF NEXANANTHA DESIGN SYSTEM 2.0 By OrzyRaj Maestroz

   Modern Institution
   Kerala Heritage
   Editorial Character
   NexAnantha Brand Language

   ========================================================== */

/* Home hero animated logo — navbar and other pages remain unchanged */
.hero-content > .hero-logo-video {
    display: block;
    width: min(100%, 560px);
    max-width: 100%;
    height: auto;
    max-height: min(42vh, 480px);
    object-fit: contain;
    margin-inline: auto;
    border: 0;
    background: transparent;
}

@media (max-width: 650px) {
    .hero-content > .hero-logo-video {
        width: min(88vw, 420px);
        max-height: 34vh;
    }
}

/* ==========================================================
   RESOURCES — CENTERED, RESPONSIVE CARD LAYOUT
   Scoped to Resources page card collections so other pages
   retain their existing card layouts.
   ========================================================== */

.resource-overview-grid,
.resource-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 320px));
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.resource-overview-grid > .resource-card,
.resource-list-grid > .resource-card {
    width: 100%;
    min-width: 0;
    max-width: 320px;
    box-sizing: border-box;
}

#latestResource {
    display: grid;
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
}

#latestResource > .resource-card {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .resource-overview-grid,
    .resource-list-grid {
        grid-template-columns: minmax(0, 350px);
        justify-content: center;
        gap: 18px;
    }

    .resource-overview-grid > .resource-card,
    .resource-list-grid > .resource-card,
    #latestResource > .resource-card {
        width: 100%;
        max-width: 350px;
    }

    #latestResource {
        grid-template-columns: minmax(0, 350px);
    }
}



/* ==========================================================
   NAV LOGO IMAGE (task 1 — logo replaces text wordmark)
   ========================================================== */

.logo.logo-image {
    display: flex;
    align-items: center;
    line-height: 0;
    letter-spacing: 0;
}

.logo.logo-image::after {
    display: none;
}

.logo.logo-image a {
    display: inline-flex;
    align-items: center;
}

.logo.logo-image a::after {
    display: none;
}

.logo.logo-image img {
    display: block;
    height: 58px;
    width: auto;
}

@media (max-width: 768px) {
    .logo.logo-image img {
        height: 48px;
    }
}

/* ==========================================================
   2026-11-06 VISUAL POLISH (brand bands, no layout change)
   ========================================================== */

/* Full-width soft brand tint behind alternate sections */
.home-section.alt,
section.tint {
    background: var(--surface-blue);
    box-shadow: 0 0 0 100vmax var(--surface-blue);
    clip-path: inset(0 -100vmax);
}

section.tint-gold {
    background: var(--surface-gold);
    box-shadow: 0 0 0 100vmax var(--surface-gold);
    clip-path: inset(0 -100vmax);
}

/* Five-pillar band under the home hero (words from the logo) */
.pillars-band {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    padding: 22px 20px;
    background: linear-gradient(100deg, var(--nex-maroon) 0%, #4e1420 55%, var(--nex-blue) 100%);
    color: #ffffff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.pillars-band span {
    white-space: nowrap;
}

.pillars-band i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nex-gold);
    display: inline-block;
}

@media (max-width: 640px) {
    .pillars-band {
        gap: 10px 14px;
        font-size: .7rem;
        letter-spacing: .16em;
        padding: 18px 14px;
    }
}
