:root {
    --primary-red: #ff0033;
    --dark-red: #cc0026;
    --black: #0a0a0a;
    --white: #fff;
    --gray: #333;
    --light-gray: #555;
    --very-light-gray: #999;
    --transparent-red: rgba(255, 0, 51, 0.1);
    --primary-font: 'Montserrat', sans-serif;
    --logo-font: 'Technos', sans-serif;
    --transition-speed: 0.3s;
    --glow-effect: 0 0 15px rgba(255, 0, 51, 0.5);
    --text-glow: 0 0 10px rgba(255, 0, 51, 0.3);
    --neon-border: 1px solid rgba(255, 0, 51, 0.3);
    --vh: 1vh;
    /* Modern glass effect variables */
    --glass-bg: rgba(10, 10, 10, 0.85);
    --glass-blur: blur(16px);
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --border-accent: 1px solid rgba(255, 0, 51, 0.2);
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    /* Home cyber direction tokens */
    --cyber-base-1: #07090d;
    --cyber-base-2: #0b1118;
    --cyber-panel-bg: linear-gradient(160deg, rgba(12, 16, 23, 0.84) 0%, rgba(8, 11, 16, 0.8) 100%);
    --cyber-border: 1px solid rgba(255, 255, 255, 0.08);
    --cyber-border-accent: 1px solid rgba(255, 0, 51, 0.24);
    --cyber-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --cyber-grid-line: rgba(255, 0, 51, 0.06);
    --cyber-noise-dot: rgba(255, 255, 255, 0.05);
}

.play-regular {
    font-family: "Play", sans-serif;
    font-weight: 600;
    font-size: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--primary-font);
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    font-size: 16px;
}

body.menu-open {
    overflow: hidden;
}

/* Prevent zoom on inputs */
input,
select,
textarea,
button {
    font-size: 16px;
}

/* Keyboard accessibility: clear, consistent focus indicator */
:where(a, button, [role="button"], .btn, .nav-toggle-label, .nav-projects-btn):focus-visible {
    outline: 2px solid #ff4d6d;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.22);
    border-radius: 8px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(255, 0, 51, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(rgba(255, 0, 51, 0.05) 1px, transparent 1px) 0 0 / 20px 20px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 51, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   MODERN HEADER & NAVIGATION
   ========================================= */

/* Header is now just a transparent positioning wrapper */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px 24px;
    pointer-events: none;
    background: transparent;
}

header::before {
    display: none;
}

/* The actual floating pill bar */
.nav-floating-bar {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 1200px;
    padding: 10px 18px;
    background: rgba(8, 10, 14, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 0, 51, 0.24);
    border-radius: 999px;
    box-shadow: var(--shadow-soft), 0 10px 30px rgba(0, 0, 0, 0.42);
    transition: all var(--transition-speed) ease;
}

/* Modern brand styling */
.brand {
    font-family: var(--logo-font);
    font-size: 19px;
    font-weight: bold;
    color: var(--white);
    position: relative;
    z-index: 1001;
    letter-spacing: 1.1px;
    text-shadow: var(--text-glow);
    padding: 8px 14px;
    background: rgba(255, 0, 51, 0.08);
    border: 1px solid rgba(255, 0, 51, 0.2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: all var(--transition-speed) ease;
}

.brand:hover {
    color: var(--white);
    background: rgba(255, 0, 51, 0.15);
    text-shadow: 0 0 15px rgba(255, 0, 51, 0.7);
    border-color: rgba(255, 0, 51, 0.4);
    transform: translateY(-1px);
}

nav {
    position: relative;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nav-toggle-label {
    display: none;
}

.nav-backdrop {
    display: none;
}

/* Nav links list — no background, just flex row */
nav ul.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    padding: 0;
    position: relative;
    z-index: 1000;
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Mobile-only projects entry inside hamburger menu */
.mobile-projects {
    display: none;
}

nav ul::before {
    display: none;
}

/* Modern nav link styling */
nav a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--primary-font);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    padding: 8px 13px;
    position: relative;
    letter-spacing: 0;
    border-radius: 6px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    transition: width var(--transition-speed) ease;
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    width: 60%;
}

nav a:hover,
nav a.active {
    color: #ffdbe3;
    background: rgba(255, 0, 51, 0.14);
}

nav ul li.dropdown {
    position: relative;
}

/* Modern dropdown menu */
.dropdown-menu {
    display: flex;
    list-style: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, -4px);
    padding: 8px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--border-accent);
    border-radius: var(--radius-md);
    white-space: nowrap;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

/* Dropdown items */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    position: relative;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    border-radius: 6px;
}

/* Remove old underline from dropdown items */
.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 51, 0.1);
    border-radius: 6px;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.dropdown-menu li a:hover::before {
    opacity: 1;
}

.dropdown-menu li a:hover {
    color: var(--primary-red);
    padding-left: 20px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Accessible dropdown states for keyboard/touch */
.dropdown:focus-within .dropdown-menu,
.dropdown.mobile-active .dropdown-menu,
.nav-projects:focus-within .dropdown-menu,
.nav-projects.mobile-active .dropdown-menu,
.nav-projects:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Invisible bridge to prevent losing hover state */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

/* Right-aligned dropdown (for Projects button) */
.dropdown-menu--right {
    left: auto;
    right: 0;
    transform: translateY(-4px);
}

.nav-projects:focus-within .dropdown-menu--right,
.nav-projects.mobile-active .dropdown-menu--right,
.nav-projects:hover .dropdown-menu--right {
    transform: translateY(0);
}

/* Projects button — off-white styled */
.nav-projects {
    position: relative;
    flex-shrink: 0;
}

.nav-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f2efe9;
    color: #161616;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    font-family: var(--primary-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
}

.nav-projects-btn:hover {
    background: #ffffff;
    color: #0a0a0a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(242, 239, 233, 0.24);
}

nav .dropdown-trigger {
    cursor: pointer !important;
    user-select: none;
}

@media screen and (min-width: 928px) and (max-width: 1120px) {
    .nav-floating-bar {
        gap: 10px;
        padding: 9px 14px;
    }

    .brand {
        font-size: 16px;
        letter-spacing: 0.7px;
        padding: 7px 12px;
    }

    nav ul.nav-links {
        gap: 2px;
    }

    nav a {
        font-size: 13px;
        padding: 8px 10px;
    }

    .nav-projects-btn {
        font-size: 13px;
        padding: 8px 14px;
    }
}


/* Main Content */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    padding-top: 80px;
    /* Header height */
    position: relative;
    z-index: 1;
}

.home-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    min-height: calc(100vh - 80px);
    /* Subtract header height */
    margin-top: 0;
    display: flex;
    align-items: center;
}

.logo-section {
    width: 45%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 30px;
    /* Move logo up */
}

.logo-background {
    width: 95%;
    height: 95%;
    max-width: 520px;
    max-height: 520px;
    position: relative;
    background: url('../assets/images/stroke.png') no-repeat center center;
    background-size: contain;
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.3));
    margin-bottom: 12px;
    /* Space for label below logo */
}

.home-logo-background {
    margin-bottom: 32px;
}

