/********** IT CAREER ONLINE TRAINING - MODERN DESIGN SYSTEM **********/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --secondary: #0D9488;
    --accent: #F59E0B;
    --dark: #0F172A;
    --dark-surface: #1E293B;
    --light: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #06B6D4 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(37, 99, 235, 0.15), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: #F8FAFC;
    overflow-x: hidden;
    line-height: 1.6;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*** Typography ***/
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark);
    letter-spacing: -0.02em;
}

h1, .h1 { font-weight: 800; }
h2, .h2 { font-weight: 700; }
h3, .h3 { font-weight: 700; }
h4, .h4 { font-weight: 600; }
h5, .h5 { font-weight: 600; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge-pill-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/*** Buttons ***/
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
    background: var(--gradient-primary);
    color: #FFFFFF !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: #FFFFFF;
    color: var(--dark) !important;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--gradient-accent);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
}

/*** Topbar ***/
.topbar-modern {
    background: #090D16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    color: #94A3B8;
}

.topbar-modern a {
    color: #94A3B8;
    transition: color 0.2s ease;
    text-decoration: none;
}

.topbar-modern a:hover {
    color: #38BDF8;
}

/*** Navbar & Header ***/
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-modern {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-badge {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.brand-text-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-text-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: #38BDF8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.navbar-modern .nav-link {
    color: #CBD5E1 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-modern .dropdown-menu {
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    padding: 10px;
    margin-top: 10px;
}

.navbar-modern .dropdown-item {
    color: #E2E8F0;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-modern .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #38BDF8;
    transform: translateX(4px);
}

/*** Hero Section ***/
.hero-section {
    position: relative;
    background: var(--gradient-dark);
    color: #FFFFFF;
    padding: 100px 0 120px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.15;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94A3B8;
    margin-bottom: 36px;
    max-width: 640px;
}

.hero-card-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.4s ease;
}

.hero-card-img:hover {
    transform: scale(1.02);
}

/*** Stats / Facts Component ***/
.stats-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/*** Section Styles ***/
.section-padding {
    padding: 90px 0;
}

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

.section-header .sub-title {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.section-header .main-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--dark);
}

/*** Feature & Service Cards ***/
.custom-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.card-icon-box {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.custom-card:hover .card-icon-box {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

/*** Course Directory Cards ***/
.course-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.course-card-img-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #1E293B;
}

.course-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.course-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.course-card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-card-title a:hover {
    color: var(--primary);
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.rating-stars {
    color: #F59E0B;
}

/*** Form Controls ***/
.form-control, .form-select {
    border-radius: var(--radius-md);
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #FFFFFF;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

/*** Course Details Tabs ***/
.custom-tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.custom-tab-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.custom-tab-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.custom-tab-btn.active {
    background: var(--gradient-primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/*** Footer ***/
.footer-modern {
    background: #090D16;
    color: #94A3B8;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-title {
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-widget-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #38BDF8;
    transform: translateX(4px);
}

.footer-bottom {
    background: #05080E;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    z-index: 99;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top:hover {
    transform: translateY(-4px);
    color: #FFFFFF;
}