/* ==========================================================================
   MERIT SAP INSTITUTE - Core Design System & Stylesheet
   Style: Modern Corporate SAP Training Website
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F7FF;
    --text-main: #0B1F3A;
    --text-muted: #4A5D78;
    
    --sap-blue: #0070C0;
    --sap-blue-hover: #005694;
    --sap-blue-light: #EBF5FF;
    
    --career-orange: #F97316;
    --career-orange-hover: #EA580C;
    --career-orange-light: #FFF7ED;
    
    --success-green: #2E7D32;
    --success-green-light: #E8F5E9;
    
    --certificate-gold: #F4B400;
    --certificate-gold-light: #FFFDE7;
    
    --professional-red: #D62828;
    --professional-red-light: #FFEBEE;
    
    --border-grey: #E5E7EB;
    --text-white: #FFFFFF;
    --bg-dark-navy: #0B1F3A;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --fs-h1: clamp(2.25rem, 5vw, 3.5rem);
    --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
    --fs-h3: clamp(1.35rem, 3vw, 1.75rem);
    --fs-h4: clamp(1.15rem, 2vw, 1.25rem);
    --fs-body: clamp(0.95rem, 1vw, 1.0625rem);
    --fs-small: 0.875rem;
    --fs-label: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(11, 31, 58, 0.04);
    --shadow-md: 0 10px 20px rgba(11, 31, 58, 0.06);
    --shadow-lg: 0 20px 40px rgba(11, 31, 58, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Border Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-circle: 50%;
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Headings */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
}

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

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

ul {
    list-style: none;
}

iframe {
    border: none;
}

/* --- Common UI Components & Utilities --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.text-center-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-label);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sap-blue);
    margin-bottom: 12px;
    background-color: var(--sap-blue-light);
    padding: 6px 14px;
    border-radius: 50px;
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: calc(var(--fs-body) * 1.05);
    margin-bottom: 15px;
}

.section-intro-text {
    font-size: calc(var(--fs-body) * 1.08);
}

.text-navy {
    color: var(--text-main);
}

.text-gold {
    color: var(--certificate-gold);
}

.text-blue {
    color: var(--sap-blue);
}

.text-orange {
    color: var(--career-orange);
}

.text-green {
    color: var(--success-green);
}

.text-red {
    color: var(--professional-red);
}

.bg-light-blue { background-color: var(--sap-blue-light); }
.bg-light-gold { background-color: var(--certificate-gold-light); }
.bg-light-orange { background-color: var(--career-orange-light); }
.bg-light-green { background-color: var(--success-green-light); }
.bg-light-red { background-color: var(--professional-red-light); }

.bg-blue { background-color: var(--sap-blue); }
.bg-green { background-color: var(--success-green); }
.bg-orange { background-color: var(--career-orange); }
.bg-gold { background-color: var(--certificate-gold); }
.bg-red { background-color: var(--professional-red); }

.shadow-card {
    box-shadow: var(--shadow-md);
}

/* Button CTA Styles */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 48px;
    font-size: var(--fs-body);
    border: none;
}

.btn-cta i {
    font-size: 1.15rem;
}

/* --- 1. HEADER / NAVBAR --- */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-grey);
    transition: var(--transition-normal);
}

.navbar-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sap-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.desktop-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sap-blue);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--sap-blue);
}

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

.btn-nav-cta {
    background-color: var(--sap-blue);
    color: var(--text-white);
}

.btn-nav-cta:hover {
    background-color: var(--sap-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.25);
}

/* Hamburger button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    transition: var(--transition-normal);
}

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

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.drawer-logo-group {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.drawer-logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.drawer-logo-subtitle {
    font-size: 0.8rem;
    color: var(--sap-blue);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-grey);
}

.mobile-nav-link:hover {
    color: var(--sap-blue);
    padding-left: 5px;
}

.btn-drawer-cta {
    background-color: #25D366;
    color: var(--text-white);
    width: 100%;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 31, 58, 0.4);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

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

/* --- 2. HERO SECTION --- */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(243, 247, 255, 1) 0%, rgba(255, 255, 255, 1) 90%);
    overflow: hidden;
}

/* Digital Grid Background Graphic */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--border-grey) 1px, transparent 1px),
        radial-gradient(var(--border-grey) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.35;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--sap-blue);
    background-color: var(--sap-blue-light);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: var(--fs-h1);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--bg-dark-navy);
}