.community-partner-label {
    font-family: var(--primary-font);
    font-size: 18px;
    color: var(--primary-red);
    background: rgba(255, 0, 51, 0.08);
    border: 1px solid rgba(255, 0, 51, 0.2);
    border-radius: 18px;
    padding: 6px 22px;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 0, 51, 0.07);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.home-sponsor-label {
    text-align: center;
    margin-bottom: 8px;
}

.content-section {
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 10, 0.8);
    border: var(--neon-border);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    position: relative;
    margin-left: 50px;
    align-self: center;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 51, 0.05), transparent);
    animation: shine 8s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-200%);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateX(200%);
        opacity: 0;
    }
}

.main-logo {
    font-family: var(--logo-font);
    font-size: 60px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
    text-shadow: var(--text-glow);
    animation: glowPulse 2s infinite alternate;
    text-indent: 0.5em;
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
    }

    100% {
        text-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
    }
}

.description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
    color: var(--white);
    position: relative;
    text-align: justify;
    padding: 20px 25px 25px;
    /* Increased horizontal and bottom padding */
    background: rgba(20, 20, 20, 0.5);
    border: var(--neon-border);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    z-index: 1;
    overflow: visible;
    text-indent: 0.5em;
    /* Ensure text isn't cut off */
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fff;
}

.hero-title-home {
    margin: 0 0 16px;
    margin-left: 0.5em;
}

.underline {
    position: relative;
    display: inline-block;
}

.underline svg {
    position: absolute;
    left: 0;
    bottom: -0.1em;
    /* distance below text */
    width: 100%;
    height: 0.6em;
    /* curve height */
}

.underline path {
    stroke: url(#grad);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
}

.image-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    /* spacing between images */
    flex-wrap: wrap;
    /* ensures responsiveness */
}

.image-border {
    position: relative;
    z-index: 1001;
    letter-spacing: 1px;
    padding: 0;
    border: 2px solid rgb(255, 0, 51);
    clip-path: polygon(10% 0, 100% 0, 91% 100%, 0 100%);
    text-decoration: none;
    display: block;
    width: 400px;
    max-width: 400px;
    height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.4s ease;
    box-shadow: 0 0 12px rgb(255, 0, 51);
    /* strong red base */
}

.image-border:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: #ff0033;
    box-shadow:
        0 0 20px rgba(255, 0, 51, 1),
        /* sharp glow */
        0 0 40px rgba(255, 0, 51, 0.9),
        /* medium glow */
        0 0 60px rgba(255, 0, 51, 0.8);
    /* outer aura */
}

/* Gallery grid (already added before) */
.timeline-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.timeline-item {
    background: #111;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.timeline-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.timeline-item:hover {
    transform: scale(1.05);
}

.timeline-item p {
    font-size: 14px;
    color: #fff;
}

/* Lightbox */
#lightbox {
    display: none;
    /* hidden by default */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding-top: 60px;
}

#lightbox img {
    max-width: 80%;
    max-height: 70%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(179, 1, 1, 0.783);
}

#lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 18px;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#lightbox-close:hover {
    color: var(--primary-red);
}


.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 0;
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: var(--glow-effect);
    border: var(--neon-border);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: var(--neon-border);
    box-shadow: var(--glow-effect);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 51, 0.4);
}

.btn-secondary:hover {
    background-color: var(--transparent-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 51, 0.4);
}

/* Page Containers */
.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 30px 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.page-header h1::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.subtitle {
    font-size: 18px;
    color: var(--very-light-gray);
    font-weight: 300;
    margin-top: 15px;
    margin-bottom: 15px;
}

.social-icon-footer {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    transition: all var(--transition-speed);
    margin: 0 15px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-home:hover,
.social-icon-footer:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
    text-shadow: var(--text-glow);
}

.ctftime-logo {
    height: 20px;
    width: auto;
    transition: all var(--transition-speed);
}

.social-icon-home:hover .ctftime-logo,
.social-icon-footer:hover .ctftime-logo {
    transform: scale(1.1);
}

.portfolio-icon {
    color: var(--white);
    transition: all var(--transition-speed);
}

.portfolio-icon:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
    text-shadow: var(--text-glow);
}


/* Blogs Page - Clean Web3 Inspired Design */
.blogs-container {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
}

/* Hero Section */
.blogs-hero {
    padding: 40px 20px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.05) 0%, transparent 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.3);
    border-radius: 50px;
    padding: 6px 16px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-red);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-family: var(--primary-font);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-weight: 300;
}

/* Main Content */
.blogs-main {
    padding: 20px 20px 40px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Status Card */
.status-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.status-card:hover {
    border-color: rgba(255, 0, 51, 0.3);
    box-shadow: 0 10px 20px rgba(255, 0, 51, 0.1);
}

.status-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.status-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-red) 0%, rgba(255, 0, 51, 0.8) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.status-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.status-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Preview Section */
.preview-section {
    text-align: center;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red) 0%, rgba(255, 0, 51, 0.5) 100%);
    border-radius: 2px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 51, 0.3);
    box-shadow: 0 10px 20px rgba(255, 0, 51, 0.1);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.2) 0%, rgba(255, 0, 51, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
    color: var(--primary-red);
}

.preview-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.preview-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Notification Section */
.notification-section {
    display: flex;
    justify-content: center;
}

.notification-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(20px);
}

.notification-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.notification-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 0, 51, 0.1);
    border-color: rgba(255, 0, 51, 0.3);
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* =========================================
   PROFESSIONAL FOOTER
   ========================================= */
footer {
    background: linear-gradient(180deg, rgba(8, 8, 12, 0.95) 0%, rgba(5, 5, 8, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 0 40px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Subtle gradient line at top */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 0, 51, 0.4) 30%,
            rgba(255, 0, 51, 0.6) 50%,
            rgba(255, 0, 51, 0.4) 70%,
            transparent 100%);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Brand logo - clean, minimal */
.footer-logo {
    font-family: var(--logo-font);
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
    padding: 0;
    background: none;
    border: none;
    transition: all var(--transition-speed) ease;
}

.footer-logo:hover {
    text-shadow: 0 0 30px rgba(255, 0, 51, 0.5);
}

/* Navigation links - sleek horizontal row */
.footer-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* Social icons - circular, minimal */
.social-links-footer {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 0;
}

.social-icon-footer {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-footer:hover {
    background: rgba(255, 0, 51, 0.15);
    border-color: rgba(255, 0, 51, 0.4);
    color: var(--primary-red);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 51, 0.2);
}

.social-icon-footer .ctftime-logo {
    width: 20px;
    height: 20px;
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}

.social-icon-footer:hover .ctftime-logo {
    filter: brightness(1.1);
}

/* Remove background and make SVG take all space for CTFTime */
a.social-icon-footer[aria-label="CTFtime"] {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
}

a.social-icon-footer[aria-label="CTFtime"]:hover {
    background: transparent;
    box-shadow: none;
}

a.social-icon-footer[aria-label="CTFtime"] .ctftime-logo {
    width: 44px;
    /* Matches the outer dimension of the other icons */
    height: 44px;
    filter: none;
    /* remove dimness, use original svg colors */
}

a.social-icon-footer[aria-label="CTFtime"]:hover .ctftime-logo {
    filter: brightness(1.2);
    /* optional: brighten the svg on hover */
}

/* =========================================
   ENHANCED FOOTER STRUCTURE
   ========================================= */

/* Brand section with logo */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 0, 51, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-brand:hover .footer-brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255, 0, 51, 0.5));
}

