/* ==========================================================================
   SEWOO EDU PTY LTD - Premium Stylesheet (Light Theme / Sydney Kokos Inspired)
   Design Paradigm: Authority, Trust, and Accessible Academic Guidance
   Aesthetic: Pristine White & Soft Gray backgrounds, Royal Navy Primary, 
              Warm Amber/Orange Accents
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
    /* Color Palette (High-Trust Light Theme) */
    --color-bg-deep: #ffffff;       /* Pure White Main Background */
    --color-bg-surface: #f8fafc;    /* Clean Off-white Surface */
    --color-bg-card: #ffffff;       /* Card Backgrounds */
    --color-primary: #003399;       /* KOKOS-inspired Royal Navy Blue */
    --color-primary-light: #e0f2fe; /* Light Blue Accent Background */
    --color-primary-glow: rgba(0, 51, 153, 0.08);
    --color-secondary: #f97316;     /* Friendly Warm Orange Accent */
    --color-secondary-glow: rgba(249, 115, 22, 0.15);
    --color-text-white: #ffffff;    /* Light text on dark elements */
    --color-text-title: #0f172a;    /* High-contrast Title Slate */
    --color-text-body: #334155;     /* Readable Slate Gray for Body */
    --color-text-muted: #64748b;    /* Medium Slate Muted */
    --color-border: #e2e8f0;        /* Light Slate Borders */
    --color-success: #10b981;       /* Emerald Success */

    /* Typography */
    --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 51, 153, 0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* --- Global Reset & Base Styling --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-deep);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.75;
    color: var(--color-text-body);
    background-color: var(--color-bg-deep);
    overflow-x: hidden;
    /* Smooth page-level cross-fade translation transition */
    transition: opacity 0.3s ease-in-out;
}

body.fade-out {
    opacity: 0.05;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* --- Layout Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- Upper Info Bar (Top Bar) --- */
.top-bar {
    background-color: #0d1e3d; /* Dark Navy for High Contrast top info */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.85);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left i {
    color: var(--color-secondary); /* Highlight details with warm orange */
}

.top-bar-left small {
    opacity: 0.7;
}

.top-bar-right .abn-text {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- Main Navigation Header --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    transition: var(--transition-smooth);
}

/* Add rich shadows when scrolled down */
.main-header.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Alignment */
.logo-link {
    display: flex;
    align-items: center;
}

.company-logo {
    height: 60px; /* Bold corporate presence */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-header.scrolled .company-logo {
    height: 48px;
}

/* Navigation Links (Desktop) */
.desktop-nav ul {
    display: flex;
    gap: 32px;
}

.nav-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-title);
    padding: 6px 0;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-item:hover {
    color: var(--color-primary);
}

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

.nav-item.active {
    color: var(--color-primary);
}

/* Language Swapping Pill and mobile Hamburger container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Elegant Pill-shaped Flag Language Selector */
.lang-switch-container {
    display: flex;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 3px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.lang-btn.active {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: 0 4px 10px rgba(0, 51, 153, 0.2);
}

/* Custom High-Resolution Flags */
.flag-icon {
    width: 22px;
    height: 14px; /* Crisp aspect ratio */
    border-radius: 1px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.15); /* Sleek outline to prevent blending */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    vertical-align: middle;
    object-fit: cover;
}

/* Mobile Hamburger Menu */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-title);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* --- Mobile Side Navigation Drawer --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-bg-deep);
    z-index: 2000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-logo {
    height: 38px;
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: var(--color-text-title);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-drawer .mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-item {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-title);
    display: block;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.drawer-item:hover {
    color: var(--color-primary);
}

.mobile-drawer-footer {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-drawer-footer p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Buttons System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 30px;
    border-radius: 8px; /* Clean structured borders like Kokos */
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary); /* Dynamic Friendly Accent orange */
    color: var(--color-text-white);
    box-shadow: 0 4px 14px var(--color-secondary-glow);
}

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(0, 51, 153, 0.1);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(13, 30, 61, 0.75), rgba(13, 30, 61, 0.9)), url('hero_students.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0 140px 0;
    overflow: hidden;
    color: var(--color-text-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 30%, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px; /* Expanded slightly to give text more breathing room */
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-secondary);
    background-color: var(--color-secondary-glow);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.2vw, 3.2rem); /* Scaled down slightly to fit beautifully on PC */
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-text-white);
    margin-bottom: 24px;
    word-break: keep-all; /* wraps only at space word boundaries on all viewports */
    overflow-wrap: break-word;
}

