/* Enhanced Base Template Styles - Professional Retirement Portal */

/* Modern Design System - Enhanced for Professional Look */
:root {
    /* Primary Brand Colors - Retirement Theme */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #667eea;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Neutral Colors */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* Accent Colors */
    --accent-teal: #14b8a6;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--neutral-900);
    margin-bottom: 1.5rem;
}

h1 { 
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-600), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--neutral-600);
}

/* Enhanced Links */
a {
    color: var(--primary-600);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

a:hover {
    color: var(--primary-700);
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-500);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-600), var(--primary-500));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(to right, var(--primary-700), var(--primary-600));
}

.btn-secondary {
    background-color: white;
    color: var(--neutral-700);
    border: 2px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--neutral-50);
    border-color: var(--neutral-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Navbar styling */
.navbar {
    background: linear-gradient(to right, var(--primary-700), var(--primary-600)) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    line-height: 1.2;
}

.navbar-brand span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Enhanced Carousel styling */
.carousel {
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.carousel-item {
    position: relative;
}

.carousel-image {
    height: 600px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-image {
    transform: scale(1.02);
}

.carousel-caption {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(102, 126, 234, 0.8) 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    position: relative;
}

.carousel-caption h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-caption p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators Enhancement */
.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: white;
    transform: scale(1.2);
}

/* Enhanced Plan Details Section */
#planDetails {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    animation: slideUp 0.5s ease-out;
}

/* Enhanced Table styling */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plan-table, .vendor-table {
    margin-bottom: 0;
    border: none;
}

.plan-table th, .vendor-table th {
    background: linear-gradient(135deg, var(--primary-500) 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 15px;
    border: none;
    font-size: 0.9rem;
}

.plan-table td, .vendor-table td {
    vertical-align: middle;
    padding: 18px 15px;
    border-color: #f1f5f9;
    font-size: 0.95rem;
}

.plan-table tbody tr:hover, .vendor-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Plan Type Badges */
.plan-type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-type-401k {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.plan-type-403b {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.plan-type-ira {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Button styling */
.btn-danger {
    background: linear-gradient(to right, #dc2626, #ef4444);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    background: linear-gradient(to right, #b91c1c, #dc2626);
}

/* Enhanced Advisor Section */
#advisorDetails {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

#advisorDetails h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#advisorDetails h4::before {
    content: '👨‍💼';
    font-size: 1.3rem;
}

.advisor-next-step {
    margin: 0 0 1.25rem 0;
    padding: 1rem 1.25rem;
    color: var(--primary-700);
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(236, 253, 245, 0.95) 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-left: 4px solid var(--primary-500);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    line-height: 1.6;
}

.advisor-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.advisor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.advisor-logo-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 104px;
}

.advisor-logo-img,
.advisor-logo-fallback {
    align-items: center;
    border: 3px solid var(--primary-500);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.18);
    display: flex;
    height: 100px;
    justify-content: center;
    width: 100px;
}

.advisor-logo-img {
    background: white;
    object-fit: contain;
    padding: 8px;
}

.advisor-logo-fallback {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    font-size: 1.35rem;
    font-weight: 700;
}

.advisor-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.advisor-title {
    color: var(--primary-600);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.advisor-contact {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.advisor-contact i {
    color: var(--primary-500);
    margin-right: 0.5rem;
    width: 16px;
}

/* Enhanced Resources Section */
.resources-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    padding: 40px;
    margin-top: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.resources-section h5 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resources-section h5::before {
    content: '📚';
    font-size: 1.3rem;
}

.resources-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.resources-list li {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-500);
}

.resources-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resources-list li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.resources-list li a::before {
    content: '📄';
    font-size: 1.1rem;
}

.resources-list li a:hover {
    color: var(--primary-600);
}

.resources-list li a::after {
    content: '→';
    margin-left: auto;
    color: var(--primary-500);
    font-weight: bold;
    transition: transform 0.2s ease;
}

.resources-list li:hover a::after {
    transform: translateX(3px);
}

/* Form styling */
.form-control {
    border: 2px solid var(--neutral-200);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-100);
}

/* Enhanced Container with Professional Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Main Content Area Enhancement */
.main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 50px;
    margin: 50px auto;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400), #764ba2);
}

/* Hero Section for Main Content */
.content-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    position: relative;
}

.content-hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-align: center;
}

