/* ===================================
   Professional Software Training Website
   Main Stylesheet
   =================================== */

/* === CSS Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    /* Professional Color Palette */
    --primary-blue: #1A365D;
    --primary-blue-light: #2B4C7E;
    --accent-orange: #F97316;
    --accent-orange-dark: #EA580C;
    --success-green: #10B981;
    --light-gray: #F8FAFC;
    --medium-gray: #E2E8F0;
    --dark-gray: #334155;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --white: #FFFFFF;
    --error-red: #EF4444;
    --border-color: #E2E8F0;
    
    /* Professional Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border Radius - Modern */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.95rem, 4.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 600; }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); font-weight: 600; }
h5 { font-size: clamp(1rem, 2vw, 1.125rem); font-weight: 600; }
h6 { font-size: clamp(0.9375rem, 1.75vw, 1rem); font-weight: 600; }

p {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1rem, 2.2vw, 1.0625rem);
    line-height: 1.75;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

/* === Mobile-First Responsive Foundation === */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure all containers respect viewport width */
.container,
.section,
.hero-content,
.features-grid,
.courses-grid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Touch-friendly button and input sizing */
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    min-height: 44px;
}

@media (hover: none) and (pointer: coarse) {
    button,
    input[type="button"],
    input[type="submit"],
    a.btn,
    .cta-button {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* === Utility Classes === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.section {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

@media (max-width: 768px) {
    .container,
    .container-fluid {
        padding: 0 1rem;
    }
    
    .section {
        padding: 1.75rem 0;
    }
}
.text-primary { color: var(--primary-blue); }
.text-accent { color: var(--accent-orange); font-size: 1.3em; font-weight: 600; }
.text-success { color: var(--success-green); }

.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }
.bg-primary { background-color: var(--primary-blue); color: var(--white); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    min-height: 44px;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(249, 115, 22, 0);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
        max-width: 100%;
        display: block;
        padding: 0.875rem 1.5rem;
    }
    
    .btn + .btn {
        margin-top: 0.75rem;
    }
}

/* Secondary button in light backgrounds (course pages, sidebars) */
.course-sidebar .btn-secondary,
.course-content .btn-secondary,
.sidebar .btn-secondary,
.card .btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.course-sidebar .btn-secondary:hover,
.course-content .btn-secondary:hover,
.sidebar .btn-secondary:hover,
.card .btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Secondary button in header - different colors for visibility */
.header .btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.header .btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* === Top Bar === */
.top-bar {
    background: linear-gradient(135deg, #1A365D 0%, #2B4C7E 100%);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.contact-info-top {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contact-info-top span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.2;
    font-size: 0.95rem;
}

.contact-info-top i {
    color: var(--accent-orange);
    font-size: 1rem;
}

.top-bar .social-header {
    display: flex;
    gap: 1rem;
    align-items: right;
    margin-right: 10;
    margin-left : 10;
}

.top-bar-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-left: auto;
}

.top-bar-buttons .btn-small {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
}

.top-bar .social-header a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.top-bar .social-header a:hover {
    background: var(--accent-orange);
}

/* === Header & Navigation === */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow: visible;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-width: 200px;
    margin-left: 30px;
    padding-left: 15px;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: clamp(60px, 8vw, 80px);
    width: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(26, 54, 93, 0.1));
}

.logo:hover .logo-img {
    filter: drop-shadow(0 2px 4px rgba(26, 54, 93, 0.2));
    transform: scale(1.05);
}

.logo-icon {
    display: none;
}

.logo-icon i {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    flex: 1;
    justify-content: center;
    z-index: 1000;
    overflow: visible;
}

.nav-menu li {
    position: relative;
    overflow: visible;
}

.nav-menu li a {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.125rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 1rem;
    display: block;
    letter-spacing: 0.01em;
}

.nav-menu li a:hover {
    color: var(--accent-orange);
    background-color: rgba(249, 115, 22, 0.1);
}

.nav-menu .dropdown {
    position: relative;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    overflow: visible;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    margin-top: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Keep dropdown open when hovering over it */
.dropdown-content:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.dropdown-content a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--dark-gray);
    border-radius: var(--radius-sm);
    position: relative;
    z-index: 1001;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--accent-orange);
    transform: translateX(5px);
}

.social-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-right: 1.5rem;
}

