/**
 * Quadra Ferry Website - Premium Styles
 * Optimized for Modern UI/UX
 * @version 3.0.0
 */

/* ===== PREMIUM VARIABLES & THEME ===== */
:root {
    /* Primary Gradient Brand Colors */
    --primary-blue: #0066cc;
    /* Fallback */
    --primary-gradient: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    --secondary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);

    /* System Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* Light Mode Palette */
    --background-color: #f3f4f6;
    --surface-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, system-ui, sans-serif;
    --text-primary: #111827;
    --text-secondary: #4a4a4a;
    --text-tertiary: #595959;

    /* Borders & Shadows */
    --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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);

    /* LEGACY / COMPATIBILITY VARIABLES */
    --light-blue: #e7f0fe;
    --light-yellow: #fff3bf;
    --info-bg: #e8f4f8;
    --info-border: #b3dce6;
}

[data-theme="dark"] {
    --primary-blue: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

    --background-color: #0f172a;
    --surface-color: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.8);

    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;

    --border-color: #334155;

    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);

    /* LEGACY / COMPATIBILITY VARIABLES (Dark) */
    --light-blue: #1a2a3a;
    --light-yellow: #3a3200;
    --info-bg: #1e3a4a;
    --info-border: #2d5266;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ===== CARDS & SURFACES (Glass & Shadow) ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* ===== HEADER & NAV ===== */
.header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

/* ===== NEW HEADER LAYOUT ===== */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "logo utils"
        "route route";
    gap: 0.5rem;
}

.site-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-utils {
    grid-area: utils;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--background-color);
    color: var(--primary-blue);
    transform: scale(1.05);
}

.route-controls {
    grid-area: route;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    flex-wrap: wrap;
    /* Safety for tiny screens */
}

.route-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.btn-reverse,
.btn-tomorrow {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
}

.btn-reverse:hover,
.btn-tomorrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Nav Menu */
.main-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    gap: 0.25rem;
}

