/* =========================================
   SPATIAL CONNECTIONS - MODERN STYLESHEET
   ========================================= */

/* =========================
   CSS VARIABLES (Brand Colors)
   ========================= */
:root {
    /* Brand Colors */
    --primary-blue: #1a3668;
    --primary-green: #81be41;
    --secondary-dark: #231f20;
    --secondary-light-green: #c9e099;
    --secondary-teal: #1c756d;
    
    /* Theme Colors */
    --bg-dark: #000000;
    --bg-dark-blue: #0a1628;
    --bg-card: #1a2332;
    --text-light: #e8e8e8;
    --text-grey: #b0b0b0;
    --text-white: #ffffff;
    
    /* Accent Colors */
    --accent-hover: #5a9a2a;
    --border-color: rgba(129, 190, 65, 0.2);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =========================
   RESET & BASE STYLES
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-medium);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* =========================
   CONTAINER
   ========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* =========================
   NAVIGATION
   ========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.95), rgba(10, 22, 40, 0.85));
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    max-width: 250px;
    transition: transform var(--transition-medium);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition-medium);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transform: translateX(-50%);
    transition: width var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 2px;
    background: var(--primary-green);
    transition: all var(--transition-medium);
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: rgba(10, 22, 40, 0.98);
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        transition: right var(--transition-slow);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: left;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(10, 22, 40, 1) 0%, 
        rgba(26, 54, 104, 1) 50%, 
        rgba(10, 22, 40, 1) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-description strong {
    color: var(--primary-green);
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image img {
    width: 100%;
    transition: transform var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    fill: var(--primary-green);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

/* Mobile Hero */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* =========================
   ANNOUNCEMENT SECTION
   ========================= */
.announcement {
    background: linear-gradient(135deg, #f2f2f2 0%, #e0e0e0 100%);
    padding: var(--spacing-lg) 0;
}

.announcement-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.announcement-logo {
    width: 100%;
}

.announcement-logo img {
    width: 100%;
    height: auto;
}

.announcement-text {
    text-align: left;
}

.announcement .section-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.announcement .section-title .highlight {
    color: var(--primary-green);
    font-weight: 700;
}

.announcement-subtitle {
    color: var(--secondary-dark);
    font-size: 1.2rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .announcement-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .announcement-text {
        text-align: center;
    }
    
    .announcement-logo {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .announcement .section-title {
        font-size: 2rem;
    }
}

/* =========================
   DYNAMIC TEXT SECTION
   ========================= */
.dynamic-section {
    background: linear-gradient(to bottom, 
        var(--secondary-dark) 0%,
        rgba(26, 54, 104, 0.8) 100%);
    padding: calc(var(--spacing-xl) * 0.9) 0;
}

.dynamic-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.dynamic-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
}

.dynamic-static {
    display: block;
    color: var(--text-white);
    font-size: 3rem;
}

.typed-text {
    color: var(--primary-green);
    min-height: 80px;
    display: inline-block;
}

.typed-cursor {
    color: var(--primary-green);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Wrapper reserves a fixed line height so the section
   doesn't jump as differently-sized words are typed */
.typed-line {
    display: block;
    min-height: 3.8rem; /* ~3rem font-size × 1.2 line-height */
}

.dynamic-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.dynamic-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dynamic-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Mobile Dynamic Section */
@media (max-width: 968px) {
    .dynamic-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .dynamic-title {
        font-size: 2rem;
    }
    
    .dynamic-static {
        font-size: 1.5rem;
    }
}

/* =========================
   SERVICES SECTION
   ========================= */
.services {
    background: var(--bg-dark-blue);
    padding: var(--spacing-xl) 0;
}

/* ---- Services section header ---- */
.services-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ---- Interactive two-column layout ---- */
.services-interactive {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* ---- Left: numbered list ---- */
.services-list {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.service-list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1.4rem var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    border-left: 4px solid transparent;
}

.service-list-item:last-child {
    border-bottom: none;
}

.service-list-item:hover,
.service-list-item.active {
    background: rgba(26, 54, 104, 0.85);
    border-left-color: var(--primary-green);
}

.service-list-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    opacity: 0.35;
    min-width: 34px;
    transition: opacity var(--transition-medium);
}

.service-list-item:hover .service-list-num,
.service-list-item.active .service-list-num {
    opacity: 1;
}

.service-list-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-grey);
    transition: color var(--transition-medium);
}

.service-list-item:hover .service-list-name,
.service-list-item.active .service-list-name {
    color: var(--text-white);
}

.service-list-arrow {
    width: 20px;
    height: 20px;
    fill: var(--primary-green);
    opacity: 0;
    transform: translateX(-6px);
    transition: all var(--transition-medium);
    flex-shrink: 0;
}

.service-list-item:hover .service-list-arrow,
.service-list-item.active .service-list-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Right: stacked panels (grid-overlay trick for fade) ---- */
.services-panels {
    display: grid;
    min-height: 380px;
}

.service-panel {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.service-panel.active {
    opacity: 1;
    pointer-events: auto;
}

.service-panel-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
    height: 100%;
}

.service-panel.active .service-panel-inner {
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(129, 190, 65, 0.15);
}

.panel-image {
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.panel-image img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.panel-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.panel-title {
    font-size: 1.6rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.panel-subtitle {
    font-size: 0.95rem;
    color: var(--secondary-light-green);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.panel-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* ---- Responsive ---- */
@media (max-width: 968px) {
    .services-interactive {
        grid-template-columns: 1fr;
    }

    .services-panels {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .service-panel-inner {
        grid-template-columns: 1fr;
    }

    .panel-image {
        padding: var(--spacing-sm);
        max-height: 160px;
    }
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-medium), height var(--transition-medium);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(129, 190, 65, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 190, 65, 0.4);
}

.btn-success {
    background: var(--secondary-teal);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(28, 117, 109, 0.3);
}

.btn-success:hover {
    background: #267d73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 117, 109, 0.4);
}

/* =========================
   CONFERENCE TRAINING SECTION
   ========================= */
.conference-training {
    position: relative;
    background: var(--bg-dark-blue);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.conference-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 104, 0.6);
}

.conference-content {
    position: relative;
    z-index: 1;
}

.conference-title {
    font-size: 2.5rem;
    color: var(--text-white);
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
}

.conference-event-title {
    font-size: 3rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.conference-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

/* Countdown Timer Styles */
.countdown {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.countdown-timer {
    display: flex;
    gap: var(--spacing-md);
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: var(--spacing-md);
    min-width: 100px;
    border: 1px solid var(--border-color);
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-expired {
    font-size: 1.5rem;
    color: var(--text-light);
    padding: var(--spacing-md);
}

@media (max-width: 768px) {
    .conference-event-title {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: var(--spacing-xs);
    }
    
    .countdown-item {
        min-width: 60px;
        padding: var(--spacing-xs);
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .conference-event-title {
        font-size: 1.5rem;
    }
    
    .conference-subtitle {
        font-size: 1rem;
    }
    
    .countdown-timer {
        gap: 0.3rem;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
}

/* =========================
   TRAINING CTA SECTION
   ========================= */
.training-cta {
    background: var(--primary-blue);
    padding: var(--spacing-md) 0;
}

.cta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

.cta-text h3 {
    font-size: 1.3rem;
    color: var(--text-white);
    font-weight: 400;
}

.cta-arrow {
    display: flex;
    align-items: center;
}

.animated-arrow {
    width: 40px;
    height: 40px;
    fill: var(--primary-green);
    animation: arrowSlide 1.5s ease-in-out infinite;
}

@keyframes arrowSlide {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(10px);
        opacity: 0.6;
    }
}

/* Mobile CTA */
@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .cta-arrow {
        transform: rotate(90deg);
    }
    
    .animated-arrow {
        width: 30px;
        height: 30px;
    }
}

/* =========================
   PODCAST SECTION
   ========================= */
.podcast-section {
    background: var(--text-white);
    color: var(--secondary-dark);
    padding: var(--spacing-xl) 0;
}

.podcast-content {
    max-width: 900px;
    margin: 0 auto;
}

.podcast-section .section-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.podcast-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: #555;
}

.podcast-player {
    background: #f8f8f8;
    border-radius: 15px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.podcast-player iframe {
    border-radius: 10px;
}

/* =========================
   SOCIAL MEDIA SECTION
   ========================= */
.social-section {
    background: var(--primary-blue);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.social-section .section-title {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.social-link:hover {
    background: var(--primary-green);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(129, 190, 65, 0.3);
}

.social-link svg {
    width: 30px;
    height: 30px;
    fill: var(--text-white);
}

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background: var(--primary-blue);
    padding: var(--spacing-sm) 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================
   ROUTE PANEL (PAGE MAP)
   ========================= */

/* Outer fixed container — hidden until user scrolls */
.route-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.route-panel.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Vertical track holding all stops */
.route-panel-track {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    position: relative;
    padding: 2px 0;
}

/* Continuous dashed route line running through all dots */
.route-panel-track::before {
    content: '';
    position: absolute;
    right: 9px;           /* center of the 20px dot */
    top: 12px;            /* start at center of first dot */
    bottom: 12px;         /* end at center of last dot */
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(26, 54, 104, 0.7) 0px,
        rgba(26, 54, 104, 0.7) 5px,
        transparent 5px,
        transparent 10px
    );
    pointer-events: none;
}

/* Individual stop button */
.route-stop {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-primary);
}

/* Tooltip label — slides in from right on hover/active */
.route-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-white);
    background: rgba(10, 22, 40, 0.9);
    border: 1px solid rgba(26, 54, 104, 0.7);
    padding: 3px 10px 3px 10px;
    border-radius: 20px 0 0 20px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.route-stop:hover .route-label,
.route-stop.active .route-label {
    opacity: 1;
    transform: translateX(0);
}

/* Standard dot */
.route-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(26, 54, 104, 0.85);
    background: rgba(10, 22, 40, 0.7);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.route-stop:hover .route-dot {
    border-color: var(--primary-green);
    background: rgba(129, 190, 65, 0.15);
    transform: scale(1.15);
}

.route-stop.active .route-dot {
    border-color: var(--primary-green);
    background: var(--primary-green);
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(129, 190, 65, 0.2), 0 0 12px rgba(129, 190, 65, 0.4);
}

/* Pulse on active dot */
@keyframes route-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(129, 190, 65, 0.5), 0 0 12px rgba(129, 190, 65, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(129, 190, 65, 0),   0 0 12px rgba(129, 190, 65, 0.4); }
    100% { box-shadow: 0 0 0 0   rgba(129, 190, 65, 0),   0 0 12px rgba(129, 190, 65, 0.4); }
}

.route-stop.active .route-dot {
    animation: route-pulse 2.2s ease-out infinite;
}

/* Start pin — map-pin icon, slightly larger */
.route-dot--start {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.7);
    border: 2px solid var(--primary-green);
}

.route-dot--start svg {
    width: 14px;
    height: 14px;
    fill: var(--primary-green);
    transition: fill 0.25s ease;
}

.route-stop.active .route-dot--start,
.route-stop:hover .route-dot--start {
    background: var(--primary-green);
}

.route-stop.active .route-dot--start svg,
.route-stop:hover .route-dot--start svg {
    fill: var(--bg-dark);
}

/* End flag — square-ish with flag icon */
.route-dot--end {
    border-radius: 4px;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(26, 54, 104, 0.85);
}

.route-dot--end svg {
    width: 13px;
    height: 13px;
    fill: rgba(26, 54, 104, 0.9);
    transition: fill 0.25s ease;
}

.route-stop:hover .route-dot--end,
.route-stop.active .route-dot--end {
    border-color: var(--primary-green);
    background: var(--primary-green);
}

.route-stop:hover .route-dot--end svg,
.route-stop.active .route-dot--end svg {
    fill: var(--bg-dark);
}

/* Responsive — hide labels on tablet, hide whole panel on mobile */
@media (max-width: 968px) {
    .route-panel {
        right: 10px;
    }
    .route-label {
        display: none;
    }
}

@media (max-width: 640px) {
    .route-panel {
        display: none;
    }
}

/* =========================
   SCROLL TO TOP BUTTON
   ========================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(129, 190, 65, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(129, 190, 65, 0.5);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: var(--text-white);
}

/* =========================
   SECTION TITLES (Global)
   ========================= */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

/* =========================
   ANIMATIONS (AOS-like)
   ========================= */
/* =========================
   ANIMATION ON SCROLL (AOS-like)
   ========================= */
[data-aos] {
    /* Removed opacity: 0 to prevent invisible content if JS fails */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

/* =========================
   UTILITY CLASSES
   ========================= */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-white);
}

.text-green {
    color: var(--primary-green);
}

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

/* =========================
   PAGE HERO (for internal pages)
   ========================= */
.page-hero {
    min-height: 50vh;
    padding-top: 120px;
}

.page-hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 40vh;
}

.where-hero {
    min-height: 92vh; /* Additional 10% increase (was 84vh) */
    position: relative;
    background: url('images/coffee_shop.jpg') center/cover no-repeat fixed;
}

.where-hero .hero-content {
    min-height: 70vh;
    padding-top: 25vh;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.where-hero .container {
    position: relative;
    z-index: 2;
}

.where-hero .scroll-indicator {
    position: absolute;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.title-line-1 {
    display: block;
    opacity: 1;
}

.title-line-2 {
    display: block;
    animation: fadeInUp 1.5s ease-in 0.8s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .where-hero {
        min-height: 60vh;
    }
}

/* =========================
   CONTACT METHOD SECTIONS
   ========================= */
.contact-sections-wrapper {
    background: var(--bg-dark);
    padding: var(--spacing-lg) 0;
}

.contact-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.contact-method-section-inline {
    padding: var(--spacing-lg);
}

.contact-method-section-inline:first-child {
    background: var(--primary-blue);
}

.contact-method-section-inline:last-child {
    background: var(--secondary-dark);
}

.contact-method-section {
    background: var(--primary-blue);
    padding: var(--spacing-lg) 0;
}

.contact-method-alt {
    background: var(--secondary-dark);
}

.contact-method-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.contact-method-vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm); /* Reduced from default spacing */
}

.contact-method-vertical .contact-method-text {
    width: 100%;
    margin-bottom: 0;
}

.contact-method-vertical .contact-method-action {
    margin: var(--spacing-xs) 0; /* Reduced from var(--spacing-md) */
}

.contact-method-vertical .fact-card {
    margin-top: var(--spacing-xs); /* Reduced spacing above fact card */
}

.fact-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-green);
    border-radius: 10px;
    padding: var(--spacing-md);
    max-width: 600px;
    margin-top: var(--spacing-md);
}