.social-header a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--primary-blue);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.social-header a:hover {
    background: var(--accent-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, #1A365D 0%, #2B4C7E 50%, #1A365D 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-left {
    padding-right: 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 115, 22, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #FFA726;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--accent-orange);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.0625rem);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.hero-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.feature-check {
    width: 22px;
    height: 22px;
    background: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    flex: 0 1 auto;
    min-width: 150px;
}

.hero-cta .btn i {
    margin-right: 6px;
}

.hero-stats-row {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-right {
    position: relative;
}

.hero-courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.hero-course-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-course-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-orange);
    transform: translateX(8px);
}

.course-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.embedded-icon {
    background: linear-gradient(135deg, #E67E22, #D35400);
}

.mern-icon {
    background: linear-gradient(135deg, #27AE60, #229954);
}

.rdkb-icon {
    background: linear-gradient(135deg, #3498DB, #2980B9);
}

.hero-course-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
}

.hero-course-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.course-duration {
    margin-left: auto;
    background: var(--accent-orange);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* === Features Section === */
.features {
    padding: var(--spacing-xl) 0;
}

.features h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.25rem, 3vw, 1.5rem);
    margin-top: clamp(1.5rem, 4vw, 2rem);
}

.feature-card {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
}

.feature-icon {
    width: clamp(56px, 12vw, 64px);
    height: clamp(56px, 12vw, 64px);
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(1rem, 2.5vw, 1.25rem);
    font-size: clamp(1.5rem, 3.5vw, 1.75rem);
    color: var(--white);
    box-shadow: var(--shadow-md), 0 0 0 6px rgba(249, 115, 22, 0.1);
}

.feature-card h3 {
    margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
    color: var(--text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
}

/* === Courses Section === */
.courses {
    display: block;
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(230, 126, 34, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(155, 89, 182, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.courses::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.courses .container {
    position: relative;
    z-index: 1;
}

.courses .section-header h2 {
    color: #ffffff;
}

.courses .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.section-header {
    display: block;
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 2.5rem);
}

.section-header h2 {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.section-header p {
    display: block;
    font-size: clamp(0.9375rem, 2vw, 1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.25rem, 3vw, 1.5rem);
    margin-top: clamp(1.5rem, 4vw, 2rem);
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-orange);
}

@media (hover: none) {
    .course-card:active {
        transform: scale(0.98);
    }
}

.course-image {
    width: 100%;
    height: auto;
    min-height: 10rem;
    overflow: visible;
    position: relative;
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
}

.course-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: var(--white);
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.course-content {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.course-category {
    color: var(--accent-orange);
    font-size: clamp(0.75rem, 1.75vw, 0.8125rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: clamp(0.375rem, 1vw, 0.5rem);
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

.course-description {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.course-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.8125rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--dark-gray);
}

.meta-item i {
    color: var(--accent-orange);
}

.course-training-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #27AE60, #229954);
    color: var(--white);
    padding: 0.75rem var(--spacing-sm);
    margin: var(--spacing-sm) 0;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.course-training-mode i {
    font-size: 1rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.stars {
    color: #F39C12;
    font-size: 1rem;
}

.rating-count {
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.course-price-old {
    font-size: 1rem;
    color: var(--dark-gray);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* === Short Courses Section === */
.short-courses {
    padding: var(--spacing-xl) 0;
}

.short-courses .courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .short-courses .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .short-courses .courses-grid {
        grid-template-columns: 1fr;
    }
}

.bg-light {
    background-color: #f8f9fa;
}

.course-card.short-course {
    border-top: 3px solid var(--accent-orange);
}

.course-card.short-course .course-content {
    padding: 1.25rem;
}

.course-card.short-course .course-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-orange), #D35400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.875rem;
    font-size: 1.5rem;
    color: var(--white);
}

.course-card.short-course .course-icon i {
    font-size: 1.5rem;
}

.course-card.short-course .course-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    text-align: center;
}

.course-card.short-course .course-description {
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.course-card.short-course .course-meta {
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 0.8125rem;
}

.course-card.short-course .btn-outline {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.course-card.short-course .btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* === Stats Section === */
.stats {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #34495E 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.stat-box {
    padding: var(--spacing-md);
}

.stat-box .stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 0.25rem;
}

.stat-box .stat-label {
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* === Testimonials Section === */
.testimonials {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.25rem, 3vw, 1.5rem);
    margin-top: clamp(1.5rem, 4vw, 2rem);
}

.testimonial-card {
    background: var(--white);
    padding: clamp(1.25rem, 3vw, 1.5rem);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow-light);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: clamp(-12px, -2.5vw, -16px);
    left: clamp(12px, 3vw, 16px);
    font-size: clamp(3.5rem, 8vw, 5rem);
    color: var(--accent-orange);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-content {
    margin-bottom: clamp(0.875rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--dark-gray);
    font-style: italic;
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: clamp(0.625rem, 1.5vw, 0.875rem);
}

.author-image {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-orange);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-blue);
    font-size: 0.9375rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin: 0;
}

.testimonial-rating {
    color: #F39C12;
    margin-top: 0.5rem;
}

/* === CTA Section === */
.cta {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E40AF 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.cta p {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    opacity: 1;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: var(--white);
}

.cta .btn-primary:hover {
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
}

.cta .btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
}

.cta .btn-secondary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

/* === Footer === */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(0.875rem, 2.5vw, 1.25rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: clamp(0.875rem, 2.5vw, 1.25rem);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.footer-section p {
    color: var(--white);
    opacity: 0.9;
    line-height: 1.7;
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: block;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.9;
    transition: all var(--transition-fast);
    font-size: 1rem;
    display: block;
    line-height: 1.5;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-orange);
    padding-left: 0.25rem;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    font-size: 1rem;
    color: var(--white);
}

.contact-info i {
    color: var(--accent-orange);
    font-size: 1rem;
    min-width: 1.25rem;
}

.social-links {
    display: flex;
    gap: clamp(0.625rem, 1.5vw, 0.875rem);
    margin-top: clamp(0.875rem, 2.5vw, 1.25rem);
}

.social-links a {
    width: clamp(2.25rem, 8vw, 2.5rem);
    height: clamp(2.25rem, 8vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
    font-size: clamp(0.9375rem, 2.25vw, 1rem);
}

.social-links a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-0.1875rem);
}

.newsletter-form {
    margin-top: var(--spacing-md);
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-body);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--white);
    opacity: 0.9;
}

.footer-bottom p {
    color: var(--white);
    margin: 0;
}

.visitor-counter {
    margin-top: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 0.5rem;
    display: inline-block;
    font-size: 0.9rem;
    color: #ecf0f1;
    font-weight: 500;
}

.visitor-counter i {
    color: var(--primary-color);
    margin: 0 5px;
}

.visitor-counter span {
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 5px;
}

/* === Blog Page Footer Styling === */
body.blog-page .footer {
    background-color: var(--primary-blue);
    color: #ffffff;
}

body.blog-page .footer-section {
    color: #ffffff;
}

body.blog-page .footer-section h3 {
    color: #ffffff;
    font-weight: 600;
}

body.blog-page .footer-section p {
    color: #ffffff;
    opacity: 1;
}

body.blog-page .footer-links a {
    color: #ffffff;
    opacity: 0.95;
}

body.blog-page .footer-links a:hover {
    color: var(--accent-orange);
    opacity: 1;
}

body.blog-page .contact-info li {
    color: #ffffff;
    opacity: 0.95;
}

body.blog-page .social-links a {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.blog-page .social-links a:hover {
    background-color: var(--accent-orange);
    color: #ffffff;
}

body.blog-page .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    opacity: 0.95;
}

body.blog-page .footer-bottom p {
    color: #ffffff;
}

/* === Form Styles === */
.form-group {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.form-group label {
    display: block;
    margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
    font-weight: 500;
    color: var(--primary-blue);
    font-size: clamp(0.9rem, 2.3vw, 1rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(0.75rem, 2.5vw, 0.875rem);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2.3vw, 1rem);
    transition: border-color var(--transition-fast);
    min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: clamp(100px, 20vw, 120px);
}

.form-error {
    color: var(--error-red);
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    margin-top: 0.25rem;
}

.form-success {
    color: var(--success-green);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* === Cards & Containers === */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.card-header {
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* === Badge === */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary { background-color: var(--primary-blue); color: var(--white); }
.badge-accent { background-color: var(--accent-orange); color: var(--white); }
.badge-success { background-color: var(--success-green); color: var(--white); }
.badge-light { background-color: var(--light-gray); color: var(--dark-gray); }

/* === Responsive Design === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-left {
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    /* Mobile Viewport Fix */
    body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 clamp(1rem, 3vw, 1.5rem);
        overflow-x: hidden;
    }
    
    .section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero {
        padding: clamp(3rem, 8vw, 4rem) 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 7vw, 3rem);
        line-height: 1.1;
        margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
        font-weight: 800;
        letter-spacing: -0.03em;
    }
    
    .hero-subtitle {
        font-size: clamp(1.125rem, 3.5vw, 1.25rem);
        line-height: 1.6;
        margin-bottom: clamp(1.75rem, 4vw, 2rem);
        color: rgba(255, 255, 255, 0.85);
    }
    
    .hero-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: var(--radius-full);
        box-shadow: var(--shadow-md), 0 0 0 4px rgba(249, 115, 22, 0.15);
    }
    
    .hero-features-list {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 2vw, 1rem);
        margin-bottom: clamp(1.75rem, 4vw, 2rem);
        width: 100%;
        max-width: 100%;
    }
    
    .hero-feature {
        font-size: clamp(1rem, 2.8vw, 1.0625rem);
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        backdrop-filter: blur(10px);
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: clamp(1rem, 2.5vw, 1.25rem);
        width: 100%;
        max-width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: clamp(1.0625rem, 3vw, 1.125rem);
        box-shadow: var(--shadow-lg);
        font-weight: 600;
    }
    
    .hero-stats-row {
        flex-direction: column;
        gap: clamp(1rem, 3vw, 1.25rem);
        padding-top: clamp(1.5rem, 4vw, 2rem);
    }
    
    .stat-value {
        font-size: clamp(1.75rem, 5.5vw, 2rem);
    }
    
    .stat-label {
        font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    }

    .top-bar {
        font-size: clamp(0.8125rem, 2vw, 0.85rem);
        padding: clamp(0.5rem, 2vw, 0.6rem) 0;
    }
    
    .contact-info-top {
        gap: clamp(0rem, 2.5vw, 1.2rem);
        flex-wrap: wrap;
    }
    
    .contact-info-top span {
        font-size: clamp(1.2rem, 2vw, 0.85rem);
    }
    
    .top-bar .social-header {
        gap: clamp(0.375rem, 1.5vw, 0.5rem);
    }
    
    .top-bar .social-header a {
        width: clamp(28px, 7vw, 30px);
        height: clamp(28px, 7vw, 30px);
        font-size: clamp(0.8125rem, 2vw, 0.85rem);
    }
    
    .navbar {
        padding: clamp(1rem, 2.5vw, 1.25rem) 0;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }
    
    .logo {
        width: auto;
        height: auto;
        z-index: 1001;
        padding: 0.5rem;
        position: relative;
        left: 0;
        transform: none;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo-img {
        height: clamp(55px, 12vw, 70px);
        width: auto;
        display: block;
        max-width: 100%;
        min-height: 55px;
        flex-shrink: 0;
    }
    
    .logo-icon {
        display: none;
    }
    
    .logo-icon i {
        display: none;
    }
    
    .hamburger {
        display: flex;
        flex-shrink: 0;
        padding: clamp(0.375rem, 1.5vw, 0.5rem);
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        z-index: 1002;
        margin-left: auto;
        background-color: transparent;
        border: 2px solid var(--primary-blue);
        border-radius: var(--radius-md);
    }
    
    .hamburger span {
        width: clamp(22px, 6vw, 25px);
        height: clamp(2.5px, 0.7vw, 3px);
        background-color: var(--primary-blue);
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 110px;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: clamp(1.25rem, 3vw, 1.5rem);
        box-shadow: var(--shadow-xl);
        gap: 0;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: clamp(1rem, 3vw, 1.25rem);
        font-size: clamp(1.125rem, 3.5vw, 1.25rem);
        min-height: 52px;
        border-radius: var(--radius-md);
        font-weight: 600;
        letter-spacing: 0.01em;
    }
    
    /* Mobile Dropdown Styles */
    .nav-menu .dropdown {
        position: relative;
        width: 100%;
    }
    
    .nav-menu .dropdown > a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-menu .dropdown > a i {
        transition: transform 0.2s ease;
    }
    
    .nav-menu .dropdown.active > a i {
        transform: rotate(180deg);
    }
    
    .nav-menu .dropdown-content {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
        margin-top: 0;
        padding: clamp(0.375rem, 1.5vw, 0.5rem) 0;
        background-color: var(--light-gray);
        border-radius: var(--radius-sm);
        margin: clamp(0.375rem, 1.5vw, 0.5rem) 0;
        pointer-events: auto;
        max-height: none;
        overflow: visible;
        width: 100%;
    }
    
    .nav-menu .dropdown.active .dropdown-content {
        display: block;
    }
    
    .nav-menu .dropdown-content a {
        display: block;
        padding: clamp(0.875rem, 2.5vw, 1rem) clamp(1.25rem, 3.5vw, 1.75rem);
        border-left: 3px solid transparent;
        transform: none;
        min-height: 48px;
        text-align: left;
        color: var(--text-primary);
        font-size: clamp(1rem, 3vw, 1.125rem);
        font-weight: 500;
    }
    
    .nav-menu .dropdown-content a:hover {
        border-left-color: var(--accent-orange);
        background-color: var(--white);
        transform: none;
        color: var(--accent-orange);
    }
    
    .social-header {
        display: none;
    }
    
    .nav-actions {
        margin-left: auto;
        margin-right: 0;
        gap: clamp(0.375rem, 1.5vw, 0.5rem);
        flex-shrink: 0;
    }
    
    .nav-actions .btn-small {
        padding: clamp(0.375rem, 1.5vw, 0.4rem) clamp(0.875rem, 2.5vw, 1rem);
        font-size: clamp(0.8125rem, 2vw, 0.85rem);
        white-space: nowrap;
        min-height: 44px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-text {
        order: 0;
    }
    
    .hero-text h1 {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }
    
    .hero-text p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: clamp(1rem, 3vw, 1.5rem);
    }
    
    .features-grid,
    .courses-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.25rem, 3vw, 1.75rem);
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .feature-card,
    .course-card,
    .testimonial-card {
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .feature-card:hover,
    .course-card:hover {
        box-shadow: var(--shadow-xl);
        transform: translateY(-3px);
    }
    
    h1 { font-size: clamp(2.25rem, 5.5vw, 2.5rem); font-weight: 800; }
    h2 { font-size: clamp(2rem, 4.5vw, 2.25rem); font-weight: 700; }
    h3 { font-size: clamp(1.625rem, 4vw, 1.875rem); font-weight: 600; }
}