.main-nav.open {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    transition: background 0.2s;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* DESKTOP LAYOUT */
@media (min-width: 769px) {
    .header-inner {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 56px;
        padding: 0 1.5rem;
    }

    .site-logo {
        flex-shrink: 0;
    }

    .main-nav {
        display: flex;
        flex-direction: row;
        background: transparent;
        padding: 0;
        gap: 1.5rem;
        flex-grow: 1;
        justify-content: center;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .route-controls {
        background: transparent;
        padding: 0;
    }

    .btn-reverse {
        padding: 0.25rem 0.5rem;
        /* More compact icon button for desktop */
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTONS ===== */
.btn-primary,
.cta-button,
.btn-calculate {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover,
.cta-button:hover,
.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(37, 99, 235, 0.4);
    filter: brightness(1.1);
}

/* ===== SCHEDULE TABLE ===== */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.schedule-table th {
    text-align: left;
    padding: 1rem;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    background: transparent;
}

.schedule-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    /* Nice for time */
    font-size: 1.1rem;
}

.schedule-table tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

.next-ferry {
    background: rgba(16, 185, 129, 0.1) !important;
}

.next-ferry td:first-child {
    position: relative;
}

.next-ferry td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--success-color);
}

/* ===== ALERTS & INFO BOXES ===== */
.info-box {
    border-radius: var(--radius-md);
    border: 1px solid;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Specific Alert Types */
.info-box[style*="e8f4f8"] {
    /* Cortes / Blue */
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    color: var(--primary-blue);
}

.info-box[style*="fff3cd"] {
    /* Warning / Yellow */
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
    color: var(--warning-color);
}

/* ===== FOOTER ===== */
.footer {
    background: #0f172a;
    /* Always dark footer */
    color: #e2e8f0;
    padding: 4rem 1rem 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    width: 100%;
}

/* ===== MOBILE MODAL ===== */
.modal-overlay {
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

/* ===== UTILITIES ===== */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1rem;
    }

    /* Mobile Header Optimization */
    .header-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .header-top {
        width: 100%;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-between;
    }

    .route-section {
        width: 100%;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.1);
        padding: 0.75rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .site-name {
        font-size: 1.1rem;
    }

    .route-display {
        font-size: 0.95rem;
    }

    .route-switch-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ===== CITATION MODAL ===== */
.citation-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.citation-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.citation-modal {
    background: var(--surface-color);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.citation-modal-overlay.active .citation-modal {
    transform: translateY(0);
}

.citation-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    line-height: 1;
}

.citation-close:hover {
    background: var(--background-color);
    color: var(--danger-color);
}

.citation-option {
    margin-bottom: 1.5rem;
    background: var(--background-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.citation-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 700;
}

.citation-text {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    user-select: all;
    /* Makes it easy to copy */
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--primary-blue);
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.citation-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.citation-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =============================================== */
/* UI/UX CRITIQUE IMPLEMENTATION - Feb 2026        */
/* =============================================== */

/* 1. VISUAL HIERARCHY - CTA CARD */
.cta-card {
    position: relative;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow:
        0 4px 24px rgba(74, 144, 226, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #fff, transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(74, 144, 226, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.cta-card h3 {
    color: white !important;
    margin-bottom: 0.5rem;
    font-weight: 800;
    /* Extra bold per image */
    font-size: 1.5rem;
    /* Larger title */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-card p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.cta-button {
    background: #ffffff;
    color: #4A90E2;
    /* Match the blue */
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #357ABD;
}

/* 2. MODERN GRID LAYOUT */
.footer-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-cards-container {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Removed span to match other cards per user request */
    /*.cta-card {
        grid-column: span 2;
        grid-row: span 2;
    }*/
}

@media (max-width: 768px) {
    .footer-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Webcam Grid Enhancement */
.webcam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

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

/* 3. ENHANCED MICRO-INTERACTIONS */
/* Collapsible Section */
.collapsible-section {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.collapsible-section:not(.collapsed) .toggle-icon,
.collapsible-section:not(.collapsed) .collapse-icon {
    transform: rotate(180deg);
}

/* Interactive Cards */
.info-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton-loader {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

/* Pulse Indicator */
@keyframes pulse-dot {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.live-indicator {
    display: inline-flex;
    align-items: center;
}

.live-indicator::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse-dot 2s infinite;
}

/* 4. NAVIGATION ENHANCEMENT */
.glass-nav {
    background: rgba(26, 38, 56, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-nav.scrolled {
    background: rgba(26, 38, 56, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 5. SCHEDULE TABLE MODERNIZATION */
.schedule-time-cell {
    position: relative;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Refined Next Sailing Highlight */
.next-ferry td,
.schedule-time-cell.next-sailing {
    background: linear-gradient(135deg,
            rgba(74, 144, 226, 0.15),
            rgba(74, 144, 226, 0.05)) !important;
    color: var(--primary-blue);
    border-color: rgba(74, 144, 226, 0.4);
    font-weight: 700;
    position: relative;
}

.next-ferry td:first-child::before,
.schedule-time-cell.next-sailing::before {
    content: 'NEXT';
    position: absolute;
    top: 50%;
    left: 4px;
    /* Adjusted to fit inside if padding is large, or outside */
    transform: translateY(-50%) rotate(-90deg);
    background: #4A90E2;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: none;
    /* Hidden by default on simple table rows unless we have space */
}

/* Only show the tag if we have space or specific design */
.schedule-time-cell.next-sailing::before {
    display: block;
    top: -8px;
    left: 12px;
    transform: none;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: rgba(0, 102, 204, 0.1);
    /* fallback */
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

#cta-countdown {
    color: var(--primary-blue);
    font-variant-numeric: tabular-nums;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 160px;
    border: 2px solid var(--primary-blue);
    text-align: center;
}

.cta-button.primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.cta-button.primary:hover {
    background-color: #004d99;
    border-color: #004d99;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-blue);
}

.cta-button.secondary:hover {
    background-color: rgba(0, 102, 204, 0.05);
    transform: translateY(-2px);
}

/* Dark Mode Support for CTA */
[data-theme="dark"] .cta-banner {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .cta-button.secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

@media (max-width: 600px) {
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        min-width: unset;
    }

    .cta-text {
        font-size: 1.25rem;
    }
}