.hero-title span {
    color: var(--color-secondary);
}

/* Dynamic Font Scale specifically for Korean on PC to prevent empty text lines */
html[lang="ko"] .hero-title {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 720px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- KOKOS-STYLE QUICK NAVIGATION MENU --- */
.quick-menu-section {
    position: relative;
    padding: 0;
    margin-top: -60px; /* Overlap slightly with hero banner like Kokos */
    z-index: 50;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background-color: var(--color-bg-card);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.quick-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    border-right: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    background-color: var(--color-bg-card);
}

.quick-menu-item:last-child {
    border-right: none;
}

.quick-menu-item:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
}

.quick-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.quick-menu-item:hover .quick-icon-wrapper {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    transform: scale(1.05);
}

.quick-text-wrapper {
    display: flex;
    flex-direction: column;
}

.quick-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-title);
    line-height: 1.3;
}

.quick-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Highlighted quick item styling (e.g. "Inquiry Now") */
.quick-menu-item.highlight {
    background: linear-gradient(135deg, var(--color-secondary), #ea580c);
    color: var(--color-text-white);
    border-right: none;
}

.quick-menu-item.highlight .quick-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
}

.quick-menu-item.highlight .quick-title {
    color: var(--color-text-white);
}

.quick-menu-item.highlight .quick-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.quick-menu-item.highlight:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Quick menu responsiveness adjustments */
@media (max-width: 1024px) {
    .quick-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .quick-menu-item:nth-child(3) {
        border-right: none;
    }
    .quick-menu-item:nth-child(4), .quick-menu-item:nth-child(5) {
        border-top: 1px solid var(--color-border);
    }
}

@media (max-width: 768px) {
    .quick-menu-section {
        margin-top: -30px;
        padding: 0 16px;
    }
    .quick-menu-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile for a compact premium card layout */
        border-radius: 8px;
    }
    .quick-menu-item {
        padding: 12px 10px; /* Reduced padding to save horizontal space and prevent clipping */
        gap: 10px; /* Reduced gap between icon and text */
        border-right: 1px solid var(--color-border) !important;
        border-bottom: 1px solid var(--color-border) !important;
        border-top: none !important;
    }
    /* Grid borders adjustment for 2 columns */
    .quick-menu-item:nth-child(2n) {
        border-right: none !important;
    }
    .quick-menu-item:last-child {
        border-bottom: none !important;
        border-right: none !important;
    }
    /* Span the highlighted Inquiry Now item to full width */
    .quick-menu-item.highlight {
        grid-column: span 2;
    }
    
    /* Downscale icon wrappers to fit beautifully */
    .quick-icon-wrapper {
        width: 36px;
        height: 36px;
        min-width: 36px; /* Prevent squeezing */
        font-size: 1.1rem;
    }
    
    /* Downscale typography inside quick items to fit cleanly */
    .quick-title {
        font-size: 0.85rem;
    }
    .quick-subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .quick-menu-item {
        padding: 10px 6px;
        gap: 6px;
    }
    .quick-icon-wrapper {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 1rem;
    }
    .quick-title {
        font-size: 0.8rem;
    }
    .quick-subtitle {
        font-size: 0.65rem;
    }
}

/* --- Section Formatting System --- */
section {
    padding: 100px 0;
    position: relative;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    background-color: var(--color-primary-glow);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-text-title);
    line-height: 1.25;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 16px auto 0 auto;
    border-radius: 4px;
}

