/* ========================================
   CSS VARIABLES & CONFIGURATION
   ======================================== */

:root {
    /* Colors */
    --navy: #0d1725;
    --navy-light: #1a2e47;
    --navy-lighter: #1c3352;
    --navy-darker: #15273e;
    --gold: #eeca57;
    --white: #ffffff;
    --grey: #f8f9fa;
    --grey-light: #f0f4f8;
    --grey-dark: #bdc3c7;
    --red: #f44336;
    --red-dark: #d32f2f;
    --red-darker: #b71c1c;
    --green: #4caf50;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-body: 'Open Sans', sans-serif;
    --font-display: 'Americorps', Impact, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ========================================
   FONTS
   ======================================== */

@font-face {
    font-family: 'Americorps';
    src: url('../fonts/americorps.ttf') format('truetype');
}

/* ========================================
   GLOBAL RESETS & BASE STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--navy);
    overflow-x: hidden;
    animation: pageFadeIn 0.6s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text Utilities */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }

/* Spacing Utilities */
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-lg { margin-top: var(--spacing-lg); }

/* Display Utilities */
.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: var(--navy);
    height: 85px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-text {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
}

.logo span,
.logo-text span {
    color: var(--gold);
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    margin-left: var(--spacing-lg);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(rgba(21, 39, 62, 0.8), rgba(21, 39, 62, 0.7)),
                url('../img/bayview-img.png') center/cover no-repeat;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-btns {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-lg);
}

.brand-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    color: var(--white);
    text-transform: uppercase;
    line-height: 1;
    animation: fadeInDown 1.2s ease-out forwards;
    margin-bottom: var(--spacing-sm);
}

.brand-title span {
    color: var(--gold);
}

.slogan {
    font-family: var(--font-body);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: 0.2rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-in 0.8s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2.2rem;
    text-decoration: none;
    z-index: 10;
    animation: bounce 2s infinite;
    transition: var(--transition);
    cursor: pointer;
}

.scroll-indicator:hover {
    color: var(--gold);
}

/* ========================================
   DECORATIVE ELEMENTS
   ======================================== */

/* Title Underlines */
.brand-title-underline,
.custom-underline {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto var(--spacing-lg) auto;
}

.brand-title-underline {
    margin-bottom: var(--spacing-lg);
}

.custom-underline {
    margin: -5px auto 0 auto;
}

.brand-title-underline::before,
.brand-title-underline::after,
.custom-underline::before,
.custom-underline::after {
    content: '';
    height: 2px;
    background: var(--white);
    width: 50px;
}

.custom-underline::before,
.custom-underline::after {
    background: var(--navy);
}

.brand-title-underline .yellow-line,
.custom-underline .yellow-line {
    height: 5px;
    background: var(--gold);
    width: 60px;
}

/* Section Divider */
.section-divider,
.team-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0;
}