.fact-caption {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.fact-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-method-text {
    flex: 1;
}

.contact-method-text .section-title {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.contact-method-text .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-method-action {
    flex-shrink: 0;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.inline-link {
    color: var(--primary-green);
    text-decoration: underline;
    transition: color var(--transition-medium);
}

.inline-link:hover {
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .contact-sections-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-method-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-method-text .section-title {
        font-size: 2rem;
    }
    
    .fact-card {
        padding: var(--spacing-sm);
    }
    
    .fact-caption {
        font-size: 0.8rem;
    }
    
    .fact-text {
        font-size: 0.95rem;
    }
}

/* =========================
   ANIMATED CONTACT ICONS
   ========================= */
.animated-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
    transition: transform var(--transition-medium);
}

.animated-icon-link:hover {
    transform: translateY(-10px);
}

/* Animated Envelope */
.animated-envelope {
    width: 120px;
    height: 120px;
    fill: var(--primary-green);
    transition: all var(--transition-medium);
    animation: envelopeSend 2s ease-in-out infinite;
}

@keyframes envelopeSend {
    0%, 100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.05);
    }
}

.animated-icon-link:hover .animated-envelope {
    fill: var(--accent-hover);
    animation-play-state: paused;
}

/* Animated Phone */
.phone-link {
    flex-direction: row;
    gap: var(--spacing-sm);
}