.title-underline.left-align {
    margin-left: 0;
}

.section-header {
    margin-bottom: 60px;
}

/* --- VISION SECTION --- */
.vision-section {
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
}

.vision-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.vision-description {
    font-size: 1.05rem;
    margin: 24px 0 40px 0;
    line-height: 1.8;
}

.vision-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px 20px;
    min-width: 140px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
}

/* Vision Overlapping Image layout */
.vision-img-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 4px solid var(--color-bg-card);
}

.vision-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.vision-img-frame:hover .vision-img {
    transform: scale(1.05);
}

.vision-experience-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-title);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-premium);
}

.vision-experience-badge i {
    color: var(--color-secondary);
}

/* --- ABOUT US SECTION --- */
.about-section {
    background-color: var(--color-bg-deep);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.lead-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-title);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-visual {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--color-border);
}

.about-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Managing Director Greeting Card Block */
.director-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.director-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}

.director-avatar {
    flex-shrink: 0;
}

.avatar-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.director-message {
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(0, 51, 153, 0.05);
    position: absolute;
    top: -24px;
    left: -16px;
    pointer-events: none;
}

.director-message h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-title);
    margin-bottom: 16px;
}

.director-text {
    font-style: italic;
    line-height: 1.85;
    margin-bottom: 24px;
    color: var(--color-text-body);
}

.director-signature h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-title);
}

.director-signature span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Core Values Tri-Grid Cards (High trust Light Mode style) */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 36px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.value-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--color-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-title);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-body);
}

/* --- CORE SERVICES SECTION --- */
.services-section {
    background-color: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Service Card clipping completely fixed by removing overflow: hidden */
.service-card {
    position: relative; /* Establish absolute positioning context for descendants */
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.service-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden; /* only overflow clips the image inside wrapper */
    border-top-left-radius: calc(var(--border-radius-md) - 1px);
    border-top-right-radius: calc(var(--border-radius-md) - 1px);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

/* Circular floating category icons - stands out completely with Z-index and no clipping */
.service-icon-box {
    position: absolute;
    top: 176px; /* 200px image height - 24px half height of icon box */
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 51, 153, 0.15);
    z-index: 20; /* Elevate to sit overlaying the image border border naturally */
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    transform: rotate(360deg);
    background-color: var(--color-primary);
    color: var(--color-text-white);
}

.service-body {
    padding: 36px 30px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-title);
    margin-bottom: 12px;
}

.service-body p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-body);
}

/* --- WHY STUDY IN AUSTRALIA SECTION --- */
.why-section {
    background-color: var(--color-bg-deep);
}

.why-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.location-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--color-border);
}

.why-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.location-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 8px 18px;
    border-radius: 4px;
    color: var(--color-text-title);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-soft);
}

.location-badge i {
    color: var(--color-primary);
}

.why-content p {
    font-size: 1.05rem;
    margin: 20px 0 36px 0;
    line-height: 1.8;
}

/* Rich Benefit Lists with green ticks */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-list li {
    display: flex;
    gap: 16px;
}

.benefit-icon {
    font-size: 1.4rem;
    color: var(--color-success);
    margin-top: 2px;
}

.benefit-text h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-title);
    margin-bottom: 6px;
}

.benefit-text p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.65;
    color: var(--color-text-body);
}

/* --- CONTACT US SECTION (Centered Wide Panel) --- */
.contact-section {
    background-color: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
}

.contact-wide-panel {
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
}

.contact-info-panel {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.contact-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-title);
    margin-bottom: 12px;
    text-align: center;
}

.panel-desc {
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.65;
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Elegant 2x2 grid on desktop to present office contacts in a balanced layout */
.info-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: var(--color-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 51, 153, 0.05);
}

.info-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-title);
    margin-bottom: 6px;
}

.info-text p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    color: var(--color-text-body);
}