.footer-brand-name {
    font-family: var(--logo-font);
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Link groups grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin: 20px 0;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 0, 51, 0.8);
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 0, 51, 0.2);
}

.footer-link-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: all 0.25s ease;
}

.footer-link-group a:hover {
    color: var(--white);
    padding-left: 8px;
}

/* Social section */
.footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

.footer-social-section .footer-link-title {
    border-bottom: none;
    padding-bottom: 0;
    text-align: center;
}

/* Footer bottom / copyright */
.footer-bottom {
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-align: center;
    letter-spacing: 0.3px;
    padding: 0;
    border: none;
    max-width: none;
    width: auto;
}

@media screen and (max-width:1760px) {
    .main-logo {
        font-family: var(--logo-font);
        font-size: 38px;
        margin-bottom: 30px;
        position: relative;
        display: inline-block;
        letter-spacing: 2px;
        text-shadow: var(--text-glow);
        animation: glowPulse 2s infinite alternate;
        text-indent: 0.5em;
    }
}

/* Blogs Page Responsive Design */
@media screen and (max-width: 900px) {
    .blogs-hero {
        padding: 30px 20px 20px;
    }

    .hero-title {
        font-size: 32px;
        font-weight: 700;
        letter-spacing: 0.8px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .content-wrapper {
        gap: 24px;
    }

    .status-card {
        padding: 20px;
    }

    .status-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .status-icon {
        margin: 0 auto;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .notification-card {
        padding: 20px;
    }
}

@media screen and (max-width: 600px) {
    .blogs-hero {
        padding: 25px 16px 20px;
    }

    .hero-title {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: 0.6px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-badge {
        padding: 5px 14px;
        font-size: 11px;
    }

    .blogs-main {
        padding: 20px 16px 30px;
    }

    .content-wrapper {
        gap: 20px;
    }

    .status-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .status-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .status-text h3 {
        font-size: 16px;
    }

    .status-text p {
        font-size: 13px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .preview-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .preview-card h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .preview-card p {
        font-size: 12px;
    }

    .notification-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .notification-card h3 {
        font-size: 16px;
    }

    .notification-card p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 8px;
    }

}

/* Responsive Design */
@media screen and (max-width: 1280px) {
    .team-dashboard {
        padding: 0 20px;
    }
}

@media screen and (max-width: 1200px) {
    .team-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media screen and (max-width: 900px) {
    .team-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .team-controls {
        align-items: stretch;
    }

    .team-filter-chips {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .home-container {
        flex-direction: column;
        padding: 20px;
        height: auto;
        justify-content: flex-start;
    }

    .logo-section {
        width: 100%;
        height: 400px;
        margin-bottom: 30px;
        align-self: center;
    }

    .content-section {
        width: 100%;
        margin-left: 0;
        margin-bottom: 30px;
        align-self: center;
    }

    .main-logo {
        font-size: 48px;
    }

    .description {
        font-size: 16px;
    }
}

@media screen and (max-width: 900px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 30px;
        gap: 25px;
    }

    .achievement-card {
        padding: 25px;
    }
}

@media screen and (max-width: 927px) {
    .container {
        padding-top: 80px;
    }

    .image-row {
        flex-direction: column;
        align-items: center;
    }

    /* Navbar mobile behavior is centralized in the canonical block near the end of the file. */

    /* Additional 927px mobile styles */
    .home-container {
        padding: 15px;
        gap: 20px;
        margin-top: 0;
    }

    .logo-section {
        height: 320px;
        /* Increased from 200px for better tablet visibility */
        margin: 0;
        margin-top: 40px;
        align-self: center;
    }

    .logo-background {
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center;
    }

    .content-section {
        width: 100%;
        margin: 0;
        padding: 20px;
        clip-path: none;
        align-self: center;
        border: none;
        background-color: transparent;
    }

    .description {
        font-size: 16px;
        line-height: 1.6;
        padding: 15px 20px;
        background-color: rgba(20, 20, 20, 0.7);
        border: var(--neon-border);
        border-radius: var(--radius-sm);
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .social-links-home {
        justify-content: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .social-icon-home {
        margin: 0 12px;
        font-size: 22px;
    }

    .team-dashboard {
        padding: 0 15px;
    }

    .team-section-title {
        margin: 8px 15px 2px;
        font-size: 26px;
    }

    .page-container>.story-text {
        padding: 0 15px;
    }

    .team-kpis {
        grid-template-columns: 1fr;
    }

    .team-controls {
        padding: 10px;
    }

    .team-search {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .team-active-only {
        width: 100%;
        justify-content: flex-start;
    }

    .member-social-overlay {
        display: none;
    }

    .member-social {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .member-status {
        padding: 4px 8px;
    }

    .member-status::after {
        font-size: 10px;
    }

    .btn {
        width: calc(50% - 5px);
        text-align: center;
        clip-path: none;
        padding: 12px;
        border-radius: var(--radius-sm);
    }

    .main-logo {
        font-size: 42px;
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
    }

    /* =========================================
       PREMIUM "RED GLOW" MOBILE FOOTER
       ========================================= */
    footer {
        padding: 60px 24px 40px;
        width: 100%;
        background: radial-gradient(circle at 50% 120%, rgba(255, 0, 51, 0.12) 0%, rgba(5, 5, 8, 1) 60%, rgba(0, 0, 0, 1) 100%);
        position: relative;
        overflow: hidden;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 25%;
        width: 50%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.5), transparent);
        box-shadow: 0 0 15px rgba(255, 0, 51, 0.8);
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        gap: 35px;
        padding: 0;
    }

    /* Mobile footer brand */
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    .footer-brand-logo {
        width: 42px;
        height: 42px;
        object-fit: contain;
        filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.15));
        margin-bottom: 5px;
    }

    .footer-brand-name {
        font-family: 'Montserrat', sans-serif;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 2px;
        color: #fff;
        text-transform: uppercase;
        text-align: center;
    }

    .footer-tagline {
        font-size: 10px;
        color: #666;
        letter-spacing: 0.5px;
        text-align: center;
        margin-top: -6px;
    }

    /* Mobile footer links grid */
    .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 40px;
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .footer-link-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-link-title {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #888;
        margin-bottom: 4px;
        font-weight: 600;
        display: block;
    }

    .footer-link-group a {
        font-size: 13px;
        color: #ccc;
        text-decoration: none;
        transition: all 0.2s ease;
        padding: 4px 0;
        display: block;
    }

    .footer-link-group a:hover {
        color: var(--primary-red);
        transform: translateX(3px);
        padding-left: 0;
    }

    /* Mobile footer social */
    .footer-social-section {
        display: flex;
        gap: 15px;
        margin: 10px 0 20px;
        justify-content: center;
    }

    .social-icon-footer {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 15px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-icon-footer:hover {
        background: var(--primary-red);
        border-color: var(--primary-red);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(255, 0, 51, 0.3);
        color: #fff;
    }

    .social-icon-footer .ctftime-logo {
        width: 16px;
        height: 16px;
        filter: brightness(0) invert(1);
        display: block;
    }

    .social-icon-home .ctftime-logo {
        width: auto;
        height: 20px;
        filter: none;
        display: block;
    }

    /* Mobile footer bottom */
    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 25px;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }

    .footer-copyright {
        font-size: 11px;
        color: #555;
        line-height: 1.6;
        padding: 0 10px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 25px;
    }

    .team-status-legend {
        margin-bottom: 30px;
        padding: 12px 20px;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding-top: 80px;
    }

    .home-container {
        padding: 15px;
    }

    .logo-section {
        height: 160px;
        margin-top: 60px;
    }

    .main-logo {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .description {
        font-size: 16px;
        padding: 18px;
        border-radius: 4px;
        overflow: visible;
        margin-bottom: 25px;
        line-height: 1.7;
    }

    .btn {
        font-size: 16px;
        padding: 14px;
        width: 100%;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .social-icon-home {
        margin: 0 12px;
        font-size: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
    }

    .footer-links a {
        padding: 10px;
        font-size: 16px;
    }

    .footer-logo {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .footer-copyright {
        font-size: 14px;
        margin-top: 15px;
    }

    .social-links-footer {
        margin: 15px 0;
    }

    .social-icon-footer {
        font-size: 22px;
        margin: 0 10px;
    }

    .achievement-card h3 {
        font-size: 12px;
    }

    .achievement-card.visible {
        transform: translateY(0);
    }

    .achievement-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .achievement-card p {
        text-align: center;
        font-size: 9px;
        line-height: 1.7;
    }

    .filler {
        font-size: 12px;
        text-align: center;
    }

    .page-header {
        margin-bottom: 40px;
        padding: 0 15px;
        text-align: center;
    }

    .page-header h1 {
        font-size: 28px;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .subtitle {
        font-size: 18px;
        line-height: 1.5;
    }

    .page-container {
        padding: 100px 15px 40px;
    }

    .team-section-title {
        font-size: 22px;
        margin: 10px 0 6px;
    }

    .team-member {
        margin: 0 0 20px 0;
        clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
        border-radius: 0;
        overflow: hidden;
    }

    .member-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .member-image img {
        object-position: center top;
    }

    .member-info {
        padding: 20px;
    }

    .member-info h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .member-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .member-bio {
        font-size: 15px;
        line-height: 1.6;
    }

    .member-social {
        margin-top: 15px;
    }

    .social-icon {
        font-size: 20px;
        margin-right: 18px;
    }


}

/* Landscape mode optimization */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .container {
        padding-top: 70px;
    }

    .home-container {
        flex-direction: row;
        align-items: center;
        padding: 15px;
        min-height: auto;
        gap: 15px;
    }

    .logo-section {
        width: 35%;
        height: 150px;
        margin: 0;
        margin-top: 0;
    }

    .content-section {
        width: 60%;
        padding: 15px;
        border: none;
        background-color: transparent;
    }

    .main-logo {
        font-size: 28px;
        margin-bottom: 10px;
        text-align: left;
    }

    .description {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 12px;
    }

    .social-links-home {
        margin-bottom: 15px;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 14px;
        width: auto;
    }
}

.join-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.join-hero {
    position: relative;
    margin-bottom: 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%);
    overflow: hidden;
    width: 100%;
}

.join-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/stroke.png') no-repeat center center;
    background-size: contain;
    opacity: 0.1;
    z-index: -1;
}

.join-hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
}

.join-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--white);
    line-height: 1.7;
}

.join-cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 51, 0.3);
}

