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

:root{
    --header-height: 80px;
    --footer-height: 64px; /* fixed footer height so we can reserve space */
    /* Theme colors: white + light blue */
    --bg: #c0c0c0; /* page background (silver fallback) */
    --bg-bottom: #bfbfbf; /* gradient start (bottom) gray */
    --bg-top: #cfe9ff; /* gradient end (top) light blue */
    --surface: #f8fbff; /* card / box background */
    --header-bg: rgba(207,233,255,0.85); /* translucent light-blue header */
    --header-border: rgba(43,155,255,0.12);
    --footer-bg: rgba(207,233,255,0.95); /* translucent footer background */
    --footer-border: rgba(43,155,255,0.10);
    --text: #0b2540; /* primary text (dark navy) */
    --muted: #4b6b86; /* secondary text */
    --accent-1: #cfe9ff; /* light accent */
    --accent-2: #2b9bff; /* primary blue accent */
}

/* New navbar component (independent, responsive) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 6px 20px rgba(15,40,75,0.06);
    z-index: 1200;
    margin: 0;
}
.site-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2vmin; /* left/right padding only */
    gap: 1rem;
}
.site-logo img { height: 56px; width: auto; display: block; }
.site-nav__menu {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}
.site-nav__menu a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 6px; transition: background .18s, color .18s; text-transform: uppercase; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.site-nav__menu a:hover { background: var(--accent-1); color: var(--text); }
.site-nav__menu a.active {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(14,56,94,0.603);
}

/* Mobile: collapse menu */
.site-nav__toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.site-nav__toggle span { display: block; height: 2px; width: 20px; background: var(--text); margin: 4px 0; border-radius: 2px; }

@media (max-width: 800px) {
    /* On small screens keep nav links visible as compact buttons and center layout */
    .site-nav__menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        gap: 0.6rem;
        background: transparent;
        padding: 0;
        border-radius: 0;
        align-items: center;
    }
    .site-nav__menu a { padding: 6px 8px; font-size: 0.95rem; }
    .site-nav__toggle { display: none !important; }
    .site-inner { justify-content: space-between; }
}

/* Make sure main content is not hidden by header */
/* main top spacing handled by body padding to account for fixed header */
main { margin-top: 0; }
* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    background-color: var(--bg);
    /* background gradient from bottom (gray) to top (blue) */
    background-image: linear-gradient(to top, var(--bg-bottom) 0%, var(--bg-top) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* allow footer to span full width */
    /* keep content immediately under the fixed header */
    padding: calc(var(--header-height) + 0px) 2vmin 0;
}

/* base typography colors */
h1, h2, h3, h4, h5, h6 { color: var(--text); }
p, li { color: var(--muted); }
a { color: var(--accent-2); }

/* About & Contact titles use Fira Sans for consistency with details page */
.page-title__inner,
.contact-title {
    font-family: 'Montserrat', 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Get Involved section */
.get-involved { padding: 2rem 0; }
.get-involved__title {
    text-align: center;
    /* match Contact title sizing and weight */
    font-size: clamp(1.8rem, 3.6vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: none;
    margin-bottom: 1rem;
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 12px;
}
.get-involved__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* On large screens place the section title visually on top of the cards */
@media (min-width: 1200px) {
    .get-involved {
        position: static;
        padding: 2rem 0; /* keep same spacing as small screens */
        text-align: center; /* center the title */
    }
    .get-involved__title {
        position: static;
        transform: none;
        margin: 0 0 1rem; /* spacing under title so it doesn't overlap cards */
        display: inline-block;
    }
    .get-involved__grid { margin-top: 0; }
}

/* On large screens, make Get Involved and Contact titles visually match About Us title */
@media (min-width: 1200px) {
    .get-involved__title,
    .contact-title {
        display: inline-block;
        font-size: clamp(1.8rem, 3.6vw, 3.2rem);
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: none;
        padding: 0.5rem 1rem;
        border-radius: 12px;
        background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.02));
        box-shadow: none;
        text-shadow: none;
        margin-bottom: 1rem;
        color: var(--text);
    }
}

/* Reduce spacing between Contact title and items on large screens */
@media (min-width: 1200px) {
    .contact-title {
        margin-bottom: 0.35rem !important;
        padding-bottom: 0 !important;
    }
    .contact-grid {
        margin-top: 0 !important;
        gap: clamp(0.5rem, 1vw, 1rem) !important;
    }
}

