/* 
 * Tradepass Academy - Custom Styles
 * Modern, premium aesthetic with deep rich colors and glassmorphism.
 */

:root {
    --primary-color: #0d1b2a;
    /* Deep blue/black for premium feel */
    --accent-color: #0077b6;
    /* Bright vibrant blue for interaction */
    --text-dark: #1b263b;
    --text-light: #e0e1dd;
    --nav-bg: #ffffff;
    /* Solid white background */
    --nav-text: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   Navigation Bar (Glassmorphism & Premium)
   ========================================= */

.tp-navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Navbar on scroll class (added via JS later) */
.tp-navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Logo Styling */
.tp-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-color);
}

/* Nav Links */
.tp-nav-links .nav-item {
    margin-left: 10px;
}

.tp-nav-links .nav-link {
    color: var(--nav-text) !important;
    font-weight: 600;
    /* Increased font-weight for bolder links */
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

/* Hover and Active State */
.tp-nav-links .nav-link:hover,
.tp-nav-links .nav-link.active {
    color: #f3003c !important;
    /* Updated to requested red color */
}

/* Underline animation on hover */
.tp-nav-links .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #f3003c;
    /* Updated to match the hover color */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tp-nav-links .nav-link:hover::before,
.tp-nav-links .nav-link.active::before {
    width: 70%;
}

/* Custom Dropdown Chevron Arrow */
.tp-nav-links .dropdown-toggle::after {
    border: none;
    width: 0.45em;
    height: 0.45em;
    margin-left: 0.4em;
    vertical-align: middle;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Animate chevron when dropdown is open */
.tp-nav-links .dropdown-toggle.show::after {
    transform: rotate(-135deg) translateY(-1px) translateX(1px);
}

/* Dropdown Menu Premium Styling */
.tp-dropdown {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 15px;
    background-color: #ffffff;
    animation: fadeIn 0.3s ease;
}

.tp-dropdown .dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s;
}

.tp-dropdown .dropdown-item:hover {
    background-color: rgba(243, 0, 60, 0.08);
    /* Updated to match #f3003c with opacity */
    color: #f3003c;
    padding-left: 25px;
    /* Subtle slide-in effect */
}

/* Simple fade-in animation for dropdown */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Hero Section (Premium, Dark & Vibrant)
   ========================================= */

.tp-hero {
    position: relative;
    padding-top: 120px;
    /* offset navbar */
    min-height: 70vh;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Dark overlay for text readability */
    z-index: 0;
}

/* Abstract Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0077b6 0%, rgba(0, 119, 182, 0) 70%);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00b4d8 0%, rgba(0, 180, 216, 0) 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 50px) scale(1.1);
    }
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

/* Hero Typography */
.tp-hero-title {
    line-height: 1.2;
    letter-spacing: -1px;
    font-weight: 500 !important;
}

.text-gradient {
    background: linear-gradient(90deg, #00b4d8, #48cae4, #90e0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tp-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #90e0ef;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

.tp-hero-subtitle {
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
}

/* Buttons */
.tp-btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
    transition: all 0.3s ease;
}

.tp-btn-primary:hover {
    background-color: #023e8a;
    border-color: #023e8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.6);
}

.tp-btn-outline {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tp-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Glass Cards for Hero Visual */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.transform-hover:hover {
    transform: translateY(-10px);
}

/* Utility to ensure text inside glass cards is readable */
.glass-card .text-muted {
    color: #6c757d !important;
}

/* =========================================
   Overview Section
   ========================================= */

.tp-overview {
    min-height: 30vh;
    padding: 80px 0;
}

.tp-title-underline {
    position: relative;
    padding-bottom: 20px;
}

.tp-title-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #f3003c;
    border-radius: 2px;
}

/* =========================================
   Courses Section
   ========================================= */

.tp-courses-section {
    background-color: #0d0d14;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tp-text-muted {
    color: #8c8c9a !important;
}

.tp-search-input {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    max-width: 250px;
}

.tp-search-input:focus {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: none;
}

.tp-search-input::placeholder {
    color: #8c8c9a;
}

/* Custom Checkboxes */
.tp-custom-check .form-check-input {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    cursor: pointer;
}

.tp-custom-check .form-check-input:checked {
    background-color: #ffffff;
    border-color: #ffffff;
}

/* Override the default checkmark for a "filled square" look as requested */
.tp-custom-check .form-check-input:checked[type=checkbox] {
    background-image: none;
    position: relative;
}

.tp-custom-check .form-check-input:checked[type=checkbox]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #0d0d14;
    /* Dark square */
}

.tp-custom-check .form-check-label {
    color: #d1d1d6;
    margin-left: 5px;
    cursor: pointer;
}

/* Course Cards */
.tp-course-card {
    background-color: #16161f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tp-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.tp-course-card img {
    height: 180px;
    object-fit: cover;
}

.tp-tag-badge {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1d1d6;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 50px;
}

.tp-cert-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
}

.tp-learn-more {
    color: #f3003c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.tp-learn-more:hover {
    color: #f3003c;
    opacity: 0.8;
}

/* Pagination */
.page-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-circle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-circle.active {
    background-color: #ffffff;
    color: #0d0d14;
    border-color: #ffffff;
}

/* =========================================
   Clients Section
   ========================================= */

.tp-clients-section {
    background-color: #0d0d14;
    min-height: 30vh;
    padding: 60px 0;
    overflow: hidden;
}

.tp-clients-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tp-clients-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

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

.tp-client-card {
    width: 160px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tp-client-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tp-client-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-720px);
    }
}

/* =========================================
   How We Work Section
   ========================================= */

.tp-hww-section {
    background-color: #ffffff;
}

.hww-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1px;
    background-color: #e0e0e0;
    /* This creates the thin light gray borders */
    border: 1px solid #e0e0e0;
    /* Outer border */
    max-width: 1100px;
}

@media (min-width: 768px) {
    .hww-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hww-cell {
    background-color: #ffffff;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hww-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.hww-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1b263b;
    /* Dark text */
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hww-desc {
    font-size: 0.9rem;
    color: #6c757d;
    /* Light gray */
    line-height: 1.6;
    margin: 0;
}