@charset "UTF-8";

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --color-navy: #0A2454;
    --color-sky-blue: #0093E7;
    --color-lime: #D4E941;
    --color-white: #FFFFFF;
    --color-text-main: #0A2454;
    /* Using Navy as main text for academic feel */
    --color-bg-light: #F4F7FA;

    /* Typography */
    --font-jp: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --font-en: 'Futura', "Futura Medium", "Trebuchet MS", sans-serif;

    /* Layout */
    --layout-width: 80%;
    --header-height: 150px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-jp);
    color: var(--color-text-main);
    line-height: 1.8;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    width: var(--layout-width);
    /* max-width: 1440px; removed to ensure 80% width always */
    margin: 0 auto;
}


.text-en {
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    font-weight: 400;
}


.section {
    padding: 100px 0;
}

/* ==========================================================================
   Strengths Section
   ========================================================================== */
.section-lead-text {
    text-align: left;
    max-width: 800px;
    margin: 0 0 60px 0;
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-main);
}

#strengths .section-lead-text {
    font-weight: 500;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    row-gap: 60px;
}

.strength-card {
    position: relative;
    padding-top: 20px;
    /* Space for the floating text if needed */
}

.strength-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 1;
}

.strength-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* .strength-card:hover .strength-img img {
    transform: scale(1.1);
} */

.strength-en {
    position: absolute;
    top: 180px;
    /* Adjust based on image height */
    right: 20px;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-sky-blue);
    z-index: 3;
    text-shadow: 2px 2px 0 #fff;
    /* Outline effect for readability */
}

.strength-content {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    margin-top: -40px;
    /* Overlap the image */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.strength-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.strength-desc {
    text-align: left;
    border-left: 4px solid var(--color-sky-blue);
    padding-left: 15px;
    margin-bottom: 0;
    min-height: 80px;
    /* Align buttons if any */
}

.strength-card:nth-child(1) {
    transition-delay: 0s;
}

.strength-card:nth-child(2) {
    transition-delay: 0.1s;
}

.strength-card:nth-child(3) {
    transition-delay: 0.2s;
}

.strength-card:nth-child(4) {
    transition-delay: 0.3s;
}

.strength-card:nth-child(5) {
    transition-delay: 0.4s;
}

.strength-card:nth-child(6) {
    transition-delay: 0.5s;
}

.strength-desc p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.strength-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.strength-btn .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
    background-color: var(--color-navy);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.strength-btn:hover {
    border-color: var(--color-navy);
    background-color: var(--color-bg-light);
}

/* Specific styling for darker button in reference (optional, keeping consistent for now) */
/* If needed to match the 3rd card style in reference which has dark button */

@media (max-width: 1024px) {
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .strength-content {
        width: 100%;
        margin-top: -20px;
    }
}

/* New Section Header Styles */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 60px;
}

.section-title-en {
    font-family: var(--font-en);
    font-size: 6rem;
    color: var(--color-sky-blue);
    font-weight: 500;
    line-height: 0.8;
    margin: 0;
    opacity: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Remove underline */
.section-title-en::after {
    display: none;
}

.section-title-jp {
    font-family: var(--font-jp);
    font-size: 2rem;
    color: var(--color-navy);
    font-weight: 700;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* Animation */
.blur-in {
    opacity: 0;
    filter: blur(10px);
    transition: all 1s ease-out;
    transform: translateY(20px);
}

.blur-in.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@media (max-width: 768px) {
    .section-title-en {
        font-size: 3.5rem;
    }

    .section-title-jp {
        font-size: 1.5rem;
        margin-top: 15px;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.header {
    box-shadow: none;
}



.header-inner {
    width: var(--layout-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.header-top {
    height: 80px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

/* Header Logo Section */
.header-logo {
    height: 68px;
    width: 342px;
    transition: all 0.3s ease;
}

.header-logo img {
    height: 100%;
    width: auto;
    display: block;
}

.header-contact-area {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.contact-info {
    text-align: right;
    color: var(--color-navy);
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-tel {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-en);
    line-height: 1;
    letter-spacing: -0.02em;
    /* Tighten for cleaner look */
}


.contact-tel span {
    font-size: 1.2rem;
    margin-right: 2px;
    font-weight: 700;
}

.contact-tel .tel-hyphen {
    margin: 0 0.05em;
    font-size: inherit;
    font-weight: inherit;
    vertical-align: baseline;
}


.header-actions {
    display: flex;
    gap: 15px;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: 60px;
    border-radius: 30px;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.btn-trial-header {
    background-color: var(--color-navy);
}

.btn-request-header {
    background-color: var(--color-sky-blue);
}

.header-btn:hover {
    opacity: 0.9;
}

/* Header Bottom Section */
.header-bottom {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: 5px;
}

.header-nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.nav-group-left,
.nav-group-right {
    display: flex;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

.nav-item:first-child {
    padding-left: 0;
}

.nav-item:last-child {
    padding-right: 0;
}

.nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    height: 20px;
    width: 2px;
    background-color: #ddd;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.0rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-sky-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-sky-blue);
}

/* Phone Button */
.nav-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-lime);
    color: var(--color-navy);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-left: 10px;
}

.nav-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 233, 65, 0.4);
    background-color: #e2f365;
}

.nav-phone-btn svg {
    width: 20px;
    height: 20px;
}

/* Tooltip */
.nav-phone-btn::before {
    content: attr(aria-label);
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
}

.nav-phone-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}



/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    margin-left: 5%;
    width: 95%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-light);
    overflow: hidden;
    margin-top: var(--header-height);
    border-radius: 20px 0 0 20px;
}

#hero-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 1;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

/* .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 36, 84, 0.8) 0%, rgba(10, 36, 84, 0.3) 100%);
    z-index: 2;
} */

/* .hero-content {
    position: relative;
    z-index: 3;
    width: var(--layout-width);
    margin: 0 auto;
    color: var(--color-white);
} */

.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    color: var(--color-sky-blue);
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
}

.hero-title span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 10px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--color-lime);
    color: var(--color-navy);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 233, 65, 0.4);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 233, 65, 0.6);
    background-color: #e2f365;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --layout-width: 90%;
    }

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