.animated-phone {
    width: 80px;
    height: 80px;
    fill: var(--primary-green);
    transition: all var(--transition-medium);
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    transition: color var(--transition-medium);
}

.phone-link:hover .animated-phone {
    fill: var(--accent-hover);
}

.phone-link:hover .phone-number {
    color: var(--accent-hover);
}

/* Animated Stamp */
.animated-stamp {
    width: 100px;
    height: 100px;
    fill: var(--primary-green);
    transition: all var(--transition-medium);
    animation: stampFloat 3s ease-in-out infinite;
}

@keyframes stampFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-5px) rotate(-2deg);
    }
    75% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.animated-icon-link:hover .animated-stamp {
    fill: var(--accent-hover);
    animation-play-state: paused;
}

/* Animated Mailbox */
.mailbox-link {
    flex-direction: column;
    gap: var(--spacing-sm);
}

.animated-mailbox {
    width: 120px;
    height: 120px;
    transition: all var(--transition-medium);
    animation: mailboxFloat 3s ease-in-out infinite;
}

@keyframes mailboxFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animated-icon-link:hover .animated-mailbox {
    animation-play-state: paused;
    transform: scale(1.1);
}

.mailbox-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    transition: color var(--transition-medium);
}

.mailbox-link:hover .mailbox-text {
    color: var(--accent-hover);
}