.content-hero p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Employer Selection Enhancement */
.employer-selection {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label::before {
    content: '👔';
    font-size: 1.2rem;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.form-select option {
    padding: 10px;
    font-size: 1rem;
}

/* Enhanced Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

/* Enhanced Utilities */
.text-gradient {
    background: linear-gradient(to right, var(--primary-600), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-hover {
    transition: box-shadow 0.2s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

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

/* Enhanced Professional Footer */
.footer-section {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    border-top: 1px solid var(--neutral-200);
    padding: 60px 0 40px 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--accent-teal) 50%, var(--primary-600) 100%);
}

.footer-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.footer-info {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

.footer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--accent-teal) 100%);
}

.footer-info p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--neutral-700);
    line-height: 1.7;
    font-weight: 500;
}

.footer-info p:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.footer-info p:last-child {
    margin-bottom: 0;
    color: var(--neutral-600);
    font-style: italic;
    font-size: 0.95rem;
}

.footer-compliance {
    text-align: right;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

.footer-compliance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal) 0%, var(--primary-500) 100%);
}

.footer-compliance p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--neutral-800);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-compliance p:last-child {
    margin-bottom: 0;
    color: var(--neutral-600);
    font-size: 0.9rem;
}

/* Footer Icons Styling */
.footer-info i,
.footer-compliance i {
    margin-right: 0.5rem;
    color: var(--primary-500);
    font-size: 0.9rem;
}

.footer-info p:last-child i {
    color: var(--accent-teal);
}

.footer-compliance p:last-child i {
    color: var(--accent-emerald);
}

/* Add subtle animation */
.footer-info,
.footer-compliance {
    transition: all 0.3s ease;
}

.footer-info:hover,
.footer-compliance:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Add decorative elements */
.footer-info::after {
    content: '🏦';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.1;
}

.footer-compliance::after {
    content: '🛡️';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.1;
}

/* Professional Enhancement Elements */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-500) 50%, transparent 100%);
    margin: 3rem 0;
    border-radius: 1px;
}

