/* ============================================
   URS - Binangonan OJT Hub
   Modern Landing Page Design
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-purple: #7c3aed;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes blob-bounce {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes text-gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes button-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-5 {
    animation-delay: 0.5s;
    opacity: 0;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: blob-bounce 15s infinite alternate ease-in-out;
    will-change: transform;
}

.blob-1 {
    top: -100px;
    right: -100px;
    animation-duration: 20s;
}

.blob-2 {
    bottom: -100px;
    left: -100px;
    animation-duration: 25s;
    animation-delay: -5s;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 3000;
    /* Above mobile menu */
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.2;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.navbar-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    position: relative;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

.navbar-nav a:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 2500;
    /* Higher than menu z-index (2000) */
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    display: block;
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9375rem;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.btn-white {
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-transparent {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-transparent:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    flex: 1;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #667eea;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.75) 0%, rgba(139, 92, 246, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 4rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero-title {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    background: linear-gradient(to right, #ffffff, #e0e7ff, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-move 4s linear infinite;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    font-weight: 500;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-feature:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-feature svg {
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-actions .btn {
    min-width: 200px;
}

.hero-shortcuts {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.shortcut-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.shortcut-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.shortcut-link svg {
    width: 16px;
    height: 16px;
}

.install-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-family: inherit;
}

.install-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.install-button:active {
    transform: translateY(0);
}

.install-button svg {
    width: 16px;
    height: 16px;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    gap: 0.75rem;
}

.search-input-wrapper svg {
    color: var(--text-light);
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.search-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
    padding: 5rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   Categories Section
   ============================================ */

.categories-section {
    padding: 5rem 0;
    background: var(--bg-light);
    overflow: hidden;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.toggle-tabs {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.toggle-tab {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-dark);
}

.toggle-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.toggle-tab:hover:not(.active) {
    background: rgba(99, 102, 241, 0.1);
}

.steps-content {
    transition: all 0.3s ease;
}

.steps-content.hidden {
    display: none;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.step-card:hover .step-image img {
    transform: scale(1.1) rotate(1deg);
}

.step-info {
    padding: 1.5rem;
}

.step-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-info p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author div {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--primary-color);
}

.testimonial-author .date {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-2xl);
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-card>* {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-card>p {
    font-size: 1.0625rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cta-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.cta-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cta-feature svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cta-feature div {
    display: flex;
    flex-direction: column;
}

.cta-feature strong {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cta-feature span {
    font-size: 0.875rem;
    opacity: 0.85;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-white);
    padding: 4rem 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-logo .logo-icon svg {
    width: 18px;
    height: 18px;
}

.footer-logo .brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.2s ease;
    background: var(--bg-light);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-section h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-contact ul li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ============================================
   Auth Pages
   ============================================ */

.auth-container,
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    /* Lowered to accommodate no footer */
    padding: 2rem 0;
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 768px) {
    div.auth-container {
        width: 100% !important;
        min-height: 100dvh !important;
        background: var(--bg-white) !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    div.auth-container .auth-card {
        max-width: none !important;
        width: 100% !important;
        min-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: var(--bg-white) !important;
        padding: 1.5rem 1.5rem 2rem 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
    }

    div.auth-container .top-back-btn {
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        position: absolute !important;
        top: 1.5rem !important;
        left: 1.5rem !important;
    }

    div.auth-container .auth-card h1 {
        font-size: 1.75rem !important;
        text-align: left !important;
        margin-bottom: 0.75rem !important;
    }

    div.auth-container .auth-subtitle {
        text-align: left !important;
        margin-bottom: 2rem !important;
    }

    div.auth-container .auth-footer {
        margin-top: auto !important;
        padding-top: 2rem !important;
        border-top: 1px solid var(--border-color) !important;
    }

    div.auth-container .account-type-cards {
        gap: 1rem !important;
        grid-template-columns: 1fr !important;
        /* Single column on mobile to prevent overflow */
    }

    div.auth-container .account-type-card {
        padding: 1.25rem !important;
        border-radius: var(--radius-lg) !important;
    }

    div.auth-container .account-type-icon {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 0.75rem !important;
    }

    div.auth-container .account-type-icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    div.auth-container .account-type-card h3 {
        font-size: 1.125rem !important;
    }

    div.auth-container .account-type-card>p {
        font-size: 0.8125rem !important;
        margin-bottom: 0.75rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    div.auth-container .account-type-features {
        display: none !important;
        /* Hide features on mobile to save space */
    }

    div.auth-container .form-header {
        margin-bottom: 2rem !important;
        padding-bottom: 1rem !important;
    }

    div.auth-container .back-btn {
        background: var(--bg-light) !important;
        border-radius: var(--radius-md) !important;
        padding: 0.5rem 0.75rem !important;
        color: var(--text-dark) !important;
    }

    div.auth-container .step-icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 1rem !important;
    }

    div.auth-container .step-title {
        font-size: 1.25rem !important;
        text-align: center !important;
    }

    div.auth-container .step-subtitle {
        font-size: 0.875rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }

    div.auth-container .step-indicators {
        margin-bottom: 1.5rem !important;
    }

    div.auth-container .step-indicator {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
    }
}

.auth-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
    position: relative;
}

.top-back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.top-back-btn:hover {
    color: var(--primary-color);
    background: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(-3px);
}

.auth-card-header {
    margin-bottom: 2rem;
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Wide auth card for registration */
/* Wide auth card for registration */
.auth-card-wide {
    max-width: min(1200px, 95vw);
    width: 100%;
    display: grid;
    grid-template-columns: 350px 1fr;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: white;
}

.auth-card-sidebar {
    padding: 3rem 2.5rem;
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.auth-card-sidebar .auth-card-header {
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.auth-card-sidebar h1 {
    text-align: left;
    color: var(--primary-color);
}

.auth-card-sidebar .auth-subtitle {
    text-align: left;
}

.auth-card-main {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.sidebar-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 250px;
    height: 250px;
    opacity: 0.5;
    color: var(--primary-color);
    pointer-events: none;
}

/* Responsive adjust for mobile */
@media (max-width: 900px) {
    .auth-card-wide {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .auth-card-sidebar {
        padding: 2rem;
        background: white;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        align-items: center;
        text-align: center;
    }

    .auth-card-header {
        margin-bottom: 0;
    }

    .auth-card-header h1 {
        text-align: center;
    }

    .auth-subtitle {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .sidebar-decoration {
        display: none;
    }

    .auth-card-main {
        padding: 2rem 1.5rem;
    }

    .auth-card-sidebar .top-back-btn {
        position: absolute !important;
        top: 1.5rem;
        left: 1.5rem;
        transform: none;
    }
}

/* Account Type Selector */
.account-type-selector {
    margin-bottom: 1.5rem;
}

.selector-label {
    text-align: center;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.account-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .account-type-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.account-type-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.account-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.account-type-card:hover .account-type-icon {
    background: var(--primary-color);
    color: white;
}

.account-type-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.account-type-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.account-type-card>p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.account-type-features {
    list-style: none;
    text-align: left;
}

.account-type-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    padding: 0.375rem 0;
}

.account-type-features svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Form Header with Back Button */
.form-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: -0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-family: inherit;
}

.back-btn:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}


.btn-auth-signup:hover {
    background: #7c3aed !important;
    transform: scale(1.02) translateY(0) !important;
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3) !important;
}

.btn-auth-signup:active {
    transform: scale(0.98) translateY(0) !important;
}

.form-type-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.student-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.company-badge,
.coordinator-badge,
.campus-head-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
}

/* Two column form row */
.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row.two-col .form-group {
    margin-bottom: 1.5rem;
}

/* ============================================
   Login Page Styles
   ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

@media (max-width: 768px) {
    div.login-container {
        width: 100% !important;
        min-height: 100dvh !important;
        background: var(--bg-white) !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    div.login-container .login-card {
        grid-template-columns: 1fr !important;
        max-width: none !important;
        width: 100% !important;
        min-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    div.login-container .login-image-section {
        display: none !important;
    }

    div.login-container .login-form-section {
        padding: 5rem 1.5rem 2rem 1.5rem !important;
        min-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        background: var(--bg-white) !important;
    }

    div.login-container .top-back-btn {
        position: absolute !important;
        top: 1.5rem !important;
        left: 1.5rem !important;
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        background: var(--bg-light) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 50% !important;
        color: var(--text-dark) !important;
        box-shadow: var(--shadow-sm) !important;
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
    }

    div.login-container .login-header {
        margin-bottom: 1rem !important;
        gap: 0.75rem !important;
    }

    div.login-container .login-logo {
        width: 40px !important;
        height: 40px !important;
        border-radius: var(--radius-md) !important;
    }

    div.login-container .login-title-group h1 {
        font-size: 1.5rem !important;
        letter-spacing: -0.02em !important;
    }

    div.login-container .login-subtitle {
        font-size: 0.9375rem !important;
        margin-bottom: 1.5rem !important;
    }

    div.login-container .login-form .form-group {
        margin-bottom: 1.25rem !important;
    }

    div.login-container .input-with-icon input {
        padding: 1rem 1rem 1rem 3rem !important;
        font-size: 1rem !important;
        background: var(--bg-light) !important;
        border-color: var(--border-color) !important;
    }

    div.login-container .btn-block {
        padding: 1rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-top: 0.5rem !important;
        border-radius: var(--radius-lg) !important;
    }

    div.login-container .login-footer {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
        border-top: 1px solid var(--border-color) !important;
    }

    div.login-container .login-terms {
        margin-top: 1.5rem !important;
    }
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.login-form-section {
    padding: 3rem;
}

/* Back Button standard styles are defined globally as .top-back-btn */
.login-form-section .top-back-btn {
    position: static;
    margin-bottom: 2rem;
    display: flex;
}



.login-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.login-logo {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.login-title-group h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.login-brand {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.label-row label {
    margin-bottom: 0 !important;
}



.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 3.5rem;
    height: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle svg {
    display: block;
    pointer-events: none;
}

.input-with-icon input[type="password"],
.input-with-icon input[type="text"] {
    padding-right: 3.5rem !important;
}

.input-with-icon {
    position: relative;
    width: 100%;
    display: block;
}

.input-with-icon>svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 5;
}

.input-with-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-with-icon input::placeholder {
    color: var(--text-muted);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-terms {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.login-terms a {
    color: var(--text-dark);
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

/* Login Image Section */
.login-image-section {
    position: relative;
    overflow: hidden;
}

.login-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    padding: 0.625rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: var(--shadow-lg);
}

.login-badge svg {
    color: var(--primary-color);
}

.badge-top {
    top: 1.5rem;
    right: 1.5rem;
}

.badge-bottom-left {
    bottom: 1.5rem;
    left: 1.5rem;
}

.badge-bottom-right {
    bottom: 1.5rem;
    right: 1.5rem;
}

/* ============================================
   Multi-Step Form Styles
   ============================================ */

.multi-step-form {
    width: 100%;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Progress Bar */
.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.step-label {
    color: var(--text-light);
}

.step-percent {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 100px;
    transition: width 0.4s ease;
}

/* Step Icon */
.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Step Title */
.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}

.step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--bg-white);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.step-indicator:not(:first-child) {
    margin-left: 40px;
}

.step-indicator:not(:first-child)::before {
    content: '';
    position: absolute;
    right: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step-indicator.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-indicator.completed {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-indicator.completed+.step-indicator::before,
.step-indicator.completed::before {
    background: var(--primary-color);
}

/* Form Labels with Icons */
.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label svg {
    color: var(--text-light);
}

/* Input Hint */
.input-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Input Error State */
.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Step Actions */
.step-actions {
    margin-top: 2rem;
}

.step-actions.two-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.btn svg {
    flex-shrink: 0;
}

.btn-next,
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Terms Notice */
.terms-notice {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.terms-notice a {
    color: var(--text-dark);
    text-decoration: underline;
}

.terms-notice a:hover {
    color: var(--primary-color);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: none;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        z-index: 2000;
        visibility: hidden;
        isolation: isolate;
        /* Create new stacking context */
    }

    .navbar-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
        z-index: -1;
    }

    .navbar-menu.active {
        left: 0;
        visibility: visible;
    }

    /* Hide main content when menu is open */
    body:has(.navbar-menu.active) .main-content {
        visibility: hidden;
    }

    .brand-tagline {
        display: none !important;
    }

    .navbar-nav {
        display: none;
        /* Hide nav links in mobile menu */
    }

    .navbar-nav li {
        width: 100%;
    }

    .navbar-nav a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav a::after {
        display: none;
    }

    .navbar-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        gap: 1.25rem;
        margin: 0;
    }

    .navbar-actions .btn {
        width: 100%;
        padding: 1.125rem 1.5rem;
        font-size: 1.0625rem;
        font-weight: 600;
        justify-content: center;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }

    .navbar-actions .btn:active {
        transform: scale(0.98);
    }

    .navbar-actions .btn-outline {
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        background: white;
    }

    .navbar-actions .btn-outline:hover {
        background: rgba(99, 102, 241, 0.05);
    }

    .navbar-actions .btn-primary {
        background: var(--primary-color);
        color: white;
        border: 2px solid var(--primary-color);
    }

    .navbar-actions .btn-primary:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
    }

    /* Ensure navbar content is above everything */
    .navbar {
        position: relative;
        z-index: 3001;
    }

    .navbar-brand {
        position: relative;
        z-index: 3002;
    }

    .navbar-toggle {
        display: flex;
        margin-left: auto;
    }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle br,
    .hero-description br {
        display: none;
    }

    .hero-features {
        gap: 0.75rem;
    }

    .hero-feature {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header .section-title {
        text-align: center;
        width: 100%;
    }

    .toggle-tabs {
        width: 100%;
        justify-content: center;
    }

    .categories-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-features {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .account-type-cards {
        grid-template-columns: 1fr;
    }

    .login-terms {
        margin-top: 1.5rem;
    }

    .form-row.two-col {
        grid-template-columns: 1fr;
    }

    .form-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .step-actions.two-buttons {
        grid-template-columns: 1fr;
    }

    .step-actions.two-buttons .btn-back {
        order: 2;
    }

    .step-actions.two-buttons .btn-primary {
        order: 1;
    }

    .step-indicator:not(:first-child) {
        margin-left: 28px;
    }

    .step-indicator:not(:first-child)::before {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .brand-tagline {
        display: none;
    }

    .hero-badge {
        padding: 0.375rem 1rem;
        font-size: 0.8125rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .search-box {
        padding: 1rem;
    }

    .search-input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .search-input-wrapper svg:first-child {
        display: none;
    }

    .search-input {
        width: 100%;
        padding: 0.75rem;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

/* ============================================
   Toast Notification
   ============================================ */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.toast-error {
    background: #fee2e2;
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.toast-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.toast::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.toast-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

.toast-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

.toast-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: none;
        transform: translateY(100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

/* ============================================
   Journals Empty State
   ============================================ */

.journals-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.journals-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journals-empty-icon i {
    font-size: 2.5rem;
    color: white;
}

.journals-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.journals-empty-state p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.journals-empty-hint {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
}

@media (max-width: 768px) {
    .journals-empty-state {
        padding: 3rem 1.5rem;
    }

    .journals-empty-icon {
        width: 64px;
        height: 64px;
    }

    .journals-empty-icon i {
        font-size: 2rem;
    }

    .journals-empty-state h3 {
        font-size: 1.25rem;
    }

    .journals-empty-state p {
        font-size: 0.9375rem;
    }
}

/* ============================================
   PWA Install Button - Mobile Only
   ============================================ */

@media (max-width: 768px) {
    #installContainer {
        display: flex !important;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .install-button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* Base Portal Modal Styles */
.portal-modal,
.company-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 2000 !important;
}

.portal-modal[style*="display: flex"],
.portal-modal[style*="display:flex"],
.company-modal[style*="display: flex"],
.company-modal[style*="display:flex"] {
    display: flex !important;
}

.portal-modal-content,
.company-modal-content {
    background: white !important;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.portal-modal-header,
.company-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-modal-header h3,
.company-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.portal-modal-close,
.company-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.portal-modal-close:hover,
.company-modal-close:hover {
    color: #6b7280;
}

.portal-modal-body,
.company-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.portal-modal-footer,
.company-modal-footer {
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Button actions in header */
.profile-header-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-change-password {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-change-password:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-change-password i {
    color: #8b5cf6;
}

/* Profile Footer Actions */
.profile-footer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    width: 100%;
}

.btn-change-password-footer {
    padding: 0.625rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-change-password-footer:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn-change-password-footer i {
    color: #8b5cf6;
    font-size: 0.875rem;
}

/* Password Change Modal Specific Styles */
.password-form-group {
    margin-bottom: 1.25rem;
}

.password-form-group:last-child {
    margin-bottom: 0;
}

.password-form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.password-form-group input[type="password"] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    background: white;
}

.password-form-group input[type="password"]:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.password-form-group input[type="password"]::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Modal Footer Button Styles */
.portal-modal-footer .btn-cancel {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.portal-modal-footer .btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.portal-modal-footer .btn-create {
    padding: 0.625rem 1.5rem;
    background: #8b5cf6;
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.portal-modal-footer .btn-create:hover {
    background: #7c3aed;
}

.portal-modal-footer .btn-create:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Ensure modal displays above all content */
.portal-modal {
    pointer-events: auto;
}

.portal-modal[style*="display: none"] {
    pointer-events: none;
}