/* Ensure Contact title stays fixed in place on wide screens (match Get Involved / About) */
@media (min-width: 1200px) {
    .contact-title {
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 1rem 0 !important;
        display: inline-block !important;
        text-align: center !important;
    }
}

/* Lock Get Involved position and prevent it from shifting with viewport changes */
.get-involved {
    /* same spacing on all viewports */
    padding: 2rem 0 !important;
    position: static !important;
}
.get-involved__title {
    position: static !important;
    transform: none !important;
    margin: 1rem 0 !important;
    display: inline-block !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}


/* Mirror About Us box layout for Get Involved on large screens */
@media (min-width: 1200px) {
    .get-involved__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(260px, 360px));
        gap: clamp(20px, 3vmin, 40px);
        justify-content: center;
        align-items: stretch;
        max-width: calc(3 * 360px + 2 * clamp(20px, 3vmin, 40px));
        margin: 0 auto;
        padding: 0 1vmin;
    }
    .get-involved__grid .gi-card {
        width: 100%;
        max-width: 360px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: clamp(1rem, 2.5vmin, 1.5rem);
        padding-top: clamp(1.5rem, 3vmin, 2.5rem);
    }
}
.gi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* outer padding creates space between the colored box and the white inner panel */
    padding: 1rem;
    background: transparent; /* show colored decorative box behind */
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transform: translateY(0);
    opacity: 1;
    animation: gi-fade 560ms cubic-bezier(.2,.8,.2,1) both;
    position: relative;
}
.gi-card__img { width: 72px; height: 72px; flex-shrink: 0; object-fit: contain; margin-bottom: 12px; }
.gi-card__name {
    margin: 0 0 0.6rem;
    /* match .box-title styling */
    font-size: clamp(1.25rem, 2.6vmin, 1.8rem);
    line-height: 1.12;
    text-align: center;
    font-weight: 800;
    color: #0b2540;
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(47,114,255,0.06), rgba(255,255,255,0.02));
    box-shadow: 0 10px 30px rgba(43,155,255,0.12), 0 0 18px rgba(43,155,255,0.08);
    text-transform: uppercase;
    text-shadow: 0 6px 24px rgba(43,155,255,0.09);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gi-card__desc { color: var(--muted); line-height: 1.4; font-size: 0.95rem; }

/* Staggered animation delays (CSS-only) */
.get-involved .gi-card:nth-child(1) { animation-delay: 0.06s; }
.get-involved .gi-card:nth-child(2) { animation-delay: 0.16s; }
.get-involved .gi-card:nth-child(3) { animation-delay: 0.26s; }

@keyframes gi-fade {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: translateY(0);  opacity: 1; }
}

@media (max-width: 900px) {
    .get-involved__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .get-involved__grid { grid-template-columns: 1fr; }
}



/* Increase navbar blur on About page so it appears more frosted */
.nav {
    backdrop-filter: blur(14px) !important;
}

/* Ensure navbar sits at the top like the index page */
.nav {
  position: relative !important;
  top: 0 !important;
  margin-top: 0 !important;
}

.nav-inner {
  margin: 0 auto !important;
  max-width: min(1200px, 90vw) !important;
}

.menu a {
    color: var(--text) !important;
}

@media(max-width: 900px) {
    .menu-toggle:checked~.menu {
        /* slightly grayer background and stronger blur for better frosted look */
        background: rgba(184, 184, 184, 0.92) !important;
        backdrop-filter: blur(14px) !important;
        color: var(--text) !important;
    }

    .menu-toggle:checked~.nav {
        background: rgba(235, 235, 235, 0.94) !important;
        border-bottom-color: rgba(0,0,0,0.06) !important;
        backdrop-filter: blur(14px) !important;
    }

    .menu li {
        border-bottom-color: rgba(0,0,0,0.06);
    }
}

/* Hamburger (menu button) color override for About page */
.hamburger {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: transparent !important;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
    background: #000 !important;
}