.highlight-text {
    background: linear-gradient(135deg, var(--sap-blue) 30%, var(--career-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    margin-bottom: 35px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.hero-badge i {
    font-size: 1rem;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-hero-primary {
    background-color: #25D366;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-hero-primary:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-hero-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-grey);
}

.btn-hero-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--sap-blue);
}

/* Hero Right Side - Cards and Anti-Gravity */
.hero-visual-area {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-container {
    position: relative;
    width: 90%;
    height: 380px;
    z-index: 5;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 2px solid var(--border-grey);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-position: center center;
}

.glass-caption-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-md);
}

.glass-caption-card i {
    font-size: 1.5rem;
}

.glass-caption-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.glass-caption-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- 3. ANTI-GRAVITY FLOATING STYLES --- */
.floating-item {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.1s ease-out; /* Parallax ease */
}

/* Standard up-down floating animation keyframes */
@keyframes floatAnimation {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatAnimationAlt {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-icon-card {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-grey);
}

.floating-icon-card i {
    font-size: 1.1rem;
}

.floating-icon-card span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.floating-badge-pill {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    border-radius: 50px;
    padding: 8px 18px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-grey);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-blue { background-color: var(--sap-blue); }
.dot-orange { background-color: var(--career-orange); }
.dot-green { background-color: var(--success-green); }

.floating-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-icon-circle i {
    font-size: 1.15rem;
}

/* Individual Floating Placements */
.float-database {
    top: -20px;
    left: -10px;
    animation: floatAnimation 6s ease-in-out infinite;
}

.float-chart {
    bottom: 50px;
    left: -40px;
    animation: floatAnimationAlt 7s ease-in-out infinite 1s;
}

.float-fico {
    top: 30px;
    right: -30px;
    animation: floatAnimation 5s ease-in-out infinite 0.5s;
}

.float-sd {
    bottom: 120px;
    right: -40px;
    animation: floatAnimationAlt 6.5s ease-in-out infinite 1.5s;
}

.float-mm {
    bottom: -15px;
    right: 40px;
    animation: floatAnimation 8s ease-in-out infinite;
}

.float-cert {
    top: -10px;
    right: 80px;
    animation: floatAnimationAlt 5.5s ease-in-out infinite 0.8s;
}

.float-online {
    bottom: 160px;
    left: -20px;
    animation: floatAnimation 6.8s ease-in-out infinite 0.3s;
}

/* Custom card borders */
.border-fico { border-left: 3px solid var(--sap-blue); }
.border-orange { border-left: 3px solid var(--career-orange); }
.border-green { border-left: 3px solid var(--success-green); }

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.about-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.about-img {
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
}

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

.about-overlay-stats {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    gap: 16px;
}

.stat-bubble {
    background: rgba(11, 31, 58, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--career-orange);
}

.stat-text {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--border-grey);
}

.about-text-content {
    display: flex;
    flex-direction: column;
}

.section-desc-sub {
    font-size: var(--fs-body);
    margin-bottom: 24px;
    color: var(--text-muted);
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
    margin-bottom: 35px;
}

.about-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feat-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-feat-item span {
    font-size: 0.92rem;
    font-weight: 550;
    color: var(--text-main);
}

.btn-about {
    background-color: var(--sap-blue);
    color: var(--text-white);
}

.btn-about:hover {
    background-color: var(--sap-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.25);
}

/* --- 5. SAP COURSES SECTION --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.course-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon-box i {
    font-size: 1.35rem;
}

.course-module-tag {
    font-family: var(--font-heading);
    font-size: var(--fs-label);
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.tag-blue { background-color: var(--sap-blue-light); color: var(--sap-blue); }
.tag-gold { background-color: var(--certificate-gold-light); color: var(--certificate-gold); }
.tag-orange { background-color: var(--career-orange-light); color: var(--career-orange); }
.tag-green { background-color: var(--success-green-light); color: var(--success-green); }
.tag-red { background-color: var(--professional-red-light); color: var(--professional-red); }

.course-title {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.course-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

.btn-course-enquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--sap-blue);
    transition: var(--transition-fast);
}

.btn-course-enquiry:hover {
    color: var(--career-orange);
}

/* Course card hover borders */
.border-hover-blue:hover { border-color: var(--sap-blue); }
.border-hover-gold:hover { border-color: var(--certificate-gold); }
.border-hover-orange:hover { border-color: var(--career-orange); }
.border-hover-green:hover { border-color: var(--success-green); }
.border-hover-red:hover { border-color: var(--professional-red); }

/* --- 6. SAP MODULES SECTION --- */
.modules-section {
    background-color: var(--bg-secondary);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.module-match-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-grey);
    display: flex;
    flex-direction: column;
}

.match-badge {
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.match-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.match-card-body h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.match-card-body p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.audience-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sap-blue);
    background-color: var(--sap-blue-light);
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
}

.modules-cta-wrapper {
    text-align: center;
}

