:root {
    /* Colors */
    --primary: #912e31;
    --primary-dark: #7a2629;
    --accent: #e62129;
    --bg-body: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-card: #ffffff;
    --bg-dark-section: #1a1a1a;
    --text-main: #222222;
    --text-muted: #666666;
    --text-light: #f5f5f5;
    --text-light-muted: #cccccc;
    --border: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 30px rgba(145, 46, 49, 0.15);

    /* Layout */
    --container-width: 1200px;
    --nav-height: 80px;
    --section-padding: 100px 0;
    --grid-gap: 30px;
    --card-padding: 30px;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;

    /* Animations */
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-base: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-slow: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Dark Mode Variables */
.dark-mode {
    --bg-body: #111111;
    --bg-alt: #161616;
    --bg-card: #1c1c1c;
    --text-main: #f5f5f5;
    --text-muted: #aaaaaa;
    --border: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 30px rgba(230, 33, 41, 0.2);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-leaf {
    width: 120px;
    height: 120px;
    background-image: url("../assets/images/fav.png");
    background-size: contain;
    background-repeat: no-repeat;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    overflow-x: hidden;
}

body[lang="ja"] {
    font-family: var(--font-jp);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: var(--section-padding);
}

.section.theme-bg-alt {
    background-color: var(--bg-alt);
}

.section.theme-bg-dark {
    background-color: var(--bg-dark-section);
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.text-light {
    color: var(--text-light) !important;
}

.text-light-muted {
    color: var(--text-light-muted) !important;
}

.content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Spacing Utilities */
.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.p-4 {
    padding: 1.5rem;
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(145, 46, 49, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-body);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.theme-bg-dark .btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.theme-bg-dark .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(25deg);
    transition: all var(--transition-slow);
}

.shine-effect:hover::after {
    left: 130%;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-fast);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    height: 70px;
}

.dark-mode .navbar.scrolled {
    background-color: rgba(17, 17, 17, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-nav) {
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
    padding-bottom: 5px;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:not(.btn-nav):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a i {
    margin-right: 5px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

#themeToggle,
#langToggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

#themeToggle:hover,
#langToggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.icon-sun {
    display: none;
}

.dark-mode .icon-sun {
    display: block;
}

.dark-mode .icon-moon {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-body);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: var(--transition-base);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
}

.mobile-menu-footer {
    margin-top: auto;
    display: flex;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.mobile-theme-btn,
.mobile-lang-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(145, 46, 49, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -2;
}

.dark-mode .hero-bg-overlay {
    background: linear-gradient(135deg, rgba(145, 46, 49, 0.1) 0%, rgba(17, 17, 17, 0) 100%);
}

.leaves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.leaf {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url("../assets/images/fav.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: float 10s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
    }

    25% {
        transform: translateY(25vh) rotate(90deg) translateX(20px);
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
    }

    75% {
        transform: translateY(75vh) rotate(270deg) translateX(20px);
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(-20px);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(145, 46, 49, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(145, 46, 49, 0.2);
    letter-spacing: 1px;
}

.hero-badge i {
    margin-right: 8px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-subtitle i {
    margin-right: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition-fast);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Philosophy Section */
.philosophy-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.philosophy-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.philosophy-list i {
    color: var(--primary);
    font-size: 1.2rem;
    background: rgba(145, 46, 49, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.philosophy-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card-modern {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.course-image-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-image-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.course-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2/1;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-image-card:hover .course-img {
    transform: scale(1.08);
}

.course-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(145, 46, 49, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.course-level-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(145, 46, 49, 0.4);
    z-index: 2;
    letter-spacing: 1px;
}

.course-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
}

.course-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 25px;
    margin: 10px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.meta-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
}

/* Schedule Note */
.schedule-note {
    background: rgba(145, 46, 49, 0.05);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(145, 46, 49, 0.2);
    margin-top: 40px;
    text-align: center;
}

.schedule-note p {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}

.schedule-note i {
    margin-right: 8px;
}

/* Advantage Cards */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.advantage-card p {
    color: var(--text-muted);
}

/* Feature Image Cards (Marquee) */
.features-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.features-grid {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee 30s linear infinite;
    padding-left: 30px;
}

.features-grid:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

.feature-image-card {
    width: 300px;
    /* Fixed width for marquee cards */
    flex-shrink: 0;
    opacity: 1 !important;
    transform: none !important;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    /* Set an explicit height to ensure consistent card sizes in the flex row */
    height: 380px;
}

.feature-image-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-img-container {
    width: 100%;
    aspect-ratio: 2/1;
    overflow: hidden;
    position: relative;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.feature-image-card:hover .feature-img {
    transform: scale(1.1);
}

.feature-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(145, 46, 49, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.feature-content {
    padding: 25px 20px;
    text-align: center;
}

.feature-icon-premium {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary);
    background: rgba(145, 46, 49, 0.1);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
    transition: all var(--transition-fast);
}

.feature-image-card:hover .feature-icon-premium {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Facility Highlights */
.facility-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    font-weight: 500;
    color: var(--text-main);
    padding: 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.highlight-item i {
    color: var(--primary);
    font-size: 1.2rem;
    background: rgba(145, 46, 49, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Methodology */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.method-item {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 1 !important;
    /* Force visible */
    transform: none !important;
    /* Reset transform */
}

.method-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.method-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.method-item h4 {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Guidance Section */
.guidance-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
}

.guidance-section::before {
    content: '\f06c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -50px;
    right: -50px;
    font-size: 200px;
    opacity: 0.05;
    transform: rotate(15deg);
    color: var(--primary);
}

.guidance-notice {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    max-width: 800px;
}

.guidance-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light-muted);
}

.guidance-notice i {
    color: var(--primary);
    margin-right: 8px;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.quote-icon {
    color: var(--primary);
    opacity: 0.1;
    font-size: 4rem;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: -1;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-main);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.testimonial-author strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact CTA */
.contact-cta {
    background-color: var(--bg-body);
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: var(--bg-alt);
    padding-top: 80px;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-heading i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-col i {
    margin-right: 10px;
    color: var(--primary);
}

/* Social Icons - Fixed Version */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--primary);
    transition: all var(--transition-base);
    font-size: 1.2rem;
    border: 2px solid var(--primary);
    text-decoration: none;
    line-height: 1;
}

.social-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(145, 46, 49, 0.3);
}

.social-icon:hover i {
    color: white;
}

.dark-mode .social-icon {
    background: var(--bg-dark-section);
    border-color: var(--primary);
}

.dark-mode .social-icon i {
    color: var(--primary);
}

.dark-mode .social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(145, 46, 49, 0.4);
}

.dark-mode .social-icon:hover i {
    color: white;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.trust-badges span i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: none;
    /* Removing border as per previous inline style */
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* Animation Classes */
.animate-hero {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, opacity;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
    animation-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Continuous Animations */
.float-subtle {
    animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.pulse-subtle {
    animation: pulseSubtle 3s ease-in-out infinite;
}

@keyframes pulseSubtle {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.delay-4 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
        --grid-gap: 25px;
    }

    .grid-4,
    .features-grid,
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facility-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        margin-top: 100px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3,
    .courses-grid,
    .advantages-grid,
    .testimonial-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .facility-highlights {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col div {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 60px 0;
        --card-padding: 20px;
    }

    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .grid-4,
    .features-grid,
    .methodology-grid {
        grid-template-columns: 1fr;
    }

    .course-content {
        padding: 20px;
    }

    .course-content h3 {
        font-size: 1.5rem;
    }

    .course-meta {
        flex-direction: column;
        gap: 10px;
    }

    .testimonial-content {
        padding: 30px;
    }
}
/* --- Marquee Testimonials --- */
.marquee-wrapper { overflow: hidden; position: relative; width: 100%; padding: 20px 0; }
.marquee-content { display: flex; gap: 30px; width: max-content; animation: scroll-marquee 40s linear infinite; }
.marquee-content:hover { animation-play-state: paused; }
.marquee-content > * { flex-shrink: 0; width: 350px; }
@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 15px)); } }
@media (max-width: 768px) { .marquee-content > * { width: 300px; } }