.hamburger:hover {
    background: rgba(0,0,0,0.03) !important;
}
      
    

    .menu .search,
    .menu .nav-btn {
        width: 90%;
        margin-top: 1rem;
    }

    .menu-toggle:checked~.menu {
        max-height: 100vh;
        height: 100vh;
        padding: 1.5rem 0;
        opacity: 1;
        pointer-events: auto;
        background: rgba(8, 10, 14, 0.86);
        backdrop-filter: blur(18px);
        transition: background .25s ease, backdrop-filter .25s ease, max-height .4s ease, opacity .4s ease, padding .4s ease;
    }

    /* If checkbox is placed such that this matches, darken top nav when menu opened */
    .menu-toggle:checked~.nav {
        background: rgba(8, 10, 14, 0.75);
        border-bottom-color: rgba(255,255,255,0.06);
        backdrop-filter: blur(12px);
        transition: background .2s ease, backdrop-filter .2s ease;
    }

    .hamburger {
        display: flex;
    }

    .menu-toggle:checked~.hamburger span {
        background: transparent;
    }

    .menu-toggle:checked~.hamburger span::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle:checked~.hamburger span::after {
        top: 0;
        transform: rotate(-45deg);
    }
  
/* Reduce top gap on wider screens so nav and content come closer */
@media (min-width: 700px) {
    body {
        padding: calc(var(--header-height) + 0px) 2vmin 2vmin;
    }
}
@media (min-width: 1000px) {
    body {
        padding: calc(var(--header-height) + 0px) 2vmin 2vmin;
    }
}
@media (min-width: 1400px) {
    body {
        padding: calc(var(--header-height) + 0px) 2vmin 2vmin;
    }
}
@media (min-width: 1800px) {
    body {
        padding: calc(var(--header-height) + 0px) 2vmin 2vmin;
    }
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height);
    padding: 0.4rem 2vmin;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
    pointer-events: auto;
    background-color: rgba(10, 8, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.main {
    flex: 1 1 auto;
    width: 100%;
}
/* ensure the semantic <main> grows to push footer to bottom */
main {
    flex: 1 1 auto;
    width: 100%;
}
.nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2vmin;
}
.nav-logo {
    width: 60px;
    height: 60px;
}
.nav-logo img.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure header logo scales responsively and image fits the square */
.logo-container .logo,
.logo-container img.logo {
    width: clamp(56px, 6vmin, 120px);
    height: clamp(56px, 6vmin, 120px);
}
.logo-container img.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-spot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.nav-menu {
    display: flex;
    gap: clamp(12px, 2vmin, 28px);
    align-items: center;
    flex-wrap: wrap;
}
.nav-link {
    color: #d7d7e8;
    text-decoration: none;
    position: relative;
    padding: 8px 6px;
    font-size: clamp(1.1rem, 2.6vmin, 1.7rem);
    transition: color .22s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s cubic-bezier(.2,.9,.2,1);
    border-radius: 3px;
}
.nav-link:hover,
.nav-link.active-link {
    color: #fff;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 8px;
    padding: 8px 6px;
}
.nav-link:hover::after,
.nav-link.active-link::after {
    transform: scaleX(1);
}

/* make the About link appear active on this page by showing its underline (::after) */
.nav-link[href="#about"] {
    color: #fff;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 8px;
    padding: 8px 6px;
}
.nav-link[href="#about"]::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 36px;
    height: 30px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    margin: 4px 0;
    transition: transform .28s ease, opacity .2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sidebar / Mobile menu */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 84%;
    max-width: 360px;
    height: 100vh;
    background: #151226;
    transform: translateX(120%);
    transition: transform .35s cubic-bezier(.2,.9,.2,1);
    z-index: 90;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.sidebar.show-sidebar { transform: translateX(0); }
.nav-close { background: transparent; border: 0; color: #fff; font-size: 1.2rem; align-self: flex-end; cursor: pointer; }
.sidebar .nav-link { color: #fff; font-size: 1.125rem; padding: 8px 0; text-transform: uppercase; }

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vmin, 24px);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0 2vmin;
}
.box {
    width: clamp(220px, 36vw, 520px);
    max-width: 100%;
    border-radius: min(20px, 6%);
    background-color: var(--surface);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(1rem, 3vmin, 2rem);
    padding-top: clamp(1.5rem, 3vmin, 2.5rem);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: clamp(1rem, 2.5vmin, 1.25rem);
    box-shadow: 0 8px 24px rgba(43,155,255,0.06);
    border: 1px solid rgba(43,155,255,0.06);
}

