/* 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);
    color: white;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #ef6c00;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

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

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

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

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

/* ========================================
   HEADER SECTION
   ======================================== */
.header-section {
    position: relative;
    color: white;
    padding: 20px 0 0 0;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: url('images/students-background (1).jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

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

.session-info-container {
    padding: 0.8rem 0 0.8rem 1.6rem;
    text-align: center;
    width: fit-content;
    position: relative;
    margin-left: auto;
    margin-right: 6.4rem;
}

.session-info-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100vw;
    bottom: 0;
    left: 0;
    background: white;
    z-index: -1;
    border-radius: 16px 0 0 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.session-info-container p {
    margin: 0.5rem 0;
    color: #1a1a1a;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.session-info-container p:last-child {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.header-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    width: 100%;
}

.header-top {
    margin-top: 1rem;
    max-width: 28.8rem;
    position: relative;
    width: fit-content;
    margin-left: 0;
    padding: 0.8rem 1.6rem 0.8rem 0;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: -100vw;
    background: white;
    z-index: -1;
    border-radius: 0 16px 16px 0;
}

.header-bottom {
    margin-top: auto;
    margin-bottom: 2rem;
    max-width: 48vw;
    margin-left: auto;
    margin-right: auto;
    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);
    font-weight: 700;
    line-height: 1.1;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

/* ========================================
   HEADER RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .header-top {
        margin-left: auto;
        margin-right: auto;
        padding: 1rem;
    }

    .header-top::before {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% + 2rem);
        border-radius: 16px;
    }

    .header-section {
        min-height: 80vh;
    }

    .header-container {
        height: 80vh;
    }

    .header-bottom {
        margin-bottom: 1rem;
        max-width: 90vw !important;
    }

    .session-info-overlay {
        margin-bottom: 2rem;
        justify-content: center;
        padding: 0 1rem;
    }

    .session-info-container {
        padding: 1rem !important;
        margin-left: auto;
        margin-right: auto;
        max-width: calc(100vw - 2rem) !important;
    }

    .session-info-container::before {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% + 1rem) !important;
        border-radius: 16px;
    }

    .session-info-container p {
        font-size: 1.1rem !important;
    }

    .session-info-container p:last-child {
        font-size: 1rem !important;
    }

    .header-top {
        max-width: calc(100vw - 2rem) !important;
    }

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

    .headline-new {
        font-size: clamp(1.54rem, 3.85vw, 2.45rem);
    }

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

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

    .header-section {
        min-height: 66.9375vh;
    }

    .header-container {
        height: 78.75vh;
    }

    .headline-new {
        font-size: clamp(1.92rem, 4.4vw, 2.56rem);
    }
}

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

    .session-info-container {
        margin-right: 4rem;
    }
}

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

    .session-info-container {
        margin-right: 8rem;
    }
}

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

.tradition-foundation {
    background: #f5f5f5;
    padding: 3rem 0;
}

.results-glance {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

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

.summer-preview {
    background: #f9f9f9;
}

/* ========================================
   METRICS GRID
   ======================================== */
.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;
}

/* ========================================
   INTERSPERSED CTA BANNERS
   ======================================== */
.section-cta-banner {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #ef6c00 0%, #d15800 100%);
}

.section-cta-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    font-family: 'Open Sans', sans-serif;
}

.section-cta-link {
    display: inline-block;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.75rem 2.5rem;
    border: 2px solid white;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
    letter-spacing: 0.5px;
}

.section-cta-link:hover {
    background: white;
    color: #ef6c00;
}

@media (max-width: 768px) {
    .section-cta-link {
        font-size: 1.1rem;
        padding: 0.65rem 2rem;
    }
}

/* ========================================
   HARGRAVE OFFERS SECTION
   ======================================== */
.hargrave-offers {
    background: white;
}

.hargrave-offers h2 {
    margin-bottom: 2rem;
}

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

.offers-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.offers-row-centered {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    align-items: start;
}

.offer-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: #ef6c00;
}

.offer-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    color: #ef6c00;
}

.offer-icon .icon {
    width: 100%;
    height: 100%;
}

.offer-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.offer-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.offer-chevron {
    color: #ef6c00;
    transition: transform 0.3s ease;
    margin-top: 0.5rem;
}

.offer-card.expanded .offer-chevron {
    transform: rotate(180deg);
}

.offer-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}

.offer-details p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

    .offers-row-centered {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* ========================================
   ACADEMY CARDS
   ======================================== */
.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;
    }
}

.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 {
    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;
    }

    .academy-card {
        padding: 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .academy-card {
        padding: 2rem !important;
    }
}

/* ========================================
   PROVEN COLLEGE RESULTS SECTION
   ======================================== */
.college-results {
    color: white;
}

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

.showcase-header h2 {
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
}

.success-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: #f9f9f9;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-stat {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Raleway', sans-serif;
    line-height: 1;
    margin-bottom: 1rem;
    color: #ef6c00;
}

.supporting-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.success-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    color: #333;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.success-card:hover {
    transform: translateY(-5px);
}

.card-stat {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ef6c00;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 0.5rem;
}

.success-card h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.success-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-image {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .feature-hero {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .supporting-cards {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        font-size: 3rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .supporting-cards {
        grid-template-columns: 1fr 1fr;
    }

    .supporting-cards .success-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* ========================================
   CTA SECTION / FOOTER
   ======================================== */
.cta {
    background: linear-gradient(135deg, #333 0%, #555 100%) !important;
    color: white;
    padding: 100px 0;
}

.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);
}

/* Embedded Form Container */
.cta-form {
    position: relative;
}

.cta-form-inner {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.cta-form-inner h3 {
    color: #ef6c00;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.cta-form-inner iframe {
    min-height: 450px;
}

/* Info session details block */
.info-session-details {
    background: rgba(239, 108, 0, 0.15);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ef6c00;
    margin-top: 1.5rem;
}

.info-session-details p {
    margin: 0.25rem 0;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
}

@media (max-width: 768px) {
    .cta {
        padding: 60px 0;
    }

    .cta-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 15px;
    }

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

    .cta-emotional h2 {
        font-size: 1.8rem;
    }
}

/* ========================================
   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;
    min-width: 140px;
    justify-content: center;
}

.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;
    }
}

@media (max-width: 768px) {
    .floating-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: auto;
    }

    .floating-buttons-row {
        gap: 10px;
    }
}

/* ========================================
   MOBILE RESPONSIVE - GENERAL
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    h2 {
        font-size: clamp(1.4rem, 3.5vw, 2rem);
    }

    /* Pricing and card sections - reduce inline padding */
    div[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

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

    /* Two-column inline grids stack on mobile */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .academy-card {
        padding: 1rem !important;
    }

    .success-card {
        padding: 1.5rem;
    }
}