/* Optimize for small devices (400px - 760px) */
@media (min-width: 400px) and (max-width: 760px) {
    .top-bar-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .contact-info-top {
        display: flex;
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 0.5rem;
        flex-basis: 100%;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .contact-info-top span {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        color: rgba(255, 255, 255, 0.98);
        font-weight: 700;
        font-size: clamp(0.95rem, 3.5vw, 1.15rem);
        white-space: nowrap;
        line-height: 1.1;
    }

    .contact-info-top i {
        color: var(--accent-orange);
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        flex-shrink: 0;
    }

    .top-bar .social-header {
        flex-basis: 100%;
        justify-content: center;
        margin: 0;
        gap: 0.75rem;
    }

    .top-bar .social-header a {
        width: clamp(36px, 8vw, 40px);
        height: clamp(36px, 8vw, 40px);
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .top-bar-buttons {
        flex-basis: 100%;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .top-bar-buttons .btn-small {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    /* Mobile Viewport Fix */
    body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section {
        padding: clamp(2.5rem, 6vw, 3rem) 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .top-bar {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        background: linear-gradient(135deg, #1A365D 0%, #2B4C7E 100%);
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .contact-info-top {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .contact-info-top span {
        font-size: 1.05rem;
        justify-content: center;
        font-weight: 600;
    }
    
    .contact-info-top i {
        font-size: 1.15rem;
    }

    .top-bar .social-header {
        flex-basis: 100%;
        justify-content: center;
        margin: 0.5rem 0;
        gap: 0.75rem;
        width: 100%;
    }

    .top-bar .social-header a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .top-bar-buttons {
        flex-basis: 100%;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-left: 0;
        width: 100%;
    }

    .top-bar-buttons .btn-small {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
        text-align: center;
    }
    
    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        flex: 1;
        min-width: 60px;
        height: auto;
    }
    
    .logo-img {
        height: clamp(40px, 10vw, 60px);
        width: auto;
        max-width: 100%;
        display: block;
    }
    
    .logo-icon {
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md), 0 0 0 2px rgba(249, 115, 22, 0.1);
    }
    
    .logo-icon i {
        font-size: 20px;
    }
    
    .navbar {
        padding: 1rem 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hamburger {
        padding: 0.5rem;
        padding-right: 1.5rem;
    }
    
    .hamburger span {
        width: 24px;
        height: 2.5px;
        border-radius: 2px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .btn-small {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        white-space: nowrap;
        font-weight: 600;
        box-shadow: var(--shadow-sm);
    }
    
    .nav-menu {
        top: 100px;
        max-height: calc(100vh - 100px);
        padding: 1.25rem;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--border-color);
        width: 100vw;
        max-width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav-menu li a {
        padding: 0.875rem;
        font-size: 1.1rem;
        min-height: 48px;
        border-radius: var(--radius-md);
        font-weight: 600;
    }
    
    .hero {
        padding: 3rem 0 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-left {
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-full);
        box-shadow: var(--shadow-md), 0 0 0 3px rgba(249, 115, 22, 0.15);
        font-weight: 600;
    }
    
    .hero-text h1,
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.15;
        margin-bottom: 1rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .hero-subtitle,
    .hero-text p {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.85);
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .hero-features-list {
        gap: 0.6rem;
        margin: 1rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-feature {
        font-size: 1.05rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        backdrop-filter: blur(10px);
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.0625rem;
        justify-content: center;
        font-weight: 600;
        box-shadow: var(--shadow-lg);
    }
    
    .stat-number,
    .stat-value {
        font-size: 2.25rem;
        font-weight: 800;
        background: linear-gradient(135deg, #FFF, #FFA726);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .stat-label {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.75);
    }
    
    .hero-stats-row,
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .course-card {
        margin: 0;
        padding: 1.25rem;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
    }
    
    .course-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-orange);
    }
    
    .course-card h3 {
        font-size: 1.6rem;
        font-weight: 700;
    }
    
    .course-card p {
        font-size: 1.15rem;
        color: var(--text-secondary);
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1.15rem;
        font-weight: 600;
        box-shadow: var(--shadow-md);
        border-radius: var(--radius-md);
    }
    
    .btn:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-sm);
    }
    
    h1 { font-size: 2.25rem; font-weight: 800; }
    h2 { font-size: 2rem; font-weight: 700; }
    h3 { font-size: 1.625rem; font-weight: 600; }
    h4 { font-size: 1.375rem; font-weight: 600; }
    h5 { font-size: 1.1875rem; font-weight: 600; }
    h6 { font-size: 1.0625rem; font-weight: 600; }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.75rem;
        color: var(--text-secondary);
    }
    
    .features-grid,
    .courses-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 1.25rem;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
    }
    
    .feature-card:hover,
    .course-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-orange);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.65rem;
    }
    
    .btn {
        padding: 1rem 1.25rem;
        font-size: 1.0625rem;
        font-weight: 600;
        box-shadow: var(--shadow-md);
        border-radius: var(--radius-md);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        box-shadow: var(--shadow-lg);
    }
    
    footer {
        padding: 2.5rem 0 1.25rem;
        background: linear-gradient(135deg, #1A365D 0%, #2B4C7E 100%);
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .footer-section {
        display: block;
        padding: 1.25rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .footer-section:first-child {
        padding-top: 0;
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        font-weight: 700;
        color: #ffffff;
    }
    
    .footer-section > p {
        color: #ffffff;
        opacity: 0.9;
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .footer-links {
        display: block;
        padding: 0;
        margin: 0;
    }
    
    .footer-links li {
        display: block;
        margin-bottom: 0.625rem;
    }
    
    .footer-links li a {
        display: block;
        color: #ffffff;
        font-size: 1rem;
        opacity: 0.9;
        line-height: 1.5;
        padding: 0.25rem 0;
    }
    
    .footer-links li a:hover {
        opacity: 1;
        color: var(--accent-orange);
        padding-left: 0.5rem;
    }
    
    .contact-info {
        display: block;
        padding: 0;
        margin: 0;
    }
    
    .contact-info li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #ffffff;
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: 0.625rem;
    }
}

/* Samsung A Series Professional Optimization (360px-412px screens) */
@media (max-width: 412px) {
    /* Mobile Viewport Fix */
    body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Professional Navigation */
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon {
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md), 0 0 0 2px rgba(249, 115, 22, 0.1);
    }
    
    .logo-icon i {
        font-size: 20px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .btn-small {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        white-space: nowrap;
        font-weight: 600;
        box-shadow: var(--shadow-sm);
    }
    
    .hamburger {
        padding: 0.5rem;
        padding-right: 1.5rem;
    }
    
    /* Professional Hero Section */
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.25rem;
        border-radius: var(--radius-full);
        box-shadow: var(--shadow-md), 0 0 0 3px rgba(249, 115, 22, 0.15);
        font-weight: 600;
    }
    
    .hero-title,
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1.25rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .hero-subtitle,
    .hero-text p {
        font-size: 1.0625rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
        color: rgba(255, 255, 255, 0.85);
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .hero-feature {
        font-size: 0.9375rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        backdrop-filter: blur(10px);
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .feature-check {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .hero-cta {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta .btn {
        padding: 1rem 1.25rem;
        font-size: 1.0625rem;
        font-weight: 600;
        box-shadow: var(--shadow-lg);
        width: 100%;
        max-width: 100%;
    }
    
    .hero-stats-row {
        padding-top: 1.5rem;
        gap: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .stat-value {
        font-size: 1.875rem;
        font-weight: 800;
        background: linear-gradient(135deg, #FFF, #FFA726);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .stat-label {
        font-size: 0.9375rem;
        color: rgba(255, 255, 255, 0.75);
    }
    
    /* Professional Typography */
    h1 { font-size: 2rem; font-weight: 800; }
    h2 { font-size: 1.75rem; font-weight: 700; }
    h3 { font-size: 1.5rem; font-weight: 600; }
    h4 { font-size: 1.25rem; font-weight: 600; }
    
    .section-header h2 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }
    
    .section-header p {
        font-size: 1.0625rem;
        color: var(--text-secondary);
    }
    
    /* Professional Buttons */
    .btn {
        padding: 1rem 1.25rem;
        font-size: 1.0625rem;
        min-height: 48px;
        font-weight: 600;
        box-shadow: var(--shadow-md);
        border-radius: var(--radius-md);
    }
    
    .btn-large {
        padding: 1.125rem 1.5rem;
        font-size: 1.125rem;
    }
    
    /* Professional Cards */
    .course-card,
    .feature-card,
    .testimonial-card {
        padding: 1.25rem;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .course-card:hover,
    .feature-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-orange);
    }
    
    .course-image {
        height: 180px;
        background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    }
    
    .course-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        top: 0.75rem;
        right: 0.75rem;
        border-radius: var(--radius-full);
        box-shadow: var(--shadow-md);
    }
    
    .course-content {
        padding: 1.25rem;
    }
    
    .course-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        font-weight: 700;
    }
    
    .course-category {
        font-size: 0.9375rem;
        margin-bottom: 0.625rem;
        font-weight: 600;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    /* Compact Features Grid */
    .features-grid,
    .courses-grid,
    .testimonials-grid {
        gap: 1rem;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }
    
    .course-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .course-image {
        height: auto;
        min-height: 8rem;
        overflow: visible;
    }
    
    .course-image svg {
        width: 100%;
        height: auto;
    }
    
    .course-content {
        padding: 1rem;
    }
    
    /* Professional Forms */
    .form-group {
        margin-bottom: 1.25rem;
        width: 100%;
        max-width: 100%;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.625rem;
        font-weight: 600;
        color: var(--text-primary);
        width: 100%;
        max-width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
        border: 2px solid var(--border-color);
        border-radius: var(--radius-md);
        transition: all var(--transition-fast);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--accent-orange);
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    }
    
    /* Professional Footer */
    .footer {
        padding: 2.5rem 0 1.25rem;
        background: linear-gradient(135deg, #1A365D 0%, #2B4C7E 100%);
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }
    
    .footer-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: left;
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
    }
    
    .footer-section:first-child {
        padding-top: 0;
    }
    
    .footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-section h3 {
        display: block !important;
        visibility: visible !important;
        font-size: 1.25rem;
        margin-bottom: 1rem;
        font-weight: 700;
        text-align: left;
        color: #ffffff;
    }
    
    .footer-section > p {
        display: block !important;
        visibility: visible !important;
        color: #ffffff;
        opacity: 0.9;
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        display: block !important;
        visibility: visible !important;
        padding-left: 0;
        margin: 0;
        list-style: none;
    }
    
    .footer-links li {
        display: block !important;
        visibility: visible !important;
        text-align: left;
        margin-bottom: 0.75rem;
    }
    
    .footer-links li a {
        display: inline-block !important;
        visibility: visible !important;
        color: #ffffff;
        font-size: 1rem;
        opacity: 0.9;
        text-decoration: none;
    }
    
    .contact-info {
        display: block !important;
        visibility: visible !important;
        padding-left: 0;
        margin: 0;
        list-style: none;
    }
    
    .contact-info li {
        display: flex !important;
        visibility: visible !important;
        align-items: center;
        gap: 0.5rem;
        color: #ffffff;
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: 0.75rem;
    }
    
    .footer-links a:hover {
        opacity: 1;
        color: var(--accent-orange);
        padding-left: 0.5rem;
    }
    
    .social-links {
        display: flex !important;
        visibility: visible !important;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .social-links a {
        display: flex !important;
        visibility: visible !important;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        color: #ffffff;
        box-shadow: var(--shadow-sm);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 50%;
    }
    
    .social-links a:hover {
        background: var(--accent-orange);
        box-shadow: var(--shadow-md);
    }
    
    .footer-bottom {
        display: block !important;
        visibility: visible !important;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        text-align: center;
    }
    
    .footer-bottom p {
        color: #ffffff;
        opacity: 0.9;
        font-size: 0.875rem;
    }
    
    /* Compact Top Bar */
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .top-bar-content {
        font-size: 0.75rem;
    }
    
    .contact-info-top span {
        font-size: 0.75rem;
        gap: 0.4rem;
    }
    
    .top-bar .social-header a {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    /* Section Spacing */
    .section {
        padding: 2rem 0;
    }
    
    .hero,
    .features,
    .courses,
    .testimonials,
    .cta {
        padding: 2rem 0;
    }
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* === Loading Spinner === */
.spinner {
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--accent-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Scroll to Top Button === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow-medium);
    transition: all var(--transition-normal);
    z-index: 999;
}

.scroll-top:hover {
    background-color: #D35400;
    transform: translateY(-5px);
}

.scroll-top.visible {
    display: flex;
}

/* Extra Small Devices - Enhanced Contact Info Visibility */
@media (max-width: 480px) {
    .top-bar {
        font-size: 0.95rem;
        padding: 0.75rem 0;
    }
    
    .contact-info-top span {
        font-size: 1rem;
        font-weight: 600;
        padding: 0.3rem 0;
    }
    
    .contact-info-top i {
        font-size: 1.1rem;
        margin-right: 0.3rem;
    }
}

@media (max-width: 360px) {
    .top-bar {
        font-size: 0.9rem;
        padding: 0.7rem 0;
    }
    
    .contact-info-top span {
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .contact-info-top i {
        font-size: 1rem;
    }
    
    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        flex: 1;
        min-width: 50px;
        height: auto;
    }
    
    .logo-img {
        height: clamp(35px, 9vw, 50px);
        width: auto;
        max-width: 100%;
        display: block;
    }
}

/* === Samsung A Series Optimization (360px - 412px) === */
@media (min-width: 360px) and (max-width: 412px) {
    body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100%;
    }
    
    .container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .section {
        padding: clamp(1.5rem, 5vw, 2.5rem) 0;
    }
    
    .top-bar {
        font-size: 0.875rem;
        padding: 0.65rem 0;
    }
    
    .top-bar-content {
        gap: 0.5rem;
    }
    
    .contact-info-top {
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-info-top span {
        font-size: 0.95rem;
        line-height: 1.2;
        gap: 0.3rem;
    }
    
    .contact-info-top i {
        font-size: 1rem;
    }
    
    .top-bar .social-header {
        gap: 0.5rem;
    }
    
    .top-bar .social-header a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: clamp(50px, 11vw, 65px);
        width: auto;
        max-width: 100%;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    
    .hero-title {
        font-size: 1.95rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-feature {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
    
    .hero-cta .btn {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }
    
    .course-card {
        padding: 1rem;
        margin: 0 0 0.75rem 0;
    }
    
    .course-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .course-card p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .course-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        min-height: 44px;
        border-radius: var(--radius-sm);
    }
    
    .btn-small {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .nav-menu li a {
        padding: 0.75rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 0.9rem;
        gap: 0.6rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .stat-box {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .testimonial-card {
        padding: 0.9rem;
    }
    
    .testimonial-content {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .testimonial-author {
        font-size: 0.9rem;
        margin-top: 0.6rem;
    }
    
    .cta h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .cta p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-links a,
    .contact-info li {
        font-size: 0.8rem;
    }
    
    .footer-links li {
        margin-bottom: 0.25rem;
    }
}

/* === Desktop Optimization (1024px and above) === */
@media (min-width: 1024px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.125rem; }
    
    p {
        font-size: 0.9375rem;
        line-height: 1.65;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .hero {
        padding: 3rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.875rem;
    }
    
    .section-header p {
        font-size: 0.9375rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }
    
    .course-content {
        padding: 1.25rem;
    }
    
    .course-title {
        font-size: 1.125rem;
    }
    
    .course-description {
        font-size: 0.875rem;
    }
    
    .stat-box .stat-number {
        font-size: 2rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.875rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-content {
        font-size: 0.875rem;
    }
    
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .cta p {
        font-size: 0.9375rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p,
    .footer-links a,
    .contact-info li {
        font-size: 0.875rem;
    }
    
    .footer-links a {
        min-height: auto;
        line-height: 1.6;
    }
    
    .footer-links li {
        margin-bottom: 0.375rem;
    }
    
    .contact-info li {
        margin-bottom: 0.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* === Large Desktop Optimization (1440px and above) === */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }
    
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    p {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}