/* === High-Conversion Landing Page Styles === */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* Offset for potential sticky headers if added later */
}

body {
    font-family: 'Roboto', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif; /* Modern font stack */
    line-height: 1.7;
    color: #333;
    background-color: #ffffff; /* Clean white background */
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-bottom: 85px; /* Drastically reduced padding */
}

a {
    color: #0062cc; /* Slightly darker blue */
    text-decoration: none;
}

a:hover {
    color: #004085;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 92%;
    max-width: 1100px; /* Wider max-width for desktop */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

section, footer {
    padding: 3rem 0; /* Reduced vertical padding */
}

/* --- Typography & Helpers --- */
h1, h2, h3, h4 {
    margin-bottom: 1rem; /* Reduced margin */
    line-height: 1.3;
    font-weight: 700; /* Bold headings */
    color: #1a2533; /* Very dark blue/near black */
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Further reduced size */
    text-align: center;
    margin-bottom: 0.4rem; /* Reduced margin */
    line-height: 1.2;
}

h2.main-headline {
    font-size: clamp(1.4rem, 4.5vw, 2rem); /* Further reduced size */
    text-align: center;
    margin-top: 0.4rem; /* Reduced margin */
    font-weight: 700;
    line-height: 1.25;
    color: inherit; /* Inherits from parent (.hero) */
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem); /* Responsive */
    text-align: center;
    margin-bottom: 2rem; /* Reduced margin */
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    color: #0056b3;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem; /* Reduced margin */
    color: #454545; /* Slightly softer text color */
    font-size: 1.05rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.subtitle {
    font-size: 0.95rem; /* Further reduced size */
    font-weight: 400;
    margin-top: 0.6rem; /* Reduced margin */
    margin-bottom: 1.2rem; /* Reduced margin */
    line-height: 1.4;
    color: inherit; /* Inherits from parent (.hero) */
    opacity: 0.9;
}

/* Add rule to prevent wrapping specifically in hero */
.hero .subtitle {
    white-space: nowrap;
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Show ellipsis (...) */
    display: block; /* Ensure block display */
    width: 100%; /* Take full width of parent */
}

.text-center { text-align: center; }
.bold { font-weight: bold; }
.underline { text-decoration: underline; }

.highlight {
    /* background-color: #fff3cd; */ /* Removing default yellow background */
    /* padding: 0.1em 0.3em; */
    /* border-radius: 3px; */
    font-weight: 700; /* Keep bold */
    color: #ffc107; /* Default highlight color - bright yellow text */
    background-color: transparent; /* Ensure no background */
    padding: 0; /* Remove padding */
}

/* Specific highlight style for the hero section - Now page-intro */
/*.hero*/ .page-intro .highlight {
    color: #007bff; /* Changed highlight color for light bg */
    font-weight: 700;
    background-color: transparent; /* Explicitly no background */
    padding: 0;
}

.highlight-darkbg {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-weight: 600;
}

.icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
    display: inline-block;
}

.disclaimer, .final-note, .cta-subtext {
    font-size: 0.9rem;
    color: #6c757d; /* Grey color */
    margin-top: 1rem;
}

.final-note {
    font-size: 0.8rem; /* Reduced size */
    margin-top: 0.4rem; /* Reduced margin */
    color: rgba(255, 255, 255, 0.75);
}

/* --- Buttons (CTAs) --- */
.cta-button {
    display: inline-block;
    padding: 0.6rem 1.5rem; /* Further reduced padding */
    font-size: 1rem; /* Further reduced size */
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #00bfa5, #00897b); /* Teal/Green gradient */
    border: none;
    border-radius: 50px; /* Pill shape */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 191, 165, 0.3); /* Reduced shadow */
}

.cta-button:hover {
    background: linear-gradient(135deg, #00897b, #00bfa5);
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.45); /* Reduced shadow */
    transform: translateY(-1px); /* Reduced hover effect */
    color: #fff;
    text-decoration: none;
}