@media (max-width: 768px) {
    .header-nav {
        gap: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        max-width: calc(100% - 100px);
        /* Leave room for logo and phone btn if needed */
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-phone-btn {
        margin-left: 5px;
        width: 36px;
        height: 36px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Intermediate Desktop Widths to prevent wrapping */
@media (min-width: 1025px) and (max-width: 1366px) {
    :root {
        --layout-width: 92%;
    }

    .header-nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Banner Carousel Section
   ========================================================================== */
.carousel-section {
    padding: 60px 0;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.pickup-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: var(--color-sky-blue);
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: normal;
    line-height: 1;
}

@media (max-width: 768px) {
    .pickup-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
}

.carousel-container {
    position: relative;
    width: var(--layout-width);
    margin: 0 auto;
    /* To accomodate arrows */
    max-width: 1200px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.carousel-slide {
    min-width: calc((100% - 90px) / 4);
    /* 4 slides minus 3 gaps (30px * 3 = 90px) */
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .carousel-track {
        gap: 20px;
    }

    .carousel-slide {
        min-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .carousel-track {
        gap: 15px;
    }

    .carousel-slide {
        min-width: 100%;
    }
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* .carousel-slide:hover img {
    transform: scale(1.05);
} */

.carousel-composite-banner {
    display: flex;
    flex-direction: column;
    background: var(--color-navy);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
}

.composite-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.composite-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 3 / 2 !important;
    border-radius: 0 !important;
}

.composite-text {
    padding: 18px 10px;
    background: var(--color-navy);
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.composite-text span {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-all;
}

.carousel-slide a {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-navy);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-btn:hover {
    background: var(--color-sky-blue);
    opacity: 1;
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

/* Dots Nav */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-indicator {
    border: none;
    width: 7px;
    height: 7px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.current-slide {
    background: var(--color-navy);
    transform: scale(1.2);
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .carousel-container {
        width: 85%;
    }

    .prev-btn {
        left: -50px;
    }

    .next-btn {
        right: -50px;
    }
}

/* ==========================================================================
   Environment Section Specifics
   ========================================================================== */
#environment .intro-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#environment .intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

/* ==========================================================================
   High School Section New Layout
   ========================================================================== */
.hs-catchcopy {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 50px;
    text-align: left;
    line-height: 1.6;
    display: inline-block;
    font-feature-settings: "palt";
}

.hs-main-wrapper {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.hs-image {
    width: 50%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3 / 2;
}

.hs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 40px;
}

.hs-text {
    width: 50%;
    font-size: 1rem;
    line-height: 2;
    color: #444;
    font-weight: 500;
}

.hs-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hs-point-card {
    background: var(--color-sky-blue);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: none;
}

.hs-point-card:hover {
    transform: none;
}

.point-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.point-desc {
    font-size: 0.95rem;
    color: var(--color-white);
    line-height: 1.6;
    text-align: left;
    font-weight: 500;
}

@media (max-width: 900px) {
    .hs-main-wrapper {
        flex-direction: column;
    }

    .hs-image,
    .hs-text {
        width: 100%;
    }

    .hs-points-grid {
        grid-template-columns: 1fr;
    }

    .hs-catchcopy {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .carousel-slide {
        min-width: calc((100% - 30px) / 2);
        /* 2 slides visible */
    }
}

@media (max-width: 600px) {
    .carousel-container {
        width: 100%;
        padding: 0 40px;
        /* Make space for arrows inside */
    }

    .prev-btn {
        left: 0;
        width: 30px;
        height: 30px;
    }

    .next-btn {
        right: 0;
        width: 30px;
        height: 30px;
    }

    .carousel-slide {
        min-width: 100%;
        /* 1 slide visible */
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
}


/* ==========================================================================
   Intro Section
   ========================================================================== */
.intro-content {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
    border-radius: 40px;
    /* Increased roundedness as requested */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 40px;
    object-fit: cover;
}

.lead-text {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--color-navy);
    font-feature-settings: "palt";
}

.desc-text {
    font-size: 1rem;
    color: #444;
    margin-bottom: 40px;
    font-weight: 500;
}

/* Dark Section Overrides */
.section-dark .lead-text {
    color: var(--color-white);
}

.section-dark .desc-text {
    color: var(--color-white);
    opacity: 0.95;
}

.section-dark .section-title-en {
    color: rgba(255, 255, 255, 0.4);
}

.section-dark .section-title-jp {
    color: var(--color-white);
}

.section-dark .results-lead,
.section-dark .section-lead-text {
    color: var(--color-white);
}

.section-dark .btn-primary {
    background-color: var(--color-white);
    color: var(--color-sky-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-dark .btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.section-dark .strength-btn {
    background-color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-dark .strength-btn:hover {
    background-color: var(--color-lime);
}

/* Sliding Background Animation */
.slide-in-bg {
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
}

.slide-in-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--color-sky-blue);
    z-index: 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

.slide-in-bg.is-visible::before {
    width: 70%;
    /* Extends to roughly the center of the image area */
}

/* Ensure content stays above the background */
.slide-in-bg .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .slide-in-bg.is-visible::before {
        width: 75%;
    }
}

@media (max-width: 768px) {

    .slide-in-bg::before,
    .slide-in-bg.is-visible::before {
        width: 100%;
        /* Fully background on mobile for readability */
        border-radius: 0;
    }
}

/* Results and Strengths Sections Specific Overrides for Sliding Background */
#strengths.slide-in-bg::before,
#results.slide-in-bg::before {
    border-radius: 0;
}

/* Intro Section Specific Overrides for Sliding Background */
#intro.slide-in-bg::before {
    background-color: var(--color-sky-blue);
}

#strengths.slide-in-bg.is-visible::before,
#results.slide-in-bg.is-visible::before {
    width: 100%;
}

/* Sub-page Hero Animation Styles */
.sub-hero {
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
    padding-top: 140px;
    padding-bottom: 140px;
    text-align: left;
}

.sub-hero .container>*:last-child {
    margin-bottom: 0 !important;
}

.sub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--color-navy);
    z-index: 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0 !important;
}

.sub-hero.is-visible::before {
    width: 100%;
}

.sub-hero .container {
    position: relative;
    z-index: 1;
}

.sub-hero .section-header {
    margin-bottom: 0;
}

.sub-hero .section-title-en {
    color: var(--color-lime);
}

.sub-hero .section-title-jp {
    color: #fff;
}

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

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   Classes Section
   ========================================================================== */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.class-card {
    background-color: var(--color-white);
    border: 1px solid #eee;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.class-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-sky-blue);
    transform: translateY(-5px);
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-sky-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.class-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    color: var(--color-sky-blue);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-navy);
}

.card-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.card-link {
    color: var(--color-sky-blue);
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-en);
    display: inline-flex;
    align-items: center;
}

.card-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .intro-content {
        flex-direction: column-reverse !important;
        gap: 40px;
    }

    .lead-text {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Results Section
   ========================================================================== */
.results-split-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: flex-start;
}

.results-side-content {
    flex: 1;
}



.results-lead {
    font-size: 1rem;
    line-height: 2;
    color: #444;
    font-weight: 500;
}

.results-cards-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 120px;
}

.results-link-card {
    background: var(--color-white);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* .results-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
} */

.results-link-card .card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    color: var(--color-sky-blue);
}

.results-link-card h3 {
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    font-weight: 700;
}

.results-link-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
}

.card-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--color-navy);
    padding: 12px 30px;
    border-radius: 50px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.results-link-card:hover .card-btn {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.card-btn .arrow {
    transition: transform 0.3s ease;
}

.results-link-card:hover .arrow {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .results-titles .section-title-en {
        font-size: 4.5rem;
    }
}

@media (max-width: 1024px) {
    .results-split-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 50px;
    }

    .results-side-content {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .results-cards-grid {
        grid-template-columns: 1fr;
    }

    .results-link-card {
        padding: 40px 20px;
    }

    .results-titles .section-title-en {
        font-size: 3.5rem;
    }
}


/* ==========================================================================
   News Section
   ========================================================================== */
.news-list {
    list-style: none;
    border-top: 1px solid #ddd;
}

.news-item {
    border-bottom: 1px solid #ddd;
}

.news-link {
    display: flex;
    align-items: center;
    padding: 20px 0;
    text-decoration: none;
    color: var(--color-navy);
    transition: background-color 0.2s ease;
}

.news-link:hover {
    color: var(--color-sky-blue);
}

.news-date {
    font-family: var(--font-en);
    color: #888;
    margin-right: 30px;
    min-width: 100px;
}

.news-title {
    font-weight: 500;
}

@media (max-width: 768px) {
    .news-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ==========================================================================
   Instagram Section
   ========================================================================== */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.insta-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}

.insta-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 36, 84, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay::before {
    content: '';
    /* Normally FontAwesome icon here, substituting with CSS shape if no font loaded, or text */
    /* Simple CSS Camera Icon for fallback */
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 8px;
    box-sizing: border-box;
}

.insta-btn-container {
    text-align: center;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: center;
}

/* ==========================================================================
   Map Section
   ========================================================================== */
.section-map {
    width: 100%;
    padding: 0;
    margin: 0;
}

.map-container {
    width: 100%;
    line-height: 0;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-navy);
    color: #ccc;
    padding: 80px 0 40px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 40px;
    text-align: left;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-sky-blue);
}

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

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-family: var(--font-en);
}

/* ==========================================================================
   Testimonials Page
   ========================================================================== */
.testimonials-hero {
    padding-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

/* Remove hover scale */


.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--color-sky-blue);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.student-info .high-school {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.student-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
}

.student-info .university {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
}

.university-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

/* Marquee Gallery */
.marquee-gallery {
    width: 100%;
    overflow: hidden;
    margin-top: 80px;
    background-color: var(--color-white);
}

#environment {
    padding-bottom: 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track img {
    height: 280px;
    width: auto;
    display: block;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee-track img {
        height: 200px;
    }
}

/* 2024 Testimonial Badge */
.testimonial-tags {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    z-index: 5;
}

.testimonial-tag {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
    background-color: var(--color-navy);
    border-radius: 0 0 0 15px;
    line-height: 1;
}

/* Standalone tag support (legacy/base) */
.testimonial-card>.testimonial-tag {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
}

/* Container override for overlapping effect */
.testimonial-tags .testimonial-tag {
    position: relative;
    border-radius: 0 0 0 15px;
}

.testimonial-tags .testimonial-tag:first-child {
    z-index: 1;
    margin-right: -15px;
    /* Tuck under the following tag */
    padding-right: 25px;
    /* Add space for the overlap */
}

.testimonial-tags .testimonial-tag:last-child {
    z-index: 2;
}

.testimonial-tag.graduate {
    background-color: var(--color-lime);
    color: var(--color-navy);
}

.testimonial-tag.highschool {
    background-color: var(--color-sky-blue);
    color: var(--color-white);
}

.student-info .status {
    display: inline-block;
    background-color: var(--color-lime);
    color: var(--color-navy);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 900;
    margin-left: 5px;
    vertical-align: middle;
}

.testimonial-body {
    position: relative;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Quote mark icon */
.testimonial-body::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
    font-size: 4rem;
    color: var(--color-sky-blue);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        gap: 30px;
    }

    .testimonial-card {
        padding: 30px;
    }
}

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

    .testimonial-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .testimonial-img {
        width: 120px;
        height: 120px;
    }

    .student-info .university {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Results (Achievements) Page
   ========================================================================== */
.results-hero {
    padding-bottom: 60px;
}

.results-tables-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.results-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.table-wrapper {
    background-color: var(--color-white);
    padding: 2px;
    /* For the outer border feel */
    border-radius: 4px;
}

.table-title {
    background-color: #555d65;
    color: #fff;
    padding: 10px 15px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    border-radius: 4px 4px 0 0;
}

.table-title.thin {
    font-size: 1rem;
    padding: 8px 15px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background-color: var(--color-white);
}

.results-table th,
.results-table td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: center;
}