.btn-modules-fit {
    background-color: var(--sap-blue);
    color: var(--text-white);
}

.btn-modules-fit:hover {
    background-color: var(--sap-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.25);
}

/* --- 7. ONLINE & OFFLINE TRAINING SECTION --- */
.training-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.training-modes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 28px 0 35px;
}

.mode-bullet {
    display: flex;
    gap: 16px;
}

.bullet-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bullet-icon i {
    font-size: 1.15rem;
}

.mode-bullet h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.mode-bullet p {
    font-size: 0.92rem;
}

.btn-training-mode {
    background-color: var(--sap-blue);
    color: var(--text-white);
}

.btn-training-mode:hover {
    background-color: var(--sap-blue-hover);
}

.training-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feat-card {
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-grey);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.icon-large {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feat-card p {
    font-size: 0.88rem;
    line-height: 1.55;
}

.border-top-blue { border-top: 4px solid var(--sap-blue); }
.border-top-green { border-top: 4px solid var(--success-green); }
.border-top-orange { border-top: 4px solid var(--career-orange); }
.border-top-gold { border-top: 4px solid var(--certificate-gold); }

/* --- 8. CERTIFICATION & CAREER SECTION --- */
.certification-section {
    background-color: var(--bg-secondary);
}

.career-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.career-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-grey);
    transition: var(--transition-normal);
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--sap-blue);
}

.career-icon-wrapper {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.career-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.career-card p {
    font-size: 0.88rem;
    line-height: 1.55;
}

.certification-cta-box {
    text-align: center;
}

.btn-certification {
    background-color: var(--career-orange);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

.btn-certification:hover {
    background-color: var(--career-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

/* --- 9. POSTER / PROOF SECTION --- */
.posters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.poster-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-grey);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.poster-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.poster-image-holder {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.poster-image-holder img {
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
}

.poster-card:hover .poster-image-holder img {
    transform: scale(1.04);
}

.poster-caption {
    padding: 20px 24px;
    border-top: 1px solid var(--border-grey);
}

.poster-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.poster-caption p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --- 10. WHY CHOOSE US SECTION --- */
.why-choose-us-section {
    background-color: var(--bg-secondary);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-grey);
    transition: var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--sap-blue);
}

.why-icon-box {
    font-size: 2rem;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.86rem;
    line-height: 1.5;
}

/* --- 11. LEARNING PROCESS SECTION --- */
.timeline-container {
    position: relative;
    margin-top: 40px;
}

.timeline-line {
    position: absolute;
    top: 24px;
    left: 4%;
    width: 92%;
    height: 4px;
    background-color: var(--border-grey);
    z-index: 1;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    position: relative;
    z-index: 5;
}

.timeline-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--sap-blue);
    color: var(--sap-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.timeline-step:hover .step-icon-number {
    background-color: var(--sap-blue);
    color: var(--text-white);
    transform: scale(1.1);
}

.step-body h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.3;
}

.step-body p {
    font-size: 0.78rem;
    line-height: 1.45;
}

/* --- 12. GALLERY SECTION --- */
.gallery-section {
    background-color: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-grey);
}

.gallery-img {
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
}

.gallery-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 31, 58, 0.92) 10%, rgba(11, 31, 58, 0.4) 60%, transparent 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.gallery-card:hover .gallery-info-overlay {
    opacity: 1;
}

.gallery-tag {
    font-family: var(--font-heading);
    font-size: var(--fs-label);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--career-orange);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.gallery-item-title {
    color: var(--text-white);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.btn-gallery-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.btn-gallery-action:hover {
    color: var(--career-orange);
}

/* --- 13. REVIEWS SECTION --- */
.reviews-section {
    background-color: var(--bg-secondary);
}

.rating-highlight-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.score-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.stars-row {
    color: var(--certificate-gold);
    display: flex;
    gap: 4px;
    font-size: 1.15rem;
}

.reviews-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-grey);
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
}

.student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
    margin-right: 12px;
}

.student-meta {
    display: block;
    font-size: 0.76rem;
    color: var(--sap-blue);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.review-stars {
    margin-left: auto;
    color: var(--certificate-gold);
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 0.92rem;
    line-height: 1.6;
    font-style: italic;
}

/* --- 14. CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info-area {
    display: flex;
    flex-direction: column;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 30px 0 35px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-detail-item p {
    font-size: 0.92rem;
}

.tel-link:hover {
    color: var(--sap-blue);
    text-decoration: underline;
}

.contact-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    min-height: 48px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-whatsapp-now {
    background-color: #25D366;
    color: var(--text-white);
}

.btn-whatsapp-now:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-call-now {
    background-color: var(--sap-blue);
    color: var(--text-white);
}

.btn-call-now:hover {
    background-color: var(--sap-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.25);
}

.btn-directions {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-grey);
}

.btn-directions:hover {
    background-color: var(--bg-secondary);
    border-color: var(--sap-blue);
}

/* Map Card */
.map-card-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 380px;
    border: 1px solid var(--border-grey);
}

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

