
@import url('../components/service-page-header.css');
.breadcrumb-gray {
    background-color: #f8f9fa;
    padding: 1rem 0;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    border: 2px solid var(--gray-800);
color: white;
background: rgba(47, 47, 47, 0.39);
border-radius: 25px; /* Curved corners */
padding: 12px 30px;
font-weight: 600;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);}




.hero-cta .btn-primary:hover {
    background-color: var(--gray-800);
color: var(--white);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

/* Base Styles */
:root {
    --primary-color:#6a67ce;
    --secondary-color: #6a67ce;
    --accent-color: #ff6b6b;
    --dark-color: #1a2930;
    --light-color: #f7f9f9;
    --text-color: #333;
    --gray-color: #f0f0f0;
    --transition: all 0.3s ease;
    
    /* Additional colors for creative design */
    --gradient-start: #6a67ce;
    --gradient-end: #6a67ce;
    --hot-tag-color: #ff6b6b;
    --new-tag-color: #6a67ce;
    --popular-tag-color: #ffb347;
    --upcoming-tag-color: #20639b;
    
    /* Learning path colors */
    --beginner-color: #3ab795;
    --intermediate-color: #f3a712;
    --advanced-color: #e94f37;

    /* Updated CTA section colors */
    --cta-bg-color: #2f4858;
    --cta-text-color: #ffffff;
    --cta-button-color: #5ab1bb;
    --cta-button-hover: #76c2cc;

    /* More Vivid Card Colors */
    --card-pink: #FFDDEE;
    --card-blue: #CDE7FF;
    --card-orange: #f3ff499f;
    --card-green: #D9F7D0;

    /* More Vivid Button/Border Colors */
    --button-pink: #E91E63;
    --button-blue: #2196F3;
    --button-orange: #FF9800;
    --button-green: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
main{    padding-top: calc(var(--header-height) + 5px);
color: white !important;}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Header & Footer Placeholders */
.header-placeholder,
.footer-placeholder {
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Main content padding for header visibility */


/* Hero Section */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(360px, 65vh, 720px);
    padding: clamp(48px, 6vh, 96px) 0;
    text-align: center;
    background: linear-gradient(#6a67ce6b, rgba(58, 183, 149, 0.6)), url('../../images/training-hero.jpg');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(28px, 4.5vw, 56px);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
}

.hero-text {
    font-size: clamp(16px, 2.2vw, 20px);
    max-width: 720px;
    margin: 0 auto;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-decoration span {
    position: absolute;
    opacity: 0.1;
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.square {
    width: 80px;
    height: 80px;
    background-color: white;
    bottom: 15%;
    right: 10%;
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid white;
    top: 20%;
    right: 15%;
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

@media (max-width: 768px) {
    .hero-decoration { opacity: 0.05; }
    .circle, .square, .triangle { transform: none; }
}

@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
        background-position: center top;
        min-height: clamp(320px, 55vh, 600px);
        padding: clamp(40px, 5vh, 72px) 0;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero { background-attachment: scroll; }
}

/* Interactive Course Explorer */
.filter-section {
    padding: 50px 0 5px;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: none;
}

.explore-heading {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--dark-color);
    position: relative;
}

.explore-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    margin: 15px auto 0;
    border-radius: 3px;
}

.filter-tabs {
    background-color: white;
    position: relative;
    z-index: 1;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Mobile filter dropdown (hidden by default) */
.mobile-filter {
    display: none;
    margin: 0 0 16px 0;
}

.mobile-filter select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 1rem;
    color: #1a1a1a; /* Ensure readable text against white background */
}

/* Ensure dropdown list options are readable on all platforms */
.mobile-filter select option {
    color: #1a1a1a;
    background: #ffffff;
}

.mobile-filter select option:checked,
.mobile-filter select option:hover {
    color: #1a1a1a;
    background: #f3f4f6;
}

.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;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    overflow-x: auto; /* For mobile scrolling */
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: var(--transition);
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    width: 80%;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-button {
    padding: 10px 20px;
    background-color: var(--gray-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.filter-button:hover::before,
.filter-button.active::before {
    opacity: 1;
}

.filter-button:hover,
.filter-button.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hot-filter {
    position: relative;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding-right: 45px;
}

.hot-filter::after {
    content: '🔥';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 30px auto 0;
    position: relative;
    z-index: 1;
}

.search-container input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    padding: 0 25px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    color: white;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

/* Courses Section - Full Width */
.courses-section {
    padding: 0px 0 70px;
    background-color: var(--light-color);
    width: 100%;
    overflow: hidden;
    position: relative;
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.courses-found {
    font-size: 1.1rem;
    color: #666;
}

.courses-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Updated carousel styles for full width */
.courses-carousel-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 40px;
    overflow: hidden; /* Prevent horizontal scrollbar */
}

.courses-carousel {
    display: flex;
    gap: 35px; /* Slightly larger gap */
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 25px 0; /* Increased vertical padding */
    margin: 0 auto;
    will-change: transform;
    transform: translateZ(0);
    touch-action: pan-y;
}

.courses-carousel::-webkit-scrollbar {
    display: none;
}

.course-card {
    flex: 0 0 450px; /* Increased width */
    min-width: 450px;
    border-radius: 28px; /* Slightly larger radius */
    overflow: hidden;
    height: 675px; /* Increased height (maintaining 1:1.5 ratio) */
    box-shadow: none;
    position: relative;
    transition: transform 0.3s ease;
    opacity: 1;
    transform: none;
    display: flex;
    flex-direction: column;
}

/* Use vivid color variables */
.course-card:nth-child(4n+1) { background-color: var(--card-pink); }
.course-card:nth-child(4n+2) { background-color: var(--card-blue); }
.course-card:nth-child(4n+3) { background-color: var(--card-orange); }
.course-card:nth-child(4n+4) { background-color: var(--card-green); }

/* Explicit color overrides for specific cards */
.course-card.card-pink { background-color: var(--card-pink) !important; }
.course-card.card-blue { background-color: var(--card-blue) !important; }
.course-card.card-orange { background-color: var(--card-orange) !important; }
.course-card.card-green { background-color: var(--card-green) !important; }

.card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px; /* Increased padding */
    color: #202124;
    flex-grow: 1;
}

.course-image {
    height: 280px; /* Adjusted height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px; /* Adjusted margin */
    border-radius: 20px; /* Adjusted radius */
    background-color: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
}

/* Optional helpers to adjust crop focus per image */
.course-image img.cover-left { object-position: left center; }
.course-image img.cover-top { object-position: center 20%; }

.course-icon {
    font-size: 5rem; /* Adjusted size */
    color: var(--dark-color);
    opacity: 0.6;
}

.course-card h3 {
    padding: 0;
    font-size: 1.5rem; /* Adjusted size */
    line-height: 1.4;
    margin: 0 0 12px 0; /* Adjusted margin */
    font-weight: 600;
}

.course-description {
    padding: 0;
    font-size: 1.05rem;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.tag, .skill-tag {
    display: inline-block;
    padding: 5px 12px; /* Adjusted padding */
    border-radius: 16px;
    font-size: 0.8rem; /* Adjusted size */
    font-weight: 500;
    line-height: 1.4;
}

/* Style specific tags (Popularity/Trending/New) */
.tag {
    text-transform: uppercase;
    color: white;
    font-weight: 600;
}
.hot-tag { background-color: var(--hot-tag-color); }
.new-tag { background-color: var(--new-tag-color); }
.popular-tag { background-color: var(--popular-tag-color); }
.upcoming-tag { background-color: var(--upcoming-tag-color); }

/* Style Skill/Format Tags */
.skill-tag {
    background-color: rgba(0, 0, 0, 0.05);
    color: #3c4043;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Style Format Tags (Add specific styles if needed, otherwise defaults to skill-tag style) */
/* Example: If you add a data-format attribute or class to format tags */
/* .format-tag { ... } */

.course-link {
    margin: 0;
    display: inline-block;
    padding: 12px 28px; /* Adjusted padding */
    background-color: transparent;
    border: 1px solid; /* Border color set below */
    border-radius: 100px;
    font-size: 0.95rem; /* Adjusted size */
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    align-self: flex-start;
    /* color set below */
}

/* Button color variations using vivid variables */
.course-card:nth-child(4n+1) .course-link { border-color: var(--button-pink); color: var(--button-pink); }
.course-card:nth-child(4n+1) .course-link:hover { background-color: rgba(233, 30, 99, 0.05); }

.course-card:nth-child(4n+2) .course-link { border-color: var(--button-blue); color: var(--button-blue); }
.course-card:nth-child(4n+2) .course-link:hover { background-color: rgba(33, 150, 243, 0.05); }

.course-card:nth-child(4n+3) .course-link { border-color: var(--button-orange); color: var(--button-orange); }
.course-card:nth-child(4n+3) .course-link:hover { background-color: rgba(255, 152, 0, 0.05); }

.course-card:nth-child(4n+4) .course-link { border-color: var(--button-green); color: var(--button-green); }
.course-card:nth-child(4n+4) .course-link:hover { background-color: rgba(76, 175, 80, 0.05); }

/* Responsive adjustments for larger cards */
@media (max-width: 1024px) { /* Adjust breakpoint if needed */
     .course-card {
        flex-basis: 380px; /* Slightly smaller on medium screens */
        min-width: 380px;
        height: 570px; /* Maintain ratio */
    }
     .courses-carousel {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .course-card {
        flex-basis: 80vw; /* Adjust width for mobile */
        min-width: 80vw;
        height: auto; /* Let height adjust */
    }
    .course-image {
        height: 200px; /* Adjust image area height */
    }
    .card-inner {
        padding: 24px;
    }
     /* Hide nav buttons on smallest screens if needed */
    .carousel-prev, .carousel-next {
        display: none;
    }
}

/* Updated carousel controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
    padding: 0 20px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Updated indicator styles */
.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.indicator {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background-color: var(--primary-color);
    width: 50px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 8px 0;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
    margin-bottom: 100px;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(36, 36, 36);/*white;*/
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: black
}

.newsletter-form {
    display: flex;
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form button {
    padding: 0 30px;
    border: none;
    background-color: var(--dark-color);
    color: white;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.newsletter-form button:hover {
    background-color: #6a67ce;
    transform: translateY(-2px);
}

.newsletter-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dot {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.dot1 {
    width: 150px;
    height: 150px;
    top: -50px;
    left: 10%;
}

.dot2 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    right: 15%;
}

.dot3 {
    width: 70px;
    height: 70px;
    top: 40%;
    right: 5%;
}

/* CTA Section */
.cta-section {
    
    background: linear-gradient(135deg, var(--dark-color), var(--primary-dark));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    margin-bottom: 100px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #6a67ce;
    color: white;
    border-radius: 30px;
    font-weight: bold;
    transition: var(--transition);
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Show compact dropdown and hide complex tabs */
    .mobile-filter { display: block; }
    .filter-tabs { display: none; }

    .newsletter-form {
        flex-direction: column;
        padding: 0 20px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .newsletter-content h2,
    .cta-content h2 {
        font-size: 2rem;
    }

    .newsletter-content p,
    .cta-content p {
        font-size: 1rem;
    }

    .course-card {
        flex-basis: 85vw;
        min-width: 85vw;
        height: auto;
    }

    .courses-carousel {
        gap: 20px;
    }
    
    .carousel-prev, .carousel-next {
        width: 40px;
        height: 40px;
        top: calc(50% - 20px);
    }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
}


/* Add highlight style if needed from search */
.highlight {
    background-color: yellow;
    font-weight: bold;
}