.box-title {
    margin: 0;
    /* larger, more prominent title inside each box */
    font-size: clamp(1.25rem, 2.6vmin, 1.8rem);
    line-height: 1.12;
    text-align: center;
    font-weight: 800;
    color: #0b2540; /* dark blue text */
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(47,114,255,0.06), rgba(255,255,255,0.02));
    box-shadow: 0 10px 30px rgba(43,155,255,0.12), 0 0 18px rgba(43,155,255,0.08);
    text-transform: uppercase;
    text-shadow: 0 6px 24px rgba(43,155,255,0.09);
    transition: transform .18s ease, box-shadow .18s ease;
}
.box-desc {
    margin: 0.6rem 0 0;
    color: var(--muted);
    text-align: center;
    /* responsive paragraph size with modest maximum */
    font-size: clamp(0.9rem, 1.6vmin, 1rem);
    opacity: 0.95;
}

/* Make only spans inside .box-desc larger and solid black */
.box-desc span {
    color: #000;
    font-size: clamp(1.05rem, 1.9vmin, 1.15rem);
    opacity: 1;
    font-weight: 600;
}

/* decorative icon spot above box title */
.box-icon {
    width: clamp(48px, 8vmin, 96px);
    height: clamp(48px, 8vmin, 96px);
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(0.6rem, 2vmin, 1rem);
    background: transparent;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}
.box-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
@property --angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0deg;
}
.box::after,
.box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    --angle: 0deg;
    background-image: conic-gradient(from var(--angle), #0515f5, #03a1a1, #fafa147c);
    animation: autoRotate 2s linear infinite;
    z-index: -1;
    padding: 5px;
    box-sizing: border-box;
}
.box::after {
    filter: blur(60px);
}
@keyframes autoRotate {
    to {
        --angle: 360deg;
    }
}

/* Decorative animated gradient for Get Involved cards (match .box effect) */
.gi-card::before {
    /* decorative colored box (behind everything) */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    --angle: 0deg;
    background-image: conic-gradient(from var(--angle), #0515f5, #03a1a1, #9c9c05de);
    animation: autoRotate 2s linear infinite;
    z-index: -2;
    padding: 6px;
    box-sizing: border-box;
    filter: blur(64px);
}

.gi-card::after {
    /* white inner panel that content sits on */
    content: '';
    position: absolute;
    inset: 6px; /* leave a small colored frame around the white panel */
    border-radius: calc(16px - 6px);
    background: #ffffff;
    z-index: -1;
    box-shadow: 0 8px 24px rgba(11,37,64,0.04);
}

@media (max-width: 480px) {
    .box {
        width: 90vw;
        font-size: 0.95rem;
    }
    .box::after {
        filter: blur(30px);
    }
    .box::before {
        filter: blur(20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .box::after,
    .box::before {
        animation: none;
    }
}

@media (min-width: 900px) {
    /* Only make the about-boxes row; other .container uses stay column */
    .about-boxes {
        flex-direction: row;
        justify-content: center;
        gap: clamp(20px, 3vmin, 40px);
        align-items: start;
    }
    .box {
        width: clamp(260px, 24vw, 360px);
        flex: 0 1 auto;
        min-width: 220px;
        max-width: 360px;
        padding: clamp(1.5rem, 3vmin, 2.5rem);
        padding-top: clamp(1.5rem, 3vmin, 2.5rem);
    }
    /* larger nav text on wide screens */
    .nav-link {
        font-size: clamp(1.2rem, 2.4vmin, 2rem);
        padding: 10px 8px;
    }
    .box-title { font-size: clamp(1.2rem, 2.2vmin, 1.8rem); }
    .box-desc { font-size: clamp(0.9rem, 1.8vmin, 1.05rem); }
}

/* Make only the About Us boxes equal squares and align content on very wide screens.
   Targets the specific container `about-boxes` so other `.container` instances remain unchanged. */
@media (min-width: 1200px) {
    .about-boxes {
        display: grid;
        /* three fixed columns that can shrink/expand slightly */
        grid-template-columns: repeat(3, minmax(260px, 360px));
        gap: clamp(20px, 3vmin, 40px);
        align-items: stretch;
        justify-content: center; /* center the three-column grid */
        max-width: calc(3 * 360px + 2 * clamp(20px, 3vmin, 40px));
        margin: 0 auto;
        padding: 0 1vmin;
    }
    .about-boxes .box {
        width: 100%;
        max-width: 360px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: clamp(1.5rem, 3vmin, 2.5rem);
    }
}

/* (Restored) No forced grid on very wide screens to avoid affecting other .container uses */

/* Page title */
.page-title {
    /* keep heading as a block and preserve original spacing/flow */
    color: var(--text);
    text-align: center;
    margin: calc(var(--header-height) * 0.25) 0 clamp(12px, 3vmin, 28px);
    display: block;
    text-transform: none; /* preserve author casing */
}

/* Inner box that visually 'pops' while the h1 keeps its original position */
.page-title__inner {
    display: inline-block;
    /* keep responsive but cap growth on very wide screens */
    font-size: clamp(1.8rem, 3.6vw, 3.2rem) !important;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: none; /* show text exactly as written */
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255,255,255,0.02));
    box-shadow: none;
    text-shadow: none;
}

/* Ensure Get Involved and Contact titles match About Us title exactly */
.get-involved, .contact { text-align: center; }
.contact-inner { text-align: center; }

/* Keep Get Involved and Contact containers as columns so title stays above content */
.get-involved > .container,
.contact-inner.container {
    flex-direction: column !important;
    align-items: center !important;
}
.get-involved__title, .contact-title {
    display: inline-block;
    font-size: clamp(1.8rem, 3.6vw, 3.2rem) !important;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255,255,255,0.02));
    box-shadow: none;
    text-shadow: none;
    margin: calc(var(--header-height) * 0.25) 0 clamp(12px, 3vmin, 28px);
    color: var(--text);
}


