/* ==============================
   THE LEARN SKILLS — GLOBAL CSS
   Brand: #003285 primary, #6699FF secondary
   Fonts: Arimo (sans), Platypi (serif)
   ============================== */

:root {
    --tls-primary: #003285;
    --tls-primary-dark: #003399;
    --tls-secondary: #6699FF;
    --tls-gradient: linear-gradient(90deg, #003285 30%, #6699FF 70%);
    --tls-gradient-v: linear-gradient(180deg, #003285 0%, #6699FF 100%);
    --tls-light: #f0f4ff;
    --tls-text: #1a1a2e;
}

/* Fonts */
body {
    font-family: 'Arimo', sans-serif;
    color: var(--tls-text);
    background: #fff;
}

h1, h2, h3, .tls-heading {
    font-family: 'Platypi', serif;
}

/* Top bar */
.topbar {
    background: var(--tls-primary);
    color: #fff;
}
.topbar a, .topbar span, .topbar small {
    color: #fff !important;
    opacity: 0.9;
}
.topbar a:hover {
    opacity: 1;
    text-decoration: none;
}

/* Navbar */
.tls-navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,50,133,0.12);
}

.tls-navbar .nav-link {
    font-weight: 500;
    color: var(--tls-primary) !important;
    transition: opacity .2s;
}

.tls-navbar .nav-link:hover {
    color: var(--tls-secondary) !important;
    opacity: 1;
}

.tls-navbar .navbar-toggler {
    border-color: var(--tls-primary);
}

.tls-navbar .navbar-toggler-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg);
}

.tls-navbar .dropdown-menu {
    border-radius: 12px;
    min-width: 220px;
    padding: .5rem;
    margin-top: .5rem;
}

.tls-navbar .dropdown-item {
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .9rem;
    transition: background .15s;
}

.tls-navbar .dropdown-item {
    color: var(--tls-primary) !important;
}

.tls-navbar .dropdown-item:hover {
    background: var(--tls-light);
    color: var(--tls-primary) !important;
}

/* Buttons */
.tls-btn-primary {
    background: var(--tls-gradient);
    border: none;
    color: #fff;
    transition: opacity .2s, transform .1s;
}

.tls-btn-primary:hover {
    opacity: .9;
    color: #fff;
    transform: translateY(-1px);
}

.tls-btn-secondary {
    background: var(--tls-secondary);
    border: none;
    color: #fff;
    transition: opacity .2s, transform .1s;
}

.tls-btn-secondary:hover {
    opacity: .9;
    color: #fff;
    transform: translateY(-1px);
}

.text-primary-tls { color: var(--tls-primary) !important; }
.text-secondary-tls { color: var(--tls-secondary) !important; }
.bg-primary-tls { background: var(--tls-primary) !important; }
.bg-gradient-tls { background: var(--tls-gradient) !important; }
.bg-light-tls { background: var(--tls-light) !important; }

/* Section title */
.section-title {
    position: relative;
    display: inline-block;
    font-family: 'Platypi', serif;
    color: var(--tls-primary);
}

.section-title::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--tls-gradient);
    border-radius: 2px;
    margin-top: 6px;
}

/* Hero */
.tls-hero {
    background: var(--tls-gradient);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.tls-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}

.hero-illustration-wrap {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
}

.hero-illustration {
    opacity: 0.95;
    filter: drop-shadow(0 30px 80px rgba(0,20,80,0.35));
    animation: heroFloat 5s ease-in-out infinite;
    width: 100%;
    max-width: 540px;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

/* Cards */
.tls-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
}

.tls-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,50,133,.15);
}

.tls-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.tls-card .badge-category {
    background: var(--tls-light);
    color: var(--tls-primary);
    font-size: .75rem;
    border-radius: 20px;
    padding: .3rem .8rem;
}

/* Course price */
.tls-price {
    color: var(--tls-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.tls-price .original {
    color: #999;
    font-size: .9rem;
    text-decoration: line-through;
    font-weight: 400;
}

/* Badge pill */
.badge-tls {
    background: var(--tls-gradient);
    color: #fff;
    border-radius: 20px;
    font-size: .75rem;
    padding: .35rem .8rem;
}

/* Stats section */
.tls-stats {
    background: var(--tls-gradient);
    color: #fff;
    padding: 60px 0;
}

.tls-stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Platypi', serif;
}

/* Testimonials */
.testimonial-card {
    border: none;
    border-radius: 16px;
    background: var(--tls-light);
    padding: 1.5rem;
}

.testimonial-card .stars {
    color: #ffc107;
}

/* Footer */
.tls-footer {
    background: var(--tls-primary);
}

.footer-links li {
    margin-bottom: .4rem;
}

.footer-links a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--tls-secondary);
}

/* Social icons - brand colors */
.social-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    transition: transform .2s, opacity .2s, box-shadow .2s;
    flex-shrink: 0;
}

.social-badge svg {
    width: 46%;
    height: 46%;
    fill: currentColor;
    display: block;
}