/* Smaller Mailbox for Address Section */
.animated-mailbox-small {
    width: 60px;
    height: 60px;
    transition: all var(--transition-medium);
    animation: mailboxFloat 3s ease-in-out infinite;
}

.mailbox-block {
    text-align: center;
}

.mailbox-container {
    margin: var(--spacing-sm) 0;
}

.mailbox-block .animated-icon-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.mailbox-block .mailbox-text {
    font-size: 0.9rem;
}

.fact-card-small {
    background: rgba(129, 190, 65, 0.1);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.fact-card-small .fact-caption {
    font-size: 0.75rem;
}

.fact-card-small .fact-text {
    font-size: 0.85rem;
}

/* Mobile responsive for animated icons */
@media (max-width: 768px) {
    .animated-envelope,
    .animated-stamp,
    .animated-mailbox {
        width: 80px;
        height: 80px;
    }
    
    .animated-phone {
        width: 60px;
        height: 60px;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
    
    .phone-link {
        flex-direction: column;
    }
    
    .mailbox-text {
        font-size: 1.1rem;
    }
}

/* =========================
   CONTACT FORM SECTION
   ========================= */
.contact-form-section {
    background: var(--bg-dark-blue);
    padding: var(--spacing-xl) 0;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.contact-form-intro .section-title {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.contact-form-intro .section-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-form-container {
    background: var(--bg-card);
    border-radius: 15px;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: all var(--transition-medium);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(129, 190, 65, 0.1);
}

.form-control::placeholder {
    color: var(--text-grey);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

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

.form-alert {
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background: rgba(129, 190, 65, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #ff6b7a;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: var(--spacing-md);
    }
}

/* =========================
   ADDRESS & MAP SECTION
   ========================= */
.address-section {
    background: var(--text-white);
    padding: var(--spacing-xl) 0;
}

.section-title-address {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

.fact-card-address {
    background: rgba(129, 190, 65, 0.15);
    border: 1px solid var(--primary-green);
    border-radius: 10px;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.fact-text-address {
    font-size: 1rem;
    color: #333; /* Dark text color like address blocks */
    line-height: 1.6;
    margin: 0;
}

.address-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.address-block {
    padding: var(--spacing-md);
    background: #f8f8f8;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
}

.info-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.info-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
}

.info-text a {
    color: var(--primary-green);
    transition: color var(--transition-medium);
}

.info-text a:hover {
    color: var(--accent-hover);
}

.social-list {
    list-style: none;
    padding: 0;
}

.social-list li {
    margin-bottom: 0.5rem;
}

.social-list a {
    color: var(--primary-green);
    font-weight: 500;
    transition: color var(--transition-medium);
}

.social-list a:hover {
    color: var(--accent-hover);
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
    .address-content {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 400px;
    }
    
    .section-title-address {
        font-size: 2rem;
    }
}

/* =========================
   RESPONSIVE UTILITIES
   ========================= */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
    .navbar,
    .scroll-to-top,
    .scroll-indicator {
        display: none;
    }
}

/* =========================================
   RESOURCES PAGE STYLES
   ========================================= */

/* Hero Section */
.resources-hero {
    min-height: 100vh;
    background: url('images/fotolia-90932408-subscription-monthly-m-2000x1500.jpg') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resources-hero .hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.resources-hero .container {
    position: relative;
    z-index: 2;
}

.resources-hero .hero-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.resources-hero h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.resources-hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Resource Overview Section */
.resource-overview {
    padding: var(--spacing-md) 0;
    background: #f5f5f5;
}

/* Browse Resources heading — sits on light bg so needs blue */
.resource-browse-header {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

/* Icon inside panel-image for resource browse cards */
.resource-icon {
    width: 90px;
    height: 90px;
    stroke: var(--primary-green);
    color: var(--primary-green);
}

/* ==========================================
   CARD CATALOG CAROUSEL
   ========================================== */

.catalog-carousel {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Stage: clipping window for sliding cards */
.catalog-stage {
    flex: 1;
    position: relative;
    height: 340px;
    overflow: hidden;
}

/* Base card state — hidden off to the right */
.catalog-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(500px, 95%);
    height: 320px;
    transform: translateX(calc(-50% + 120%));
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    background: #faf8f2;
    border: 1px solid #d4cfc4;
    border-radius: 4px;
    box-shadow: 4px 6px 18px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.08);
}

/* Cards that have already been seen sit off to the left */
.catalog-card.is-left {
    transform: translateX(calc(-50% - 120%));
    opacity: 0;
}

/* The active/visible card */
.catalog-card.is-active {
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Transitions enabled only after JS initialises the carousel */
.catalog-ready .catalog-card {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
}

/* ---- Card header strip ---- */
.catalog-card-header {
    background: var(--primary-blue);
    padding: 0.55rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px 3px 0 0;
    flex-shrink: 0;
}

.catalog-card-callnum {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.12em;
}

.catalog-card-subject {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    color: var(--primary-green);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---- Card body ---- */
.catalog-card-body {
    flex: 1;
    padding: 1.1rem 1.3rem 0.6rem;
    position: relative;
    overflow: hidden;
}

.catalog-card-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0 0 0.45rem;
}

.catalog-card-rule {
    height: 1px;
    background: var(--primary-blue);
    opacity: 0.18;
    margin-bottom: 0.75rem;
}

.catalog-card-desc {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #3a3328;
    line-height: 1.65;
}

/* Decorative rotated stamp in the corner */
.catalog-card-stamp {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: var(--primary-green);
    opacity: 0.3;
    text-align: center;
    text-transform: uppercase;
    border: 1.5px solid var(--primary-green);
    padding: 0.25rem 0.45rem;
    transform: rotate(12deg);
    line-height: 1.5;
    pointer-events: none;
}

/* ---- Card footer ---- */
.catalog-card-footer {
    border-top: 1px solid rgba(26, 54, 104, 0.12);
    padding: 0.55rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: rgba(26, 54, 104, 0.04);
    border-radius: 0 0 3px 3px;
}

.catalog-card-counter {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    color: #999;
    letter-spacing: 0.06em;
}

.catalog-card-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}

.catalog-card-link:hover {
    color: var(--primary-green);
}

/* ---- Navigation arrows ---- */
.catalog-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.catalog-nav-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: var(--text-white);
}

.catalog-nav-btn svg {
    width: 22px;
    height: 22px;
}

.catalog-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* ---- Position dots ---- */
.catalog-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: var(--spacing-sm);
}

.catalog-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.catalog-dot.is-active {
    background: var(--primary-blue);
    transform: scale(1.35);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .catalog-carousel {
        gap: var(--spacing-sm);
    }

    .catalog-stage {
        height: 380px;
    }

    .catalog-card {
        height: 360px;
        width: min(340px, 80vw);
    }

    .catalog-nav-btn {
        width: 36px;
        height: 36px;
    }

    .catalog-nav-btn svg {
        width: 18px;
        height: 18px;
    }
}

.resource-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.resource-list-item {
    background: var(--text-white);
    padding: var(--spacing-md);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resource-list-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-green);
    box-shadow: 0 4px 16px rgba(129, 190, 65, 0.2);
}

.resource-list-content {
    flex: 1;
}

.resource-list-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.resource-list-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.resource-goto-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-green);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-medium);
    display: inline-block;
}