.cta-button .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.mid-cta-button {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Blue gradient */
     box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.mid-cta-button:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

/* Ensure Hero CTA button uses the new base gradient */
.hero-cta {
    /* No specific overrides needed now, inherits .cta-button */
}

/* --- Sections --- */

/* Hero Section */
/* .hero { ... } */
/* .hero-content { ... } */
/* .teacher-name { ... } */

/* Opportunity Section */
.dark-section {
    background-color: #f8f9fa; /* Light grey background */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.opportunity h3 .icon { color: #dc3545; /* Red warning */ }

.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem; /* Reduced margin */
}

.opportunity-card {
    background-color: #fff;
    padding: 1.5rem; /* Reduced padding */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.opportunity-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.opportunity-card h4 {
    color: #1a2533;
    font-size: 1.3rem;
}

/* Trust Block Section */
.light-section {
    background-color: #fff;
}

.trust-block h3 .icon { color: #007bff; /* Blue shield */ }

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* Reduced gap */
    align-items: center;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: 1.2fr 1fr; /* Text takes slightly more space */
    }
    .trust-image {
        order: 2; /* Image on the right */
    }
    .trust-text {
        order: 1;
    }
}

.trust-text .lead {
    margin-bottom: 1.5rem;
    color: #444;
}

.evidence {
    font-weight: 500;
    color: #333;
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.8rem;
}

.evidence .icon {
    color: #28a745; /* Green check */
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.3em;
}

.decorative-image.framed {
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    margin-bottom: 1.5rem;
}

.decorative-image.small {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Mid CTA Section */
.mid-cta {
    background-color: #e9f5ff; /* Light blue background */
    padding: 3rem 0;
}

/* Offerings Section */
.offerings h3 .icon { font-size: 1.5em; vertical-align: middle; }

.offerings-list {
    list-style: none;
    padding-left: 0;
    max-width: 700px;
    margin: 2rem auto 0 auto;
    display: grid;
    gap: 0.8rem; /* Reduced gap */
}

.offerings-list li {
    background-color: #f8f9fa;
    margin-bottom: 0;
    padding: 0.8rem 1.2rem; /* Reduced padding */
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.offerings-list .icon-check {
    color: #28a745;
    font-size: 1.4rem;
    margin-right: 1rem;
    font-weight: bold;
}

.offerings-list .benefit-text strong {
    color: #2a3b4d;
}

/* --- Final CTA / Footer --- */
.final-cta {
    background: linear-gradient(45deg, #00b09b, #96c93d); /* Green gradient */
    color: #fff;
    padding: 0.8rem 0; /* Significantly reduced padding */
    position: sticky;
    bottom: 0;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1); /* Adjusted shadow */
    overflow: hidden; /* For shine effect */
}

.final-cta .title {
    font-size: clamp(1rem, 2.8vw, 1.2rem); /* Further reduced size */
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem; /* Reduced margin */
    line-height: 1.3;
}

.final-cta .cta-prompt {
    font-size: 0.8rem; /* Further reduced size */
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem; /* Reduced margin */
    line-height: 1.3;
}

.final-cta .button-group {
    margin-bottom: 0.4rem; /* Reduced margin */
}

.final-cta .final-button-img {
    max-width: 230px; /* Further reduced size */
    display: inline-block;
    border-radius: 8px; /* Slightly smaller radius */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Adjusted shadow */
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* Adjust pulse animation */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
    50% { transform: scale(1.03); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
    100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
}

.final-button-img.pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Shine effect for final CTA */
.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 5s infinite linear;
    opacity: 0.8;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* --- Responsive Adjustments --- */

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    body {
        padding-bottom: 80px; /* Reduced padding */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    section, footer {
        padding: 2.5rem 0; /* Reduced padding */
    }
    .trust-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .trust-image {
        order: 1; /* Image first on mobile */
        max-width: 70%;
        margin: 0 auto 2rem auto;
    }
    .trust-text {
        order: 2;
        text-align: center;
    }
     .evidence {
        padding-left: 0;
        text-align: left;
    }
    .evidence .icon {
        position: static;
        margin-right: 0.5rem;
    }
    body {
        padding-bottom: 75px; /* Reduced padding */
    }
    .final-cta {
        padding: 0.6rem 0; /* Further reduced padding */
    }
    .final-button-img.pulse {
        animation-duration: 1.8s;
    }
    .shine-effect { animation: none; display: none; } /* Disable shine on mobile */
    .page-intro {
        padding-top: 1.5rem;
        padding-bottom: 0.8rem;
    }
    .opportunity {
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
     section, footer {
        padding: 2rem 0; /* Reduced padding */
    }
    .container {
        width: 95%;
    }
    .cta-button {
        padding: 0.5rem 1.2rem; /* Further reduced padding */
        font-size: 0.95rem; /* Further reduced size */
    }
    .offerings-list li {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    .final-cta .title {
        font-size: 0.95rem; /* Further reduced mobile size */
        line-height: 1.25;
    }
    .final-button-img {
        max-width: 200px; /* Further reduced mobile size */
    }
    .final-cta .cta-prompt {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
     body {
        padding-bottom: 70px; /* Reduced padding */
    }
     .final-cta {
        padding: 0.5rem 0; /* Further reduced padding */
    }
    .page-intro .subtitle {
        font-size: 0.95rem; /* Keep slightly smaller on mobile */
    }
}

/* Remove ALL old styles */
/* Styles like .web, .guild, old .hero, old .cta-section, etc., are effectively replaced */

/* Style for the new Page Introduction */
.page-intro {
    padding-top: 2rem; /* Add some space at the very top */
    padding-bottom: 1rem; /* Space before the next section */
    text-align: center; /* Center align the intro text */
}

.page-intro .main-headline {
    color: #1a2533; /* Dark color for headline on light bg */
    margin-bottom: 0.8rem;
}

.page-intro .subtitle {
    color: #454545; /* Standard text color */
    white-space: normal; /* Allow wrapping again */
    overflow: visible;
    text-overflow: clip;
    margin-bottom: 0; /* Remove bottom margin */
    font-size: 1rem; /* Reset font size */
}

/* Adjust first section's top padding */
.opportunity {
    /* background-color: #f8f9fa; */ /* Can remove if page bg is light */
    border-top: none; /* Remove top border */
    padding-top: 2rem; /* Adjust top padding */
}