.social-badge:hover {
    transform: translateY(-3px);
    opacity: .88;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.social-badge-sm {
    width: 32px;
    height: 32px;
}

.social-badge.sb-facebook  { background: #1877F2; }
.social-badge.sb-instagram { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-badge.sb-linkedin  { background: #0A66C2; }
.social-badge.sb-youtube   { background: #FF0000; }
.social-badge.sb-x         { background: #000000; }

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    background: var(--tls-gradient);
    display: flex;
    align-items: center;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    padding: 2.5rem;
}

/* Dashboard sidebar */
.dashboard-sidebar {
    background: var(--tls-primary);
    min-height: 100vh;
    color: #fff;
}

.dashboard-sidebar .nav-link {
    color: rgba(255,255,255,.75);
    border-radius: 10px;
    padding: .6rem 1rem;
    margin-bottom: .25rem;
    transition: background .2s;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* Job cards */
.job-card {
    border: 1px solid #e8eef8;
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color .2s, box-shadow .2s;
}

.job-card:hover {
    border-color: var(--tls-secondary);
    box-shadow: 0 4px 15px rgba(0,50,133,.1);
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 4px;
}

/* Blog */
.blog-img {
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Breadcrumb */
.tls-breadcrumb {
    background: var(--tls-light);
    padding: 12px 0;
}

.tls-breadcrumb .breadcrumb-item a {
    color: var(--tls-primary);
    text-decoration: none;
}

/* Pagination */
.pagination .page-link {
    color: var(--tls-primary);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background: var(--tls-primary);
    border-color: var(--tls-primary);
}

/* Tabs */
.tls-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: .75rem 1.25rem;
}

.tls-tabs .nav-link.active {
    color: var(--tls-primary);
    border-bottom-color: var(--tls-primary);
    background: transparent;
    font-weight: 600;
}

/* Brands Infinite Scroller */
.brands-scroller-section {
    background: #f8faff;
    border-top: 1px solid #e8edf5;
    border-bottom: 1px solid #e8edf5;
    overflow: hidden;
}

.brands-track-wrap {
    overflow: hidden;
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 16px;
    border: 0px solid #e4eaf5;
    background: #fff;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: brandScroll 16s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,50,133,0.07);
    transition: box-shadow .25s, transform .25s;
}

.brand-item:hover {
    box-shadow: 0 6px 20px rgba(0,50,133,0.14);
    transform: translateY(-2px);
}

.brand-item img {
    max-height: 52px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: grayscale(40%);
    transition: filter .25s;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

@keyframes brandScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.letter-spacing-2 { letter-spacing: .12em; }

/* Announcement Ticker */
.announcement-ticker {
    background: var(--tls-gradient);
    overflow: hidden;
}

.announcement-track-wrap {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.announcement-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    padding: 9px 0;
    animation: announcementScroll 35s linear infinite;
}

.announcement-track:hover {
    animation-play-state: paused;
}

.announcement-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    opacity: .95;
    transition: opacity .2s;
    white-space: nowrap;
}

a.announcement-item:hover {
    opacity: 1;
    color: #fff;
    text-decoration: underline;
}

@keyframes announcementScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 576px) {
    .announcement-item { font-size: .78rem; }
    .announcement-track { gap: 36px; animation-duration: 26s; }
}

/* Responsive */
@media (max-width: 768px) {
    .tls-hero { padding: 50px 0; }
    .tls-stat-item .number { font-size: 1.8rem; }
    .auth-card { padding: 1.5rem; }
}

/* ==============================
   COURSES MEGA MENU
   ============================== */
.tls-mega-parent { position: static; }

.tls-mega-menu {
    display: none;
    position: fixed;
    top: 100px; /* below topbar + navbar */
    left: 0; right: 0;
    z-index: 1050;
    background: #fff;
    border-top: 3px solid var(--tls-primary);
    box-shadow: 0 12px 40px rgba(0,50,133,.16);
}
.tls-mega-menu.open { display: block; }

.tls-mega-inner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 380px;
}

/* Left category column */
.tls-mega-cats {
    width: 220px;
    flex-shrink: 0;
    background: #f5f7fb;
    padding: 18px 0;
    border-right: 1px solid #e5e9f2;
    overflow-y: auto;
    max-height: 480px;
}
.tls-mega-section-title {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tls-primary);
    padding: 6px 18px 4px;
    opacity: .7;
}
.tls-mega-cat-link {
    display: block;
    padding: 7px 18px;
    font-size: .82rem;
    color: #444;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tls-mega-cat-link:hover,
.tls-mega-cat-link.tls-mega-cat-active {
    background: #fff;
    border-left-color: var(--tls-primary);
    color: var(--tls-primary);
    font-weight: 600;
}

/* Right course panels */
.tls-mega-courses {
    flex: 1;
    position: relative;
    padding: 20px 22px;
    overflow-y: auto;
    max-height: 480px;
}
.tls-mega-panel { display: none; }
.tls-mega-panel.active { display: block; }

.tls-mega-panel-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--tls-primary);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e9f2;
}

/* Course card inside mega menu */
.tls-mega-course-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: .8rem;
    font-weight: 500;
    border: 1px solid #eef0f6;
    background: #fafbfd;
    transition: all .15s;
    height: 100%;
}
.tls-mega-course-card:hover {
    background: #eef3ff;
    border-color: var(--tls-primary);
    color: var(--tls-primary);
}
.tls-mega-course-card img {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e9f2;
}
.tls-mega-view-all {
    display: inline-block;
    margin-top: 14px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--tls-primary);
    text-decoration: none;
}
.tls-mega-view-all:hover { text-decoration: underline; }

/* Promo box */
.tls-mega-promo {
    width: 200px;
    flex-shrink: 0;
    padding: 20px 14px;
    display: flex;
    align-items: center;
}
.tls-mega-promo-inner {
    background: var(--tls-gradient);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    color: #fff;
    width: 100%;
}

@media (max-width: 991px) {
    .tls-mega-menu { display: none !important; }
}