.team-divider {
    width: 60%;
    max-width: 600px;
    height: 2px;
    margin: var(--spacing-2xl) auto;
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header-container {
    text-align: center;
    margin-bottom: 3.5rem;
}

.header {
    font-family: var(--font-display);
    color: var(--navy);
    text-align: center;
    font-weight: bold;
    font-size: 2.8rem;
    margin: 0;
    padding: 10px 0;
    display: inline-block;
    text-transform: uppercase;
}

.section-header-container.light .header {
    color: var(--white);
}

.section-header-container.light .custom-underline::before,
.section-header-container.light .custom-underline::after {
    background: var(--white);
}

/* Category Titles */
.category-title {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    border-left: 5px solid var(--gold);
    padding-left: 15px;
}

.category-title i {
    margin-right: 10px;
    color: var(--gold);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(238, 202, 87, 0.3);
}

.btn-secondary {
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    background: transparent;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn-reset-form {
    background: var(--red);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-reset-form:hover {
    background: var(--red-dark);
}

.btn-submit-app {
    background: var(--navy);
    color: var(--white);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    border-bottom: 4px solid var(--gold);
    transition: var(--transition);
}

.btn-submit-app:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.btn-submit-app:active {
    transform: scale(0.98);
    background: var(--gold);
    color: var(--navy);
}

.btn-submit-app:disabled {
    background: #ccc;
    border-bottom: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Modal Buttons */
.btn-modal {
    padding: 0.8rem var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: bold;
    border: none;
    text-transform: uppercase;
    flex: 1;
    transition: var(--transition-fast);
}

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

.btn-cancel {
    background: #333;
    color: white;
}

.btn-confirm:hover {
    background: var(--red-darker);
}

.btn-cancel:hover {
    background: #444;
}

/* Discount Buttons */
.discount-btn {
    flex: 1;
    background: var(--navy);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.discount-btn.active {
    background: var(--gold);
    color: var(--navy);
}

/* ========================================
   CARD COMPONENTS (Shared Styles)
   ======================================== */

/* Base Card Style */
.card-base {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(238, 202, 87, 0.2);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-base:hover {
    transform: translateY(-10px);
    background: var(--gold);
    color: var(--navy);
}

.card-base:hover i,
.card-base:hover h3 {
    color: var(--navy);
}

/* Card Icons */
.card-base i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

/* Card Titles */
.card-base h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    color: var(--gold);
}

/* Card Text */
.card-base p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.card-base:hover p {
    opacity: 1;
}

/* Apply to specific card types */
.service-card,
.portal-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(238, 202, 87, 0.2);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover,
.portal-card:hover {
    transform: translateY(-10px);
    background: var(--gold);
    color: var(--navy);
}

.service-card:hover i,
.service-card:hover h3,
.portal-card:hover i,
.portal-card:hover h3 {
    color: var(--navy);
}

.service-card i,
.portal-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.service-card h3,
.portal-card h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    color: var(--gold);
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.service-card:hover p {
    opacity: 1;
}

/* Portal Card Specific */
.portal-card {
    width: 100%;
}

.portal-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

/* Labour Cards */
.labour-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(238, 202, 87, 0.2);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    color: var(--white);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.labour-card:hover {
    transform: translateY(-10px);
    background: var(--gold);
    color: var(--navy);
}

.labour-card:hover .unit,
.labour-card:hover h3,
.labour-card:hover i,
.labour-card:hover .price {
    color: var(--navy);
}

.labour-card .price {
    font-size: 1.8rem;
    font-weight: 800;
    opacity: 0.8;
}

.labour-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.labour-card h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    color: var(--gold);
}

.labour-card .unit {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Division Cards */
.division-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(238, 202, 87, 0.2);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    color: var(--white);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.division-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.div-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--spacing-md);
}

.division-card h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
    color: var(--gold);
}

.division-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.rank-badge {
    background: var(--gold);
    color: var(--navy);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Cards */
.cta-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border-bottom: 6px solid var(--gold);
}

.cta-card i {
    font-size: 3.5rem;
    color: var(--navy);
    margin-bottom: var(--spacing-md);
}

.cta-card .btn-primary {
    display: block;
    width: 100%;
    margin: var(--spacing-md) 0;
}

/* Team CTA */
.team-cta {
    text-align: center;
    margin-top: 5rem;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(238, 202, 87, 0.2);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
}

.team-cta h3 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.team-cta p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.team-cta .btn-primary {
    margin-top: var(--spacing-sm);
}

/* Results Card (Calculator) */
.results-card {
    background: var(--navy);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
    border: 1px solid rgba(238, 202, 87, 0.2);
    box-shadow: var(--shadow-md);
}

/* Application Card */
.application-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-2xl);
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   SECTIONS
   ======================================== */

.about {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.about-content {
    align-items: center;
    padding-bottom: 20px;
}

.about-text p {
    font-family: var(--font-body);
    margin-bottom: var(--spacing-md);
    color: white;
    opacity: 0.8;
    font-size: 1rem;
}

.about-badges {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.about-badges span {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-badges i {
    color: var(--gold);
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    border-bottom: 8px solid var(--gold);
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services {
    padding: var(--spacing-3xl) 0;
    background: transparent;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Labour Section */
.labour {
    padding: var(--spacing-3xl) 0;
    background: transparent;
}

.labour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

/* Map Section */
.find-us {
    padding: var(--spacing-3xl) 0;
    background: var(--navy);
}

#map-container {
    position: relative;
    width: 100%;
    height: 450px;
    border: 3px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    background: #222;
}

#homeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

#homeButton:hover {
    background: var(--white);
}

/* ========================================
   PAGE LAYOUTS
   ======================================== */

/* Team Page */
.team-page {
    padding: var(--spacing-3xl) 0;
    min-height: 100vh;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl) auto;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.team-category {
    margin-bottom: 5rem;
}

.leadership-section {
    margin-bottom: var(--spacing-2xl);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.leadership-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px);
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(238, 202, 87, 0.2);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 350px;
    color: var(--white);
}

.team-card:hover {
    transform: translateY(-10px);
    background: var(--gold);
    border-color: var(--gold);
}

.team-card:hover h3,
.team-card:hover .member-position,
.team-card:hover .member-role {
    color: var(--navy);
    opacity: 1;
}

.member-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--navy);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: relative;
    z-index: 2;
}

.member-image img[src=""],
.member-image img:not([src]) {
    opacity: 0;
}

.member-info {
    padding: var(--spacing-md);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-role {
    display: block;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.member-info h3 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    transition: var(--transition);
}

.member-position {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.2rem;
    font-style: italic;
    opacity: 0.8;
    transition: var(--transition);
}

/* Careers/Recruitment Page */
.recruitment-page {
    padding: var(--spacing-3xl) 0;
    background: var(--gray);
}

.status-banner {
    background: var(--navy);
    color: var(--white);
    padding: 1.2rem var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid var(--gold);
}

.status-indicator.open {
    width: 12px;
    height: 12px;
    background-color: var(--green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
}

.recruitment-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-2xl);
    align-items: start;
}

.benefit-list,
.requirement-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.benefit-list li,
.requirement-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}

