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

:root {
    --primary: #e60012;
    --primary-dark: #cc0010;
    --secondary: #1a1a1a;
    --light: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333333;
    --text: #333333;
}

body {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
    overflow-x: hidden;
}

/* Redesigned Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-links li {
    margin: 0 5px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--light);
}

.nav-link:hover::after {
    width: 70%;
}

.highlight-btn {
    background-color: var(--primary);
    color: var(--light);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    margin-left: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.highlight-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 0, 18, 0.3);
}

.highlight-btn::after {
    display: none;
}

/* Navbar scroll animation */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 0.8rem 5%;
}

.navbar-scrolled .nav-link {
    color: var(--text);
}

.navbar-scrolled .nav-link:hover {
    color: var(--primary);
}

.navbar-scrolled .nav-toggle span {
    background-color: var(--text);
}

/* Creative Japanese-Inspired Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Fixed Animation Styles */
.lantern-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/temple-5476742_1920.jpg') center/cover;
    filter: brightness(0.7) saturate(1.2);
    z-index: -1;
}

.lantern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.3));
    z-index: -1;
}

/* Fixed Sakura Animations */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.sakura {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath fill='%23e60012' d='M40,5.6c-5.2,14.8-20.2,12.2-20.2,29.8c0,16.6,14.4,12.5,20.2,26.1'/%3E%3Cpath fill='%23e60012' d='M40,5.6c5.2,14.8,20.2,12.2,20.2,29.8c0,16.6-14.4,12.5-20.2,26.1'/%3E%3Cpath fill='%23e60012' d='M61.5,40c-14.8-5.2-12.2-20.2-29.8-20.2c-16.6,0-12.5,14.4-26.1,20.2'/%3E%3Cpath fill='%23e60012' d='M61.5,40c-14.8,5.2-12.2,20.2-29.8,20.2c-16.6,0-12.5-14.4-26.1-20.2'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.7;
    z-index: 0;
    animation: sakuraFloat 15s linear infinite;
}

.sakura:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.sakura:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.sakura:nth-child(3) {
    top: 30%;
    left: 20%;
    animation-duration: 8s;
    animation-delay: 2s;
}