.professional-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.professional-badge::before {
    content: '🛡️';
    font-size: 1rem;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design - Enhanced */
@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    h5 { font-size: 1.25rem; }
    h6 { font-size: 1.125rem; }

    .container {
        padding: 0 1rem;
    }

    .main-content {
        padding: 30px 20px;
        margin: 20px auto;
        border-radius: 15px;
    }

    .content-hero h2 {
        font-size: 2.2rem;
    }

    /* Enhanced Footer Responsive Styles */
    .footer-section {
        padding: 40px 0 30px 0;
        margin-top: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-info,
    .footer-compliance {
        padding: 1.5rem;
        text-align: center;
    }

    .footer-compliance {
        text-align: center;
    }

    .footer-info p:first-child {
        font-size: 1rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .footer-compliance p {
        font-size: 0.85rem;
    }

    /* Adjust decorative elements for mobile */
    .footer-info::after,
    .footer-compliance::after {
        display: none;
    }

    .employer-selection,
    #planDetails,
    #advisorDetails,
    .resources-section {
        padding: 20px;
    }

    .carousel-image {
        height: 400px;
    }

    .carousel-caption {
        padding: 2rem 1.5rem;
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    .table-responsive {
        margin: 0 -1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-compliance {
        text-align: center;
    }

    .advisor-card {
        margin-bottom: 1rem;
    }

    .resources-list {
        gap: 0.75rem;
    }
}

/* Tablet Specific Styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .main-content {
        padding: 40px 30px;
        margin: 30px auto;
    }

    .content-hero h2 {
        font-size: 2.8rem;
    }

    .carousel-image {
        height: 500px;
    }

    .carousel-caption {
        padding: 2rem 1.5rem;
        max-width: 600px;
    }

    .carousel-caption h2 {
        font-size: 2.2rem;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }

    .footer-content {
        gap: 2.5rem;
    }

    .footer-info,
    .footer-compliance {
        padding: 1.8rem;
    }

    /* Optimize table for tablet */
    .plan-table th,
    .plan-table td {
        padding: 16px 12px;
        font-size: 0.9rem;
    }

    /* Better advisor cards layout for tablet */
    .advisor-card {
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile Devices (≤576px) */
@media (max-width: 576px) {
    .content-hero h2 {
        font-size: 1.8rem;
    }

    .carousel-image {
        height: 300px;
    }

    .carousel-caption h2 {
        font-size: 1.6rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .main-content {
        padding: 20px 15px;
    }

    .plan-table th,
    .plan-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    /* Better mobile navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand span {
        font-size: 0.8rem;
    }

    /* Mobile-optimized carousel controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    /* Better mobile carousel captions */
    .carousel-caption {
        padding: 1rem;
        max-width: 90%;
        bottom: 10px;
    }

    .carousel-caption h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        margin: 0;
    }

    /* Mobile-friendly resources section */
    .resources-section {
        padding: 1.5rem;
    }

    .resources-list li {
        margin-bottom: 0.8rem;
    }

    .resources-list a {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .carousel,
    .navbar,
    .footer-section {
        display: none;
    }

    .main-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* Home page refresh */
body {
    background: #f6f8fb;
}

a::after,
.nav-link::after,
.navbar-brand::after,
.carousel-control-prev::after,
.carousel-control-next::after,
.btn::after {
    display: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 76px;
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.site-header .container {
    display: flex;
    align-items: center;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 300px;
    margin: 0;
    color: #162033 !important;
    font-size: 1rem;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-header .navbar-brand img {
    width: 210px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.site-header .navbar-brand span {
    opacity: 1;
    font-size: 0.78rem;
    color: #475569;
}

.site-header .navbar-brand strong {
    display: inline-block;
    margin-top: 0.15rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.site-header .navbar-nav {
    align-items: center;
    gap: 0.4rem;
}

.site-header .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.65rem 0.9rem !important;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #334155 !important;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0;
}

.site-header .nav-link i {
    width: 16px;
    text-align: center;
    color: #0f766e;
    font-size: 0.9rem;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    background: #eaf6f2;
    border-color: rgba(15, 118, 110, 0.22);
    color: #0f172a !important;
}

.site-header .navbar-toggler {
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
}

.site-header .navbar-toggler-icon {
    filter: invert(1);
}

.home-hero {
    position: relative;
    min-height: calc(100vh - 76px);
    overflow: hidden;
    background: #111827;
    border-radius: 0 0 34px 34px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.22);
}

.home-hero .carousel {
    height: calc(100vh - 76px);
    min-height: 540px;
    margin: 0;
    border-radius: 0 0 34px 34px;
    box-shadow: none;
}

.home-hero .carousel::before {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.58) 42%, rgba(15, 23, 42, 0.24) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.05) 42%);
    z-index: 2;
}

.home-hero .carousel-inner,
.home-hero .carousel-item {
    height: 100%;
}

.home-hero .carousel-image {
    height: 100%;
    min-height: 540px;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.94) contrast(1.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-overlay .container {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    gap: 2rem;
    align-items: end;
    padding-top: 2rem;
    padding-bottom: 4.5rem;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #9ef3df;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin-bottom: 1rem;
    color: white;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(2.6rem, 6vw, 5.7rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.96;
    text-wrap: balance;
}

.hero-copy p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.18rem;
    line-height: 1.7;
}

.hero-employer {
    pointer-events: auto;
    margin: 0;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-employer .form-label {
    margin-bottom: 0.75rem;
    color: #0f172a;
    font-size: 0.96rem;
}

.hero-employer .content-hero.employer-intro {
    display: block;
    margin: 0 0 1.35rem;
    padding: 1.5rem 1rem;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    text-align: center;
}

.hero-employer .content-hero.employer-intro h2 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-600);
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    font-weight: 700;
    text-align: center;
}

.hero-employer .content-hero.employer-intro p {
    max-width: 600px;
    margin: 0 auto 1rem;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-employer .content-hero.employer-intro .professional-badge {
    margin-top: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    letter-spacing: 0.5px;
}

.hero-employer .form-label::before {
    display: none;
}

.employer-control {
    display: flex;
    align-items: center;
}

.hero-employer .form-select {
    min-height: 52px;
    border-radius: 8px;
    border-color: #cbd5e1;
    font-weight: 600;
    color: #1e293b;
}

.hero-employer .form-text {
    display: block;
    margin-top: 0.8rem;
    color: #64748b;
    font-size: 0.88rem;
}

.hero-employer .form-text a {
    color: #0f766e;
    font-weight: 800;
}

.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    z-index: 4;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.home-hero .carousel-indicators {
    z-index: 4;
    bottom: 26px;
    margin-bottom: 0;
}

.home-hero .carousel-indicators button {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
}

.main-content {
    margin: 2.25rem auto 0;
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.main-content::before {
    background: linear-gradient(90deg, #0f766e, #2563eb, #f59e0b);
}

.content-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0 1.25rem;
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    text-align: left;
}

.content-hero h2 {
    max-width: 760px;
    margin: 0;
    color: #0f172a;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    letter-spacing: 0;
}

.content-hero .section-eyebrow {
    margin-bottom: 0.4rem;
    color: #0f766e;
}

.professional-badge {
    flex: 0 0 auto;
    border-radius: 8px;
    background: #0f766e;
    letter-spacing: 0;
}

.professional-badge::before {
    display: none;
}

#planDetails {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.table-responsive {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: none;
}

.plan-table th,
.vendor-table th {
    background: #143c5a !important;
    letter-spacing: 0.02em;
}

.resources-section {
    margin-top: 1.8rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: none;
}

.resources-section h5::before,
.resources-list li a::before {
    display: none;
}

.resources-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resources-list li {
    min-height: 92px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0f766e;
    border-radius: 8px;
}

.resources-list li a {
    height: 100%;
    align-items: flex-start;
    color: #1e293b;
    font-weight: 700;
}

.footer-section {
    margin-top: 3rem;
}

@media (max-width: 991px) {
    .site-header .navbar-collapse {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e2e8f0;
    }

    .site-header .navbar-nav {
        align-items: stretch;
    }

    .hero-overlay .container {
        grid-template-columns: 1fr;
        align-items: center;
        padding-bottom: 4rem;
    }

    .hero-copy {
        max-width: 640px;
    }

    .hero-employer {
        max-width: 560px;
    }

    .resources-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
        border-radius: 0 0 22px 22px;
    }

    .home-hero .carousel {
        height: auto;
        min-height: 620px;
        border-radius: 0 0 22px 22px;
    }

    .home-hero .carousel-image {
        min-height: 620px;
    }

    .hero-overlay .container {
        padding-top: 1.25rem;
        padding-bottom: 4.2rem;
    }

    .hero-copy h1 {
        font-size: 2.75rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .content-hero {
        display: block;
    }

    .professional-badge {
        margin-top: 1rem;
    }

    .main-content {
        padding: 1.2rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .site-header {
        min-height: 68px;
    }

    .site-header .navbar-brand {
        min-width: 0;
        font-size: 0.9rem;
    }

    .site-header .navbar-brand img {
        width: 174px;
        height: auto;
    }

    .home-hero .carousel,
    .home-hero .carousel-image {
        min-height: 660px;
    }

    .hero-copy h1 {
        font-size: 2.3rem;
    }

    .hero-employer {
        padding: 1rem;
    }

    .hero-employer .content-hero.employer-intro h2 {
        font-size: 1.18rem;
    }

    .resources-list {
        grid-template-columns: 1fr;
    }
}

/* Home page iteration: tabbed header and complete carousel images */
.site-header {
    border-radius: 0 0 24px 24px;
}

.site-header .navbar-nav {
    padding: 0.28rem;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #f8fafc;
}

.site-header .nav-item {
    display: flex;
}

.site-header .nav-link {
    min-width: 104px;
    justify-content: center;
    border-radius: 9px;
    color: #475569 !important;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    background: white;
    border-color: #dbe5ef;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.home-hero {
    margin-top: -24px;
    padding-top: 24px;
    border-radius: 0 0 24px 24px;
}

.home-hero .carousel {
    border-radius: 0 0 24px 24px;
}

.home-hero .carousel-item {
    background:
        radial-gradient(circle at 15% 20%, rgba(15, 118, 110, 0.28), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #1f2937 50%, #f8fafc 100%);
}

.home-hero .carousel-image {
    object-fit: contain;
    object-position: center;
    padding: 5.75rem 2rem 2rem;
}

.home-hero .carousel::before {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 36%, rgba(15, 23, 42, 0.18) 70%, rgba(15, 23, 42, 0.08) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.02) 46%);
}

.content-hero {
    align-items: flex-start;
    padding: 2rem;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.9) 0%, rgba(239, 246, 255, 0.9) 100%);
}

.content-hero h2 {
    margin-bottom: 0.75rem;
    color: #143c5a;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.content-hero p {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 1.08rem;
}

.professional-badge {
    margin-top: 0.15rem;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .site-header .navbar-nav {
        align-items: stretch;
        gap: 0.3rem;
    }

    .site-header .nav-link {
        min-width: 0;
        justify-content: flex-start;
    }

    .home-hero {
        margin-top: -18px;
        padding-top: 18px;
    }

    .home-hero .carousel-image {
        padding: 4.75rem 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .content-hero {
        padding: 1.25rem;
    }

    .professional-badge {
        display: inline-flex;
        white-space: normal;
    }
}

/* Header brand polish: blue curved bar with white tabs */
.site-header {
    background: linear-gradient(135deg, #000080 0%, #172b8f 48%, #253aa5 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 14px 32px rgba(0, 0, 80, 0.24);
}

.site-header .navbar-brand {
    min-width: 440px;
    gap: 1rem;
    color: #ffffff !important;
}

.site-header .navbar-brand img {
    width: 190px;
    max-height: 66px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: #000080;
}

.site-header .navbar-brand span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.site-header .navbar-brand strong {
    color: #ffffff;
    font-size: 1.08rem;
}

.site-header .navbar-nav {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.site-header .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.site-header .nav-link i {
    color: rgba(255, 255, 255, 0.92);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    color: #ffffff !important;
}

.site-header .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.36);
}

.site-header .navbar-toggler-icon {
    filter: none;
}

@media (max-width: 991px) {
    .site-header .navbar-brand {
        min-width: 0;
    }

    .site-header .navbar-collapse {
        border-top-color: rgba(255, 255, 255, 0.22);
    }
}

@media (max-width: 576px) {
    .site-header .navbar-brand {
        gap: 0.65rem;
    }

    .site-header .navbar-brand img {
        width: 140px;
    }

    .site-header .navbar-brand span {
        font-size: 0.66rem;
    }

    .site-header .navbar-brand strong {
        font-size: 0.84rem;
    }
}

/* Final header correction */
.site-header {
    min-height: 108px;
    padding: 1rem 0;
    background: linear-gradient(135deg, #000080 0%, #172b8f 54%, #3044b8 100%) !important;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 14px 34px rgba(0, 0, 80, 0.26);
}

.site-header .container {
    max-width: 1540px;
    gap: 2rem;
}

.site-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
}

.gwn-logo-mark {
    display: grid;
    width: 300px;
    height: 70px;
    padding: 5px 8px 7px;
    flex: 0 0 auto;
    border: 3px solid #ffffff;
    background: #000080;
    box-shadow: inset 0 0 0 2px #000080, inset 0 0 0 5px #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
}

.gwn-logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 700;
}

.gwn-logo-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-top: 3px;
    border-top: 3px solid #ffffff;
    background: #ffffff;
    color: #000080;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 700;
}

.brand-guide-title {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.site-header .navbar-nav {
    flex: 0 0 auto;
    gap: 0.45rem;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.site-header .nav-link {
    min-width: 112px;
    min-height: 46px;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
}

.site-header .nav-link i {
    color: #ffffff;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
}

.home-hero {
    margin-top: -26px;
    padding-top: 26px;
    border-radius: 0 0 26px 26px;
}

.home-hero .carousel {
    border-radius: 0 0 26px 26px;
}

@media (max-width: 1200px) {
    .site-header .container {
        gap: 1rem;
    }

    .gwn-logo-mark {
        width: 250px;
        height: 62px;
    }

    .gwn-logo-title {
        font-size: 1.28rem;
    }

    .gwn-logo-tagline {
        font-size: 0.8rem;
    }

    .brand-guide-title {
        font-size: 1.25rem;
    }

    .site-header .nav-link {
        min-width: 94px;
    }
}

@media (max-width: 991px) {
    .site-header {
        min-height: auto;
    }

    .site-header .navbar-brand {
        flex-wrap: wrap;
        white-space: normal;
    }

    .brand-guide-title {
        white-space: normal;
    }

    .site-header .navbar-nav {
        margin-top: 0.8rem;
    }
}

/* Responsive header repair */
.site-header .container {
    flex-wrap: wrap;
}

.site-header .navbar-brand {
    flex: 1 1 620px;
    max-width: calc(100% - 86px);
}

.gwn-logo-mark {
    width: 314px;
    height: 82px;
    padding: 6px;
    grid-template-rows: 37px 29px;
    border-width: 3px;
    overflow: hidden;
}

.gwn-logo-title {
    height: 37px;
    padding-bottom: 2px;
    font-size: 1.45rem;
    line-height: 1;
    white-space: nowrap;
}

.gwn-logo-tagline {
    height: 29px;
    margin-top: 4px;
    border-top: 0;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
}

.brand-guide-title {
    flex: 1 1 auto;
    min-width: 260px;
    white-space: nowrap;
}

.site-header .navbar-collapse {
    flex-grow: 0;
}

.site-header .navbar-collapse.show,
.site-header .navbar-collapse.collapsing {
    flex: 0 0 100%;
}

.site-header .navbar-collapse.show .navbar-nav,
.site-header .navbar-collapse.collapsing .navbar-nav {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    max-width: 100%;
    margin-top: 1rem;
}

.site-header .navbar-collapse.show .nav-link,
.site-header .navbar-collapse.collapsing .nav-link {
    min-width: 118px;
    justify-content: center;
}

@media (max-width: 760px) {
    .site-header .navbar-brand {
        flex-basis: 100%;
        max-width: 100%;
    }

    .brand-guide-title {
        flex-basis: 100%;
        min-width: 0;
        font-size: 1.25rem;
    }

    .gwn-logo-mark {
        width: 260px;
        height: 72px;
        grid-template-rows: 32px 25px;
    }

    .gwn-logo-title {
        height: 32px;
        font-size: 1.18rem;
    }

    .gwn-logo-tagline {
        height: 25px;
        font-size: 0.82rem;
    }
}

/* Nav tabs should not sit inside one large box */
.site-header .navbar-nav,
.site-header .navbar-collapse.show .navbar-nav,
.site-header .navbar-collapse.collapsing .navbar-nav {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-header .navbar-collapse.show .navbar-nav,
.site-header .navbar-collapse.collapsing .navbar-nav {
    gap: 0.5rem;
}

.site-header .nav-link {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 991px) {
    .site-header .navbar-collapse.show,
    .site-header .navbar-collapse.collapsing {
        padding-top: 0.75rem;
    }

    .site-header .navbar-collapse.show .navbar-nav,
    .site-header .navbar-collapse.collapsing .navbar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .site-header .navbar-collapse.show .nav-link,
    .site-header .navbar-collapse.collapsing .nav-link {
        min-width: auto;
        padding: 0.55rem 0.85rem !important;
    }
}

/* Use the real GWN PNG logo */
.site-header .navbar-brand .gwn-logo-img {
    display: block;
    width: 300px;
    height: auto;
    max-height: 103px;
    padding: 0;
    border: 0;
    background: transparent;
    object-fit: contain;
}

.site-header .navbar-brand {
    align-items: center;
}

@media (max-width: 1200px) {
    .site-header .navbar-brand .gwn-logo-img {
        width: 250px;
    }
}

@media (max-width: 760px) {
    .site-header .navbar-brand .gwn-logo-img {
        width: 220px;
    }
}

/* Keep the employer selector below the carousel, not over the images */
.home-hero {
    min-height: auto;
    overflow: visible;
    background: #f6f8fb;
    box-shadow: none;
}

.home-hero .carousel {
    height: 560px;
    min-height: 560px;
    background: #101827;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.home-hero .carousel::before {
    display: none;
}

.home-hero .carousel-image {
    height: 560px;
    min-height: 560px;
    object-fit: cover;
    object-position: center;
    padding: 0;
}

.hero-overlay {
    position: static;
    inset: auto;
    display: block;
    padding: 2rem 0 0;
    background: #f6f8fb;
    pointer-events: auto;
}

.hero-overlay .container {
    display: block;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-copy {
    max-width: none;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-copy h1 {
    margin: 0;
    color: #143c5a;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.08;
}

.hero-employer {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.hero-employer .content-hero.employer-intro {
    margin-bottom: 1.2rem;
    padding: 1.35rem 1rem;
}

.hero-employer .content-hero.employer-intro h2 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .home-hero .carousel,
    .home-hero .carousel-image {
        height: 420px;
        min-height: 420px;
    }

    .hero-overlay {
        padding-top: 1.25rem;
    }
}

@media (max-width: 576px) {
    .home-hero .carousel,
    .home-hero .carousel-image {
        height: 340px;
        min-height: 340px;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }
}

/* Keep public-page header in normal page flow instead of following scroll */
.site-header {
    position: relative;
    top: auto;
}

.summary-edit-notice {
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 16px 20px;
    border: 1px solid rgba(102, 126, 234, 0.22);
    border-left: 5px solid #667eea;
    border-radius: 12px;
    background: #ffffff;
    color: #24344d;
    box-shadow: 0 8px 22px rgba(31, 47, 70, 0.08);
}

.summary-edit-notice strong {
    color: #172b8f;
}
