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

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ef6c00;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}

h1 {
    font-size: clamp(1.44rem, 2.88vw, 2.16rem); /* Reduced by 20% */
    color: white;
    font-weight: 800; /* Bolder for military aesthetic */
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Increased from 2.25rem */
    color: #ef6c00;
    font-weight: 800; /* Bolder for military aesthetic */
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.17rem, 2.7vw, 1.62rem);
    color: #ef6c00;
}

h3.subheading {
    font-size: clamp(1.08rem, 2.25vw, 1.44rem);
    font-weight: 600;
    color: #333;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Header Section */
.header-section {
    position: relative;
    color: white;
    padding: 20px 0 0 0;
    text-align: center;
    min-height: 74.375vh; /* Reduced from 85vh by 12.5% (85 * 0.875 = 74.375) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Hero Slideshow Styles */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

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

/* Session Info Overlay */
.session-info-overlay {
    position: relative;
    z-index: 15;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Right align session info */
    align-items: flex-end;
    padding: 0 1rem; /* Match header-container left padding */
    margin-bottom: 3rem;
    margin-top: auto;
}

.session-info-container {
    padding: 0.8rem 0 0.8rem 1.6rem; /* Reduced by 20% - 1.6rem left overhang */
    text-align: center;
    width: fit-content;
    position: relative;
    margin-left: auto;
    margin-right: 6.4rem; /* Reduced by 20% for symmetry */
}

/* White background container extending off right edge */
.session-info-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100vw; /* Extend far off the right edge */
    bottom: 0;
    left: 0; /* End at left edge of container */
    background: white; /* 100% opacity */
    z-index: -1;
    border-radius: 16px 0 0 16px; /* Round top-left and bottom-left corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.session-info-container p {
    margin: 0.5rem 0;
    color: #1a1a1a; /* Darker for better contrast */
    font-size: 1.32rem; /* Reduced by 20% from 1.65rem */
    font-weight: 700;
    line-height: 1.2; /* Improved from 0.8 for readability */
    position: relative;
    z-index: 1;
}

.session-info-container p:last-child {
    margin-top: 1rem;
    font-size: 1.2rem; /* Reduced by 20% from 1.5rem */
    font-weight: 700;
}

.header-container {
    display: flex;
    flex-direction: column;
    height: 87.5vh; /* Reduced from 100vh by 12.5% (100 * 0.875 = 87.5) */
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.header-top {
    margin-top: 1rem;
    max-width: 28.8rem; /* Reduced by 20% from 36rem */
    position: relative;
    width: fit-content; /* Changed from 100% to fit the logo */
    margin-left: 0; /* Align with headline */
    padding: 0.8rem 1.6rem 0.8rem 0; /* Reduced by 20% - 1.6rem right overhang */
}

/* White background container extending off left edge */
.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* End at edge of container */
    bottom: 0;
    left: -100vw; /* Extend far off the left edge */
    background: white;
    z-index: -1;
    border-radius: 0 16px 16px 0; /* Round top-right and bottom-right corners */
}

/* Center logo on mobile only */
@media (max-width: 767px) {
    .header-top {
        margin-left: auto;
        margin-right: auto;
        padding: 1rem; /* Center padding on mobile */
    }

    /* Adjust white background for centered mobile layout */
    .header-top::before {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% + 2rem); /* Extend slightly on both sides */
        border-radius: 16px; /* All corners rounded on mobile */
    }

    /* Increase height by 30% for mobile */
    .header-section {
        min-height: 65vh; /* Increased by 30% from 50vh */
    }

    .header-container {
        height: auto; /* Let content determine height */
        min-height: 65vh;
    }

    .header-bottom {
        margin-bottom: 1rem; /* Reduced spacing */
    }

    /* Session Info Overlay - Mobile Optimization */
    .session-info-overlay {
        margin-bottom: 2rem;
        justify-content: center; /* Center on mobile */
        padding: 0 1rem; /* Equal padding on mobile */
    }

    .session-info-container {
        padding: 1.5rem; /* Equal padding on mobile */
        margin-left: auto;
        margin-right: auto; /* Center on mobile */
    }

    /* Adjust white background for centered mobile layout */
    .session-info-container::before {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% + 2rem); /* Extend slightly on both sides */
        border-radius: 16px; /* All corners rounded on mobile */
    }

    .session-info-container p {
        font-size: 1.1rem !important; /* Further reduced for better mobile fit */
    }

    .session-info-container p:last-child {
        font-size: 1rem !important; /* Further reduced for better mobile fit */
    }

    /* CRITICAL FIX: Prevent session info from overflowing */
    .session-info-container {
        max-width: calc(100vw - 2rem) !important;
        padding: 1rem !important;
    }

    .session-info-container::before {
        width: calc(100% + 1rem) !important;
    }

    /* CRITICAL FIX: Prevent header-top logo container from overflowing */
    .header-top {
        max-width: calc(100vw - 2rem) !important;
    }

    .header-top::before {
        width: calc(100% + 1rem) !important;
    }

    /* CRITICAL FIX: Adjust headline max-width for mobile */
    .header-bottom {
        max-width: 90vw !important;
    }
}