.resource-goto-btn:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

/* ==========================================
   SECTION TAB DIVIDERS (replaces blocky section-header)
   ========================================== */
.section-tab-divider {
    background: var(--bg-dark);
    border-top: 4px solid var(--primary-blue);
    padding: var(--spacing-sm) 0;
}

.section-tab-wrap {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* The notched tab badge */
.section-tab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--primary-blue);
    color: var(--text-white);
    padding: 0.65rem 2.4rem 0.65rem 1.2rem;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    white-space: nowrap;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

.section-tab-divider:hover .section-tab-badge {
    filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.9))
            drop-shadow(0 0 20px rgba(0, 180, 255, 0.5));
}

.section-tab-num {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-tab-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-tab-sub {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.5;
    flex: 1;
    margin: 0;
    min-width: 0;
}

@media (max-width: 768px) {
    .section-tab-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}

/* Filter Bar */
.filter-bar {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: flex-end;
    margin-bottom: var(--spacing-lg);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.filter-select,
.filter-search {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(129, 190, 65, 0.3);
    border-radius: 5px;
    background: var(--bg-dark);
    color: var(--text-white);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    min-width: 150px;
    transition: all var(--transition-medium);
}

.filter-select:focus,
.filter-search:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(129, 190, 65, 0.2);
}

.search-group {
    flex-grow: 1;
    min-width: 200px;
}

.clear-filters-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    font-family: 'Montserrat', sans-serif;
}

.clear-filters-btn:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
}

/* Results Count */
.results-count {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

/* Filtered List */
.filtered-list {
    background: var(--bg-card);
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--spacing-lg);
    border: 2px solid rgba(129, 190, 65, 0.2);
}

.filtered-list::-webkit-scrollbar {
    width: 8px;
}

.filtered-list::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.filtered-list::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

.list-item {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(129, 190, 65, 0.1);
}

.list-item.active {
    background: rgba(129, 190, 65, 0.2);
    border-left: 4px solid var(--primary-green);
}

.list-item-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 1rem;
}