.join-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 51, 0.4);
}

.join-cta .material-icons {
    margin-left: 8px;
}

.section {
    margin-bottom: 0;
    padding: 80px 5%;
    width: 100%;
}

.section:nth-child(odd) {
    background-color: rgba(20, 20, 20, 0.3);
}

.story-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    /* responsive fallback */
}

.story-text {
    flex: 1;
    min-width: 280px;
}


/* Default image */
/* Default image (desktop) */
.story-image img {
    margin-top: 100px;
    position: relative;
    z-index: 1001;
    border: 4px solid rgba(255, 0, 51, 0.85);
    clip-path: polygon(10% 0, 100% 0, 91% 100%, 0 100%);
    display: block;
    width: 500px;
    max-width: 400px;
    height: 460px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* At 859px and below → landscape + centered */
@media (max-width: 859px) {
    .story-content p {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .story-image {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: -90px;
        /* spacing from text */
    }

    .story-image img {
        width: 90%;
        /* make it responsive */
        max-width: 600px;
        /* prevent being too large */
        max-height: 300px;
        /* maintain aspect ratio */
        border-radius: 10px;
        /* optional: softer look */
    }

    .story-text {
        width: 90%;
    }
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    width: 100%;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    color: var(--primary-red);
    font-size: 24px;
    margin-right: 15px;
    margin-top: 3px;
}

.benefit-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--white);
}

.benefit-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--very-light-gray);
}

.apply-section {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.419), rgba(13, 13, 13, 0.4));
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.apply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), transparent);
}

.apply-section2 {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.419), rgba(13, 13, 13, 0.4));
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 55%;
    margin: 0 auto;
    /* ✅ centers the block horizontally */
    border-radius: 10px;
    /* optional for a softer look */
}

.apply-section2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), transparent);
}

.apply-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* space between images */
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* ensures they stack on small screens */

}

.apply-images img {
    height: 300px;
    cursor: pointer;
    width: 35%;
    /* two per row */
    border-radius: 10px;
    object-fit: cover;
    clip-path: polygon(10% 0, 100% 0, 91% 100%, 0 100%);
    border: 4px solid rgba(255, 0, 51, 0.85);
    transition: .3s;
    opacity: 0.4;
}

.apply-images img:hover {
    transform: scale(1.03);
    opacity: 1;
}

.apply-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--white);
}

.apply-section p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--very-light-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

.contact-info a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
}

.contact-info a:hover {
    color: var(--primary-red);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-info .material-icons {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 20px;
}

.requirements-list {
    list-style-type: none;
    padding: 0;
    margin: 30px 0;
}

.requirements-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
}

.requirements-list li::before {
    content: "check";
    font-family: "Material Icons";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-red);
    font-size: 20px;
}

/* Contact form styling */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
}

#contact input,
#contact textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact textarea {
    resize: vertical;
    min-height: 100px;
}

#contact button {
    padding: 10px;
    background-color: #aa0808;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#contact button:hover {
    background-color: #fd7200;
}

#hidden_contact {
    height: 90px;
}

#captcha {
    font-weight: bold;
    font-size: 18px;
    margin-right: 46px;
}

/* Fix missing social icon styles */
.member-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.member-social-overlay a,
.member-social-overlay .social-icon {
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s ease;
}

.member-social-overlay a:hover,
.member-social-overlay .social-icon:hover {
    color: var(--primary-red);
    transform: scale(1.2);
    text-shadow: var(--text-glow);
}

.team-member:hover .member-social-overlay,
.team-member:focus-within .member-social-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Fix team member info */
.member-info h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Fix social icons */
.social-icon {
    color: var(--white);
    text-decoration: none;
    font-size: 17px;
    transition: all var(--transition-speed);
    margin-right: 15px;
}