.results-table th {
    background-color: #f2f2f2;
    font-weight: 700;
    color: #333;
}

.results-table td:first-child {
    text-align: left;
    width: 45%;
}

.results-table tr.highlight td {
    background-color: #f9f9f9;
    font-weight: 700;
}

.results-table tr.total-row td {
    background-color: #eee;
    font-weight: 700;
}

/* Summary Box */
.total-box {
    background-color: var(--color-white);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

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

.total-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 10px;
    border-bottom: 2px solid #ccc;
    padding: 0 40px 5px;
}

.total-details {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.total-notes {
    font-size: 0.9rem;
    color: #444;
}

/* Mini tables for Vocational/Junior Coll */
.results-table.mini td:first-child {
    width: 60%;
}

@media (max-width: 1024px) {
    .results-tables-container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .results-table {
        font-size: 0.8rem;
    }

    .results-table th,
    .results-table td {
        padding: 4px 6px;
    }

    .total-value {
        font-size: 2.5rem;
    }
}

/* Results Accordion */
.results-accordion {
    width: 100%;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 4px;
    /* Slightly sharper corners for a wider look */
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    padding: 20px 30px;
    background: #f9f9f9;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    transition: background 0.3s ease;
}

.accordion-trigger:hover {
    background: #f0f0f0;
}

.accordion-trigger i {
    transition: transform 0.3s ease;
}

.accordion-trigger.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease;
    background: #fff;
}

.accordion-content.active {
    max-height: 4000px;
    /* Large enough to fit all tables */
    padding: 30px 20px;
}