.header-bottom {
    margin-top: auto;
    margin-bottom: 2rem;
    max-width: 48vw; /* Reduced by 20% from 60vw */
    margin-left: auto;
    margin-right: auto; /* Center the headline */
    text-align: center;
}



.header-logo {
    height: auto;
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.headline-new {
    font-size: clamp(1.8144rem, 4.032vw, 2.8224rem); /* Reduced by 20% */
    font-weight: 700;
    line-height: 1.1;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.headline-new div {
    margin-bottom: 0.2rem;
}

.text-orange {
    color: #ef6c00;
}

.subheadline-new {
    font-size: clamp(0.72rem, 1.296vw, 0.864rem); /* Reduced by 20% */
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 767px) {
    .headline-new {
        font-size: clamp(1.54rem, 3.85vw, 2.45rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .header-bottom {
        margin-bottom: 4.725rem; /* 5.25rem * 0.9 = 4.725rem */
    }

    /* Reduce height by another 10% on tablet */
    .header-section {
        min-height: 66.9375vh; /* 74.375vh * 0.9 = 66.9375vh */
    }

    .header-container {
        height: 78.75vh; /* 87.5vh * 0.9 = 78.75vh */
    }

    /* Reduce headline size on tablet - reduced by 20% */
    .headline-new {
        font-size: clamp(1.92rem, 4.4vw, 2.56rem);
    }

    /* CRITICAL FIX: Tablet - Reduce padding on cards */
    .academy-card {
        padding: 2rem !important;
    }

    div[style*="padding: 3rem"] {
        padding: 2rem !important;
    }

    div[style*="padding: 2.5rem"] {
        padding: 2rem !important;
    }

    /* CRITICAL FIX: Tablet - Ensure grids stack properly */
    .roi-investment div[style*="grid-template-columns: repeat(2, 1fr)"] {
        gap: 2rem !important;
    }

    .college-success-showcase div[style*="grid-template-columns: repeat(2, 1fr)"] {
        gap: 2rem !important;
    }
}

@media (min-width: 768px) {
    .header-top {
        margin-left: 4rem;
    }

    .session-info-container {
        margin-right: 4rem; /* Match header-top margin for symmetry */
    }

    /* .cta-logical margin-right is calculated dynamically - no override needed */
}

@media (min-width: 1024px) {
    .header-top {
        margin-left: 8rem;
    }

    .session-info-container {
        margin-right: 8rem; /* Match header-top margin for symmetry */
    }

    /* .cta-logical margin-right is calculated dynamically - no override needed */
}

.headline {
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0,0,0,0.4);
    padding: 1rem;
    border-radius: 12px;
}

.subheadline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.4);
    padding: 0.8rem;
    border-radius: 12px;
    color: white;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button.primary {
    background: white;
    color: #ef6c00;
}

.cta-button.primary:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: #ef6c00;
    border: 2px solid #ef6c00;
}

.cta-button.secondary:hover {
    background: #ef6c00;
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

/* Static backgrounds for each section */
.roi-investment {
    background: #f9f9f9;
}

.investment-529 {
    background: #f9f9f9;
}

.roi-investment {
    padding: 80px 0;
    margin-top: 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-wrapper.reverse {
    grid-template-columns: 1fr 1fr;
}

.content-wrapper.reverse .text-content {
    order: 2;
}

.content-wrapper.reverse .image-placeholder {
    order: 1;
}

.text-content h2 {
    margin-bottom: 1.5rem;
}

.text-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.image-placeholder {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    color: #333;
    font-style: italic;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    max-height: 220px;
}

.scholarships .image-placeholder img,
.college-acceptance .image-placeholder img,
.service-academy .image-placeholder img,
.guaranteed-colleges .image-placeholder img {
    max-height: none;
    height: auto;
}

.roi-investment .image-placeholder {
    height: 100%;
    min-height: auto;
    align-self: stretch;
    overflow: hidden;
    border-radius: 20px;
}

.roi-investment .image-placeholder img {
    object-fit: cover;
    aspect-ratio: auto;
    height: 100%;
    max-height: none;
    border-radius: 20px;
}

/* ROI Calculator Layout Improvements */
.input-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .input-row {
        margin-bottom: 0.5rem;
    }
}

.input-row.two-columns {
    grid-template-columns: 1fr 1fr;
}

.input-row.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.radio-group .radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stacked Radio Groups */
.radio-group-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group-stacked .radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* GPA Input Container */
.gpa-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gpa-number-input {
    width: 80px;
    padding: 0.5rem;
    background: linear-gradient(135deg, #ef6c00 0%, #cc5c00 100%);
    border: 2px solid #ef6c00;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 108, 0, 0.3);
}

.gpa-number-input:focus {
    outline: none;
    border-color: #cc5c00;
    box-shadow: 0 4px 12px rgba(239, 108, 0, 0.4);
}

.gpa-number-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.slider-container {
    flex: 0.7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* GPA Row with Extra Padding */
.gpa-row {
    gap: 3rem;
}

/* Net ROI Card Styling */
.net-roi-card,
.net-roi-card-mobile {
    background: linear-gradient(135deg, #ef6c00 0%, #cc5c00 100%);
    color: white;
}

/* ROI Display Container */
.roi-display-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.net-roi-card.standalone {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(239, 108, 0, 0.3);
}

.net-roi-card .result-content,
.net-roi-card-mobile .result-content {
    color: white;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.net-roi-card .result-label,
.net-roi-card-mobile .result-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: white;
}

.net-roi-card .total-value,
.net-roi-card-mobile .total-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: black !important;
    text-shadow: none;
}

/* Tooltip Icons */
.tooltip-icon {
    cursor: help;
    color: #ef6c00;
    margin-left: 0.5rem;
    position: relative;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    max-width: 200px;
    white-space: normal;
    width: max-content;
}

.tooltip-icon:hover::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

/* Breakdown Toggle Button */
.breakdown-toggle {
    width: 100%;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.breakdown-toggle:hover {
    background: #e9ecef;
    border-color: #ef6c00;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.breakdown-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/* Desktop Detailed Breakdown - Always Visible on Desktop */
.detailed-breakdown-desktop {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.breakdown-grid.three-wide {
    grid-template-columns: repeat(3, 1fr);
}

.breakdown-grid.four-wide {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .breakdown-grid.three-wide {
        grid-template-columns: repeat(3, 1fr);
    }
    .breakdown-grid.four-wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .breakdown-grid.three-wide,
    .breakdown-grid.four-wide {
        grid-template-columns: 1fr;
    }
    
    /* ROI container on mobile */
    .roi-display-container {
        margin: 1rem 0;
    }
}

/* Mobile Detailed Breakdown - Only for Toggle */
.detailed-breakdown-mobile {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: none;
}

.breakdown-header h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

/* Hide old positive message */
.positive-message {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .input-row.two-columns,
    .input-row.three-columns {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .calculator-wrapper {
        padding: 1rem;
        gap: 1rem;
    }
    
    .input-group {
        margin-bottom: 0.75rem;
    }
    
    .tooltip-icon:hover::after {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 250px;
    }
    
    /* Hide desktop breakdown, show toggle for mobile */
    .detailed-breakdown-desktop {
        display: none;
    }
    
    .breakdown-toggle {
        display: flex;
    }
    
    .gpa-input-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .gpa-number-input {
        width: 100%;
    }
}

/* Tablet and larger - Hide toggle, show desktop breakdown */
@media (min-width: 769px) {
    .breakdown-toggle {
        display: none;
    }
    
    .detailed-breakdown-mobile {
        display: none !important;
    }
    
    .detailed-breakdown-desktop {
        display: block;
    }
}

/* 529 Investment Section */
.investment-529 .single-column-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.investment-529 .benefits-list {
    margin: 2rem 0;
    padding-left: 2rem;
}

.investment-529 .benefits-list li {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

/* Results at a Glance Section */
.results-glance {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.results-glance h2 {
    margin-bottom: 3rem;
    color: #333;
}

/* Sample Daily Schedule Toggle Styles */
.schedule-toggle-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.schedule-toggle-container:hover {
    border-color: #ef6c00;
    background: linear-gradient(135deg, #fff5ed 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(239, 108, 0, 0.15);
    transform: translateY(-2px);
}

.schedule-toggle-container:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.schedule-toggle {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #333;
    transition: color 0.3s ease;
}

.schedule-toggle-container:hover .schedule-toggle {
    color: #ef6c00;
}

.schedule-chevron {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, stroke 0.3s ease;
    flex-shrink: 0;
}

.schedule-toggle-container:hover .schedule-chevron {
    stroke: #ef6c00;
}

.schedule-toggle-hint {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.schedule-toggle-container:hover .schedule-toggle-hint {
    color: #ef6c00;
}

/* Mobile responsive styles for schedule toggle */
@media (max-width: 768px) {
    .schedule-toggle-container {
        padding: 1.25rem 1.5rem;
        margin-bottom: 2rem;
    }

    .schedule-toggle {
        font-size: 1.5rem;
        gap: 0.75rem;
    }

    .schedule-chevron {
        width: 28px;
        height: 28px;
    }

    .schedule-toggle-hint {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .schedule-toggle-container {
        padding: 1rem 1.25rem;
    }

    .schedule-toggle {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .schedule-chevron {
        width: 24px;
        height: 24px;
    }

    .schedule-toggle-hint {
        font-size: 0.75rem;
    }
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.metric-card {
    background: white;
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-top: 4px solid #ef6c00;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.metric-number {
    font-size: 2.7rem;
    font-weight: 700;
    color: #ef6c00;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ROI Benefits */
.roi-benefits {
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 20px;
    background: rgba(239, 108, 0, 0.05);
    border-radius: 12px;
    border-left: 4px solid #ef6c00;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(239, 108, 0, 0.1);
}

.benefit-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.benefit-text strong {
    color: #ef6c00;
}

/* Single Testimonial Section */
.single-testimonial {
    background: #f8f9fa;
    padding: 80px 0;
}

.testimonial-highlight {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-highlight::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    color: #ef6c00;
    font-family: serif;
    line-height: 1;
}

.testimonial-highlight blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.6;
    border: none;
    padding: 0;
}

.testimonial-highlight cite {
    color: #ef6c00;
    font-weight: 600;
    font-style: normal;
    font-size: 1.1rem;
}

/* ROI Calculator Section */
.roi-calculator {
    background: white;
    padding: 80px 0;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h2 {
    color: #333;
    margin-bottom: 1rem;
}

.calculator-header p {
    color: #666;
    font-size: 1rem;
    max-width: 750px;
    margin: 0 auto;
}

.calculator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1150px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid #ef6c00;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.help-text {
    display: block;
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef6c00;
    cursor: pointer;
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef6c00;
    cursor: pointer;
    border: none;
}

.slider-value {
    background: #ef6c00;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.input-group select:focus {
    outline: none;
    border-color: #ef6c00;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #ef6c00;
}

.radio-option label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    margin: 0;
    user-select: none;
}

.radio-option input[type="radio"]:checked + label {
    font-weight: 600;
    color: #ef6c00;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.toggle-container input[type="checkbox"] {
    display: none;
}

.toggle-label {
    cursor: pointer;
}

.toggle-label-text {
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-container input[type="checkbox"]:checked ~ .toggle-label-text:nth-of-type(2) {
    color: #ef6c00;
}

.toggle-container input[type="checkbox"]:not(:checked) ~ .toggle-label-text:nth-of-type(1) {
    color: #ef6c00;
}

.toggle-switch {
    width: 50px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.toggle-container input[type="checkbox"]:checked + .toggle-label .toggle-switch {
    background: #ef6c00;
}

.toggle-container input[type="checkbox"]:checked + .toggle-label .toggle-switch::after {
    transform: translateX(26px);
}

.calculate-btn {
    width: 100%;
    background: #ef6c00;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculate-btn:hover {
    background: #d15800;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 108, 0, 0.3);
}


.results-header h3 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 120px;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 108, 0, 0.3);
}

.result-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* Colored Values */
.hargrave-tuition {
    color: #ef6c00 !important;
}

.scholarship-value,
.graduation-savings {
    color: #28a745 !important;
}

/* Calculator Info Message */
.calculator-info,
.calculator-info-mobile {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.calculator-info p,
.calculator-info-mobile p {
    margin: 0;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.4;
}

.result-total {
    background: linear-gradient(135deg, #ef6c00 0%, #cc5c00 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(239,108,0,0.3);
}

.total-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.total-value {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.positive-message {
    margin: 20px 0;
    padding: 20px;
    background: rgba(239, 108, 0, 0.08);
    border-radius: 8px;
    border-left: 4px solid #ef6c00;
}

.positive-message p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.result-cta {
    text-align: center;
    margin-top: 2rem;
}

.result-cta .cta-button {
    margin-bottom: 1rem;
}

.disclaimer {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Why Hargrave Section */
.why-hargrave {
    background: linear-gradient(135deg, #ef6c00 0%, #cc5c00 100%) !important;
    color: white;
}

.why-hargrave h2,
.why-hargrave h3 {
    color: white;
}

.why-hargrave .intro-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-item {
    background: none;
    padding: 40px 20px;
    border-radius: 0;
    text-align: center;
    border: none;
    border-left: 4px solid rgba(255,255,255,0.8);
    padding-left: 30px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid #ef6c00;
}

.testimonial-item blockquote {
    font-size: 1.08rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-item cite {
    color: #ef6c00;
    font-weight: 600;
    font-style: normal;
}

/* CTA Section / Footer */
.cta {
    background: linear-gradient(135deg, #333 0%, #555 100%) !important;
    color: white;
    padding: 100px 0;
    /* Dynamic margin-bottom set by JavaScript based on floating footer height */
}

/* Reserve Your Spot Container - Right-aligned with white background extending off-page */
.cta-logical {
    padding: 1rem 0 1rem 2rem; /* Same padding as session-info-container - 2rem left overhang */
    text-align: right; /* Right-justify content */
    width: fit-content;
    max-width: 500px; /* Constrain width to prevent extending too far left */
    position: relative;
    margin-left: auto;
    /* No margin-right needed - element sits at the right edge of the grid column */
    margin-right: 0;
}

/* White background extending off right edge */
.cta-logical::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100vw; /* Extend far off the right edge */
    bottom: 0;
    left: 0; /* End at left edge of container */
    background: white; /* Solid white background */
    z-index: -1;
    border-radius: 16px 0 0 16px; /* Round top-left and bottom-left corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-emotional {
    padding-right: 20px;
}

.cta-emotional h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-emotional p {
    font-size: 1.17rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
}

.moment-highlight {
    background: rgba(239, 108, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ef6c00;
}

.moment-highlight em {
    font-size: 1.1rem;
    color: #ef6c00;
    font-weight: 600;
}

.cta-logical h3 {
    color: #ef6c00; /* Orange color to match branding */
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.recap-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

.stat-item strong {
    color: #ef6c00;
    margin-right: 10px;
    min-width: 80px;
}

.cta-logical p {
    font-size: 1.1rem;
    margin: 0;
    color: #333; /* Dark text on white background */
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.cta .cta-button {
    justify-content: center;
    text-align: center;
}

.cta .cta-button.primary {
    background: #ef6c00;
    color: white;
}

.cta .cta-button.primary:hover {
    background: #d15800;
}

.cta .cta-button.primary.featured {
    background: #ef6c00;
    text-align: center;
    display: inline-block;
}

.cta .cta-button.secondary {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.cta .cta-button.secondary:hover {
    background: white;
    color: #333;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: transparent;
    padding: 20px 0;
    margin-bottom: 0; /* No longer needed - footer is now static */
    min-height: 20px;
}

.footer-content {
    display: block;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #ef6c00;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ef6c00;
}

.partner-logos {
    background: #333;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: #ccc;
    width: 100%;
}

.partner-logos h3 {
    color: #ef6c00;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.partner-logos h3:first-child {
    margin-top: 0;
}

.partner-logos p {
    margin-bottom: 0.5rem;
    color: #ddd;
}

/* Modal Styles - Tailwind-like classes for compatibility */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.bg-black {
    background-color: rgb(0 0 0);
}

.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.max-h-\[90vh\] {
    max-height: 90vh;
}

.w-full {
    width: 100%;
}

.max-w-3xl {
    max-width: 48rem;
}

.overflow-y-auto {
    overflow-y: auto;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.bg-white {
    background-color: rgb(255 255 255);
}

.p-6 {
    padding: 1.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.right-4 {
    right: 1rem;
}

.top-4 {
    top: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.p-1 {
    padding: 0.25rem;
}

.text-gray-500 {
    color: rgb(107 114 128);
}

.hover\:bg-gray-100:hover {
    background-color: rgb(243 244 246);
}

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

/* Modal show animation */
.modal-wrapper.show {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-wrapper.show .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

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

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

/* Additional Tailwind-like utility classes */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

.h-1 {
    height: 0.25rem;
}

.w-10 {
    width: 2.5rem;
}

.bg-gray-200 {
    background-color: rgb(229 231 235);
}

.bg-gray-300 {
    background-color: rgb(209 213 219);
}

.text-gray-700 {
    color: rgb(55 65 81);
}

.text-white {
    color: rgb(255 255 255);
}

.text-black {
    color: rgb(0 0 0);
}

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

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.bg-\[#ef6c00\] {
    background-color: #ef6c00;
}

.text-\[#ef6c00\] {
    color: #ef6c00;
}

.hover\:bg-\[#d15800\]:hover {
    background-color: #d15800;
}

.block {
    display: block;
}

.min-h-\[60px\] {
    min-height: 60px;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.border {
    border-width: 1px;
}

.border-gray-300 {
    border-color: rgb(209 213 219);
}

.rounded-md {
    border-radius: 0.375rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex-row {
    flex-direction: row;
}

.flex-1 {
    flex: 1 1 0%;
}

.grid {
    display: grid;
}

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

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.md\:col-span-2 {
    grid-column: span 2 / span 2;
}

.md\:col-span-1 {
    grid-column: span 1 / span 1;
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }
}

/* Floating Bottom CTA */
.floating-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.floating-bottom-cta.show {
    transform: translateY(0);
}

.floating-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-text-row {
    text-align: center;
}

.floating-text-row p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.floating-buttons-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.floating-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.86rem;
    font-weight: 600 !important;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    height: 44px;
    box-sizing: border-box;
}

.floating-btn-left {
    background: white;
    color: #ef6c00;
    border-color: #ef6c00;
}

.floating-btn-left:hover {
    background: #ef6c00;
    color: white;
}

.floating-btn-right {
    background: #ef6c00;
    color: white;
    border-color: #ef6c00;
}

.floating-btn-right:hover {
    background: #d15800;
    border-color: #d15800;
}

/* Mobile text switching */
.btn-text-short {
    display: inline;
}

.btn-text-full {
    display: none;
}

@media (min-width: 768px) {
    .btn-text-short {
        display: none;
    }
    
    .btn-text-full {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .floating-cta-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .floating-text-row {
        text-align: left;
    }
    
    .floating-buttons-row {
        gap: 15px;
    }
}

/* Additional utility classes */
.mb-2 {
    margin-bottom: 0.5rem;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.bg-gray-200 {
    background-color: rgb(229 231 235);
}

.text-gray-800 {
    color: rgb(31 41 55);
}

.hover\:bg-gray-300:hover {
    background-color: rgb(209 213 219);
}

.w-16 {
    width: 4rem;
}

.w-24 {
    width: 6rem;
}

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

.gap-2 {
    gap: 0.5rem;
}

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

/* Form Styles */
.request-form {
    color: #333;
}

.step-indicator {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.step-items {
    display: flex;
    align-items: center;
}

.step-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: #e0e0e0;
    color: #666;
    transition: all 0.3s ease;
}

.step-item.active {
    background: #ef6c00;
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
}

.form-step {
    margin-bottom: 2rem;
}

.step-title {
    color: #ef6c00;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.form-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row.address-row {
    grid-template-columns: 1fr auto auto;
}

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

.form-group.flex-1 {
    flex: 1;
}

.form-group.flex-2 {
    flex: 2;
}

.form-group.state-group {
    width: 80px;
}

.form-group.zip-group {
    width: 120px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ef6c00;
    box-shadow: 0 0 0 3px rgba(239, 108, 0, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #ef6c00;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #d15800;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1.5rem;
    line-height: 1.4;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 4px solid #ef6c00;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

/* College Destinations Section */
.college-destinations {
    background: #f8f9fa;
    padding: 4rem 0;
}

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

.college-logos-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.college-logos-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.college-logos-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem 0;
}

.logos-track {
    display: flex;
    animation: scroll-logos 30s linear infinite;
    gap: 3rem;
    align-items: center;
}

.logo-slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 120px;
    padding: 0 1rem;
}

.logo-slide img {
    max-height: 60px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-slide:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-120px * 14 - 3rem * 14));
    }
}

/* Pause animation on hover */
.college-logos-carousel:hover .logos-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .college-destinations {
        padding: 3rem 0;
    }
    
    .college-logos-content p {
        margin-bottom: 2rem;
    }
    
    .college-logos-carousel {
        padding: 1.5rem 0;
    }
    
    .logo-slide {
        min-width: 100px;
        gap: 2rem;
    }
    
    .logo-slide img {
        max-height: 50px;
        max-width: 100px;
    }
    
    @keyframes scroll-logos {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100px * 14 - 2rem * 14));
        }
    }
}

/* College Success Showcase Section */
.college-success-showcase {
    background: linear-gradient(135deg, #ef6c00 0%, #ff9800 100%);
    padding: 5rem 0;
    color: white;
}

.showcase-header {
    text-align: center;
    margin-bottom: 4rem;
}

.showcase-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.showcase-header .intro-text {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.success-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Feature */
.feature-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-content {
    padding-left: 2rem;
}

.hero-stat {
    font-size: clamp(2.7rem, 7.2vw, 4.05rem);
    font-weight: 900;
    color: #ef6c00;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.hero-content h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Supporting Cards */
.supporting-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Ensure 3 columns on larger screens */
@media (min-width: 1200px) {
    .supporting-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.success-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-stat {
    font-size: 2.25rem;
    font-weight: 900;
    color: #ef6c00;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-badge {
    display: inline-block;
    background: #d84315;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.success-card h4 {
    font-size: 1.17rem;
    font-weight: 700;
    color: #ef6c00;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.success-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-image {
    margin-top: auto;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .supporting-cards {
        grid-template-columns: 1fr;
    }
    
    .card-image img {
        height: 281px; /* Increased from 216px by another 30% (216 * 1.3 = 280.8) */
    }
}

@media (max-width: 1024px) {
    .feature-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        padding-left: 0;
        padding-top: 1rem;
    }
}

@media (max-width: 768px) {
    .college-success-showcase {
        padding: 3rem 0;
    }
    
    .showcase-header {
        margin-bottom: 3rem;
    }
    
    .success-grid {
        gap: 2rem;
    }
    
    .feature-hero {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .hero-image img {
        height: 200px;
    }
    
    .hero-content {
        padding-top: 0.5rem;
    }
    
    .supporting-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .success-card {
        padding: 1.5rem;
    }
    
    .card-image img {
        height: 150px;
    }
}

.toast-message {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-wrapper.reverse .text-content,
    .content-wrapper.reverse .image-placeholder {
        order: unset;
    }

    .header-section {
        padding: 80px 0;
    }

    .section {
        padding: 60px 0;
    }

    /* CRITICAL FIX: Academy Cards - Reduce padding on mobile */
    .academy-card {
        padding: 1.5rem !important;
    }

    /* CRITICAL FIX: Pricing Section - Reduce padding and font sizes */
    .roi-investment .container > div[style*="grid-template-columns"] > div[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    .roi-investment .container > div[style*="grid-template-columns"] h3 {
        font-size: 1.3rem !important;
    }

    .roi-investment .container > div[style*="grid-template-columns"] div[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }

    .roi-investment .container > div[style*="grid-template-columns"] div[style*="font-size: 1.5rem"] {
        font-size: 1.2rem !important;
    }

    /* CRITICAL FIX: Field Trips Cards - Reduce padding */
    .college-success-showcase .container > div[style*="grid-template-columns"] > div[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    .college-success-showcase .container > div[style*="grid-template-columns"] h3 {
        font-size: 1.3rem !important;
    }

    /* CRITICAL FIX: Students/Parents Cards - Reduce padding */
    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] > div[style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }

    /* CRITICAL FIX: Meet the Director Card - Reduce padding */
    .investment-529 .container > div > div[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    .investment-529 .container > div > div > h2 {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    /* CRITICAL FIX: Daily Schedule Table Container - Reduce padding */
    .results-glance .container > div > div[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    /* CRITICAL FIX: Prevent all max-width containers from causing overflow */
    div[style*="max-width: 1200px"],
    div[style*="max-width: 1000px"],
    div[style*="max-width: 800px"] {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* CRITICAL FIX: Ensure all inline grid containers are responsive */
    .roi-investment div[style*="grid-template-columns"],
    .college-success-showcase div[style*="grid-template-columns"],
    .investment-529 div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* CRITICAL FIX: Military Prep card container */
    .results-glance .container > div[style*="max-width: 1200px"] {
        max-width: 100% !important;
        margin: 2rem auto 0 !important;
    }

    /* CRITICAL FIX: Reduce margins on mobile */
    .college-success-showcase > .container > div[style*="margin-top: 3rem"] {
        margin-top: 2rem !important;
    }

    /* CRITICAL FIX: Field Trips section specific spacing */
    .college-success-showcase .container > div[style*="margin-bottom: 3rem"] {
        margin-bottom: 2rem !important;
    }

    /* CRITICAL FIX: Paragraph spacing in inline styled containers */
    div[style*="padding: 3rem"] p,
    div[style*="padding: 2.5rem"] p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    /* CRITICAL FIX: List items in cards */
    div[style*="padding: 3rem"] li,
    div[style*="padding: 2.5rem"] li {
        font-size: 0.9rem !important;
        margin-bottom: 0.6rem !important;
    }

    /* CRITICAL FIX: Headings in white cards */
    div[style*="background: white"] h3 {
        font-size: 1.3rem !important;
    }

    div[style*="background: white"] h4 {
        font-size: 1.1rem !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-emotional {
        padding-right: 0;
        text-align: center;
    }

    /* Mobile: No extra bottom margin needed - footer is now static */
    .cta {
        margin-bottom: 0 !important;
    }

    /* Center .cta-logical on mobile with rounded corners all around */
    .cta-logical {
        padding: 1.5rem; /* Equal padding on mobile */
        margin-left: auto;
        margin-right: auto; /* Center on mobile */
        text-align: center; /* Center text on mobile */
    }

    /* Adjust white background for centered mobile layout */
    .cta-logical::before {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% + 2rem); /* Extend slightly on both sides */
        border-radius: 16px; /* All corners rounded on mobile */
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .form-row.three-col {
        grid-template-columns: 1fr;
    }

    .form-row.address-row {
        grid-template-columns: 1fr;
    }

    .form-group.state-group,
    .form-group.zip-group {
        width: auto;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .toast {
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    /* 529 Section Mobile */
    .icon-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 200px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
}

/* Sticky CTA Mobile */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    animation: slideUp 0.5s ease-out;
}

.sticky-cta-mobile .cta-button {
    width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    font-size: 1.2rem;
    padding: 18px 24px;
}

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

@media (max-width: 768px) {
    .sticky-cta-mobile {
        display: block;
    }
    
    .calculator-wrapper {
        gap: 1.5rem;
        padding: 30px 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .radio-option {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .header-section {
        padding: 0;
    }

    .section {
        padding: 40px 0;
    }

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

    .features-grid {
        gap: 15px;
    }

    .feature-item {
        padding: 20px 15px;
    }

    /* CRITICAL FIX: Extra small screens - Further reduce padding and font sizes */
    .academy-card {
        padding: 1rem !important;
    }

    .roi-investment .container > div[style*="grid-template-columns"] > div[style*="padding"] {
        padding: 1rem !important;
    }

    .college-success-showcase .container > div[style*="grid-template-columns"] > div[style*="padding"] {
        padding: 1rem !important;
    }

    .investment-529 .container > div > div[style*="padding"] {
        padding: 1rem !important;
    }

    /* CRITICAL FIX: Reduce container padding on very small screens */
    .container {
        padding: 0 10px !important;
    }

    /* CRITICAL FIX: Ensure schedule table is readable on smallest screens */
    .schedule-table td {
        font-size: 0.85rem !important;
        padding: 0.6rem !important;
    }

    /* CRITICAL FIX: Reduce heading sizes on smallest screens */
    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }
}


/* ========================================
   ACCESSIBILITY & UX IMPROVEMENTS
   ======================================== */

/* Improved Focus Indicators for Accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid #ef6c00 !important;
    outline-offset: 2px;
    border-color: #ef6c00;
    box-shadow: 0 0 0 4px rgba(239, 108, 0, 0.2);
}

.cta-button:focus,
.floating-btn:focus,
button:focus {
    outline: 3px solid #ef6c00;
    outline-offset: 3px;
}

/* Lighter orange section backgrounds with dark text */
.college-success-showcase {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%) !important;
    position: relative;
}

.college-success-showcase h2 {
    color: #333 !important;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
}

.college-success-showcase h3 {
    color: #333 !important;
}

/* Better text contrast throughout */
.benefit-text,
.form-disclaimer,
.calculator-info p {
    color: #4a4a4a;
}

/* Improved text shadow for hero headline */
.headline-new {
    text-shadow: 2px 2px 12px rgba(0,0,0,0.9);
    font-weight: 900;
}

/* ========================================
   ACADEMY CARDS STYLES
   ======================================== */

.academy-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.academy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.academy-card h3 {
    color: #ef6c00;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.academy-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ef6c00;
}

.academy-card .subtitle {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
}

.academy-card ul {
    list-style: none;
    padding: 0;
}

.academy-card ul li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Two-column list for Military Prep Program */
.two-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 2rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .two-column-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

/* ========================================
   TRUST BADGE BAR
   ======================================== */

.trust-bar {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
    font-size: 1rem;
    color: #666;
}

.trust-item strong {
    display: block;
    color: #ef6c00;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .trust-items {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ========================================
   CTA PULSE ANIMATION
   ======================================== */

.cta-button.featured {
    font-size: 1.25rem;
    padding: 18px 36px;
    box-shadow: 0 8px 20px rgba(239, 108, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(239, 108, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(239, 108, 0, 0.6);
    }
}

/* ========================================
   DIRECTOR QUOTE STYLING
   ======================================== */

.director-quote {
    font-style: italic;
    color: #ef6c00 !important;
    font-size: 1.2rem;
    font-weight: 600;
    border-left: 4px solid #ef6c00;
    padding-left: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

/* ========================================
   LOGO SIZING CONSISTENCY
   ======================================== */

.header-logo {
    max-width: 450px;
}

@media (max-width: 767px) {
    .header-logo {
        max-width: 300px;
    }
}

/* ========================================
   SESSION INFO VISUAL ENHANCEMENTS
   ======================================== */

.session-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.session-divider {
    width: 80px;
    height: 3px;
    background: #ef6c00;
    margin: 1rem auto;
}

/* ========================================
   MOBILE-RESPONSIVE DAILY SCHEDULE TABLE
   ======================================== */

@media (max-width: 768px) {
    .schedule-table {
        display: block;
    }
    
    .schedule-table thead {
        display: none;
    }
    
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
    }
    
    .schedule-table tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .schedule-table td:first-child {
        background: #ef6c00;
        color: white;
        font-weight: 700;
        padding: 1rem;
    }
    
    .schedule-table td:last-child {
        padding: 1rem;
    }
}

/* ========================================
   TWO-COLUMN GRID UTILITY
   ======================================== */

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
}

/* ========================================
   FLOATING CTA MOBILE IMPROVEMENTS
   ======================================== */

.floating-btn {
    min-width: 140px;
}

@media (max-width: 768px) {
    .floating-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
        height: 48px;
    }

    .floating-buttons-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========================================
   RESPONSIVE DESIGN FIXES FOR INLINE GRIDS
   ======================================== */

/* Fix 1: Students/Parents Grid */
.college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Fix 2: Military School Prep Program */
.roi-calculator .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Fix 3: Investment Pricing */
.roi-investment .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Fix 4: Field Trips & Activities */
.college-success-showcase .container > div[style*="grid-template-columns: repeat(2, 1fr)"][style*="margin-bottom: 3rem"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Fix 5: Meet the Director */
.investment-529 .container > div > div[style*="grid-template-columns: 1fr 2fr"] {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    /* CRITICAL FIX: Prevent horizontal scrolling from all elements */
    * {
        max-width: 100vw;
    }

    /* CRITICAL FIX: Ensure containers don't exceed viewport */
    .container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Fix 1: Students/Parents Grid - Stack on Mobile with proper ordering */
    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] h3 {
        text-align: center !important;
        margin-top: 2rem;
        margin-bottom: 1rem !important;
    }

    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] h3:first-of-type {
        margin-top: 0;
    }

    /* Reorder grid items on mobile */
    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] h3:nth-child(1) {
        order: 1; /* Students */
    }

    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] > div:nth-child(3) {
        order: 2; /* Belong */
    }

    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] > div:nth-child(5) {
        order: 3; /* Get Ahead */
    }

    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] > div:nth-child(7) {
        order: 4; /* Achieve More */
    }

    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] h3:nth-child(2) {
        order: 5; /* Parents */
    }

    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] > div:nth-child(4) {
        order: 6; /* Structure */
    }

    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] > div:nth-child(6) {
        order: 7; /* Competitive Edge */
    }

    .college-success-showcase > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] > div:nth-child(8) {
        order: 8; /* Confidence Building */
    }

    /* Fix 2: Military School Prep Program - Stack on Mobile */
    .roi-calculator .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Fix 3: Investment Pricing - Stack on Mobile */
    .roi-investment .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Fix 4: Field Trips & Activities - Stack on Mobile */
    .college-success-showcase .container > div[style*="grid-template-columns: repeat(2, 1fr)"][style*="margin-bottom: 3rem"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
    }

    /* Fix 5: Meet the Director - Stack on Mobile */
    .investment-529 .container > div > div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .investment-529 .container > div > div[style*="grid-template-columns: 1fr 2fr"] img {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Fix 6: CTA section - Dynamic margin set by JavaScript based on floating footer height */
    /* No hardcoded margin needed - JavaScript handles all screen sizes */
}