.member-social .social-icon {
    margin-right: 0;
}

.social-icon.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.social-icon:hover {
    color: var(--primary-red);
    text-shadow: var(--text-glow);
}

/* Fix social links container */
.social-links-home {
    display: flex;
    margin-bottom: 30px;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

/* Fix red overlay that was removed */
.red-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 0, 51, 0.1), rgba(0, 0, 0, 0.1));
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Fix page container spacing */
.page-container {
    padding-top: 100px;
}

/* Fix image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Performance improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fix for iOS Safari issues */
@supports (-webkit-touch-callout: none) {

    /* Fix for 100vh issue in iOS Safari */
    .home-container,
    .page-container {
        padding-bottom: 80px;
        min-height: -webkit-fill-available;
    }

    body,
    html {
        height: -webkit-fill-available;
    }

    nav ul.nav-links {
        height: -webkit-fill-available;
        max-height: 100vh;
    }

    /* Fix for input zoom */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* --- Home logo sizing --- */
.logo-background {
    width: 95%;
    height: 95%;
    max-width: 520px;
    max-height: 520px;
}

@media screen and (max-width: 600px) {
    .logo-background {
        width: 100%;
        height: 180px;
        min-height: 120px;
        max-width: 100vw;
        max-height: 220px;
    }

}

/* Home Hero Responsive Fix */
@media screen and (max-width: 600px) {
    .hero-title-home {
        margin-left: 0;
        text-align: center;
        font-size: 30px;
        margin-bottom: 14px;
    }
}

/* =========================================
   DESKTOP FOOTER OVERRIDES (Global Sync)
   ========================================= */
@media screen and (min-width: 928px) {
    footer {
        padding: 80px 50px 40px !important;
    }

    .footer-content {
        max-width: 1200px !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: flex-start !important;
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-brand {
        align-items: flex-start !important;
        text-align: left;
        max-width: 300px;
    }

    .footer-brand-name {
        text-align: left !important;
    }

    .footer-tagline {
        text-align: left !important;
    }

    .footer-links-grid {
        width: auto !important;
        display: flex !important;
        gap: 60px !important;
        text-align: left !important;
    }

    .footer-link-group {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .footer-social-section {
        width: auto !important;
        margin: 0 !important;
        justify-content: flex-end !important;
    }

    .footer-bottom {
        margin-top: 60px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 20px;
    }
}

/* =========================================
   CANONICAL MOBILE NAVBAR SYSTEM
   ========================================= */
@media screen and (max-width: 927px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 11000;
        padding: 10px 12px 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        pointer-events: none;
        justify-content: center;
        align-items: flex-start;
    }

    .nav-floating-bar {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        width: min(100%, 760px);
        min-height: 56px;
        padding: 8px 10px;
        pointer-events: all;
        background: rgba(8, 10, 14, 0.92);
        border: 1px solid rgba(255, 0, 51, 0.28);
        border-radius: 14px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 6px 10px;
        font-size: 13px;
        letter-spacing: 0;
        line-height: 1.15;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        background: rgba(255, 0, 51, 0.08);
        border: 1px solid rgba(255, 0, 51, 0.22);
        border-radius: 10px;
    }

    .nav-projects {
        display: none;
    }

    .mobile-projects {
        display: block;
    }

    .nav-floating-bar>nav {
        position: static;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nav-toggle {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
    }

    .nav-toggle-label {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 11002;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        cursor: pointer;
        border-radius: 10px;
        background: rgba(255, 0, 51, 0.1);
        border: 1px solid rgba(255, 0, 51, 0.28);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        transition: background 0.25s ease, border-color 0.25s ease;
        touch-action: manipulation;
    }

    .nav-toggle-label:hover {
        background: rgba(255, 0, 51, 0.18);
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: var(--primary-red);
        border-radius: 2px;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-toggle-label span {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        left: 0;
    }

    .nav-toggle-label span::before {
        top: -6px;
    }

    .nav-toggle-label span::after {
        top: 6px;
    }

    .nav-toggle:checked~.nav-toggle-label {
        background: rgba(255, 0, 51, 0.24);
        border-color: rgba(255, 0, 51, 0.38);
    }

    .nav-toggle:checked~.nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked~.nav-toggle-label span::before {
        top: 0;
        transform: rotate(45deg);
        background-color: var(--white);
    }

    .nav-toggle:checked~.nav-toggle-label span::after {
        top: 0;
        transform: rotate(-45deg);
        background-color: var(--white);
    }

    nav ul.nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        width: min(320px, 88vw);
        max-width: 88vw;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 82px 0 22px;
        background: linear-gradient(180deg, rgba(8, 9, 13, 0.98) 0%, rgba(4, 5, 8, 0.99) 100%);
        border-left: 1px solid rgba(255, 0, 51, 0.28);
        box-shadow: -18px 0 42px rgba(0, 0, 0, 0.54);
        transform: translate3d(100%, 0, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 11001;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s ease;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        will-change: transform;
    }

    nav ul.nav-links li {
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }

    nav a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 46px;
        margin: 0;
        padding: 13px 22px;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0;
        color: rgba(255, 255, 255, 0.88);
        text-align: left;
        background: transparent;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0;
        transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
    }

    nav a::after {
        display: none;
    }

    nav a:hover {
        color: var(--white);
        background: rgba(255, 255, 255, 0.05);
    }

    nav a.active {
        color: var(--white);
        background: linear-gradient(90deg, rgba(255, 0, 51, 0.17) 0%, transparent 100%);
        border-left: 2px solid var(--primary-red);
        border-bottom-color: rgba(255, 0, 51, 0.45);
        padding-left: 20px;
        text-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
    }

    nav ul.nav-links .dropdown-menu {
        position: static;
        display: none;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        height: auto !important;
        min-height: 0 !important;
        margin: 0;
        padding: 0;
        gap: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
        background: rgba(7, 10, 14, 0.78);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    nav ul.nav-links .dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }

    nav ul.nav-links .dropdown.mobile-active>.dropdown-menu,
    nav ul.nav-links .dropdown:focus-within>.dropdown-menu {
        display: flex;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
    }

    nav ul.nav-links .dropdown>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 13px 22px;
        cursor: pointer;
        touch-action: manipulation;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    nav ul.nav-links .dropdown-menu li a {
        all: unset;
        display: block;
        box-sizing: border-box;
        width: 100%;
        padding: 12px 22px;
        line-height: 1.35;
        font-family: var(--primary-font);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0;
        color: rgba(255, 255, 255, 0.94);
        -webkit-text-fill-color: rgba(255, 255, 255, 0.94);
        text-shadow: none;
        text-decoration: none;
        opacity: 1;
        mix-blend-mode: normal;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        background: rgba(255, 255, 255, 0.015);
        position: relative;
        z-index: 2;
    }

    nav ul.nav-links .dropdown-menu li a::before {
        display: none;
    }

    nav ul.nav-links .dropdown-menu li a:last-child {
        border-bottom: 0;
    }

    nav ul.nav-links .dropdown-menu li a:hover {
        color: var(--white);
        -webkit-text-fill-color: var(--white);
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-toggle:checked~ul.nav-links {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 11000;
        background: rgba(0, 0, 0, 0.58);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-toggle:checked~.nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media screen and (max-width: 576px) {
    header {
        padding: 8px 10px 0;
    }

    .nav-floating-bar {
        min-height: 54px;
        padding: 7px 8px;
    }

    .brand {
        min-height: 38px;
        padding: 6px 8px;
        font-size: 12px;
        letter-spacing: 0;
    }

    nav ul.nav-links {
        width: min(310px, 88vw);
        max-width: 88vw;
    }
}

@media screen and (max-width: 360px) {
    header {
        padding: 8px 8px 0;
    }

    .nav-floating-bar {
        gap: 6px;
        min-height: 52px;
    }

    .brand {
        padding: 6px 7px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .nav-toggle-label {
        width: 40px !important;
        height: 40px !important;
    }

    nav ul.nav-links {
        width: min(300px, 90vw);
        max-width: 90vw;
    }
}

/* =========================================
   PENTESTPILOT-INSPIRED GLOBAL THEME OVERRIDE
   ========================================= */
:root {
    --pp-bg: #eeefe8;
    --pp-bg-soft: #f6f7f2;
    --pp-surface: #f8f8f3;
    --pp-surface-2: #f0f1ea;
    --pp-border: rgba(24, 27, 22, 0.2);
    --pp-border-soft: rgba(24, 27, 22, 0.12);
    --pp-text: #131712;
    --pp-text-muted: #565c53;
    --pp-accent: #4b704b;
    --pp-accent-soft: rgba(75, 112, 75, 0.14);
    --pp-shadow: 0 14px 34px rgba(18, 21, 16, 0.12);
    --pp-shadow-soft: 0 8px 24px rgba(18, 21, 16, 0.08);
    --pp-glow-soft: 0 0 18px rgba(75, 112, 75, 0.12);
    --pp-glow-mid: 0 0 26px rgba(75, 112, 75, 0.17);
}

html,
body {
    background: var(--pp-bg) !important;
    color: var(--pp-text) !important;
}

body {
    font-family: var(--primary-font);
}

body::before {
    z-index: -1 !important;
    background:
        linear-gradient(90deg, rgba(18, 21, 16, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(rgba(18, 21, 16, 0.035) 1px, transparent 1px) 0 0 / 28px 28px !important;
    opacity: 0.6;
}

body::after {
    z-index: -1 !important;
    background: radial-gradient(circle at 50% 6%, rgba(93, 138, 93, 0.16) 0%, transparent 52%) !important;
}

#main-content {
    color: var(--pp-text);
}

.page-container {
    max-width: 1240px;
}

.page-header h1,
.section-title,
.team-section-title,
.hero-title,
.main-logo {
    color: var(--pp-text) !important;
    text-shadow: none !important;
}

.subtitle,
.story-text p,
.description,
.member-bio,
.member-title,
.footer-tagline,
.footer-copyright {
    color: var(--pp-text-muted) !important;
}

.error-message {
    color: var(--pp-text) !important;
}

.error-description {
    color: #2f3730 !important;
    font-weight: 500;
}

.join-hero h2,
.join-hero p {
    color: var(--pp-text) !important;
    text-shadow: none !important;
}

.story-content,
.benefit-item,
.team-member,
.team-controls,
.team-kpi-card,
.join-hero,
.section,
.apply-section,
.apply-section2,
.status-card,
.notification-card,
.preview-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(248, 249, 243, 0.84)) !important;
    border: 1px solid var(--pp-border-soft) !important;
    border-radius: 18px !important;
    box-shadow: var(--pp-shadow-soft), var(--pp-glow-soft) !important;
}

.btn,
.join-cta,
.btn-custom-discord {
    border-radius: 999px !important;
    clip-path: none !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
}

.btn-primary,
.join-cta {
    background: #101410 !important;
    border: 1px solid #101410 !important;
    color: #f8f8f3 !important;
    box-shadow: var(--pp-glow-soft) !important;
}

.btn-primary:hover,
.join-cta:hover {
    background: #1a211a !important;
    transform: translateY(-1px);
    box-shadow: var(--pp-glow-mid) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid var(--pp-border) !important;
    color: var(--pp-text) !important;
    box-shadow: 0 0 12px rgba(75, 112, 75, 0.08) !important;
}

.btn-secondary:hover {
    background: var(--pp-surface) !important;
    box-shadow: 0 0 18px rgba(75, 112, 75, 0.14) !important;
}

input,
textarea,
select {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid var(--pp-border-soft) !important;
    color: var(--pp-text) !important;
    border-radius: 12px !important;
}

input::placeholder,
textarea::placeholder {
    color: #70766f !important;
}

header {
    padding: 12px 18px !important;
}

.nav-floating-bar {
    background: rgba(248, 249, 243, 0.92) !important;
    border: 1px solid var(--pp-border-soft) !important;
    border-radius: 16px !important;
    box-shadow: var(--pp-shadow) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand {
    background: transparent !important;
    border: 0 !important;
    color: var(--pp-text) !important;
    text-shadow: none !important;
}

nav a {
    color: var(--pp-text) !important;
    border-radius: 999px !important;
}

nav a::after {
    display: none !important;
}

nav a:hover,
nav a.active {
    background: var(--pp-accent-soft) !important;
    color: #0f140f !important;
}

.dropdown-menu {
    background: rgba(252, 253, 248, 0.97) !important;
    border: 1px solid var(--pp-border-soft) !important;
    box-shadow: var(--pp-shadow-soft) !important;
}

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

.dropdown-menu li a:hover {
    color: var(--pp-text) !important;
    background: var(--pp-accent-soft) !important;
    padding-left: 16px;
}

.dropdown-menu li a::before {
    display: none !important;
}

.nav-projects-btn {
    background: #101410 !important;
    color: #f7f8f2 !important;
    border: 1px solid #101410 !important;
}

.nav-projects-btn:hover {
    background: #202820 !important;
}

footer {
    background: linear-gradient(180deg, rgba(241, 243, 236, 0.96), rgba(233, 235, 227, 0.96)) !important;
    border-top: 1px solid var(--pp-border-soft) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

footer::before {
    background: linear-gradient(90deg, transparent, rgba(75, 112, 75, 0.55), transparent) !important;
    box-shadow: 0 0 16px rgba(75, 112, 75, 0.16) !important;
}

.footer-brand-name,
.footer-link-title,
.footer-link-group a,
.social-icon-footer {
    color: var(--pp-text) !important;
}

.footer-link-group a:hover {
    color: var(--pp-accent) !important;
}

.social-icon-footer {
    background: rgba(255, 255, 255, 0.74) !important;
    border: 1px solid var(--pp-border-soft) !important;
}

.social-icon-footer:hover {
    background: #101410 !important;
    border-color: #101410 !important;
    color: #f7f8f2 !important;
}

.social-icon-footer .ctftime-logo {
    filter: none !important;
}

.benefit-content h3,
.benefit-content p,
.requirements-list li,
.apply-section h1,
.apply-section h2,
.apply-section h3,
.apply-section p,
.apply-section2 h2,
.apply-section2 p,
.contact-info a,
.contact-info a .material-icons {
    color: var(--pp-text) !important;
    text-shadow: none !important;
}

.requirements-list li::before,
.benefit-icon {
    color: var(--pp-accent) !important;
    text-shadow: 0 0 10px rgba(75, 112, 75, 0.22) !important;
}

.contact-info a {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid var(--pp-border-soft) !important;
    box-shadow: 0 0 12px rgba(75, 112, 75, 0.08) !important;
}

.contact-info a:hover {
    background: #ffffff !important;
    color: var(--pp-text) !important;
    box-shadow: 0 0 20px rgba(75, 112, 75, 0.16) !important;
}

.join-container .section-title::after,
.join-container .apply-section::before {
    background: linear-gradient(to right, var(--pp-accent), rgba(75, 112, 75, 0.24)) !important;
    box-shadow: 0 0 14px rgba(75, 112, 75, 0.18) !important;
}

.section-title::after,
.team-section-title::after,
.join-container .join-hero h2::after {
    background: linear-gradient(to right, var(--pp-accent), rgba(75, 112, 75, 0.22)) !important;
    box-shadow: 0 0 12px rgba(75, 112, 75, 0.16) !important;
}

.team-member .member-info {
    background: linear-gradient(180deg, rgba(20, 23, 20, 0.88), rgba(14, 16, 14, 0.88)) !important;
}

.team-member .member-info h3,
.team-member .social-icon {
    color: #f2f5ef !important;
}

.team-member .member-title {
    color: #b5c2b2 !important;
}

.team-member .member-bio {
    color: #c3ccc0 !important;
}

.team-member .social-icon:hover {
    color: #9fc59f !important;
    text-shadow: none !important;
}

/* =========================================
   THEME DE-GLOW PASS (NON-NAV)
   ========================================= */
.team-status-legend {
    border: 1px solid var(--pp-border-soft) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(248, 249, 243, 0.84)) !important;
    box-shadow: var(--pp-shadow-soft), 0 0 14px rgba(75, 112, 75, 0.1) !important;
}

.team-status-legend .status-item .status-text {
    color: #4a5348 !important;
}

.team-status-legend .status-item:first-child .status-text {
    color: var(--pp-accent) !important;
    text-shadow: 0 0 10px rgba(75, 112, 75, 0.2) !important;
}

.team-status-legend .status-item:last-child .status-text {
    color: #6a7268 !important;
}

.team-status-legend .status-dot,
.team-status-legend .status-dot.active,
.team-status-legend .status-dot.inactive {
    border-color: rgba(75, 112, 75, 0.42) !important;
}

.team-status-legend .status-dot.active {
    box-shadow: 0 0 10px rgba(75, 112, 75, 0.5) !important;
}

.team-status-legend .status-dot.inactive {
    background-color: #a8aea5 !important;
    box-shadow: 0 0 8px rgba(122, 132, 120, 0.35) !important;
}

.team-controls {
    border-color: var(--pp-border-soft) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 249, 243, 0.88)) !important;
    box-shadow: var(--pp-shadow-soft), 0 0 14px rgba(75, 112, 75, 0.1) !important;
}

.team-search {
    border-color: var(--pp-border-soft) !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: var(--pp-text) !important;
}

.team-search input {
    color: var(--pp-text) !important;
}

.team-search input::placeholder {
    color: #6f776d !important;
}

.team-chip {
    border-color: rgba(75, 112, 75, 0.22) !important;
    background: rgba(255, 255, 255, 0.68) !important;
    color: #2f382d !important;
}

.team-active-only {
    border-color: rgba(75, 112, 75, 0.22) !important;
    color: #2f382d !important;
    background: rgba(255, 255, 255, 0.65) !important;
}

.team-chip:hover,
.team-chip.is-active {
    border-color: rgba(75, 112, 75, 0.34) !important;
    background: rgba(75, 112, 75, 0.12) !important;
    color: var(--pp-text) !important;
    box-shadow: 0 0 16px rgba(75, 112, 75, 0.18) !important;
}

.team-active-only input {
    accent-color: var(--pp-accent) !important;
}

.team-empty-state {
    background: rgba(75, 112, 75, 0.1) !important;
    border: 1px solid rgba(75, 112, 75, 0.26) !important;
    color: var(--pp-text) !important;
}

.team-kpi-card strong {
    text-shadow: none !important;
}

.error-code {
    color: var(--pp-accent) !important;
    text-shadow: none !important;
    animation: none !important;
}

#main-content > .home-container.container {
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.36), transparent 42%),
        linear-gradient(150deg, #f5f6ef 0%, #ebede4 55%, #e6e8df 100%) !important;
    border: 1px solid var(--pp-border) !important;
    box-shadow: var(--pp-shadow) !important;
}

#main-content > .home-container .hero-title-home::before,
#main-content > .home-container .hero-title-home::after {
    background: rgba(120, 183, 120, 0.6) !important;
}

#main-content > .home-container .description {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(242, 244, 236, 0.86)) !important;
    border-color: var(--pp-border-soft) !important;
    color: var(--pp-text) !important;
}

#main-content > .home-container .community-partner-label {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: var(--pp-border) !important;
    color: var(--pp-text) !important;
}