@media (max-width: 480px) {
    .page-title__inner {
        font-size: clamp(1.4rem, 8vmin, 2.6rem) !important;
        padding: 0.35rem 0.7rem;
        border-radius: 8px;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    right: 18px;
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #11ebc6c9, #0a58ca);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(13,37,77,0.18);
    z-index: 1400;
    opacity: 0;
    transform: translateY(-50%) translateX(8px);
    transition: opacity .22s ease, transform .22s ease;
}
.scroll-to-top.visible { opacity: 1; transform: translateY(-50%) translateX(0); }
.scroll-to-top:focus { outline: 2px solid rgba(255,255,255,0.18); }

@media (max-width: 480px) {
    .scroll-to-top { right: 12px; bottom: 14px; top: auto; width:40px; height:40px; transform: translateY(0); }
}

/* Footer: fixed to bottom with full-width translucent background (like header) */
/* Footer: responsive full-width background matching navbar (layout-end) */
footer {
    position: fixed; /* stick to viewport bottom */
    bottom: 0;
    left: 0;
    font-size: 14px;
    width: 100%; /* full-width without using 100vw to avoid scrollbars */
    box-sizing: border-box;
    height: var(--footer-height);
    background: #208ab421; /* translucent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    z-index: 1200;
}
footer .Center {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1vmin;
}

@media (max-width: 480px) {
    footer { height: calc(var(--footer-height) - 8px); }
    footer .Center { padding: 6px 3vmin; }
    footer .Center p { font-size: 14px; }
}

footer { width: 100%; }
footer .Center { width: 100%; }

footer .Center p { color: #000000; text-align: center; font-size: 14px; margin: 0; }

/* Ensure page content isn't hidden behind the fixed footer */
/* Reserve space equal to footer height so content isn't hidden behind fixed footer */
/* Reserve space equal to footer height so content isn't hidden behind fixed footer */
body { padding-bottom: var(--footer-height); }

/* Hide footer by default and reveal when `.visible` is added by JS */
footer {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.2,.9,.2,1), opacity .24s ease;
}
footer.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* On very wide/fullscreen displays reduce footer height and background intensity */
@media (min-width: 1600px) {
    :root { --footer-height: 48px; }
    footer {
        background: rgba(32,138,180,0.08); /* lighter translucent bar */
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        height: var(--footer-height);
    }
    footer .Center { padding: 0 1.5vmin; }
}

@media (min-width: 2400px) {
    :root { --footer-height: 40px; }
    footer {
        background: rgba(32,138,180,0.06);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        height: var(--footer-height);
    }
    footer .Center { padding: 0 1vmin; }
}


/* NAVBAR */
.nav {
    position: relative;
    top: 10;
    background: rgba(255, 255, 255, 0.04);
    padding: clamp(0.5rem, 1vw + 0.2rem, 1rem) clamp(1rem, 2vw + 0.5rem, 3rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    z-index: 100;
}

.nav-inner {
    max-width: 2000px;
    margin: calc(40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2vw, 2.5rem);
    color: var(--text);
    text-decoration: none;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
}

.logo-img {
    width: clamp(70px, 1vw, px);
    height: clamp(75px, 1vw, 80px);
}

/* Menu */
.menu {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1vw, 1.5rem);
    list-style: none;
}

.menu a {
    text-decoration: none;
    padding: .5rem .75rem;
    font-size: clamp(0.9rem, 0.9vw, 1.05rem);
    font-weight: 500;
    color: var(--text);
    transition: .2s;
}

.menu a:hover,
.active {
    text-shadow: 0 0 10px var(--text);
}

/* Search */
.search {
    position: relative;
}

.search input {
    width: 100%;
    padding: .6rem 2.5rem .6rem .75rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    outline: none;
}

.search input::placeholder {
    color: #b6c0c9;
}

.search button {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.search svg {
    width: clamp(18px, 2vw, 24px);
    height: clamp(18px, 2vw, 24px);
    opacity: 0.8;
}

/* Button */
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    border: none;
    outline: none;
    border-radius: 12px;
    transition: transform .15s, box-shadow .2s;

}

.nav-btn .btn,
.hero-btns .btn {
    display: flex;
    align-items: center;
    padding: .6rem 1rem;
    font-size: clamp(0.9rem, 0.9vw, 1rem);
    font-weight: 700;
    color: #111;
    cursor: pointer;
    text-decoration: none;
}

.nav-btn:hover,
.hero-btns .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px -8px rgba(255, 255, 255, .55);
}