@media (max-width: 768px) {
    .accordion-trigger {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Principal's Message Page
   ========================================================================== */
.message-container {
    max-width: 1000px;
}

.message-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.principal-img-wrapper {
    flex: 0 0 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

.message-content-wrapper {
    flex: 1;
}

.message-tagline {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.5;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.message-tagline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-sky-blue);
}

.message-body {
    font-size: 1.05rem;
    line-height: 2.2;
    color: #333;
}

.message-body p {
    margin-bottom: 2em;
    text-indent: 1em;
}

/* Principal's Message Column Layout */
.message-content-wrapper .message-body {
    column-count: 2;
    column-gap: 60px;
}

@media (max-width: 768px) {
    .message-content-wrapper .message-body {
        column-count: 1;
    }
}

.message-signature {
    margin-top: 60px;
    text-align: right;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.message-signature .school-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.message-signature .principal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
}

@media (max-width: 900px) {
    .message-layout {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .principal-img-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .message-tagline {
        font-size: 1.5rem;
        text-align: center;
    }

    .message-tagline::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    background-color: var(--color-bg-light);
    padding: 100px 0;
}

.faq-item {
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: var(--color-navy);
    color: #fff;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    border: none;
    text-align: left;
    transition: background-color 0.3s ease;
    margin-bottom: 0;
}

.faq-question:hover {
    background-color: #0d2d66;
    /* Slightly lighter navy */
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease;
    background-color: #fff;
    color: #333;
    font-size: 1rem;
    padding: 0 30px;
    font-weight: 500;
    line-height: 1.8;
}

.faq-answer.active {
    max-height: 3000px;
    padding: 25px 30px;
}

.faq-answer p {
    margin: 0;
}


@media (max-width: 768px) {
    .faq-question {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    .faq-answer {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* ==========================================================================
   Study Room Page
   ========================================================================== */
.study-room-intro {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.study-room-title-area {
    margin-bottom: 30px;
}

.study-room-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.study-room-tagline {
    color: #ff0000;
    font-weight: 700;
    font-size: 1.1rem;
}

.study-room-description {
    line-height: 2;
    font-size: 1.15rem;
    color: #444;
}

.study-room-details {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.details-header {
    border-bottom: 3px solid #000;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.details-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.details-note {
    color: #ff0000;
    font-weight: 700;
    margin-bottom: 30px;
}

.pricing-table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.pricing-table th,
.pricing-table td {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: left;
}

.pricing-table th {
    background-color: #f9f9f9;
    width: 25%;
    font-weight: 700;
    color: var(--color-navy);
}

.pricing-table .price {
    font-weight: 700;
    text-align: right;
    width: 120px;
}

.time-info p {
    margin-bottom: 5px;
}

@media (max-width: 768px) {

    .study-room-intro,
    .study-room-details {
        padding: 25px;
    }

    .study-room-title {
        font-size: 1.5rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px;
        font-size: 0.95rem;
    }

    .pricing-table th {
        width: 35%;
    }
}

/* ==========================================================================
   High School Sub-page (highschool.html)
   ========================================================================== */
.hs-support-intro {
    margin-top: 40px;
}

.hs-support-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 20px;
    display: inline-block;
}

.hs-support-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.support-pillar {
    margin-bottom: 80px;
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.pillar-number {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-lime);
    line-height: 1;
}

.pillar-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
}

.pillar-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-sky-blue);
    margin-left: auto;
}

.support-content-box {
    background-color: var(--color-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 15px;
    text-align: center;
}

.content-desc {
    font-size: 1.05rem;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 15px;
}

.course-grade {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 5px;
}

.course-type {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-sky-blue);
    margin-bottom: 15px;
}

.course-list {
    list-style: none;
    padding: 0;
}

.course-list li {
    font-size: 0.95rem;
    color: #444;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

/* ==========================================================================
   Admission Process Section (Shared)
   ========================================================================== */
.admission-intro {
    background: var(--color-sky-blue);
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.admission-flow {
    position: relative;
    padding-left: 60px;
    margin-bottom: 80px;
    margin-top: 40px;
}

.admission-flow::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-navy);
    opacity: 0.15;
}

.admission-step {
    position: relative;
    margin-bottom: 60px;
    padding-left: 20px;
}

.admission-step:last-child {
    margin-bottom: 0;
}

.admission-step::before {
    content: attr(data-step);
    position: absolute;
    left: -60px;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--color-navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-content {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-title {
    font-size: 1.5rem;
    color: var(--color-navy);
    font-weight: 900;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.4;
}

.step-body {
    font-size: 1.1rem;
    line-height: 2;
    font-weight: 500;
    color: #444;
}

.step-highlight {
    margin-top: 25px;
    padding: 25px;
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-sky-blue);
    border-radius: 0 15px 15px 0;
    font-weight: 700;
    color: var(--color-navy);
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.step-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #333;
}

.step-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--color-sky-blue);
    font-size: 1rem;
}

.payment-box {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.payment-title {
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--color-navy);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-item {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.payment-item:last-child {
    margin-bottom: 0;
}

.admission-notice {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    border: 2px dashed #eee;
    margin-top: 80px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--color-navy);
}

.notice-header i {
    font-size: 1.4rem;
}

.notice-header h3 {
    font-size: 1.3rem;
    font-weight: 900;
}

.notice-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    font-weight: 500;
}

.notice-text p {
    margin-bottom: 10px;
    position: relative;
    padding-left: 1.5em;
}

.notice-text p::before {
    content: '※';
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .admission-flow {
        padding-left: 45px;
    }

    .admission-step::before {
        width: 36px;
        height: 36px;
        left: -53px;
        font-size: 1.1rem;
    }

    .step-content {
        padding: 30px 20px;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .admission-intro {
        font-size: 1.1rem;
        padding: 20px;
    }
}


.course-list li:last-child {
    border-bottom: none;
}

.individual-instruction {
    text-align: center;
    padding-top: 40px;
    border-top: 2px dashed #ddd;
}

.individual-instruction .sub-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.individual-instruction .sub-desc {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.individual-instruction strong {
    font-size: 1.5rem;
    color: #ff0000;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.resource-card {
    background-color: var(--color-white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-navy);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.resource-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
}

.resource-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* Test Support Styles */
.featured-text {
    font-size: 2rem;
    font-weight: 900;
    color: #ff0000;
    text-align: center;
    margin-bottom: 20px;
}

.test-support-details {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 700;
    color: var(--color-navy);
}

.usage-guide {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #fff;
}

.usage-guide p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Life Support Styles */
.life-support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.life-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.life-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.life-card p {
    font-size: 1rem;
    line-height: 1.9;
}

.tutor-message-box {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 60px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.tutor-message-box::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 10rem;
    opacity: 0.1;
    font-family: serif;
}

.message-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.message-content {
    font-size: 1.1rem;
    line-height: 2;
    position: relative;
    z-index: 1;
}

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

    .resource-grid,
    .life-support-grid {
        grid-template-columns: 1fr;
    }

    .pillar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pillar-subtitle {
        margin-left: 0;
    }
}

@media (max-width: 768px) {

    .hs-support-intro,
    .support-content-box,
    .tutor-message-box {
        padding: 30px;
    }

    .hs-support-title {
        font-size: 1.4rem;
    }

    .pillar-title {
        font-size: 2rem;
    }

    .featured-text {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Grade Navigation Section (highschool.html)
   ========================================================================== */
.grade-nav-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.grade-nav-card {
    background-color: var(--color-white);
    padding: 60px 40px 40px;
    border-radius: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

/* .grade-nav-card:hover removed to disable card hover effect */

.grade-nav-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grade-nav-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 30px;
}

.grade-nav-icon {
    width: 120px;
    height: 120px;
    background-color: #e6f4fc;
    color: var(--color-sky-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 40px;
}

.grade-nav-desc {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 40px;
    padding: 0 10px;
}

/* Button style matching the reference image */
.grade-nav-btn {
    background-color: #0d1e3a;
    /* Dark Navy from image */
    color: var(--color-white);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    transition: background-color 0.3s ease, padding-right 0.3s ease;
}

.grade-nav-btn:hover {
    background-color: var(--color-sky-blue);
    padding-right: 35px;
}

.arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .grade-nav-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grade-nav-card {
        padding: 50px 30px 40px;
    }
}

/* ==========================================================================
   Grade Specific Pages (highschool-1.html etc.)
   ========================================================================== */
.grade-section-header {
    background: repeating-linear-gradient(-45deg,
            rgba(0, 147, 231, 0.05),
            rgba(0, 147, 231, 0.05) 10px,
            #ffffff 10px,
            #ffffff 20px);
    padding: 15px 30px;
    border-top: 2px solid var(--color-navy);
    border-bottom: 2px solid var(--color-navy);
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
}

.grade1-hero {
    padding-bottom: 40px;
}

.grade-intro-text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 60px;
    color: #333;
}

/* Curriculum Table */
.curriculum-wrapper {
    overflow-x: auto;
    margin-bottom: 80px;
}

.curriculum-table {
    min-width: 900px;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.curriculum-table th,
.curriculum-table td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 10px 5px;
}

.curriculum-table thead th {
    background-color: var(--color-bg-light);
    color: var(--color-navy);
    font-weight: 700;
}

.curriculum-table .header-row {
    background-color: #fff;
    color: var(--color-navy);
    font-size: 1.4rem;
    font-weight: 700;
}

.curriculum-table .grade-label {
    background-color: var(--color-bg-light);
    color: var(--color-navy);
    width: 40px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.curriculum-item-cell {
    position: relative;
    padding: 20px 5px !important;
}

.semester-bar {
    background-color: var(--color-sky-blue);
    color: #fff;
    padding: 8px 0;
    font-weight: 700;
    margin: 5px 0;
    position: relative;
    clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%, 5% 50%);
}

.curriculum-note {
    font-size: 0.85rem;
    color: var(--color-navy);
    margin-top: 10px;
    line-height: 1.4;
    font-weight: 500;
}

/* Course List */
.course-detail-section {
    margin-bottom: 80px;
}

.course-detail-header {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a7a 100%);
    color: #fff;
    padding: 15px 40px;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(10, 36, 84, 0.2);
    /* Inverted arrow effect */
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 30px 50%);
    padding-left: 60px;
}

.course-detail-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 50px;
    padding: 0 20px;
}

/* Testimonial Box */
.testimonial-container {
    background-color: #fff;
    border: 8px solid var(--color-bg-light);
    border-radius: 15px;
    padding: 40px 60px;
    position: relative;
    margin-top: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-label {
    position: absolute;
    top: -40px;
    left: -40px;
    display: flex;
    flex-direction: column;
}

.testimonial-label span {
    background-color: var(--color-navy);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: -15px;
    border: 4px solid #fff;
}

.testimonial-list {
    list-style: none;
    padding: 0;
}

.testimonial-item {
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
    font-weight: 500;
    color: var(--color-navy);
}

.testimonial-item::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--color-sky-blue);
}

.testimonial-item .school-name {
    color: var(--color-sky-blue);
    font-size: 0.95rem;
    margin-left: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .grade-section-header {
        font-size: 1.5rem;
        padding: 10px 20px;
    }

    .course-detail-header {
        font-size: 1.4rem;
        padding-left: 45px;
    }

    .testimonial-container {
        padding: 40px 20px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .testimonial-label {
        left: 0;
        top: -50px;
        flex-direction: row;
        gap: 5px;
    }

    .testimonial-label span {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        margin-bottom: 0;
    }
}

/* Curriculum Page Styles */
.curriculum-hero {
    padding-bottom: 40px;
}

.curriculum-intro-text {
    margin: 30px 0 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.curriculum-table-section {
    margin-bottom: 80px;
}

.curriculum-table-v2 {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-family: var(--font-en), var(--font-jp);
    border: 1px solid #333;
}

.curriculum-table-v2 th,
.curriculum-table-v2 td {
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
    vertical-align: middle;
}

.curriculum-table-v2 th {
    background-color: #fff9c4;
    /* Pale yellow from image */
    color: var(--color-navy);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Category column (Subject/Main Type) */
.curriculum-table-v2 .col-category {
    font-weight: 700;
    font-size: 1.2rem;
    width: 120px;
    letter-spacing: 0.1em;
}

/* Level column (HH, H, S, etc.) */
.curriculum-table-v2 .col-level {
    font-weight: 700;
    font-size: 1.2rem;
    width: 80px;
    text-align: left;
    padding-left: 15px;
}

/* Content column (Universities) */
.curriculum-table-v2 .col-content {
    text-align: left;
    padding-left: 30px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Colors from images - mapped to brand colors or kept similar */
.bg-english {
    background-color: #b3e5fc;
}

/* Sky Blue like */
.bg-math {
    background-color: #e8f5e9;
}

/* Pale Green */
.bg-japanese {
    background-color: #ffebee;
}

/* Pale Red */
.bg-science {
    background-color: #ede7f6;
}

/* Pale Purple */
.bg-social {
    background-color: #fff9c4;
}

/* Pale Yellow */

.bg-medical {
    background-color: #e0f2f1;
}

/* Pale Teal */
.bg-science-tech {
    background-color: #e8eaf6;
}

/* Pale Indigo */
.bg-humanities {
    background-color: #fce4ec;
}

/* Pale Pink */

/* Responsive Table Wrapper */
.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

@media (max-width: 768px) {

    .curriculum-table-v2 th,
    .curriculum-table-v2 td {
        padding: 10px;
        font-size: 0.95rem;
    }

    .curriculum-table-v2 .col-category,
    .curriculum-table-v2 .col-level {
        width: 80px;
        font-size: 1rem;
    }
}

/* Timetable Styles */
.timetable-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.timetable-container {
    margin-top: 40px;
}

.timetable-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.timetable-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
}

.timetable-tab:hover {
    background: #eeeeee;
}

.timetable-tab.active {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

.timetable-content {
    display: none;
}

.timetable-content.active {
    display: block;
}

.curriculum-timetable {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-en), var(--font-jp);
    border: 1px solid #333;
    table-layout: fixed;
}

.curriculum-timetable th,
.curriculum-timetable td {
    border: 1px solid #333;
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.85rem;
    height: 70px;
}

.curriculum-timetable th {
    background-color: #e0f2f1;
    /* Header teal */
    color: var(--color-navy);
    font-weight: 700;
}

.curriculum-timetable .col-period {
    width: 120px;
    background-color: #f5f5f5;
}

.curriculum-timetable .period-name {
    display: block;
    font-weight: 700;
}

.curriculum-timetable .period-time {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 4px;
}

/* Subject Colors from images */
.slot-english {
    background-color: #e3f2fd;
}

/* Light Blue */
.slot-math {
    background-color: #e8f5e9;
}

/* Light Green */
.slot-modern-jp {
    background-color: #fff3e0;
}

/* Light Orange (Modern) */
.slot-classic-jp {
    background-color: #fce4ec;
}

/* Light Pink (Classic/Old) */
.slot-kanji {
    background-color: #f3e5f5;
}

/* Light Purple (Kanji) */
.slot-science {
    background-color: #e1f5fe;
}

/* Light Blue-ish (Science) */
.slot-civics {
    background-color: #fff9c4;
}

/* Light Yellow (Civics) */
.slot-geography {
    background-color: #fff9c4;
}

/* Light Yellow (Geography) */
.slot-info {
    background-color: #f0f4c3;
}

/* Light Lime (Info) */
.slot-hr {
    background-color: #fffde7;
}

/* Very Light Yellow (HR) */

.slot-name {
    display: block;
    font-weight: 700;
}

.slot-level {
    display: block;
    font-size: 0.75rem;
    color: #555;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .curriculum-timetable {
        min-width: 800px;
    }
}

/* ==========================================================================
   Learning Environment Page Specifics
   ========================================================================== */
.environment-page {
    padding-bottom: 100px;
}

.environment-intro-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 80px;
}

.environment-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.environment-hours-table th,
.environment-hours-table td {
    padding: 20px;
    border: 1px solid #eee;
    text-align: left;
}

.environment-hours-table th {
    background-color: var(--color-navy);
    color: #fff;
    width: 250px;
    font-weight: 700;
}

/* Supervisor Comment Box */
.supervisor-comment-container {
    max-width: 100%;
    margin: 40px 0 0;
    border: none;
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.supervisor-label {
    background-color: #6fb2e1;
    color: #fff;
    width: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    font-size: 0.85rem;
}

.supervisor-label::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 15px solid #6fb2e1;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.supervisor-text {
    padding: 20px 25px;
    flex: 1;
}

.supervisor-text p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: #333;
}

/* Facility Grid */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.facility-card {
    display: flex;
    flex-direction: column;
}

.facility-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.facility-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-title {
    background-color: var(--color-sky-blue);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    opacity: 1;
}

.facility-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

/* Featured Facility Section (Large) */
.featured-facility {
    margin-bottom: 100px;
}

.featured-card {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.featured-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.featured-content {
    flex: 1;
}

@media (max-width: 1024px) {
    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-card {
        flex-direction: column;
        gap: 30px;
    }

    .supervisor-comment-container {
        flex-direction: column;
    }

    .supervisor-label {
        width: 100%;
        padding: 15px;
    }

    .supervisor-label::after {
        right: auto;
        bottom: -20px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 20px solid #6fb2e1;
    }

    .facility-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Access Summary Section
   ========================================================================== */
.access-summary {
    padding: 50px 0;
    text-align: center;
    background-color: var(--color-sky-blue);
}

.access-summary-content {
    max-width: 900px;
    margin: 0 auto;
}

.access-title-large {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.access-title-medium {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.access-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--color-white);
    font-weight: 500;
}

@media (max-width: 768px) {
    .access-summary {
        padding: 30px 0;
    }

    .access-title-large {
        font-size: 1.8rem;
    }

    .access-title-medium {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .access-text {
        font-size: 1rem;
        text-align: left;
        display: inline-block;
    }
}

/* ==========================================
   Class Links Section
   ========================================== */
.class-links-section {
    padding: 100px 0;
    background-color: #fff;
}

.class-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.class-link-card {
    background-color: var(--color-white);
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.class-link-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.class-link-btns {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.class-link-btn {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    border-radius: 50px;
    transition: opacity 0.3s ease;
}

.class-link-btn:hover {
    opacity: 0.8;
}

.btn-trial {
    background-color: var(--color-navy);
    color: var(--color-white);
    font-size: 1.75rem;
}

.btn-more {
    background-color: var(--color-lime);
    color: var(--color-navy);
}

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

    .class-link-card {
        padding: 30px 20px;
    }

    .class-link-title {
        font-size: 1.5rem;
    }

    .class-link-btn {
        font-size: 1.1rem;
        padding: 12px 0;
    }
}


/* ==========================================================================
   News System Styles
   ========================================================================== */

/* News Summary (Top Page) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.news-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item-link {
    display: flex;
    align-items: center;
    padding: 24px 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
    padding-left: 20px;
}

.news-date {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-sky-blue);
    min-width: 140px;
    font-size: 1.1rem;
}

.news-item-link .news-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}

.news-arrow {
    color: var(--color-sky-blue);
    font-weight: 700;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.news-item-link:hover .news-arrow {
    transform: translateX(5px);
}

/* News Page Timeline */
.news-container {
    width: 70%;
    margin: 60px auto;
    padding: 0;
}

.news-timeline {
    position: relative;
    padding-left: 60px;
}

.news-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-sky-blue);
    opacity: 0.2;
}

.news-timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.news-timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.news-timeline-item::before {
    content: '';
    position: absolute;
    left: -46.5px;
    /* (60px padding - 20px line - 7.5px half-dot + 1px half-line) */
    top: 12px;
    width: 15px;
    height: 15px;
    background-color: var(--color-sky-blue);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 5px var(--color-bg-light);
}

.news-item-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* News Tags */
.news-item-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
    border-radius: 0 0 0 15px;
    z-index: 5;
}

.news-item-tag.tag-graduate {
    background-color: var(--color-navy);
}

.news-item-tag.tag-highschool {
    background-color: var(--color-sky-blue);
}

.news-item-tag.tag-common {
    background-color: var(--color-lime);
    color: var(--color-navy);
}

.news-item-tag.tag-other {
    background-color: #666;
}

/* .news-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
} */

.news-item-date {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-sky-blue);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.news-item-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 25px;
    line-height: 1.4;
}

.news-item-body {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.9;
}

.news-item-image {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    /* Fixed aspect ratio for consistency */
}

.news-item-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Fill container without distortion */
    cursor: pointer;
    /* Indicate it's clickable */
}

/* .news-item-card:hover .news-item-image img {
    transform: scale(1.02);
} */

/* News Image Grid Layouts */
.news-image-grid {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.news-image-grid .news-item-image {
    margin-top: 0;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.grid-3 .news-item-image:nth-child(1) {
    grid-column: span 6;
}

.grid-3 .news-item-image:nth-child(n+2) {
    grid-column: span 3;
}

.grid-4, .grid-8, .grid-10 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-6, .grid-9 {
    grid-template-columns: repeat(3, 1fr);
}

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

.grid-5 .news-item-image:nth-child(1) {
    grid-column: span 4;
}

.grid-5 .news-item-image:nth-child(n+2) {
    grid-column: span 2;
}

.grid-7 {
    grid-template-columns: repeat(6, 1fr);
}

.grid-7 .news-item-image:nth-child(1) {
    grid-column: span 6;
}

.grid-7 .news-item-image:nth-child(n+2) {
    grid-column: span 2;
}

.news-image-single {
    max-width: 100%;
}

@media (max-width: 600px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-3 .news-item-image:nth-child(n) {
        grid-column: span 1;
    }
}

/* News Filters */
.news-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--color-white);
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--color-bg-light);
}

