/* 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-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-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;
    }
} 