.slider{
    margin-top: calc(var(--header-height) + 1rem); /* ensure slider sits below fixed navbar */
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

/* Slightly reduce the top gap on very small screens to conserve vertical space */
@media (max-width: 480px) {
    .slider{ margin-top: calc(var(--header-height) + 0.5rem); }
}

#home{
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* Space between page titles and their following content */
main h1,
main h2 {
    margin-top: 0;
    margin-bottom: clamp(1rem, 2.5vw, 2.5rem);
}

/* Prevent About-page titles from growing too large on very wide screens */
main h1, .page-title, main .page-title {
    font-size: clamp(1.75rem, 2.5vw, 3.2rem) !important;
    line-height: 1.15;
}

/* Increase body/home paragraph font size by ~50% for better readability */
main, main p, .home-writings, .home-writings p, .author p {
    font-size: 110% !important;
    line-height: 1.6 !important;
    font-family: 'Poppins', 'Inter', sans-serif !important; /* slightly rounded/curvy */
    font-weight: 300 !important;
}

/* If you have a block of 'home writings', give them a gap */
.home-writings {
    display: block;
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: clamp(1rem, 2vw, 2rem);
}

/* Limit body/content blocks to 90% width on wide screens and center them */
main p,
.home-writings,
.home-div,
.author,
.home-writings p,
.home-div p,
.author p {
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* On small screens keep content wider for readability (95%) */
@media (max-width: 600px) {
    main p,
    .home-writings,
    .home-div,
    .author {
        width: 95%;
    }
}

/* Contact section styles */
.contact {
    padding: 2.25rem 0 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), transparent);
    /* ensure anchor jumps land below the fixed header */
    scroll-margin-top: calc(var(--header-height) + 12px);
    /* ensure content isn't visually hidden behind the fixed footer */
    padding-bottom: calc(var(--footer-height) + 1rem);
}
.contact-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
    display: inline-block;
    /* match About Us title visual style */
    font-size: clamp(1.8rem, 3.6vw, 3.2rem) !important;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: none;
    text-shadow: none;
}
.contact-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    min-width: 160px;
    background: var(--surface);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(43, 156, 255, 0.226);
    box-shadow: 0 4px 10px rgba(6, 75, 148, 0.658);
    transition: transform .15s, box-shadow .15s;
    position: relative;
    overflow: hidden;
}
.contact-item:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(11,37,64,0.04); }
.contact-item i,
.contact-item .icon-tiktok svg { font-size: 1.4rem; color: var(--accent-2); display: block; }
.contact-item .icon-tiktok-img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    color: var(--accent-2);
}

.contact-item .icon-telegram-img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.contact-item .label { font-weight: 700; color: rgb(4, 180, 180); }
.contact-item .value { color: rgba(3, 78, 78, 0.952); font-size: 0.95rem; }