/* --- 15. FOOTER --- */
.footer-section {
    background-color: var(--bg-dark-navy);
    color: var(--text-white);
    border-top: 4px solid var(--sap-blue);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.footer-logo-sub {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--sap-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--border-grey);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-icons-row {
    display: flex;
    gap: 12px;
}

.social-icons-row a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--border-grey);
    transition: var(--transition-fast);
}

.social-icons-row a:hover {
    background-color: var(--sap-blue);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-links-group h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 8px;
}

.footer-links-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--career-orange);
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    font-size: 0.88rem;
    color: var(--border-grey);
}

.footer-links-group a:hover {
    color: var(--sap-blue);
    padding-left: 4px;
}

.footer-contact h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 8px;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--career-orange);
}

.footer-address, .footer-phone, .footer-hours {
    font-size: 0.88rem;
    color: var(--border-grey);
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    line-height: 1.5;
}

.footer-address i, .footer-phone i, .footer-hours i {
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-contact a {
    color: var(--text-white);
}

.footer-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    background-color: #25D366;
    color: var(--text-white) !important;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    transition: var(--transition-fast);
}

.footer-wa-btn:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.82rem;
    color: var(--border-grey);
}

/* --- 16. FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 990;
    transition: var(--transition-normal);
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #20ba59;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Pulse rings animation */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #25D366;
    animation: waveAnimation 2s infinite ease-out;
    z-index: -1;
    pointer-events: none;
}

@keyframes waveAnimation {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* --- 17. BACK TO TOP BUTTON --- */
.back-to-top-btn {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--sap-blue);
    color: var(--text-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 989;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: var(--sap-blue-hover);
    transform: translateY(-4px);
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE STYLING
   ========================================================================== */

/* --- Tablet Devices (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .section-container {
        padding: 60px 20px;
    }

    .hero-container {
        gap: 30px;
    }

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

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

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

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

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

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

    .timeline-line {
        display: none; /* Hide horizontal line */
    }

    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 550px;
        margin: 0 auto;
        padding-left: 20px;
        border-left: 3px solid var(--border-grey);
    }

    .timeline-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }

    .step-icon-number {
        margin-bottom: 0;
        flex-shrink: 0;
        margin-left: -46px; /* Align number directly over the left border line */
        z-index: 10;
        background-color: var(--bg-primary);
    }

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

/* --- Mobile Devices (max-width: 768px) --- */
@media (max-width: 768px) {
    .desktop-menu, .nav-cta-wrapper {
        display: none; /* Hide normal nav menu */
    }

    .hamburger-btn {
        display: flex; /* Show Hamburger drawer toggle */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-badges-grid {
        justify-content: center;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-cta-group .btn-cta {
        width: 100%;
    }

    .hero-visual-area {
        height: 380px;
    }

    .hero-card-container {
        width: 100%;
        height: 100%;
    }

    /* Reduce/hide floating parallax icons on mobile for speed and layout space */
    .floating-item {
        transform: scale(0.85);
    }

    .float-database { top: -10px; left: 10px; }
    .float-fico { top: 20px; right: 10px; }
    .float-chart { display: none; }
    .float-sd { display: none; }
    .float-online { display: none; }

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

    .about-visual {
        order: -1; /* Image first on mobile stack */
        aspect-ratio: 16 / 9;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .map-card-wrapper {
        min-height: 280px;
    }

    .contact-action-buttons {
        flex-direction: column;
    }

    .btn-contact-action {
        width: 100%;
    }
}

/* --- Large Mobile Screen Rules (max-width: 480px) --- */
@media (max-width: 480px) {
    .section-container {
        padding: 40px 16px;
    }

    .hero-badges-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }

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

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

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

    .career-cards-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

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

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

    .gallery-info-overlay {
        opacity: 1; /* Always show details on mobile to support hover limits */
        background: linear-gradient(to top, rgba(11, 31, 58, 0.95) 20%, rgba(11, 31, 58, 0.4) 70%, transparent 100%);
        padding: 16px;
    }

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

    .floating-whatsapp-btn {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top-btn {
        bottom: 84px;
        right: 20px;
    }
}

/* --- Support Preferences Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .floating-item {
        animation: none !important;
        transform: none !important;
    }
    
    .floating-whatsapp-btn .pulse-ring {
        animation: none !important;
    }
}