.benefit-list i,
.requirement-list i {
    color: var(--gold);
    margin-top: 5px;
}

.application-cta {
    position: sticky;
    top: 100px;
}

/* Portal Page */
.portal-body {
    background: linear-gradient(to bottom, var(--navy), var(--navy-light));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-container {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--spacing-2xl) 20px;
    width: 100%;
}

.portal-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Division Page */
.division-page {
    padding: var(--spacing-3xl) 0;
    background: var(--gray);
}

.division-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Gallery Page */
.gallery-page {
    padding: var(--spacing-3xl) 0;
    min-height: 100vh;
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl) auto;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(238, 202, 87, 0.2);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 23, 37, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========================================
   FORMS
   ======================================== */

.form-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--navy);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.form-header-main h2 {
    color: var(--navy);
    text-transform: uppercase;
    font-size: 2rem;
}

.form-id {
    font-size: 0.7rem;
    font-weight: bold;
    color: #999;
}

.form-instructions {
    background: var(--grey-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xl);
    color: #444;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    background: var(--grey);
    padding: 12px 20px;
    border-left: 5px solid var(--gold);
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-box {
    margin-bottom: var(--spacing-md);
}

.input-box label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.input-box input,
.input-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.input-box input:focus,
.input-box textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(13, 23, 37, 0.1);
}

.radio-group-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 8px 0;
}

.radio-group-horizontal label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f3f5;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy);
    transition: var(--transition);
    border: 1px solid transparent;
    text-transform: none;
    margin: 0;
}

.radio-group-horizontal label:hover {
    background: #e9ecef;
    border-color: var(--gold);
}

.radio-group-horizontal input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--navy);
}

.radio-group-horizontal label:has(input:checked) {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.word-counter {
    font-size: 0.75rem;
    font-weight: bold;
    text-align: right;
    margin-top: 5px;
}

.form-submit-container {
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.disclaimer {
    font-size: 0.7rem;
    margin-top: 15px;
    opacity: 0.6;
}

.save-indicator {
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
    display: block;
}

.discount-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ========================================
   STATUS & INFO BOXES
   ======================================== */

.status-box {
    background: var(--navy);
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--gold);
    font-family: var(--font-mono);
    animation: fadeIn 0.4s ease;
}

/* Status Boxes - General (for forms) */
.status-box {
    background: var(--navy);
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--gold);
    font-family: var(--font-mono);
    animation: fadeIn 0.4s ease;
}