#main-content > .collab-slider-section .collab-slider {
    background: rgba(247, 249, 242, 0.84) !important;
    border-color: var(--pp-border-soft) !important;
}

#main-content > .collab-slider-section .collab-slider-title {
    color: var(--pp-text) !important;
}

#main-content > .collab-slider-section .collab-slide {
    background: #ffffff !important;
    border-color: var(--pp-border-soft) !important;
}

/* =========================================
   SITEWIDE HALFTONE ANIMATION (NON-HOME)
   ========================================= */
body:not(.home-page) #main-content,
body:not(.home-page) > .page-container {
    position: relative;
    isolation: isolate;
}

body:not(.home-page) #main-content::before,
body:not(.home-page) #main-content::after,
body:not(.home-page) > .page-container::before,
body:not(.home-page) > .page-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body:not(.home-page) #main-content::before,
body:not(.home-page) > .page-container::before {
    background:
        radial-gradient(circle at 1px 1px, rgba(16, 16, 16, 0.14) 1px, transparent 1.05px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.32), transparent 45%),
        linear-gradient(130deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 48%);
    background-size: 3px 3px, 100% 100%, 100% 100%;
    mix-blend-mode: multiply;
    opacity: 0.18;
    animation: siteHalftoneSweep 20s linear infinite;
}