.list-item-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-item-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.list-empty {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* ---- Side-by-side list + detail layout ---- */
.results-layout {
    display: grid;
    grid-template-columns: 374px 1fr;
    gap: var(--spacing-md);
    align-items: start;
    margin-top: var(--spacing-xs);
}

.results-left {
    /* scrollable list column — height syncs with whatever detail card renders */
}

.results-left .filtered-list {
    max-height: 520px;
    margin-bottom: 0; /* gap handled by grid */
}

.results-right .detail-card {
    padding: var(--spacing-md); /* tighter padding in side-by-side view */
}

/* Pipe separator between list item name and badges */
.list-item-sep {
    color: var(--text-grey);
    margin: 0 0.4rem;
    flex-shrink: 0;
    font-weight: 400;
}

@media (max-width: 968px) {
    .results-layout {
        grid-template-columns: 1fr;
    }
}

/* Detail Card */
.detail-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: var(--spacing-lg);
    border: 2px solid rgba(129, 190, 65, 0.3);
    min-height: 300px;
}

.detail-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

.detail-card h3 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.detail-card .detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.detail-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.detail-card a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-medium);
    font-weight: 600;
}

.detail-card a:hover {
    color: var(--accent-hover);
}

.detail-links {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-links p {
    margin-bottom: 0.5rem;
}

/* Map Note */
.map-note {
    background: rgba(129, 190, 65, 0.1);
    border-left: 4px solid var(--primary-green);
    padding: var(--spacing-md);
    border-radius: 5px;
    margin-bottom: var(--spacing-lg);
}

.map-note p {
    color: var(--primary-blue);
    margin: 0;
}

.map-note strong {
    color: var(--primary-green);
}

/* Software Section */
.software-section {
    padding: var(--spacing-md) 0;
    background: var(--bg-dark);
}

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

.software-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: var(--spacing-md);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.software-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(129, 190, 65, 0.3);
}

.software-card h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tag {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tag-commercial {
    background: rgba(26, 54, 104, 0.3);
    color: #6FA8DC;
}

.tag-opensource {
    background: rgba(129, 190, 65, 0.3);
    color: var(--primary-green);
}

.tag-os {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.software-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.software-card a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-medium);
}

.software-card a:hover {
    color: var(--accent-hover);
}

/* Data Section */
.data-section {
    padding: var(--spacing-md) 0;
    background: var(--text-white);
}

.data-subsection {
    margin-bottom: var(--spacing-xl);
}

.data-subsection h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.data-subsection h4 {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.data-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-sm);
}

.data-links a {
    color: var(--primary-blue);
    text-decoration: none;
    padding: 0.5rem;
    transition: all var(--transition-medium);
    border-radius: 5px;
}

.data-links a:hover {
    background: rgba(129, 190, 65, 0.1);
    color: var(--primary-green);
    transform: translateX(5px);
}

.map-placeholder {
    background: #f5f5f5;
    border: 2px dashed var(--primary-green);
    border-radius: 10px;
    padding: var(--spacing-lg);
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.map-placeholder p {
    color: #666;
    font-style: italic;
}

/* Education, Articles, Organizations Sections */
.content-section {
    padding: var(--spacing-md) 0;
}

.content-section.bg-dark {
    background: var(--bg-dark);
}

.content-section.bg-light {
    background: var(--text-white);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.content-grid a {
    color: var(--primary-blue);
    text-decoration: none;
    padding: 0.5rem;
    transition: all var(--transition-medium);
    border-radius: 5px;
    display: block;
}

.content-section.bg-dark .content-grid a {
    color: var(--primary-green);
}

.content-grid a:hover {
    background: rgba(129, 190, 65, 0.1);
    transform: translateX(5px);
}

.section-note {
    background: rgba(129, 190, 65, 0.1);
    border-left: 4px solid var(--primary-green);
    padding: var(--spacing-md);
    border-radius: 5px;
    margin: var(--spacing-md) 0;
}

.section-note p {
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Resources Page Mobile Responsive */
@media (max-width: 968px) {
    .resources-hero h1 {
        font-size: 2.5rem;
    }
    
    .resource-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resource-goto-btn {
        width: 100%;
        text-align: center;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select,
    .filter-search {
        width: 100%;
    }
    
    .clear-filters-btn {
        width: 100%;
    }
    
    .software-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 2rem;
    }
    
    .resources-hero p {
        font-size: 1.1rem;
    }
    
    .detail-card h3 {
        font-size: 2rem;
    }
    
    .filtered-list {
        max-height: 300px;
    }
}

/* =========================================
   WHAT WE DO PAGE STYLES
   ========================================= */

/* Carousel Styles */
.carousel-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.carousel-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--spacing-md);
}

.carousel-text {
    max-width: 800px;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-description {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: var(--spacing-sm);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--text-white);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.carousel-dot.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(129, 190, 65, 0.8);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
    font-size: 1.5rem;
}

.carousel-arrow:hover {
    background: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

/* Services Section */
.services-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.services-section .section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-lg);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    cursor: pointer;
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 200px;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(129, 190, 65, 0.3);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-title {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.service-link {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-green);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-medium);
    align-self: flex-start;
}

.service-link:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

/* Clients Section */
.clients-section {
    padding: var(--spacing-md) 0;          /* was --spacing-xl (6rem → 2rem) */
    background: var(--text-white);
    overflow: hidden;
}

.clients-section .section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);      /* was --spacing-lg (4rem → 0.5rem) */
}

.clients-section .section-subtitle {
    text-align: center;
    font-size: 1.5rem;                     /* was 1.2rem — larger to match importance */
    color: var(--primary-blue);            /* was #666 — match the Our Clients heading */
    font-weight: 600;
    margin-bottom: var(--spacing-md);      /* was --spacing-xl (6rem → 2rem) */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.clients-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-md) 0;
}