/* Tool Pages Status Box - Hidden by default, shown via JavaScript */
.portal-body .status-box,
.portal-body #status-message,
#status-message {
    display: none; /* Hidden until triggered by JS */
}

/* Calculator Page Status Box Styling */
.portal-body #status-message {
    background: #0a141f;
    color: var(--gold);
    border-left: 4px solid var(--gold);
    border: 1px solid var(--gold);
    margin-top: var(--spacing-lg);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Tool pages specific status content */
.portal-body .status-content {
    font-size: 0.85rem;
}

.status-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.status-fill {
    width: 10%;
    height: 100%;
    background: var(--gold);
    transition: width 2s ease-in-out;
}

/* Tool pages - start at 0% width */
.portal-body .status-fill {
    width: 0%;
    transition: width 0.8s ease-in-out;
}

.calc-info-banner {
    background: rgba(21, 39, 62, 0.05);
    border-left: 4px solid var(--navy);
    padding: 12px 15px;
    margin-bottom: 25px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-info-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--navy);
    line-height: 1.4;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 2s infinite;
}

/* ========================================
   CALCULATOR RESULTS
   ======================================== */

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: center;
}

.result-row span:first-child {
    color: var(--grey-dark);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.result-row.total {
    border-top: 2px solid var(--gold);
    padding-top: 15px;
    margin-top: 15px;
}

.result-row.total span:first-child {
    color: var(--gold);
    font-size: 0.9rem;
}

.value-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
}

.result-row.total .value-text {
    font-size: 1.6rem;
    color: var(--gold);
}

#clipboardMessage {
    color: var(--navy);
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    border: 2px solid var(--red);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    max-width: 450px;
    width: 90%;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.modal-content i {
    font-size: 3.5rem;
    color: var(--red);
    margin-bottom: var(--spacing-md);
}

.modal-content h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.modal-content p {
    margin-bottom: var(--spacing-lg);
    color: #bbb;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 5px solid var(--gold);
    position: relative;
}

footer .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    position: absolute;
    right: 20px;
    bottom: -10px;
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--gold);
}

.social-links a.lifeinvader-icon:hover {
    color: #d40000;
    filter: drop-shadow(0 0 5px rgba(212, 0, 0, 0.5));
}

.portal-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   SIGNATURE GENERATOR SPECIFIC
   ======================================== */

.division-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.preview-area {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-top: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#myCanvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Signature Generator Button Overrides */
.signature-generator .form-submit-container {
    display: flex;
    gap: 15px;
    margin-top: var(--spacing-md);
    width: 100%;
}

.signature-generator .btn-submit-app,
.signature-generator #dl-btn,
.signature-generator #up-btn {
    flex: 1;
    height: 65px;
    font-size: 1rem;
}

.signature-generator #dl-btn,
.signature-generator #up-btn {
    background: var(--navy);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    display: none;
    gap: 10px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

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

    .application-cta {
        position: static;
    }
}

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

    .application-card {
        padding: var(--spacing-lg);
    }

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

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

@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: block;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: var(--navy);
        padding: var(--spacing-lg) 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        margin: var(--spacing-sm) 0;
        font-size: 1.1rem;
    }

    /* Logo */
    .logo-text {
        display: none;
    }

    .logo-img {
        height: 45px;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-badges {
        justify-content: center;
    }

    /* Labour Grid */
    .labour-grid {
        grid-template-columns: 1fr;
    }

    /* Team Page */
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .team-intro {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }

    .team-cta h3 {
        font-size: 1.5rem;
    }

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

    .team-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    /* Hero */
    .brand-title {
        white-space: normal;
        text-align: center;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .gallery-item {
        height: 250px;
    }

    /* Footer */
    .social-links {
        position: static;
        justify-content: center;
        margin-top: var(--spacing-md);
    }
}

        .stats-container {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 0.85rem;
            opacity: 0.9;
        }
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .stat-divider {
            opacity: 0.3;
            margin: 0 5px;
        }
        #online-count, #total-visits {
            font-weight: bold;
            color: #ffcc00;
        }
        .system-status {
            display: flex;
            align-items: center;
            gap: 10px;
        }