body:not(.home-page) #main-content::after,
body:not(.home-page) > .page-container::after {
    background:
        repeating-linear-gradient(0deg, rgba(16, 16, 16, 0.035) 0 1px, transparent 1px 3px),
        radial-gradient(circle at 24% 70%, rgba(255, 255, 255, 0.24), transparent 54%);
    opacity: 0.1;
    animation: siteNoisePulse 4.6s steps(4, end) infinite;
}

body:not(.home-page) #main-content > *,
body:not(.home-page) > .page-container > * {
    position: relative;
    z-index: 1;
}

@keyframes siteHalftoneSweep {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    50% {
        background-position: 16px 12px, 0 0, 0 0;
    }

    100% {
        background-position: 32px 24px, 0 0, 0 0;
    }
}

@keyframes siteNoisePulse {
    0%,
    100% {
        opacity: 0.09;
    }

    25% {
        opacity: 0.12;
    }

    50% {
        opacity: 0.08;
    }

    75% {
        opacity: 0.13;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.home-page) #main-content::before,
    body:not(.home-page) #main-content::after,
    body:not(.home-page) > .page-container::before,
    body:not(.home-page) > .page-container::after {
        animation: none !important;
    }
}

@media screen and (max-width: 927px) {
    .nav-floating-bar {
        background: rgba(248, 249, 243, 0.96) !important;
        border-color: var(--pp-border-soft) !important;
        box-shadow: 0 12px 28px rgba(16, 18, 14, 0.14) !important;
    }

    .brand {
        color: #121612 !important;
    }

    .nav-toggle-label {
        background: rgba(75, 112, 75, 0.12) !important;
        border: 1px solid rgba(75, 112, 75, 0.35) !important;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        background-color: #1b2d1b !important;
    }

    nav ul.nav-links {
        background: #f7f8f3 !important;
        border-left: 1px solid var(--pp-border-soft) !important;
        box-shadow: -12px 0 30px rgba(16, 18, 14, 0.18) !important;
    }

    nav a {
        color: var(--pp-text) !important;
        border-bottom: 1px solid var(--pp-border-soft) !important;
    }

    nav a:hover {
        background: rgba(75, 112, 75, 0.1) !important;
    }

    nav a.active {
        color: #0f140f !important;
        background: rgba(75, 112, 75, 0.15) !important;
        border-left: 2px solid var(--pp-accent) !important;
        border-bottom-color: rgba(75, 112, 75, 0.3) !important;
        text-shadow: none !important;
    }

    nav ul.nav-links .dropdown-menu {
        background: rgba(75, 112, 75, 0.08) !important;
        border-top: 1px solid var(--pp-border-soft) !important;
    }

    nav ul.nav-links .dropdown>a {
        border-bottom: 1px solid var(--pp-border-soft) !important;
    }

    nav ul.nav-links .dropdown-menu li a {
        color: #232a22 !important;
        -webkit-text-fill-color: #232a22 !important;
        border-bottom: 1px solid rgba(24, 27, 22, 0.08) !important;
        background: transparent !important;
    }

    nav ul.nav-links .dropdown-menu li a:hover,
    nav ul.nav-links .dropdown-menu li a:focus-visible {
        color: #232a22 !important;
        -webkit-text-fill-color: #232a22 !important;
        background: rgba(75, 112, 75, 0.08) !important;
    }

    .nav-backdrop {
        background: rgba(0, 0, 0, 0.3) !important;
    }
}