.clients-slider {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
}

.clients-slider:hover {
    animation-play-state: paused;
}

.client-logo {
    height: 100px;
    width: 200px;
    object-fit: contain;
    margin: 0 var(--spacing-lg);
    filter: grayscale(100%) opacity(0.7);
    transition: all var(--transition-medium);
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Opportunity Section */
.opportunity-section {
    padding: var(--spacing-xl) 0;
    background: var(--primary-blue);
    text-align: center;
}

.opportunity-section .section-title {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
}

.opportunity-section .section-text {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* What We Do Page Mobile Responsive */
@media (max-width: 968px) {
    .service-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .service-image {
        height: 250px;
    }
    
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-description {
        font-size: 1.1rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .client-logo {
        height: 80px;
        width: 150px;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .services-section .section-title,
    .clients-section .section-title {
        font-size: 2rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    .client-logo {
        height: 60px;
        width: 120px;
        margin: 0 var(--spacing-sm);
    }
}

/* =========================================
   WHO WE ARE PAGE STYLES
   ========================================= */

/* Hero Section */
.who-hero {
    min-height: 80vh;
    background: url('images/lakeviewsouth-2000x1125.jpg') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    margin-top: 80px; /* Account for fixed navbar */
}

.who-hero .hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.who-hero .container {
    position: relative;
    z-index: 2;
}

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

.who-hero .hero-text h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.who-hero .hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.who-hero .hero-text p:last-child {
    margin-bottom: 0;
}

/* Why Name Section */
.why-name-section {
    padding: var(--spacing-xl) 0;
    background: var(--text-white);
    position: relative; /* Ensure no inherited overlay */
    z-index: auto; /* Reset z-index */
}

.why-name-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-md);
    background: var(--text-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.why-name-content .section-title {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.why-name-content .tagline {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.why-name-content p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.why-name-content p strong {
    color: var(--primary-blue);
}

/* Meet the Founder Section */
.meet-founder-section {
    padding: var(--spacing-lg) 0;        /* was --spacing-xl (6rem → 4rem) */
    background: var(--bg-dark);
    border-top: 4px solid var(--primary-green);
    position: relative;
}

.meet-founder-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.meet-founder-section .section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);    /* was --spacing-xl (6rem → 2rem) */
    font-weight: 700;
}

.founder-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-lg);              /* was --spacing-xl (6rem → 4rem) */
    align-items: start;
}

.founder-image {
    position: sticky;
    top: 100px;
    max-width: 280px;
}

.founder-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(129, 190, 65, 0.3);
    border: 3px solid var(--primary-green);
    object-fit: cover;
}

.founder-bio h3 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.founder-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);    /* was --spacing-lg (4rem → 2rem) */
    font-weight: 600;
}

.bio-section {
    margin-bottom: var(--spacing-sm);   /* was --spacing-lg (4rem → 1rem) */
}

.bio-section h4 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-xs);   /* was --spacing-sm (1rem → 0.5rem) */
    font-weight: 600;
}

.bio-section p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* How We Work Section */
.how-we-work-section {
    padding: var(--spacing-lg) 0;        /* was --spacing-xl (6rem → 4rem) */
    background: var(--text-white);
    border-top: 4px solid var(--primary-blue);
    position: relative;
}

.how-we-work-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.how-we-work-section .section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);    /* was --spacing-xl (6rem → 2rem) */
    font-weight: 700;
}

/* 4-column single row — narrows each card, all visible together */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);              /* was --spacing-lg (4rem → 2rem) */
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-dark);
    padding: var(--spacing-md);          /* was --spacing-lg (4rem → 2rem) */
    border-radius: 15px;
    text-align: center;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0 16px 32px rgba(129, 190, 65, 0.3);
}

.value-icon {
    font-size: 2.2rem;                   /* was 3rem */
    margin-bottom: var(--spacing-sm);    /* was --spacing-md */
}

.value-card h3 {
    font-size: 1.15rem;                  /* was 1.8rem — scaled for narrower card */
    color: var(--primary-green);
    margin-bottom: var(--spacing-xs);    /* was --spacing-sm */
    font-weight: 700;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9rem;                   /* was 1rem — keeps text from wrapping excessively */
}

/* Responsive: 2×2 on tablet, 1×4 stacked on mobile */
@media (max-width: 968px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Work With Us Section */
.work-with-us-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
    border-top: 4px solid var(--primary-green);
    position: relative;
}

.work-with-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.work-with-us-section .section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.work-with-us-section .section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
}

.work-details {
    max-width: 800px;
    margin: 0 auto;
}

.work-details > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.qualities-list {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.qualities-list li {
    color: var(--text-light);
    font-size: 1.1rem;
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
    position: relative;
}

.qualities-list li:before {
    content: "✓";
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.3rem;
    position: absolute;
    left: 0;
}

.careers-cta {
    background: rgba(129, 190, 65, 0.1);
    border-left: 4px solid var(--primary-green);
    padding: var(--spacing-md);
    border-radius: 5px;
    margin-bottom: var(--spacing-xl);
}

.careers-cta p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-md);
}

.careers-cta strong {
    color: var(--primary-green);
}

.careers-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-green);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-medium);
}

.careers-link:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

.contact-cta {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: 15px;
    border: 2px solid var(--primary-green);
}