.filter-btn.active {
    background-color: var(--color-navy);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .news-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

.news-more-container {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 100px;
}

.btn-load-more {
    display: inline-block;
    padding: 20px 80px;
    background-color: var(--color-navy);
    color: var(--color-white);
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-load-more:hover {
    background-color: var(--color-sky-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Download Button */
.news-item-attachment {
    margin-top: 25px;
    padding-top: 0;
}

.btn-download {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 25px;
    background-color: var(--color-navy);
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-download i {
    font-size: 1.1rem;
}

.btn-download:hover {
    background-color: var(--color-sky-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 147, 231, 0.2);
}

/* News More Link Button */
.news-item-link-btn {
    margin-top: 15px;
}

.btn-news-more {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 25px;
    background-color: transparent;
    border: 2px solid var(--color-navy);
    color: var(--color-navy) !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-news-more .arrow {
    transition: transform 0.3s ease;
}

.btn-news-more:hover {
    background-color: var(--color-navy);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-news-more:hover .arrow {
    transform: translateX(5px);
}

.btn-load-more:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .news-timeline {
        padding-left: 40px;
    }

    .news-timeline::before {
        left: 10px;
    }

    .news-timeline-item {
        margin-bottom: 40px;
    }

    .news-timeline-item::before {
        left: -36.5px;
    }

    .news-item-card {
        padding: 30px 20px;
    }

    .news-item-title {
        font-size: 1.3rem;
    }

    .news-date {
        min-width: 100px;
        font-size: 1rem;
    }

    .news-item-link {
        padding: 20px 0;
    }
}

/* ==========================================================================
   Fixed Instagram Button
   ========================================================================== */
.fixed-insta-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(220, 39, 67, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--color-white);
}

.fixed-insta-btn i {
    font-size: 2rem;
    margin-bottom: 2px;
}

.fixed-insta-btn span {
    display: block;
}

.fixed-insta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #bc1888 100%);
    z-index: -1;
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.fixed-insta-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .fixed-insta-btn {
        bottom: 20px;
        right: 20px;
        width: 80px;
        height: 80px;
        font-size: 0.75rem;
    }

    .fixed-insta-btn i {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Lightbox Styles
   ========================================================================== */
.news-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.news-lightbox.is-active {
    display: flex;
}

.news-lightbox-container {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default;
}

.news-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.news-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* Contents Carousel Section */
.contents-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.contents-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.contents-track-container {
    overflow: hidden;
}

.contents-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-out;
    list-style: none;
    padding: 0;
}

.contents-slide {
    flex: 0 0 calc((100% - 60px) / 3);
    /* 3 items per screen on desktop */
    text-decoration: none;
    display: block;
}

.contents-slide-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.contents-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Contents Nav Buttons */
.contents-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    border: 2px solid var(--color-navy);
    color: var(--color-navy);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.contents-btn:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.contents-prev {
    left: 0;
}

.contents-next {
    right: 0;
}

@media (max-width: 1024px) {
    .contents-carousel-container {
        width: 100%;
    }

    .contents-slide {
        flex: 0 0 calc((100% - 30px) / 2);
        /* 2 items */
    }
}

@media (max-width: 600px) {
    .contents-carousel-container {
        width: 100%;
        padding: 0 40px;
    }

    .contents-slide {
        flex: 0 0 100%;
        /* 1 item */
    }

    .contents-btn {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Grade Sticky Menu (Graduate School Class)
   ========================================================================== */
.grade-sticky-menu {
    position: sticky;
    top: 150px;
    /* header-height */
    z-index: 100;
    width: 100%;
    padding: 15px 0;
    pointer-events: none;
    /* Allow events only on container */
}

.grade-menu-container {
    width: fit-content;
    max-width: 90%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 10px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.grade-menu-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    flex-wrap: wrap;
}

.grade-menu-list li a {
    text-decoration: none;
    color: var(--color-navy);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.grade-menu-list li.menu-label {
    background-color: var(--color-sky-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: default;
}

.grade-menu-list li a:hover {
    background-color: var(--color-sky-blue);
    color: #fff;
}

@media (max-width: 1024px) {
    .grade-sticky-menu {
        top: var(--header-height);
        /* Keep consistent with header */
    }

    .grade-menu-container {
        padding: 8px 20px;
    }

    .grade-menu-list {
        gap: 10px;
    }

    .grade-menu-list li a {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* Study Room Feature Block (Grad School Page) */
.study-room-feature-block {
    margin-bottom: 80px;
}

.study-room-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.study-room-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capacity-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--color-sky-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gallery-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gallery-sub-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-sub-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.study-room-info-box {
    padding: 0;
}

.study-room-info-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.study-room-info-box .desc-text {
    line-height: 2;
    margin-bottom: 30px;
    color: #444;
}

@media (max-width: 1024px) {
    .study-room-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .study-room-info-box h3 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   High School Fees Section
   ========================================================================== */
.fees-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.fee-category {
    width: 100%;
}

.fee-category-title {
    display: inline-block;
    background-color: var(--color-sky-blue);
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.fee-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

.fee-table th,
.fee-table td {
    padding: 15px 20px;
    border: 1px solid #eee;
    text-align: center;
}

.fee-table th {
    background-color: #f8f9fa;
    color: var(--color-navy);
    font-weight: 700;
}

.fee-table .col-name {
    text-align: left;
    width: 40%;
}

.fee-table .col-teacher {
    width: 15%;
}

.fee-table .col-time {
    width: 15%;
}

.fee-table .col-price {
    width: 30%;
}

.fee-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.fee-table-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.6;
}

/* Individual Instruction Table Specifics */
.fee-table.individual-table td {
    vertical-align: middle;
}

.fee-table.individual-table .col-target {
    width: 20%;
}

.fee-table.individual-table .col-day {
    width: 10%;
}

.fee-table.individual-table .col-time {
    width: 30%;
}

.fee-table.individual-table .col-price {
    width: 40%;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.price-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.price-label {
    font-size: 0.85rem;
    color: #555;
    text-align: left;
}

.price-value {
    font-weight: 700;
    color: var(--color-navy);
}

/* Side Layout for Other Fees and Discount */
.fees-side-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.fee-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.fee-card-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.other-fees-card {
    height: fit-content;
}

.other-fees-card .fee-card-title {
    border: 2px solid var(--color-navy);
    border-radius: 50px;
    padding: 10px;
}

.discount-card .fee-card-title {
    font-size: 2.2rem;
    color: var(--color-navy);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    background: none;
    text-shadow: none;
}

.discount-card .fee-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-sky-blue);
    border-radius: 2px;
}

.fee-card-item {
    margin-bottom: 30px;
}

.fee-card-item-label {
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fee-card-item-label::before {
    content: '◆';
    color: var(--color-navy);
    font-size: 0.8rem;
}

.fee-card-item-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-navy);
    text-align: center;
}

.fee-card-item-value span {
    font-size: 1.2rem;
    margin-left: 5px;
}

.discount-card .desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.discount-example {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.discount-example-title {
    display: inline-block;
    background: #999;
    color: #fff;
    padding: 2px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.grade-group {
    margin-bottom: 20px;
}

.grade-group-label {
    background: #999;
    color: #fff;
    padding: 2px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.example-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.example-item .arrow-calc {
    color: #666;
    margin: 0 10px;
}

.example-total {
    text-align: right;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-navy);
}

.example-total-val {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .fees-side-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fee-card-item-value {
        font-size: 2rem;
    }
}

/* Individual Instruction Section */
.individual-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.intro-question {
    font-size: 1.25rem;
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 30px;
}

.intro-answer {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
}

.individual-features-box {
    background: #fff;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 80px;
    border: 1px solid #eee;
}

.features-box-title {
    font-size: 2rem;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 900;
}

.features-box-title span {
    color: var(--color-sky-blue);
    display: block;
    font-size: 1.4rem;
    margin-top: 10px;
}

.individual-points-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #f8f9fa;
    padding: 20px 30px;
    border-radius: 60px;
    transition: transform 0.3s ease;
}

.point-item:hover {
    transform: translateX(10px);
}

.point-tag {
    background: var(--color-navy);
    color: #fff;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.point-tag span {
    background: #fff;
    color: var(--color-navy);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.point-content {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
}

.point-content span {
    color: var(--color-sky-blue);
}

.individual-tables-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.table-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-group-title span {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}

.individual-time-table,
.individual-grade-table {
    width: 100%;
    border-collapse: collapse;
}

.individual-time-table th,
.individual-grade-table th {
    background-color: #fff;
    color: var(--color-navy);
    padding: 15px;
    font-size: 0.95rem;
    border-bottom: 2px solid #ddd;
}

.individual-time-table td,
.individual-grade-table td {
    padding: 18px 15px;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.side-header {
    background: #fff !important;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.1em;
    padding: 20px 10px !important;
    width: 50px;
}

.empty-cell {
    background: #f1f1f1;
    position: relative;
}

.empty-cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, transparent calc(50% - 1px), #ccc, transparent calc(50% + 1px));
}

.individual-regulations-block {
    background: #fff;
    border: 2px solid #eee;
    padding: 50px;
    border-radius: 30px;
    margin-bottom: 80px;
}

.regulations-title {
    font-size: 1.5rem;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 900;
    letter-spacing: 0.5em;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: inline-block;
    width: 100%;
}

.regulations-list {
    margin-bottom: 60px;
    padding-left: 20px;
}

.regulations-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Relation Diagram */
.relation-diagram {
    padding: 40px;
    background: #fcfcfc;
    border-radius: 20px;
    border: 1px dashed #ddd;
}

.diagram-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.node {
    background: #eee;
    padding: 20px;
    border: 1px solid #ccc;
    text-align: center;
    flex-shrink: 0;
    width: 120px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.node span.label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
}

.connector-group {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.arrow-both,
.arrow-up,
.arrow-down {
    position: relative;
    width: 80%;
    border-bottom: 2px solid #999;
}

.arrow-both::before,
.arrow-both::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
}

.arrow-both::before {
    left: 0;
    transform: rotate(225deg);
}

.arrow-both::after {
    right: 0;
    transform: rotate(45deg);
}

.connector-group.vertical-dual {
    flex-direction: column;
    gap: 15px;
    width: 150px;
}

.arrow-up,
.arrow-down {
    width: 100%;
}

.arrow-up::after {
    content: '';
    position: absolute;
    top: -5px;
    right: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
    transform: rotate(45deg);
}

.arrow-down::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid #999;
    border-right: 2px solid #999;
    transform: rotate(225deg);
}

.arrow-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #666;
    background: #fcfcfc;
    padding: 0 10px;
    white-space: nowrap;
}

.relation-diagram .arrow-down .arrow-label {
    top: -25px;
}

.diagram-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.info-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Admission Flow */
.admission-flow-container {
    margin-top: 100px;
}

.admission-flow-title-wrapper {
    background: var(--color-navy);
    color: #fff;
    padding: 15px 40px;
    border-radius: 10px 40px 0 0;
    display: inline-block;
    margin-bottom: 40px;
}

.admission-flow-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.flow-step {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 900px;
}

.step-badge {
    background: #ccc;
    color: #fff;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 40px 0 0 40px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.step-badge span {
    font-size: 1.8rem;
}

.step-card {
    background: #fff;
    flex-grow: 1;
    padding: 25px 40px;
    border-radius: 0 40px 40px 0;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-card p {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}

.step-note {
    font-size: 0.85rem !important;
    color: #888;
    margin-top: 8px;
}

.step-highlight {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    color: var(--color-navy);
}

.flow-arrow-down {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #ccc;
    margin: 15px 0;
}

@media (max-width: 1024px) {
    .individual-tables-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .individual-features-box {
        padding: 30px;
    }

    .features-box-title {
        font-size: 1.6rem;
    }

    .point-item {
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
        padding: 20px;
    }

    .point-item:hover {
        transform: translateY(-5px);
    }

    .diagram-inner {
        flex-direction: column;
        gap: 30px;
    }

    .connector-group.horizontal {
        transform: rotate(90deg);
        height: 60px;
    }

    .connector-group.vertical-dual {
        height: 100px;
        width: 100%;
    }

    .arrow-up,
    .arrow-down {
        width: 40%;
    }

    .flow-step {
        flex-direction: column;
    }

    .step-badge {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 10px;
        flex-direction: row;
        gap: 10px;
    }

    .step-card {
        border-radius: 0 0 20px 20px;
        padding: 20px;
    }
}


/* Scroll Margin for Sticky Menu Anchors */
#support-points,
#grade3,
#grade2,
#grade1,
#individual,
#voices,
#grad-fees,
#hs-fees,
#fees,
#admission,
#tutor,
#instructors,
#curriculum,
#support,
#annual-schedule,
#daily-schedule,
#results {
    scroll-margin-top: 260px;
}

/* EISU SUPPORT Points Section */
.support-intro-points {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    gap: 40px;
}

.points-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.point-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.p-num {
    background: var(--color-sky-blue);
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.p-text {
    flex: 1;
}

.p-label {
    display: block;
    font-size: 0.9rem;
    color: #111;
    font-weight: 700;
    margin-bottom: 5px;
}

.p-main {
    font-size: 1.8rem;
    font-weight: 900;
    color: #222;
    line-height: 1.3;
}

.p-main span {
    color: var(--color-sky-blue);
    border-bottom: 3px solid var(--color-sky-blue);
}

@media (max-width: 1024px) {
    .support-intro-points {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .p-main {
        font-size: 1.2rem;
    }
}

/* Comprehensive EISU SUPPORT Version */
.support-comprehensive {
    margin-top: 40px;
}

.support-intro {
    text-align: center;
    margin-bottom: 60px;
}

.support-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

.support-main-title span {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-navy);
    letter-spacing: 0.05em;
}

.support-main-desc {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.support-module {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
    overflow: hidden;
}

.module-head {
    background: var(--color-sky-blue);
    color: #fff;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    gap: 0;
}

.module-icon {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
}

.module-title {
    font-size: 2.2rem;
    font-weight: 900;
}

.module-body {
    padding: 40px;
}

.module-sub-header {
    font-size: 1.2rem;
    font-weight: 900;
    color: #222;
    margin-bottom: 30px;
}

.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.module-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.support-item {
    margin-bottom: 40px;
}

.support-item:last-child {
    margin-bottom: 0;
}

.item-title {
    background: #f0f0f0;
    padding: 10px 20px;
    font-weight: 900;
    font-size: 1.1rem;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-title::before {
    content: '◆';
    color: #333;
}

.item-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.item-list {
    list-style: none;
    padding: 0;
}

.item-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 700;
}

.item-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--color-sky-blue);
    font-size: 0.8rem;
}

.item-list.check li::before {
    content: '▶';
    color: #333;
}

.module-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.module-sub-grid {
    margin-top: 30px;
}

.tutors-box {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.tutor {
    text-align: center;
}

.tutor img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.tutor .no-photo {
    width: 100px;
    height: 120px;
    background-color: #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

.tutor span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}

.tutor-message-card {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 20px;
    height: 100%;
}

.message-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-navy);
}

.message-icon {
    background: #666;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-head h4 {
    font-size: 1.2rem;
    font-weight: 900;
}

.message-body {
    font-size: 0.95rem;
    line-height: 2;
    color: #444;
}

@media (max-width: 1024px) {

    .module-grid,
    .module-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .module-image.small {
        width: 100%;
    }
}

/* Grade 1 Course Section Styles */
.course-intro-text {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    line-height: 1.8;
}

.course-intro-text.plain {
    background: none;
    padding: 0 20px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 60px;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .course-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.course-detail-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card-head {
    background: var(--color-sky-blue);
    color: #fff;
    padding: 15px 30px;
    font-weight: 900;
    font-size: 1.2rem;
    text-align: center;
}

.course-card-body {
    padding: 30px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

/* Instructor Intro */
.instructor-intro-section {
    margin-top: 80px;
    margin-bottom: 60px;
}

.instructor-section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #ccc 0%, #333 50%, #ccc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding: 20px 0;
}

.instructor-section-title::before,
.instructor-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: #eee;
}

.instructor-section-title::before {
    top: 0;
}

.instructor-section-title::after {
    bottom: 0;
}

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.instructor-grid.has-5-items {
    grid-template-columns: repeat(5, 1fr);
}

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

.instructor-img-wrapper {
    position: relative;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.instructor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subject-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
}

.instructor-name {
    display: block;
    font-weight: 900;
    font-size: 1.1rem;
    color: #333;
}

/* Annual Schedule */
.annual-schedule-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.schedule-section-title {
    font-size: 1.5rem;
    font-weight: 900;
    border-left: 5px solid var(--color-sky-blue);
    padding-left: 20px;
    margin-bottom: 30px;
}

.schedule-table-wrapper {
    overflow-x: auto;
    background: #fff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.annual-schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.annual-schedule-table th,
.annual-schedule-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}

.annual-schedule-table thead th {
    background: #f9f9f9;
    font-weight: 900;
    font-size: 0.9rem;
}

.row-header {
    background: #eee;
    font-weight: 900;
    width: 100px;
}

.term-box {
    vertical-align: middle;
}

.term-label {
    background: #555;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 5px;
}

.class-count {
    font-weight: 700;
    font-size: 0.9rem;
}

.exam-prep {
    font-size: 0.75rem;
    color: var(--color-sky-blue);
    font-weight: 700;
    margin-top: 5px;
}

.term-box.summer {
    background-color: #fffaf0;
}

.term-box.winter {
    background-color: #f0f8ff;
}

/* Student Voices */
.student-voices-section {
    margin-bottom: 80px;
}

.voices-container {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 40px;
    align-items: center;
}

.voice-title-badge {
    background: var(--color-sky-blue);
    color: #fff;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.voice-title-badge span {
    font-size: 0.9rem;
}

.voice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.voice-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.voice-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--color-sky-blue);
}

@media (max-width: 1024px) {

    .instructor-grid,
    .instructor-grid.has-5-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .instructor-grid,
    .instructor-grid.has-5-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .voices-container {
        flex-direction: column;
        padding: 30px;
    }

    .voice-title-badge {
        width: 100px;
        height: 100px;
        font-size: 1.1rem;
    }
}

/* Grade 3 Specific Styles */
.grade3-lineup-flex {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
}

.lineup-side {
    flex: 1.2;
}

.recommend-side {
    flex: 0.8;
}

.lineup-title,
.recommend-title,
.curriculum-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 25px;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 30px;
    text-align: center;
}

.lineup-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.lineup-table th,
.lineup-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.lineup-table thead th {
    background: #555;
    color: #fff;
    font-weight: 700;
}

.lineup-table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.badge.koku {
    background: #333;
    color: #fff;
}

.badge.kyo {
    background: #888;
    color: #fff;
}

.badge.shi {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.level-dots {
    white-space: nowrap;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #eee;
    border-radius: 50%;
    margin-right: 4px;
}

.dot.active {
    background: var(--color-sky-blue);
}

.lineup-notes {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
}

/* Recommend Boxes */
.recommend-box {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.recommend-box h4 {
    background: #777;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 900;
}

.recommend-box.medical h4 {
    background: #555;
}

.recommend-box.kanki h4 {
    background: #777;
}

.recommend-box.general h4 {
    background: #999;
}

.recommend-box ul {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

.recommend-box li {
    font-size: 0.9rem;
    padding: 5px 0 5px 25px;
    position: relative;
    font-weight: 700;
}

.recommend-box li::before {
    content: '□';
    position: absolute;
    left: 0;
    color: #ccc;
}

/* Curriculum Timeline Extension */
.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    /* Grade 3 needs more space */
}

.curriculum-table th,
.curriculum-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.curriculum-table thead th {
    background: #f9f9f9;
    font-weight: 900;
}

.exam-box {
    background: #666;
    color: #fff;
    padding: 0 !important;
}

.exam-box.kt {
    background: #777;
}

.exam-box.individual {
    background: #555;
}

.exam-box.result {
    background: #333;
}

.exam-vertical {
    writing-mode: vertical-rl;
    padding: 15px 5px;
    height: 180px;
    /* Fixed height to prevent stretching */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* Horizontal Course Cards */
.course-detail-list {
    margin-top: 60px;
}

.course-horizontal-card {
    display: flex;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    overflow: hidden;
    align-items: stretch;
}

.course-card-content {
    flex: 1;
    padding: 40px;
}

.course-card-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-sky-blue);
    display: inline-block;
}

.course-card-text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #444;
}

.course-card-text .note {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

.course-card-instructor {
    width: 240px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.course-card-instructor img {
    width: 160px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.instructor-info {
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
}

@media (max-width: 1024px) {
    .grade3-lineup-flex {
        flex-direction: column;
    }

    .course-horizontal-card {
        flex-direction: column;
    }

    .course-card-instructor {
        width: 100%;
        flex-direction: row;
        gap: 30px;
        padding: 20px;
    }

    .course-card-instructor img {
        width: 100px;
        height: 110px;
        margin-bottom: 0;
    }
}

/* Table Scroll Wrapper */
.curriculum-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border-radius: 10px;
}

/* Lineup Table Level Cell Styles */
.lineup-table .level-header {
    background: #777 !important;
    font-size: 0.75rem;
    padding: 5px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.level-cell {
    border-left: 1px dotted #ccc;
    width: 35px;
    padding: 0 !important;
    background: #fff;
}

/* Level group separators */
.lineup-table td.level-cell:nth-child(2),
.lineup-table td.level-cell:nth-child(4),
.lineup-table td.level-cell:nth-child(6) {
    border-left: 1px solid #ccc;
}

.level-cell.active {
    background: #ddd;
}

/* Tighten Curriculum Table */
.curriculum-table th,
.curriculum-table td {
    padding: 5px 10px;
    /* Reduced vertical padding */
}

.exam-vertical {
    padding: 10px 5px;
    /* Reduced vertical padding */
    font-size: 0.85rem;
    line-height: 1.2;
}

.curriculum-table .term-label {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.curriculum-table .class-count {
    font-size: 0.75rem;
}

.instructor-img-wrapper,
.course-card-instructor {
    position: relative;
    background-color: #eee !important;
}

.instructor-img-wrapper::before {
    content: 'No Photo';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1;
}

/* In course cards, the image is at the top. We move the info to the bottom and center fallback. */
.course-card-instructor {
    justify-content: flex-end !important;
}

.course-card-instructor::before {
    content: 'No Photo';
    position: absolute;
    top: 110px;
    /* Center of the 180px image area */
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1;
}

.instructor-img-wrapper img,
.course-card-instructor img {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.instructor-img-wrapper .subject-tag {
    z-index: 3;
}

/* ==========================================================================
   Top Inquiry CTA Section
   ========================================================================== */
.top-inquiry-cta {
    padding: 80px 0;
    background-color: var(--color-white);
    text-align: center;
}

.cta-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 40px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.cta-btn {
    flex: 1;
    max-width: 320px;
    display: flex;
    align-items: center;
    /* Reverted to center alignment */
    justify-content: center;
    height: 70px;
    border-radius: 50px;
    /* Capsule shape */
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.15rem;
    /* Base size for 'を受けたい' */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-main-text {
    font-size: 1.8rem;
    /* Large size for main action */
    margin-right: 4px;
}

.cta-btn.btn-explanation {
    background-color: var(--color-lime);
    /* Lime green */
    color: var(--color-navy);
}

.cta-btn.btn-trial-cta {
    background-color: var(--color-navy);
    /* Navy */
}

.cta-btn.btn-request-cta {
    background-color: var(--color-sky-blue);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.cta-tel-area {
    padding-top: 10px;
    /* Adjusted padding after border removal */
    color: var(--color-navy);
}

.cta-tel-text {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: flex-end;
    /* Bottom alignment */
    justify-content: center;
    gap: 25px;
    /* Slightly wider gap between main elements */
    flex-wrap: wrap;
}

.cta-tel-label {
    padding-bottom: 6px;
    /* Fine-tuned for alignment with phone digits */
}

.cta-tel-group {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    /* Tighter gap between TEL. and number */
}

.cta-tel-prefix {
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 6px;
    /* Match label alignment */
}

.cta-tel-number {
    font-family: var(--font-en);
    font-size: 3.5rem;
    /* Further increased for impact */
    font-weight: 900;
    line-height: 1;
}

.cta-tel-time {
    padding-bottom: 6px;
    /* Match label alignment */
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .cta-btns {
        gap: 15px;
    }

    .cta-btn {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 100%;
    }

    .cta-tel-number {
        font-size: 2.2rem;
    }
}

/* SUPER Study Room Banner */
.super-study-room-banner {
    background: #fff;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    margin-top: 80px;
    position: relative;
    border: 1px solid #f0f0f0;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.banner-integrated-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.banner-badge {
    display: inline-block;
    background-color: var(--color-sky-blue);
    color: white;
    font-size: 0.9rem;
    padding: 4px 15px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.banner-badge.badge-free {
    background-color: var(--color-lime);
    color: var(--color-navy);
}

.banner-integrated-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-lime);
    border-radius: 2px;
}

.banner-top-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.banner-text-area {
    flex: 1.2;
}

.banner-catchphrase {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.banner-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0;
}

.banner-image-wrapper {
    flex: 0.8;
    background-color: #eee;
    aspect-ratio: 3 / 2;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.banner-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-right {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.pricing-table th {
    font-weight: 700;
    color: var(--color-navy);
}

.pricing-table .price {
    color: var(--color-sky-blue);
}

.banner-footer {
    text-align: center;
    margin-top: 50px;
}

.banner-download-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: #fff;
    padding: 18px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    min-width: 320px;
}

.banner-btn:hover {
    background: var(--color-sky-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .super-study-room-banner {
        padding: 40px;
    }

    .banner-top-layout {
        flex-direction: column;
        gap: 30px;
    }

    .banner-image-wrapper {
        width: 100%;
        max-width: 480px;
        aspect-ratio: 3 / 2;
    }

    .banner-download-btns {
        flex-direction: column;
        align-items: center;
    }

    .banner-btn {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .banner-integrated-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .banner-badges-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .super-study-room-banner {
        padding: 40px 20px;
    }
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.contact-hero {
    background-color: var(--color-navy);
}

.contact-hero .section-title-en {
    color: var(--color-sky-blue);
}

.contact-hero .section-title-jp,
.contact-hero .section-lead-text {
    color: var(--color-white);
}

.contact-form-wrapper {
    background: #fff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
}

.contact-form .form-group {
    margin-bottom: 30px;
}

.contact-form .form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-navy);
    font-size: 1rem;
}

.contact-form .required {
    background-color: #ff4d4d;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.contact-form .form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-jp);
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--color-sky-blue);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 147, 231, 0.1);
}

.contact-form .select-wrapper {
    position: relative;
}

.contact-form .select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-navy);
    pointer-events: none;
}

.contact-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 50px;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-privacy {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.form-privacy a {
    color: var(--color-sky-blue);
    font-weight: 700;
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 40px 20px;
        margin-top: -40px;
    }

    .contact-form .form-label {
        font-size: 0.95rem;
    }
}

/* About Section (New Design - Shared) */
.about-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
    overflow: hidden;
    /* Prevent horizontal scroll during slide */
}

.about-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 10px;
}

.about-carousel-track-container {
    overflow: hidden;
    position: relative;
}

.about-grid {
    display: flex;
    /* Changed from grid to flex for carousel */
    flex-wrap: nowrap;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.about-card {
    flex: 0 0 100%;
    /* Single card display */
    background: #fff;
    border-radius: 25px;
    padding: 60px 35px 50px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 300px;
    box-sizing: border-box;
    position: relative;
    /* Required for absolute numbering */
    overflow: hidden;
}

.about-card-number {
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 51, 102, 0.08);
    /* Slightly darker navy for better visibility */
    line-height: 1;
    z-index: 0;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

.about-icon-box {
    width: 90px;
    height: 90px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--color-navy);
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.about-card-catch {
    font-size: 1.2rem;
    color: var(--color-navy);
    font-weight: 800;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid var(--color-sky-blue);
    padding-bottom: 5px;
}

.about-card-title {
    font-size: 2.0rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-card-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    font-weight: 500;
}

/* Pagination Dots */
.about-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.about-carousel-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.about-carousel-indicator.active {
    background-color: var(--color-navy);
    transform: scale(1.2);
}


@media (max-width: 768px) {
    .about-grid {
        gap: 15px;
    }

    .about-card {
        flex: 0 0 100%;
        /* 1 card */
        padding: 40px 25px;
    }

    .about-card-title {
        font-size: 1.6rem;
    }

    .about-section {
        padding: 70px 0;
    }

    .about-carousel-container {
        margin-top: 40px;
    }
}

/* Carousel Navigation Arrows */
.about-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border: none;
    border-radius: 50%;
    color: var(--color-navy);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.about-carousel-btn:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.about-prev-btn {
    left: -25px;
}

.about-next-btn {
    right: -25px;
}

@media (max-width: 1300px) {
    .about-prev-btn {
        left: 0;
    }

    .about-next-btn {
        right: 0;
    }
}

@media (max-width: 768px) {
    .about-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Hamburger Menu - Hide by default (PC/Tablet) */
.hamburger-btn {
    display: none;
}

/* ==========================================================================
   Mobile Header Overrides
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 90px;
    }

    .header-inner {
        padding-top: 0;
        height: 100%;
        justify-content: center;
    }

    .header-top {
        height: auto;
        padding-top: 0;
        align-items: center;
    }

    /* Logo 2/3 of original 68x342 -> ~45x228 */
    .header-logo {
        height: 45px;
        width: 228px;
    }

    /* Hide contact info and buttons */
    .contact-info,
    .header-actions {
        display: none !important;
    }

    /* Ensure header-top can layout hamburger properly */
    .header-contact-area {
        align-items: center;
    }

    /* Hamburger Menu Styles */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 35px;
        height: 35px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
        margin-left: 15px;
    }

    .hamburger-btn span {
        width: 100%;
        height: 3px;
        background: var(--color-navy);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    /* Hamburger Animation to X */
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Adjust header bottom for mobile overlay */
    .header-bottom {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.95);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }

    .header-bottom.active {
        transform: translateX(0);
    }

    .header-nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav-group-left,
    .nav-group-right {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .nav-item {
        width: 100%;
        padding: 0 !important;
    }

    .nav-item:not(:last-child)::after {
        display: none;
        /* Hide vertical separators */
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 10px;
        display: block;
        text-align: center;
    }

    body.menu-open {
        overflow: hidden;
        /* Prevent background scrolling */
    }
}