/* Home page: defer rendering of below-the-fold sections for faster first paint */
body.home-page #main-content > .hi-community-impact-section,
body.home-page #main-content > .collab-slider-section,
body.home-page #main-content > .home-join-researcher-section {
    content-visibility: auto;
}

body.home-page #main-content > .hi-community-impact-section {
    contain-intrinsic-size: auto 760px;
}

body.home-page #main-content > .collab-slider-section {
    contain-intrinsic-size: auto 340px;
}

body.home-page #main-content > .home-join-researcher-section {
    contain-intrinsic-size: auto 300px;
}

/* Safe below-the-fold rendering optimization on heavier pages */
body.about-page #main-content .section,
body.contact-page #main-content #contact,
body.join-page #main-content .apply-section,
#main-content.svcx-main > .svcx-section {
    content-visibility: auto;
}

body.about-page #main-content .section {
    contain-intrinsic-size: auto 1100px;
}

body.contact-page #main-content #contact,
body.join-page #main-content .apply-section {
    contain-intrinsic-size: auto 720px;
}

#main-content.svcx-main > .svcx-section {
    contain-intrinsic-size: auto 880px;
}

/* Home page: aggressive mobile paint/perf mode (no text/layout changes) */
@media (max-width: 768px) {
    body.home-page #main-content>.home-container.container::before,
    body.home-page #main-content>.home-container.container::after,
    body.home-page #main-content>.home-container .logo-section::before,
    body.home-page #main-content>.home-container .logo-section::after {
        animation: none !important;
        opacity: 0.12 !important;
    }

    body.home-page #main-content>.home-container .content-section,
    body.home-page #main-content>.home-container .logo-section,
    body.home-page #main-content>.home-container .home-logo-background,
    body.home-page #main-content > .hi-what-we-do-section .hi-what-we-do-visual img,
    body.home-page #main-content > .hi-community-impact-section,
    body.home-page #main-content > .hi-community-impact-section .hi-community-impact-stat {
        animation: none !important;
    }

    body.home-page #main-content>.home-container .home-logo-background,
    body.home-page #main-content > .home-join-researcher-section .home-join-researcher-media img {
        filter: none !important;
        will-change: auto;
    }

    body.home-page #main-content > .hi-what-we-do-section,
    body.home-page #main-content > .hi-community-impact-section,
    body.home-page #main-content > .home-join-researcher-section,
    body.home-page #main-content > .collab-slider-section .collab-slider,
    body.home-page #main-content > .collab-slider-section .collab-slide {
        box-shadow: none !important;
    }

    body.home-page #main-content>.home-container .btn,
    body.home-page #main-content>.home-container .social-icon-home,
    body.home-page #main-content > .collab-slider-section .collab-slide,
    body.home-page #main-content > .collab-slider-section .collab-slide img,
    body.home-page #main-content > .hi-community-impact-section .hi-community-impact-button,
    body.home-page #main-content > .home-join-researcher-section .home-join-researcher-btn {
        transition-duration: 120ms !important;
    }
}

@media (max-width: 576px) {
    body.home-page #main-content>.home-container.container::before,
    body.home-page #main-content>.home-container.container::after,
    body.home-page #main-content>.home-container .logo-section::before,
    body.home-page #main-content>.home-container .logo-section::after,
    body.home-page #main-content > .hi-what-we-do-section::before,
    body.home-page #main-content > .hi-community-impact-section::before,
    body.home-page #main-content > .home-join-researcher-section::before {
        display: none !important;
    }

    body.home-page #main-content > .hi-community-impact-section .hi-community-impact-stat:hover,
    body.home-page #main-content > .collab-slider-section .collab-slide:hover {
        transform: none !important;
    }
}

@keyframes hiImpactReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

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

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

@media (prefers-reduced-motion: reduce) {
    body.home-page #main-content > .hi-what-we-do-section,
    body.home-page #main-content > .hi-what-we-do-section .hi-what-we-do-card,
    body.home-page #main-content > .hi-what-we-do-section .hi-what-we-do-visual,
    body.home-page #main-content > .hi-what-we-do-section .hi-what-we-do-visual img,
    body.home-page #main-content > .hi-community-impact-section,
    body.home-page #main-content > .hi-community-impact-section .hi-community-impact-stat,
    body.home-page #main-content > .hi-community-impact-section .hi-community-impact-button,
    body.home-page #main-content > .home-join-researcher-section,
    body.home-page #main-content > .home-join-researcher-section .home-join-researcher-btn {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