/* Decorative animated gradient matching .box */
.contact-item::before,
.contact-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    --angle: 0deg;
    background-image: conic-gradient(from var(--angle), #07f7ebad, #c0bd12af, #1a16ff96);
    animation: autoRotate 3s linear infinite;
    z-index: -1;
    padding: 2px;
    box-sizing: border-box;
}
.contact-item::after { filter: blur(14px); }
.contact-item::before { filter: blur(7px); }

@media (prefers-reduced-motion: reduce) {
    .contact-item::after,
    .contact-item::before {
        animation: none;
    }
}

/* On hover, make the contact item's text and icons white */
.contact-item:hover .label,
.contact-item:hover .value,
.contact-item:hover i {
    color: #000142 !important;
}

/* For bitmap icons, invert/brighten so they appear light on dark background */
/* Keep Telegram and TikTok images unchanged on hover */

@media (max-width: 600px) {
    .contact-grid { gap: 0.65rem; }
    .contact-item { min-width: 44%; }
}
@media (max-width: 420px) {
    .contact-item { min-width: 100%; }
}

/* Center main body text and common about-page containers */
main p,
.home-writings,
.home-writings p,
.home-div,
.home-div p,
.author,
.author p {
    text-align: center !important;
}
.slider{
    width: 100%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
}
.slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}
.slider .list .item{
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    /* slower automatic scroll */
    animation: autoRun 72s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (72s / var(--quantity)) * (var(--position) - 1) - 72s)!important;
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Make media responsive and prevent clipping at edges */
img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure body has safe gutters on all screen sizes and no accidental horizontal clipping */
html, body {
  box-sizing: border-box;
}
body {
  padding-left: clamp(0.75rem, 3vw, 2rem);
  padding-right: clamp(0.75rem, 3vw, 2rem);
  overflow-x: hidden;
}
@keyframes autoRun{
    from{
        left: 100%;
    }to{
        left: calc(var(--width) * -1);
    }
}
.slider:hover .item{
    animation-play-state: paused!important;
    filter: grayscale(1);
}
.slider .item:hover{
    filter: grayscale(0);
}
.slider[reverse="true"] .item{
    animation: reversePlay 72s linear infinite;
}
@keyframes reversePlay{
    from{
        left: calc(var(--width) * -1);
    }to{
        left: 100%;
    }
}

/* === Reduced vertical spacing override ===
   Lowers gaps/paddings so content sits tighter together across the page.
*/
.slider{
  margin-bottom: clamp(0.25rem, 1vw, 0.5rem) !important;
}

#home{
  padding-top: clamp(0.15rem, 0.6vw, 0.25rem) !important;
  padding-bottom: clamp(0.4rem, 1vw, 0.6rem) !important;
}

main{
  margin: calc(40px + 0.1rem) auto 0 !important;
  padding-top: clamp(0.35rem, 1.5vw, 0.6rem) !important;
  padding-bottom: clamp(0.35rem, 1.5vw, 0.6rem) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

main h1,
main h2 {
  margin-bottom: clamp(0.3rem, 0.8vw, 0.6rem) !important;
}

.home-div h1{
  margin: 2px 0 !important;
}

.button{
  bottom: 6px !important;
}

@media (max-width: 600px) {
  main{ padding: clamp(0.3rem, 1.2vw, 0.5rem) !important; }
  .slider{ margin-bottom: clamp(0.25rem, 0.8vw, 0.5rem) !important; }
}

/* Add gap above the slider placed under the paragraph (section) */
#home section .slider {
    margin-top: clamp(2rem, 6vw, 4rem) !important;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(7,10,14,0.08);
}

/* subtle soft/corner effect using an inset shadow pseudo-element */
#home section .slider::before{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 18px 30px rgba(255,255,255,0.06), inset 0 0 22px rgba(0,0,0,0.06);
    mix-blend-mode: normal;
}

/* Fullwidth layout for About page only */
.fullwidth {
    width: 100%;
    margin: 0;
    padding: 0;
}
.fullwidth .Center,
.fullwidth .container {
    max-width: 1200px;
    width: 100%;
    padding-left: 2vmin;
    padding-right: 2vmin;
    margin-left: auto;
    margin-right: auto;
}
.fullwidth main { padding-left: 0; padding-right: 0; }

/* ensure any interior content respects typical gutters on small screens */
@media (max-width: 900px) {
    .fullwidth .Center, .fullwidth .container { padding-left: 3vmin; padding-right: 3vmin; }
}

/* About page: keep footer in normal flow (not fixed overlay) so it's below all sections */
footer {
    position: static !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: auto !important;
}