.voip-span {
    color: var(--color-secondary);
    font-weight: 700;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #0d1e3d; /* Consistent Rich Navy footer */
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Balanced minimal footer columns */
    gap: 60px;
    padding-bottom: 50px;
}

.footer-brand-side {
    display: flex;
    align-items: center;
}

.brand-tagline {
    max-width: 450px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    border-left: 3px solid var(--color-secondary);
    padding-left: 20px;
}

.footer-links-side {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.footer-links-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 20px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a:hover {
    color: var(--color-secondary);
    padding-left: 4px;
}

.office-p {
    display: flex;
    gap: 10px;
    line-height: 1.65;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
}

.office-p i {
    color: var(--color-secondary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Footer bottom credits and privacy notes */
.footer-bottom {
    background-color: #09152b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.copyright-text strong {
    color: var(--color-text-white);
}

.abn-footer-block {
    display: inline-block;
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.legal-text {
    max-width: 600px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    text-align: right;
}

/* --- Media Queries / Responsive Viewport Controls --- */

@media (max-width: 1024px) {
    .vision-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vision-img-side {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-visual {
        max-width: 650px;
        margin: 0 auto;
        width: 100%;
        order: 2;
    }

    .why-img {
        aspect-ratio: 16/9;
    }

    .why-content {
        order: 1;
    }

    .info-details-grid {
        gap: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .brand-tagline {
        max-width: 100%;
    }

    .bottom-container {
        flex-direction: column;
        text-align: center;
    }

    .legal-text {
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    /* Navbar mobile responsiveness adjustments */
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .top-bar-left {
        justify-content: center;
        width: 100%;
    }

    .top-bar-right {
        text-align: center;
        width: 100%;
    }

    .hero-section {
        padding: 80px 0 100px 0;
    }

    .hero-title {
        font-size: clamp(1.6rem, 5vw, 2.1rem) !important; /* downscales hero text nicely on mobile */
        line-height: 1.35 !important;
    }

    html[lang="ko"] .hero-title {
        font-size: clamp(1.4rem, 4.8vw, 1.85rem) !important; /* downscales Korean hero text to fit nicely on mobile */
        line-height: 1.4 !important;
    }

    .director-card {
        flex-direction: column;
        padding: 30px;
        align-items: center;
        text-align: center;
    }

    .quote-icon {
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
    }

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

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

    .info-details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info-panel {
        padding: 30px 20px;
    }

    .footer-links-side {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none; /* Hide micro elements to fit mobile devices */
    }

    .hero-actions .btn {
        width: 100%;
    }
    
    .director-card {
        padding: 24px 16px;
    }
}

/* --- Additional Mobile & Bilingual Polish Rules --- */
@media (max-width: 768px) {
    /* Bold logo presence on mobile to prevent header feeling empty */
    .company-logo {
        height: 54px;
    }
    .main-header.scrolled .company-logo {
        height: 44px;
    }
    .main-header {
        padding: 14px 0;
    }
    .main-header.scrolled {
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    /* Downscale language switch button elements on extremely narrow mobile viewports */
    .lang-btn {
        padding: 4px 8px;
        gap: 4px;
    }
    .lang-text {
        font-size: 0.75rem;
    }
    .flag-icon {
        width: 18px;
        height: 12px;
    }
}

/* Premium Typography Engine for Korean (KO) Language Swapped States */
html[lang="ko"] {
    word-break: keep-all;
}

html[lang="ko"] body {
    word-break: keep-all;
}

html[lang="ko"] p,
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] h4,
html[lang="ko"] span,
html[lang="ko"] a,
html[lang="ko"] li,
html[lang="ko"] small {
    word-break: keep-all;
    overflow-wrap: break-word; /* Prevent overflow while wrapping perfectly at word/space boundaries */
}

/* Force strict word-wrap on hero title for flawless visual alignment */
html[lang="ko"] .hero-title {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
}