.contact-cta h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.contact-cta p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.contact-btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-green);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-medium);
}

.contact-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Who We Are Page Mobile Responsive */
@media (max-width: 968px) {
    .who-hero {
        margin-top: 70px; /* Adjust for smaller navbar */
    }
    
    .who-hero .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .who-hero .hero-text p {
        font-size: 1.1rem;
    }
    
    .founder-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .founder-image {
        position: static;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .why-name-content .section-title,
    .meet-founder-section .section-title,
    .how-we-work-section .section-title,
    .work-with-us-section .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .who-hero {
        min-height: 70vh;
        margin-top: 60px;
    }
    
    .who-hero .hero-text h1 {
        font-size: 2rem;
    }
    
    .who-hero .hero-text p {
        font-size: 1rem;
    }
    
    .why-name-content .section-title,
    .meet-founder-section .section-title,
    .how-we-work-section .section-title,
    .work-with-us-section .section-title {
        font-size: 2rem;
    }
    
    .why-name-content .tagline {
        font-size: 1.2rem;
    }
    
    .founder-bio h3 {
        font-size: 2rem;
    }
    
    .value-icon {
        font-size: 2.5rem;
    }
    
    .founder-image {
        max-width: 220px;
    }
}

/* =========================================
   TRAINING PAGE STYLES
   ========================================= */

/* Hero Section */
.training-hero {
    min-height: 70vh;
    background: url('images/fotolia-135663541-subscription-monthly-m-2000x1330.jpg') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    margin-top: 80px;
}

.training-hero .hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.training-hero .container {
    position: relative;
    z-index: 2;
}

.training-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.training-hero h1 {
    font-size: 4rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.training-hero .hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.training-hero .hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Why Train Section */
.why-train-section {
    padding: var(--spacing-xl) 0;
    background: var(--text-white);
    border-top: 4px solid var(--primary-blue);
    position: relative;
}

.why-train-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.why-train-section .section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
}

.why-train-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.why-card {
    background: var(--bg-dark);
    padding: var(--spacing-lg);
    border-radius: 15px;
    text-align: center;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(129, 190, 65, 0.3);
}

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

.why-card h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Online Courses Section */
.online-courses-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
    border-top: 4px solid var(--primary-green);
    position: relative;
}

.online-courses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.online-courses-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.courses-text .section-title {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.courses-text .section-subtitle {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.courses-text > p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.course-features {
    margin-bottom: var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(129, 190, 65, 0.05);
    border-radius: 10px;
    transition: all var(--transition-medium);
}

.feature-item:hover {
    background: rgba(129, 190, 65, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.feature-text strong {
    color: var(--primary-green);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.cta-button-large {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-green);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px rgba(129, 190, 65, 0.3);
}

.cta-button-large:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(129, 190, 65, 0.4);
}

.courses-image {
    max-width: 500px;
    margin: 0 auto;
}

.courses-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Quote Sections */
.training-quote {
    padding: var(--spacing-xl) 0;
    background: url('images/hs-2000x1445.png') center/cover no-repeat fixed;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-quote-2 {
    background: url('images/mbr-2000x1334.jpg') center/cover no-repeat fixed;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.training-quote .container {
    position: relative;
    z-index: 2;
}

.quote-text {
    font-size: 2.5rem;
    color: var(--text-white);
    text-align: center;
    font-weight: 600;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Custom Training Section */
.custom-training-section {
    padding: var(--spacing-xl) 0;
    background: var(--text-white);
    border-top: 4px solid var(--primary-blue);
    position: relative;
}

.custom-training-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.custom-training-section .section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.custom-training-section .section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
}

.training-courses {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.training-course-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-lg);
    background: var(--bg-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.training-course-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 35px rgba(129, 190, 65, 0.2);
}

.training-course-card .course-image {
    background: var(--text-white);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
}

.training-course-card .course-image img {
    width: 100%;
    max-height: 150px;
    height: auto;
    object-fit: contain;
}

.course-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-content h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.course-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.course-details {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.detail-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(129, 190, 65, 0.2);
    color: var(--primary-green);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-cta {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-green);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-medium);
    align-self: flex-start;
}

.course-cta:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

/* Custom Training CTA */
.custom-training-cta {
    background: var(--bg-dark);
    padding: var(--spacing-xl);
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--primary-green);
}

.custom-training-cta h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.custom-training-cta p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

/* Training Page Mobile Responsive */
@media (max-width: 968px) {
    .training-hero {
        margin-top: 70px;
        min-height: 60vh;
    }
    
    .training-hero h1 {
        font-size: 2.5rem;
    }
    
    .training-hero .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .training-hero .hero-description {
        font-size: 1.1rem;
    }
    
    .why-train-grid {
        grid-template-columns: 1fr;
    }
    
    .online-courses-content {
        grid-template-columns: 1fr;
    }
    
    .courses-image {
        order: -1;
    }
    
    .training-course-card {
        grid-template-columns: 1fr;
    }
    
    .training-course-card .course-image {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .training-hero {
        margin-top: 60px;
        min-height: 50vh;
    }
    
    .training-hero h1 {
        font-size: 2rem;
    }
    
    .training-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .training-hero .hero-description {
        font-size: 1rem;
    }
    
    .why-train-section .section-title,
    .courses-text .section-title,
    .custom-training-section .section-title {
        font-size: 2rem;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
    
    .course-content h3 {
        font-size: 1.5rem;
    }
}