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

/* Global Typography */
:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: #1e293b;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

p, li, a, button, input, textarea {
    font-family: inherit;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Removed nav-height variable (undo) */

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 35px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 2rem;
}

.nav-logo img {
    height: 180px;
    width: auto;
    max-width: 850px;
    transition: all 0.3s ease;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: -40px 0;
    filter: drop-shadow(0 6px 25px rgba(0,0,0,0.3));
    font-weight: 900;
}

.nav-logo img:hover {
    height: 190px;
    margin: -45px 0;
    filter: drop-shadow(0 10px 40px rgba(102, 126, 234, 0.7));
    transform: scale(1.06);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 0;
    letter-spacing: 0.025em;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* Header Search Styles */
.header-search { flex: 1; max-width: 400px; margin: 0 2rem; }

.header-search-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.45rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

/* Courses page top search bar */
.page-search {
    padding: 90px 0 10px; /* room for fixed navbar */
    background: #ffffff;
}
.page-search .header-search-box {
    max-width: 700px;
    margin: 0 auto;
}

.header-search-box:focus-within { border-color: #2563eb; }
.header-search-box i.fas.fa-search { color: #64748b; font-size: 0.85rem; margin-right: 0.5rem; }
.header-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 0.35rem 0.25rem;
    color: #0f172a;
}
.header-search-box input::placeholder { color: #94a3b8; }

.header-search-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.header-search-btn:hover { background: #1d4ed8; transform: scale(1.05); }
.header-search-btn i { font-size: 0.8rem; }

/* Dropdown Styles */
.dropdown {
    position: relative;
}

/* Subtle helper text under search inputs (removed from courses page; keep placeholder for future use)
   .search-hint { margin-top: 0.4rem; font-size: 0.85rem; color: #64748b; }
*/

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    max-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e2e8f0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #2563eb;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* Mobile Responsive for Header */
@media (max-width: 992px) {
    .header-search {
        max-width: 250px;
        margin: 0 1rem;
    }
    
    .header-search-box input {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0.1rem 1.25rem;
        min-height: 33px;
    }
    
    .nav-logo img {
        height: 150px;
        margin: -32px 0;
        max-width: 420px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 0.1rem 0.75rem;
        min-height: 32px;
    }
    
    .nav-logo {
        margin-right: 1rem;
    }
    
    .nav-logo img {
        height: 140px;
        margin: -28px 0;
        max-width: 300px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 1rem 0 0 0;
    }
    
    .nav-menu {
        order: 2;
    }
    
    .nav-toggle {
        order: 4;
    }
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: 2px solid #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 140px 0 100px;
    margin-top: 70px;
    overflow: hidden;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fbbf24;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.9;
}

.hero-title {
    font-size: 2.6rem; /* reduced from 3.2rem for a subtler hero */
    font-weight: 700;
    line-height: 1.25; /* slightly more breathing room */
    margin-bottom: 1.75rem; /* tighter spacing */
    text-align: center;
    letter-spacing: -0.02em;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.15rem; /* reduced from 1.3rem */
    margin-bottom: 2.2rem; /* slightly less bottom space */
    opacity: 0.95;
    line-height: 1.55; /* keep readability with smaller size */
    max-width: 680px; /* tighten width a bit */
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
    
.hero-image {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hero-image {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Trusted Companies Section */
.trusted-companies {
    padding: 80px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.trusted-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.trusted-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(120px, 1fr)); /* force single line for 8 logos on wide screens */
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
    margin-bottom: 2rem;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
    opacity: 1; /* show full-color logos at full opacity */
    height: 80px;
}

.company-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.company-logo img {
    max-height: 50px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none; /* remove grayscale to show actual brand colors */
    display: block; /* better vertical alignment */
}




.disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #1e293b;
}

/* Generic section subtitle */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin: -1.5rem auto 2.5rem;
    max-width: 800px;
}

/* Programs Classification */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.25rem; /* tighter spacing */
}

.program-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem; /* reduced padding */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.program-card h3 {
    font-size: 1.1rem; /* smaller title */
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.program-icon {
    width: 44px; /* smaller icon */
    height: 44px;
    border-radius: 12px;
    background: #2563eb10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem; /* reduced icon size */
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.program-actions {
    margin-top: auto;
}

.program-actions .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

/* Enhanced button styling with brand colors */
.programs-section .program-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.programs-section .program-actions .btn {
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
}

.programs-section .program-actions .btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* Remove old unified styling that conflicts */

.program-focus,
.program-examples,
.program-desc {
    color: #475569;
    line-height: 1.55;
    margin-bottom: 0.35rem; /* tighter */
    font-size: 0.95rem; /* smaller body */
}

@media (min-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
        gap: 1.5rem; /* tighter on desktop too */
    }
}

@media (max-width: 640px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
}

/* Compact heading sizes for programs section only */
.programs-section .section-title {
    font-size: 2.1rem;
    margin-bottom: 2rem;
}
.programs-section .section-subtitle {
    font-size: 1rem;
    margin: -0.75rem auto 1.75rem;
}

.program-actions .btn {
    font-size: 0.8rem; /* smaller button text */
    padding: 0.5rem 0.9rem;
}

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

/* Enhanced Programs Section with Modern Card Design */
.programs-section .programs-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        gap: 1.5rem;
        justify-items: center;
}

@media (min-width: 992px) {
    .programs-section .programs-grid {
        grid-template-columns: repeat(3, minmax(250px, 1fr));
        gap: 1.75rem;
        justify-items: center;
    }
}

@media (min-width: 1280px) {
    .programs-section .programs-grid {
        grid-template-columns: repeat(5, minmax(230px, 1fr)); /* 5 in a single line on desktop */
        gap: 1.5rem;
        justify-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Modern card styling with brand colors */
.programs-section .program-card {
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    border: none;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 280px;
}

.programs-section .program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.programs-section .program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    border: none;
}

.programs-section .program-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
    color: #1e293b;
}

.programs-section .program-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.programs-section .program-focus {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
    color: #475569;
}

.programs-section .program-examples {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
    color: #64748b;
}

.programs-section .program-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #64748b;
}
/* Clamp text to keep uniform card heights */
.programs-section .program-desc {
    display: -webkit-box;
    line-clamp: 2; /* standard property */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.programs-section .program-examples {
    display: -webkit-box;
    line-clamp: 1; /* standard property */
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

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

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Courses Preview Section */
.courses-preview {
    padding: 60px 0;
}

.courses-section {
    padding: 20px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    margin-bottom: 4rem;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    border: 1px solid #e8eef7;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.18);
    border-color: #667eea;
}

.course-image {
    display: none;
}

.course-content {
    padding: 1.4rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.course-content h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #1e293b;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.course-content p {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.course-footer {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.enroll-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: capitalize;
}

.enroll-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Compact details block removed to keep .course-image minimal */

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

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

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.15);
    border-color: #e0e7ff;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-style: italic;
    color: #475569;
    line-height: 1.8;
    position: relative;
    font-size: 0.95rem;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    left: -0.8rem;
    top: -1.2rem;
    opacity: 0.4;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: #1e293b;
    color: #fff;
    text-align: center;
}

/* Highlight matched course */
.course-highlight {
    outline: 3px solid #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), 0 8px 24px rgba(0,0,0,0.18);
    border-radius: 12px;
    animation: highlightPulse 1.2s ease-in-out 2;
}

@keyframes highlightPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer-content {
    display: block;
    margin-bottom: 2rem;
}
.footer .btn-primary {
    background: #fff;
    color: #667eea;
}

.footer .btn-secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Notifications (created by script.js) should not occupy normal document flow */
.notification {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #111827;
    color: #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(2,6,23,0.6);
    z-index: 9999;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #334155;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

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

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

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .hero-title {
        font-size: 2.1rem; /* slightly smaller to match desktop reduction */
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 1.7rem; /* proportionally reduced */
        line-height: 1.35;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .company-logo {
        height: 60px;
        padding: 0.5rem;
    }

    .company-logo img {
        max-height: 35px;
        max-width: 90px;
    }

    .trusted-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .trusted-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .search-header h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .search-header p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }
}

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

.feature-card,
.course-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Course Search Section */
.course-search {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    margin-top: -1px;
}

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

.search-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.search-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.search-container {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box i {
    color: #64748b;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    padding: 0.25rem 0;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 0.75rem;
}

.search-btn:hover {
    background: #1d4ed8;
}

.search-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.courses-showcase {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.course-categories {
    display: grid;
    gap: 2rem;
}

.course-category {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    background: #fafbfc;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.course-category:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    background: #ffffff;
}

.category-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: -0.01em;
}

.category-title i {
    color: #2563eb;
    margin-right: 0.75rem;
    font-size: 1.3rem;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.course-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.course-item:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.course-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    padding-right: 4rem;
}

.course-item p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-duration {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: 1px solid #dbeafe;
}

.course-item.hidden {
    display: none;
}

.course-category.hidden {
    display: none;
}

/* Search Results */
.search-results {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.search-results h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-header h2 {
        font-size: 2rem;
    }

    .search-container {
        padding: 1.5rem;
    }

    .search-box {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-btn {
        width: 100%;
        margin-left: 0;
    }

    .search-filters {
        justify-content: flex-start;
    }

    .course-list {
        grid-template-columns: 1fr;
    }

    .courses-showcase {
        padding: 1.5rem;
    }

    .course-category {
        padding: 1rem;
    }
}

/* No Results Style */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    margin: 20px 0;
    border: 2px dashed #ddd;
}

.no-results h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-results p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.search-suggestion:hover {
    background-color: #f8fafc;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.suggestion-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.suggestion-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 2px;
}

.suggestion-keywords {
    font-size: 0.8rem;
    color: #667eea;
    font-style: italic;
    margin-top: 2px;
}

/* Small Enrollment Buttons */
.enroll-btn-small {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: 100%;
    letter-spacing: 0.025em;
}

.enroll-btn-small:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.enroll-btn-small:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Course item modifications */
.course-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-item h4 {
    margin-bottom: 8px;
}

.course-item p {
    flex-grow: 1;
    margin-bottom: 8px;
}

.course-duration {
    margin-bottom: auto;
}

/* ==========================
   Contact Page Enhancements
   ========================== */
/* Modernized Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: #fff;
    padding: 120px 0 80px;
    margin-top: 70px;
}
.contact-hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 2rem;
}
.contact-hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}
.hero-lead {
    font-size: 1.05rem;
    opacity: 0.95;
    max-width: 600px;
}
.quick-contact-buttons {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.qc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 14px;
    border-radius: 999px;
    color: #0b1220;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.qc-call { background:#fff; }
.qc-email { background:#e0e7ff; }
.qc-form { background:#d1fae5; }
.trust-badges { display:flex; gap:1rem; margin-top:1rem; flex-wrap:wrap; }
.badge { display:flex; align-items:center; gap:0.4rem; background:#ffffff20; border:1px solid #ffffff30; padding:6px 10px; border-radius:999px; font-size:0.9rem; }

.contact-hero-visual { display:flex; justify-content:center; }
.floating-cards { display:flex; gap:0.75rem; }
.mini-card { background:#ffffff10; border:1px solid #ffffff30; color:#fff; padding:14px 16px; border-radius:12px; display:flex; align-items:center; gap:0.5rem; backdrop-filter: blur(6px); }

/* New Contact Grid */
.contact-grid-new { display:grid; grid-template-columns: 1fr 1.2fr; gap:2rem; margin-top: -40px; }
.contact-panel { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:1.5rem; box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08); }
.contact-panel-info { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.panel-title { display:flex; align-items:center; gap:0.6rem; font-size:1.25rem; margin-bottom:0.5rem; color:#1e293b; }
.panel-intro { color:#475569; margin-bottom:1rem; }
.contact-methods { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:0.75rem; margin-bottom:1rem; }
.method-card { display:flex; gap:0.6rem; align-items:center; background:#f1f5f9; border:1px solid #e2e8f0; padding:0.9rem; border-radius:12px; color:#0f172a; text-decoration:none; transition: transform .2s ease, box-shadow .2s ease; }
.method-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,23,42,0.08); }
.hours-box, .location-box { background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:1rem; margin-top:0.75rem; }
.hours-compact { list-style:none; padding:0; margin:0; display:grid; gap:0.35rem; }
.hours-compact li { display:flex; justify-content:space-between; color:#334155; }

/* Back to Top button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}
.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure course-card has position relative for badge */
.course-card { position: relative; }

.contact-panel-form .styled-form { display:block; }
.form-flex { display:grid; grid-template-columns: 1fr 1fr; gap:0.75rem; }
.form-group.compact label { font-weight:600; color:#334155; margin-bottom:0.35rem; display:block; }
.input-wrapper { position:relative; }
.input-wrapper i { position:absolute; left:12px; top:50%; transform: translateY(-50%); color:#94a3b8; }
.input-wrapper input, .input-wrapper select, .input-wrapper textarea { width:100%; border:1px solid #e2e8f0; border-radius:10px; padding:12px 12px 12px 38px; outline:none; transition: border-color .2s ease, box-shadow .2s ease; }
.input-wrapper textarea { padding-left:38px; }
.input-wrapper select { appearance:none; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input-wrapper input:focus, .input-wrapper select:focus, .input-wrapper textarea:focus { border-color:#2563eb; box-shadow: 0 0 0 4px #2563eb20; }
.textarea-wrapper textarea { min-height:130px; resize: vertical; }
.helper-text { color:#64748b; display:block; margin-top:0.35rem; }
.enhanced-submit { display:inline-flex; align-items:center; gap:0.5rem; }
.privacy-hint { color:#64748b; font-size:0.9rem; margin-top:0.6rem; }

@media (max-width: 992px) {
  .contact-hero-inner { grid-template-columns: 1fr; }
  .contact-grid-new { grid-template-columns: 1fr; margin-top: 0; }
}
@media (max-width: 640px) {
  .form-flex { grid-template-columns: 1fr; }
  .contact-hero { padding: 100px 0 60px; }
}