.sakura:nth-child(4) {
    top: 40%;
    left: 70%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.sakura:nth-child(5) {
    top: 50%;
    left: 30%;
    animation-duration: 11s;
    animation-delay: 4s;
}

.sakura:nth-child(6) {
    top: 60%;
    left: 80%;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.sakura:nth-child(7) {
    top: 70%;
    left: 40%;
    animation-duration: 13s;
    animation-delay: 1.5s;
}

.sakura:nth-child(8) {
    top: 80%;
    left: 10%;
    animation-duration: 10s;
    animation-delay: 2.5s;
}

.sakura:nth-child(9) {
    top: 15%;
    left: 50%;
    animation-duration: 14s;
    animation-delay: 3.5s;
}

.sakura:nth-child(10) {
    top: 25%;
    left: 90%;
    animation-duration: 9s;
    animation-delay: 0.8s;
}

.sakura:nth-child(11) {
    top: 45%;
    left: 5%;
    animation-duration: 12s;
    animation-delay: 1.8s;
}

.sakura:nth-child(12) {
    top: 65%;
    left: 60%;
    animation-duration: 11s;
    animation-delay: 2.8s;
}

@keyframes sakuraFloat {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(100px) translateY(300px) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Content Layout */
.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    height: 100vh;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Left Panel - Text Content */
.left-panel {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-right: 2rem;
}

.vertical-text {
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: rgba(255,255,255,0.2);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    padding: 1rem 0;
}

.main-heading {
    position: relative;
}

.main-heading h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #fff;
}

.heading-line {
    display: block;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.heading-line.accent {
    color: #e60012;
    font-size: 6rem;
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 400px;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 1.5rem;
    height: 1px;
    background: #e60012;
}

/* Right Panel - Card Showcase */
.right-panel {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.card-showcase {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.card {
    position: relative;
    width: 320px;
    height: 420px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.card.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.card:not(.active) {
    transform: scale(0.8);
    opacity: 0.5;
    filter: blur(2px);
}

.card:hover {
    transform: scale(1.05);
}

.card:not(.active):hover {
    opacity: 0.8;
    filter: blur(0px);
}

.card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.card:hover .card-front img {
    transform: scale(1.1);
    opacity: 0.6;
}

.card-label {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

.card-learn-more {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(230, 0, 18, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.card:hover .card-learn-more {
    opacity: 1;
    transform: translateY(0);
}

.card-controls {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    z-index: 20;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-dot.active {
    width: 30px;
    border-radius: 10px;
    background-color: rgba(230, 0, 18, 0.8);
}

/* Page Indicator */
.page-indicator {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    z-index: 10;
}

.current-page {
    font-size: 2.5rem;
    transition: opacity 0.3s ease;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.total-pages {
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: #e60012;
    animation: scrollDown 2s ease-in-out infinite;
}

/* Animation Keyframes */
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(90deg);
    }
    50% {
        transform: translate(20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(10px, 30px) rotate(270deg);
    }
    100% {
        transform: translate(0, 40px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes scrollDown {
    0% {
        top: -30%;
    }
    100% {
        top: 100%;
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .heading-line {
        font-size: 4rem;
    }
    
    .heading-line.accent {
        font-size: 4.5rem;
    }
    
    .card {
        width: 250px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        justify-content: center;
        padding: 6rem 2rem 2rem;
    }
    
    .left-panel, .right-panel {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .left-panel {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .vertical-text {
        display: none;
    }
    
    .card-showcase {
        height: 400px;
    }
    
    .card {
        width: 220px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .heading-line {
        font-size: 3rem;
    }
    
    .heading-line.accent {
        font-size: 3.5rem;
    }
    
    .card {
        width: 200px;
        height: 300px;
    }
    
    .card-label {
        bottom: 1.5rem;
        left: 1.5rem;
        font-size: 1.2rem;
    }
    
    .page-indicator {
        bottom: 2rem;
        right: 2rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
        left: 2rem;
    }
}

@media (max-width: 576px) {
    .card {
        width: 180px;
        height: 270px;
    }
    
    .card-label {
        bottom: 1.5rem;
        left: 1.5rem;
        font-size: 1.2rem;
    }
}

/* Services Section - Vertical Split Concept */
.services {
    position: relative;
    padding: 2rem 0 0;
    background-color: #f8f8f8;
    overflow: hidden;
}

.section-intro {
    text-align: center;
    padding: 2rem 5%;
    margin-bottom: 2rem;
}

.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.japanese-character {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    color: rgba(230, 0, 18, 0.1);
    margin-right: 1rem;
    font-weight: 700;
}

.english-text {
    position: relative;
    z-index: 1;
}

.english-text::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #e60012;
    bottom: -10px;
    left: 0;
    transform-origin: left;
    animation: lineExtend 1.5s ease forwards;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* Split Container - Vertical */
.services-split-container {
    display: flex;
    flex-direction: row;
    height: 80vh;
    min-height: 600px;
}

/* Service Split Panel - Vertical */
.service-split {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2rem;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.service-split:hover {
    flex: 2;
    z-index: 10;
}

/* Service Background */
.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease, transform 8s ease;
    transform: scale(1.1);
}

.service-split:hover .service-bg {
    opacity: 1;
    transform: scale(1);
}

/* Service Overlay */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    opacity: 0;
    transition: opacity 0.7s ease;
}

.service-split:hover .service-overlay {
    opacity: 1;
}

/* Service Content */
.service-content {
    position: relative;
    z-index: 2;
    color: #333;
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s ease;
}

.service-split:hover .service-content {
    color: white;
    transform: translateY(-15px);
}

/* Service Icon */
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(230, 0, 18, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon i {
    font-size: 1.5rem;
    color: #e60012;
    transition: all 0.5s ease;
}

.service-split:hover .service-icon {
    background: #e60012;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 0, 18, 0.3);
}

.service-split:hover .service-icon i {
    color: white;
    transform: scale(1.2);
}

/* Service Content */
.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
    position: relative;
    display: inline-block;
}

.service-split:hover .service-content h3 {
    transform: scale(1.1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e60012;
    transform: translateX(-50%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-split:hover .service-content h3::after {
    width: 100%;
}

/* Service Details */
.service-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(20px);
}

.service-split:hover .service-details {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.service-details p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transition: all 0.5s ease;
    transition-delay: 0.1s;
}

/* Service Features */
.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-split:hover .service-features li {
    opacity: 1;
    transform: translateX(0);
}

.service-split:hover .service-features li:nth-child(1) { transition-delay: 0.2s; }
.service-split:hover .service-features li:nth-child(2) { transition-delay: 0.3s; }
.service-split:hover .service-features li:nth-child(3) { transition-delay: 0.4s; }
.service-split:hover .service-features li:nth-child(4) { transition-delay: 0.5s; }

.service-features i {
    color: #e60012;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Service Button */
.service-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #e60012;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(20px);
    opacity: 0;
}

.service-split:hover .service-button {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.4s;
}

.service-button:hover {
    background: #cc0010;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Separator Lines */
.service-split::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.service-split:last-child::after {
    display: none;
}

/* Add pulse animation for icon */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.service-icon.pulse {
    animation: pulse 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animation & Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-split.fade-in {
    opacity: 0;
}

.service-split.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.service-split:nth-child(1).visible { animation-delay: 0.1s; }
.service-split:nth-child(2).visible { animation-delay: 0.2s; }
.service-split:nth-child(3).visible { animation-delay: 0.3s; }
.service-split:nth-child(4).visible { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 992px) {
    .services-split-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .service-split {
        flex: none;
        height: 250px;
        min-height: 250px;
        padding: 2rem;
    }
    
    .service-split:hover {
        flex: none;
        height: 400px;
        min-height: 400px;
    }
    
    .service-split.active {
        height: 400px;
        min-height: 400px;
    }
    
    .service-split::after {
        width: 100%;
        height: 1px;
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
    }
    
    .service-split.active .service-bg {
        opacity: 1;
    }
    
    .service-split.active .service-overlay {
        opacity: 1;
    }
    
    .service-split.active .service-content {
        color: white;
    }
    
    .service-split.active .service-details {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }
    
    .service-split.active .service-icon {
        background: #e60012;
    }
    
    .service-split.active .service-icon i {
        color: white;
    }
    
    .service-split.active .service-button {
        opacity: 1;
        transform: translateY(0);
    }
    
    .service-split.active .service-features li {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .service-split {
        height: 200px;
        min-height: 200px;
    }
    
    .service-split:hover,
    .service-split.active {
        height: 350px;
        min-height: 350px;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
    
    .service-details p {
        font-size: 0.9rem;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
}

/* Courses Section */
.courses {
    padding: 5rem 5%;
}

.courses h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card h3, .course-card p {
    padding: 1rem;
}

/* Student Visa Locations Section */
.visa-locations {
    position: relative;
    padding: 7rem 0;
    background-color: #f8f8f8;
    overflow: hidden;
}

.location-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.japan-map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50,10 C60,15 70,25 75,35 C80,45 85,60 80,70 C75,80 65,85 55,90 C45,95 30,90 20,80 C10,70 5,55 10,45 C15,35 25,20 35,15 C45,10 50,10 50,10 Z" fill="none" stroke="%23e60012" stroke-width="0.2" stroke-opacity="0.1"/></svg>');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
    animation: mapFloat 15s ease-in-out infinite;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.location-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s ease, 
                opacity 0.8s ease;
    position: relative;
    z-index: 1;
}

.location-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 20px 40px rgba(230, 0, 18, 0.15);
    z-index: 10;
}

.location-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.1);
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

.location-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.location-card:hover .location-stats {
    transform: translateY(0);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.location-info {
    padding: 1.5rem;
}

.location-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.location-name h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.prefecture {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #e60012;
    opacity: 0.7;
}

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

.location-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #e60012;
    font-weight: 600;
    position: relative;
}

.location-btn span {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.location-btn i {
    transition: transform 0.3s ease;
}

.location-btn::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e60012;
    transition: width 0.3s ease;
}

.location-btn:hover span {
    transform: translateX(-5px);
}

.location-btn:hover i {
    transform: translateX(5px);
}

.location-btn:hover::after {
    width: 100%;
}

.location-marker {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #e60012;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

.location-card:hover .location-marker {
    transform: scale(1.2) translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .location-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .locations-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
}

.submit-button {
    background-color: #e60012;
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #cc0010;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #000000;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Posts Section - Simple Row Layout */
.posts {
    padding: 6rem 0;
    position: relative;
    background: #f8f8f8;
    overflow: hidden;
}

.posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%23e60012" opacity="0.03"/></svg>');
    background-size: 20px 20px;
    pointer-events: none;
}

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

/* Simple Row Layout */
.posts-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-item {
    flex: 1;
    max-width: 400px;
    height: 350px;
    transition: transform 0.3s ease;
}

.post-item:hover {
    transform: translateY(-10px);
}

/* Image Frame Design */
.image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-radius: 3px;
    cursor: pointer;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-item:hover .image-wrapper img {
    transform: scale(1.05);
}

/* Japanese-inspired corner frame details */
.frame-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: #e60012;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.top-left {
    top: 10px;
    left: 10px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.top-right {
    top: 10px;
    right: 10px;
    border-top: 2px solid;
    border-right: 2px solid;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.post-item:hover .frame-corner {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .posts-row {
        flex-wrap: wrap;
        gap: 3rem;
    }
    
    .post-item {
        flex: 0 0 45%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .post-item {
        flex: 0 0 100%;
        max-width: 500px;
        height: 350px;
    }
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.about-content {
    padding: 2rem;
}

.about-content h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Section animations */
.services, .courses, .posts, .locations, .about, .contact {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover effects */
.service-card, .course-card, .post-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-card:hover, .post-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Animation Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes lineWidth {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
        transform: translateY(-10px) rotate(10deg);
    }
    20% {
        transform: translateY(-20px) rotate(20deg);
    }
    30% {
        transform: translateY(-30px) rotate(30deg);
    }
    40% {
        transform: translateY(-40px) rotate(40deg);
    }
    50% {
        transform: translateY(-50px) rotate(50deg);
    }
    60% {
        transform: translateY(-60px) rotate(60deg);
    }
    70% {
        transform: translateY(-70px) rotate(70deg);
    }
    80% {
        transform: translateY(-80px) rotate(80deg);
    }
    90% {
        transform: translateY(-90px) rotate(90deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(100deg);
        opacity: 0;
    }
}

/* Update Text Styles */
.animated-heading {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.text-reveal, 
.text-reveal-delayed {
    position: relative;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--primary);
    font-size: 6rem;
    letter-spacing: 4px;
}

.subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-top: 1rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    max-width: 400px;
}

/* Update card animation */
@keyframes cardFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-card {
    animation: cardFloat 3s ease-in-out infinite;
}

.hero-card:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Japanese Language Programs Section - Creative Design */
.courses-section {
    position: relative;
    padding: 8rem 0;
    background: #f9f7f4;
    overflow: hidden;
}

/* Background Paper Texture */
.courses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
}

/* Sakura Petals Animation */
.sakura-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.sakura-petal {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 0C7 3 1 7 0 10C1 13 7 17 10 20C13 17 19 13 20 10C19 7 13 3 10 0Z" fill="%23ffc0cb" opacity="0.7"/></svg>');
    width: 20px;
    height: 20px;
    opacity: 0;
    animation: sakuraFloat 15s linear infinite;
}

.sakura-petal:nth-child(1) { top: 5%; left: 10%; animation-delay: 0s; }
.sakura-petal:nth-child(2) { top: 15%; left: 30%; animation-delay: 2s; }
.sakura-petal:nth-child(3) { top: 25%; left: 15%; animation-delay: 4s; }
.sakura-petal:nth-child(4) { top: 10%; left: 70%; animation-delay: 6s; }
.sakura-petal:nth-child(5) { top: 65%; left: 75%; animation-delay: 8s; }
.sakura-petal:nth-child(6) { top: 50%; left: 85%; animation-delay: 10s; }
.sakura-petal:nth-child(7) { top: 35%; left: 60%; animation-delay: 3s; }
.sakura-petal:nth-child(8) { top: 80%; left: 25%; animation-delay: 5s; }
.sakura-petal:nth-child(9) { top: 70%; left: 40%; animation-delay: 7s; }
.sakura-petal:nth-child(10) { top: 20%; left: 90%; animation-delay: 9s; }
.sakura-petal:nth-child(11) { top: 90%; left: 10%; animation-delay: 11s; }
.sakura-petal:nth-child(12) { top: 45%; left: 5%; animation-delay: 13s; }

@keyframes sakuraFloat {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0.6);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate(100px, 100vh) rotate(720deg) scale(0.9);
    }
}

/* Animated Kanji Background Characters */
.kanji-characters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.kanji {
    position: absolute;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20rem;
    opacity: 0.03;
    color: #000;
    transform: translateY(20px);
    animation: kanjiFloat 15s ease-in-out infinite;
}

.kanji:nth-child(1) { top: 5%; left: 10%; animation-delay: 0s; }
.kanji:nth-child(2) { top: 50%; left: 80%; animation-delay: 3s; }
.kanji:nth-child(3) { top: 70%; left: 20%; animation-delay: 6s; }
.kanji:nth-child(4) { top: 20%; left: 70%; animation-delay: 9s; }
.kanji:nth-child(5) { top: 80%; left: 50%; animation-delay: 12s; }

@keyframes kanjiFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(30px);
    }
}

/* Section Header Styling */
.courses-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.japanese-character {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.5rem;
    color: rgba(230, 0, 18, 0.15);
    margin-right: 1rem;
    font-weight: 700;
}

.english-text {
    position: relative;
    z-index: 1;
}

.english-text::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #e60012;
    bottom: -10px;
    left: 0;
    transform-origin: left;
    animation: lineExtend 1.5s ease forwards;
}

@keyframes lineExtend {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Course Cards Container */
.courses-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}

/* Course Item Styling */
.course-item {
    perspective: 1000px;
    height: 450px;
    margin-bottom: 2rem;
}

.course-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.course-item:hover .course-inner {
    transform: rotateY(180deg);
}

.course-front, .course-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.course-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.course-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.ink-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

.course-front h3 {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}

.course-item:hover .course-front h3 {
    transform: translateY(-10px);
}

.course-back {
    background: #fff;
    transform: rotateY(180deg) rotateZ(180deg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.course-back .course-content {
    transform: rotateZ(180deg);
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.course-item:hover .course-back .course-content {
    opacity: 1;
}

.course-content {
    text-align: center;
    max-width: 300px;
}

.course-back h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.course-back h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #e60012;
}

.course-back p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-levels {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.course-levels span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e60012;
    padding: 0.3rem 0.8rem;
    border: 1px solid #e60012;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.course-levels span:hover {
    background: #e60012;
    color: #fff;
}

.course-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.course-features span {
    font-size: 0.9rem;
    color: #555;
}

.course-features span i {
    color: #e60012;
    margin-right: 0.5rem;
}

.learn-more-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #e60012;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
}

.learn-more-btn:hover {
    background: #c50010;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 0, 18, 0.3);
}

.learn-more-btn:hover::before {
    left: 100%;
}

/* Ink Brush Stroke Animation */
.ink-brush-stroke {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg width="1440" height="100" viewBox="0 0 1440 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 C200,0 400,100 600,50 C800,0 1000,100 1200,50 C1400,0 1440,50 1440,50 L1440,100 L0,100 Z" fill="%23f9f7f4" /></svg>');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform-origin: center;
    animation: inkWave 15s ease-in-out infinite;
}

@keyframes inkWave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.2);
    }
}

/* Responsive Design */
@media (max-width: 1100px) {
    .course-item {
        flex: 0 0 calc(50% - 2rem);
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .course-item {
        flex: 0 0 100%;
        max-width: 450px;
    }
    
    .kanji {
        font-size: 12rem;
    }
    
    .courses-section {
        padding: 6rem 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .japanese-character {
        font-size: 2.5rem;
    }
    
    .course-inner {
        height: 420px;
    }
    
    .course-features {
        grid-template-columns: 1fr;
    }
}

/* Japanese Course Cards - Text in Japanese */
.jp-title {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    transform: rotate(-90deg) translateY(100%);
    transform-origin: bottom right;
    transition: all 0.5s ease;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.course-item:hover .jp-title {
    color: rgba(255, 255, 255, 0.3);
    transform: rotate(-90deg) translateY(50%);
}

.jp-subtitle {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    color: #e60012;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Updated Japanese text styling */
.jp-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.jp-text {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2rem;
    color: #e60012;
    margin-bottom: 0.5rem;
    font-weight: 700;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
}

.course-item:hover .jp-text {
    transform: translateY(0);
}

.jp-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.course-item:hover .jp-header h3 {
    transform: translateY(0);
}

/* Enhanced section intro styling */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.section-description {
    text-align: left;
    color: #555;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border-left: 3px solid #e60012;
}

.section-description p {
    margin-bottom: 1rem;
}

.section-description p:last-child {
    margin-bottom: 0;
}

/* Add floating cherry blossoms in background */
.visa-locations::before,
.visa-locations::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
}

/* .visa-locations::before {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="5" fill="%23e60012"/><circle cx="20" cy="20" r="3" fill="%23e60012"/><circle cx="80" cy="30" r="4" fill="%23e60012"/><circle cx="15" cy="70" r="3.5" fill="%23e60012"/><circle cx="85" cy="75" r="2.5" fill="%23e60012"/><circle cx="70" cy="10" r="3" fill="%23e60012"/><circle cx="30" cy="85" r="4" fill="%23e60012"/></svg>');
    background-size: 300px;
    animation: sakuraFloat 60s linear infinite;
}

.visa-locations::after {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50,40 L55,50 L65,50 L57,57 L60,67 L50,62 L40,67 L43,57 L35,50 L45,50 Z" fill="%23e60012" fill-opacity="0.7"/><path d="M20,20 L23,26 L30,26 L24,30 L27,36 L20,32 L13,36 L16,30 L10,26 L17,26 Z" fill="%23e60012" fill-opacity="0.5"/><path d="M80,70 L83,76 L90,76 L84,80 L87,86 L80,82 L73,86 L76,80 L70,76 L77,76 Z" fill="%23e60012" fill-opacity="0.6"/></svg>');
    background-size: 200px;
    animation: sakuraFloat 45s linear infinite reverse;
} */

/* Make location cards visible by default on mobile, but animate on desktop */
@media (max-width: 768px) {
    .location-card {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Animation keyframes */
@keyframes mapFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes sakuraFloat {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Fix for location cards to ensure they stay visible */
.location-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Enhance hover effects on location cards */
.location-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s ease, 
                opacity 0.8s ease;
}

.location-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 20px 40px rgba(230, 0, 18, 0.15);
    z-index: 10;
}

/* Creative About Us Section - Alternating Layout */
.about-section {
    padding: 7rem 0;
    background-color: #fcfafa;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544V0h.284zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97 9.9 46.386l-9.9-9.9v-2.828zm0 5.657L8.485 47.8 7.07 49.212 0 42.143v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.413L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.344 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V0h-.284zM60 5.373L34.544 30.828l1.414 1.415L60 8.2V5.374zm0 5.656L37.373 33.656l1.414 1.414L60 13.86v-2.83zm0 5.656l-19.8 19.8 1.415 1.413L60 19.514v-2.83zm0 5.657l-16.97 16.97 1.414 1.415L60 25.172v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.415 1.415 9.9-9.9v-2.828zm0 5.657L51.515 47.8l1.414 1.413 7.07-7.07v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.413L60 53.456v-2.83zm0 5.657L39.9 16.385l1.414-1.414L30 3.658 18.686 14.97l1.415 1.415 9.9-9.9 9.9 9.9zm-2.83 2.828l1.415-1.414L30 9.313 21.515 17.8l1.414 1.413L30 11.8l7.07 7.414v-.002z' fill='%23e60012' fill-rule='evenodd' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.2;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Alternating Row Layout */
.about-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 6rem;
    position: relative;
}

.about-row.reversed {
    flex-direction: row-reverse;
}

.about-image-container {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    transition: all 0.6s ease;
}

.about-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(230, 0, 18, 0.15);
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

/* Parallax effect on scroll */
.parallax-image {
    transform: translateZ(0);
    will-change: transform;
}

/* Floating Japanese Character */
.floating-kanji {
    position: absolute;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 8rem;
    color: rgba(230, 0, 18, 0.1);
    z-index: 1;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.about-image-container.left .floating-kanji {
    top: -30px;
    right: -30px;
}

.about-image-container.right .floating-kanji {
    bottom: -30px;
    left: -30px;
}

/* Accent elements */
.image-accent {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 15px solid rgba(230, 0, 18, 0.1);
    z-index: -1;
}

.about-image-container.left .image-accent {
    bottom: -30px;
    left: -30px;
    border-radius: 0 0 0 50px;
}

.about-image-container.right .image-accent {
    top: -30px;
    right: -30px;
    border-radius: 50px 0 0 0;
}

.image-accent.reversed {
    border-radius: 0 50px 0 0;
}

.about-text-container {
    flex: 0 0 45%;
    padding: 2rem;
}

.about-text-container h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.red-line {
    width: 100px;
    height: 3px;
    background-color: #e60012;
    margin-bottom: 2rem;
}

.about-text-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible, .slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.pop-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pop-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse Button */
.pulse-btn {
    animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 0, 18, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(230, 0, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 18, 0);
    }
}

/* Counter Animation */
.count-up .stat-number {
    display: inline-block;
    position: relative;
}

.count-up .stat-number::after {
    content: attr(data-symbol);
    position: relative;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-row {
        flex-direction: column;
        margin-bottom: 4rem;
    }
    
    .about-row.reversed {
        flex-direction: column;
    }
    
    .about-image-container, .about-text-container {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }
    
    .about-image-container {
        height: 350px;
    }
    
    .floating-kanji {
        font-size: 6rem;
    }
}

/* Enhanced section header styling */
.section-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.japanese-character {
    position: absolute;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 6rem;
    color: rgba(230, 0, 18, 0.08);
    top: -1.5rem;
    left: -3rem;
    z-index: -1;
    transform: rotate(-5deg);
}

.english-text {
    position: relative;
    font-weight: 700;
    z-index: 1;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced floating kanji styling */
.floating-kanji {
    font-size: 10rem;
    opacity: 0.08;
    animation: float-kanji 8s ease-in-out infinite;
}

@keyframes float-kanji {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
}

/* Enhanced story sections */
.about-row {
    margin-bottom: 7rem;
}

.about-text-container h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.accent-text {
    position: relative;
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(230, 0, 18, 0.1);
    z-index: -1;
}

.red-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #e60012, rgba(230, 0, 18, 0.5));
    margin-bottom: 2rem;
    border-radius: 2px;
}

.about-text-container p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

/* Enhanced philosophy items */
.about-philosophy {
    margin-bottom: 5rem;
}

.about-philosophy h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.philosophy-item {
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.philosophy-icon {
    font-size: 2.5rem;
    color: #e60012;
    margin-bottom: 1.5rem;
}

.philosophy-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.philosophy-item::before {
    height: 0;
    transition: height 0.5s ease;
}

.philosophy-item:hover::before {
    height: 100%;
}

/* Enhanced stats section */
.about-stats {
    margin: 6rem auto;
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #e60012, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
}

/* Enhanced CTA */
.cta-container {
    text-align: center;
    margin-top: 4rem;
}

.about-cta {
    display: inline-block;
    background: linear-gradient(45deg, #e60012, #ff4136);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(230, 0, 18, 0.3);
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}

.about-cta:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(230, 0, 18, 0.4);
}

.about-cta:hover::before {
    left: 100%;
}

/* Enhanced responsive adjustments */
@media (max-width: 992px) {
    .japanese-character {
        font-size: 5rem;
        top: -1rem;
        left: -2rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .floating-kanji {
        font-size: 7rem;
    }
    
    .about-row {
        margin-bottom: 5rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .japanese-character {
        font-size: 4rem;
        top: -0.8rem;
        left: -1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text-container h3 {
        font-size: 2rem;
    }
    
    .about-philosophy h3 {
        font-size: 2rem;
    }
    
    .philosophy-item {
        padding: 2rem;
    }
    
    .about-stats {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .about-cta {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 90%;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Philosophy Section - 2x2 Grid Layout */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.philosophy-item {
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.philosophy-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.philosophy-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.philosophy-item:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.philosophy-item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

/* Ensure responsive layout maintains 2x2 on tablets and becomes 1x4 on mobile */
@media (max-width: 992px) {
    .philosophy-grid {
        gap: 1.5rem;
    }
    
    .philosophy-item {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }
    
    .philosophy-item:nth-child(1),
    .philosophy-item:nth-child(2),
    .philosophy-item:nth-child(3),
    .philosophy-item:nth-child(4) {
        grid-column: 1;
    }
    
    .philosophy-item:nth-child(1) {
        grid-row: 1;
    }
    
    .philosophy-item:nth-child(2) {
        grid-row: 2;
    }
    
    .philosophy-item:nth-child(3) {
        grid-row: 3;
    }
    
    .philosophy-item:nth-child(4) {
        grid-row: 4;
    }
}

/* Japanese Language Programs Styling */
.language-programs {
    padding: 8rem 5%;
    background-color: var(--gray);
    position: relative;
    overflow: hidden;
}

.language-programs::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: url('../images/japanese-pattern.png');
    background-size: 200px;
    opacity: 0.03;
    z-index: 0;
}

.programs-container {
    max-width: 1200px;
    margin: 3rem auto 4rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Added more bottom padding */
    padding-bottom: 2rem;
}

.programs-nav {
    display: flex;
    background: linear-gradient(to right, #f5f5f5, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.program-tab {
    flex: 1;
    padding: 1.5rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

.program-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.program-tab.active {
    color: var(--primary);
    background-color: rgba(230, 0, 18, 0.03);
}

.program-tab.active::after {
    transform: scaleX(1);
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.jp-level {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

.programs-content-wrapper {
    position: relative;
    /* Increased min-height to accommodate all content */
    min-height: 600px;
}

.program-content {
    display: none;
    padding: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    /* Added more bottom padding */
    padding-bottom: 2rem;
}

.program-content.active {
    display: flex;
    opacity: 1;
    z-index: 2;
}

.program-details {
    flex: 0 0 60%;
    padding: 3rem;
    /* Added more bottom padding */
    padding-bottom: 4rem;
}

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

.program-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.jp-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    opacity: 0.6;
    margin-left: 0.5rem;
}

.program-duration {
    background: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
}

.program-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    background: #f9f9f9;
    padding: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: rgba(230, 0, 18, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    flex-shrink: 0;
}

.highlight-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.highlight-info p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

.program-image-container {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    /* Ensure minimum height */
    min-height: 500px;
}

.program-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.program-image-container:hover img {
    transform: scale(1.05);
}

.program-badge {
    position: absolute;
    top: 20px;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
}

.programs-cta {
    text-align: center;
    margin-top: 3rem;
}

.program-enroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(230, 0, 18, 0.2);
}

.program-enroll-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(230, 0, 18, 0.3);
}

.program-enroll-btn i {
    transition: transform 0.3s ease;
}

.program-enroll-btn:hover i {
    transform: translateX(5px);
}

.program-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .program-content {
        flex-direction: column;
        position: relative;
        height: auto;
        /* Extra spacing for mobile */
        padding-bottom: 3rem;
    }
    
    .program-details {
        flex: 0 0 100%;
        padding: 2rem;
        /* Added more bottom spacing */
        padding-bottom: 3rem;
    }
    
    .program-image-container {
        flex: 0 0 300px;
        /* Ensure proper display on mobile */
        min-height: 300px;
    }
    
    .program-tab {
        padding: 1rem 0.5rem;
    }
    
    .program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .program-header h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .program-tab {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .programs-nav {
        flex-wrap: wrap;
    }
    
    .program-tab {
        flex: 0 0 50%;
    }
    
    .program-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .program-tab {
        flex: 0 0 100%;
    }
    
    .program-details {
        padding: 1.5rem;
    }
    
    .program-header h3 {
        font-size: 1.5rem;
    }
    
    .jp-title {
        font-size: 1rem;
        display: block;
        margin-left: 0;
    }
    
    .program-enroll-btn {
        width: 90%;
        justify-content: center;
    }
}