/* 
====================================================================
   AcademyCodeHub - Main Stylesheet
====================================================================
*/

/* -----------------------------------------------------------------
   1. Variables & Reset
----------------------------------------------------------------- */
:root {
    /* Colors */
    --primary-color: #FF6600;
    --primary-dark: #e65c00;
    --secondary-color: #1E90FF;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-secondary: #F9F9F9;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --black: #000000;

    /* Fonts */
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* Transitions */
    --transition: all 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Variables */
body.dark-mode {
    --text-color: #F5F5F5;
    --text-light: #CCCCCC;
    --bg-color: #121212;
    --bg-secondary: #1E1E1E;
    --card-bg: #252525;
    --border-color: #333333;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------------------------
   2. Utility Classes
----------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #187bcd;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
}

.col-md-4 {
    width: 33.33%;
    padding: 0 15px;
}

.col-md-8 {
    width: 66.66%;
    padding: 0 15px;
}

.col-md-3 {
    width: 25%;
    padding: 0 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

/* -----------------------------------------------------------------
   3. Header & Navigation
----------------------------------------------------------------- */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    /* Remove padding from container, handle in children */
}

.top-bar {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    font-size: 1rem;
    /* Increased from 0.85rem */
}

.top-info strong {
    margin-right: 5px;
    color: #ccc;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    /* Align all content to right */
    align-items: center;
    flex-wrap: wrap;
}

.top-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* Increased gap */
    justify-content: flex-end;
}

.info-item {
    display: inline-flex;
    align-items: center;
}

.info-item i {
    font-size: 1.4em;
    /* Increased from 1.2em */
    color: var(--primary-color);
    margin-right: 0.8rem;
    /* Increased margin */
}

.info-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.info-text h6 {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.9rem;
    /* Increased from 0.8rem */
    color: #fff;
    line-height: 1.1;
}

.info-text a {
    font-size: 0.9rem;
    /* Increased from 0.75rem */
    color: #ccc;
    line-height: 1.1;
}

.info-text a:hover {
    color: var(--primary-color);
}

.top-social a {
    color: #fff;
    margin-left: 15px;
    transition: var(--transition);
}

.top-social a:hover {
    color: var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    /* Add padding back to navbar */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 25px;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-color);
}

/* -----------------------------------------------------------------
   4. Hero Section (Carousel)
----------------------------------------------------------------- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 95px;
    /* Adjusted for header + top bar height */
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    text-align: left;
    color: var(--white);
    max-width: 800px;
    padding: 40px;
    position: absolute;
    bottom: 80px;
    left: 50px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.carousel-slide.active .carousel-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* -----------------------------------------------------------------
   3. Partners Section
----------------------------------------------------------------- */
.partners-section {
    padding: 40px 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    background-color: #2a2a2a;
    padding: 0 20px;
    border-radius: 10px;
}

/* Dark mode için normal arka plan */
body.dark-mode .slider {
    background-color: transparent;
}

/* Light modda blur yok */
.slider::before,
.slider::after {
    content: none;
}

/* Dark mode'da blur var */
body.dark-mode .slider::before,
body.dark-mode .slider::after {
    background: linear-gradient(to right, var(--bg-secondary) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

body.dark-mode .slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

body.dark-mode .slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: max-content;
    /* Fits all slides dynamically */
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.slide img {
    width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.slide img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move by half the total width (one full set) */
    }
}

/* -----------------------------------------------------------------
   4. About Section
----------------------------------------------------------------- */
.about {
    background-color: var(--bg-color);
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

/* -----------------------------------------------------------------
   6. Education Programs Section
----------------------------------------------------------------- */
.programs {
    background-color: var(--bg-secondary);
}

.program-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    overflow: hidden;
    text-align: left;
    /* Reset text align */
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.program-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-img {
    transform: scale(1.05);
}

.program-badge {
    position: absolute;
    top: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.badge-left {
    left: 10px;
}

.badge-right {
    right: 10px;
}

.program-content {
    padding: 20px;
}

.program-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
    padding: 0;
}

.program-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 0;
}

.program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.program-tag {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.program-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.program-level {
    font-weight: 600;
}

.level-basic {
    color: #2ecc71;
}

.level-mid {
    color: #f39c12;
}

.level-master {
    color: #e74c3c;
}

.program-price {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
}

.btn-detail {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-detail:hover {
    background-color: #e65c00;
    /* Darker orange */
    color: #fff;
}

/* -----------------------------------------------------------------
   7. Popular Courses Section
----------------------------------------------------------------- */
.courses {
    background-color: var(--bg-color);
}

.course-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    overflow: hidden;
    text-align: left;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.course-img-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.4;
}

.course-schedule {
    background-color: var(--bg-secondary);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.course-schedule div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.course-schedule div:last-child {
    margin-bottom: 0;
}

.course-schedule i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-course-detail {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-course-detail:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Load More Button */
.load-more-container {
    text-align: right;
    margin-top: 30px;
}

.btn-load-more {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.hidden-course {
    display: none;
}

.hidden-program {
    display: none;
}

/* -----------------------------------------------------------------
   8. Projects Section
----------------------------------------------------------------- */
.projects {
    background-color: var(--bg-secondary);
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    overflow: hidden;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.project-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.btn-project-detail {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    margin-top: 15px;
}

.btn-project-detail:hover {
    background-color: #e65c00;
}

.hidden-project {
    display: none;
}

/* -----------------------------------------------------------------
   9. Curriculum Section
----------------------------------------------------------------- */
.curriculum {
    background-color: var(--bg-color);
}

.curriculum-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

.curriculum-container {
    display: flex;
    gap: 30px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}

.week-list {
    flex: 0 0 30%;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.week-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    box-shadow: none;
    text-align: left;
}

.week-item:hover {
    background-color: rgba(255, 102, 0, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.15);
}

.week-item.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

/* Schedule Item Styles (from Strapi CMS) */
.schedule-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    box-shadow: none;
    text-align: left;
    margin-bottom: 10px;
}

.schedule-item:hover {
    background-color: rgba(255, 102, 0, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.15);
}

.schedule-item.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.schedule-item strong {
    font-weight: 700;
}

/* Module Detail Styles (Right Content) */
.module-detail {
    display: none;
    color: var(--text-color);
}

.module-detail.active {
    display: block;
}

.module-detail h2,
.module-detail h3,
.module-detail h4 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.module-detail h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.module-detail h4 {
    font-size: 1.2rem;
    color: var(--text-light);
}

.module-detail ul {
    list-style: none;
    padding-left: 0;
}

.module-detail ul li {
    margin-bottom: 0.8rem;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
}

.module-detail ul li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.module-detail p {
    color: var(--text-color);
    line-height: 1.6;
}

.module-detail b {
    color: var(--primary-color);
}



.week-detail {
    flex: 1;
    padding-left: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

.detail-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.detail-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.detail-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.topic-list {
    list-style: none;
}

.topic-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-color);
}

.topic-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

@media (max-width: 768px) {
    .curriculum-container {
        flex-direction: column;
    }

    .week-list {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        flex: none;
    }

    .week-detail {
        padding-left: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* -----------------------------------------------------------------
   10. Packages Section
----------------------------------------------------------------- */
.packages {
    background-color: var(--bg-secondary);
}

.package-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.package-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.package-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.package-header h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.package-body {
    padding: 30px;
    text-align: center;
}

.package-body ul {
    margin-bottom: 30px;
    text-align: left;
}

.package-body li {
    margin-bottom: 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.package-body li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.package-body li.disabled {
    color: #ccc;
    text-decoration: line-through;
}

.package-body li.disabled i {
    color: #ccc;
}

/* -----------------------------------------------------------------
   9. FAQ Section
----------------------------------------------------------------- */
.faq-section {
    background-color: var(--bg-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.accordion-item {
    background-color: var(--card-bg);
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* -----------------------------------------------------------------
   7. Team Section
----------------------------------------------------------------- */
.team {
    background-color: var(--bg-color);
}

/* Team Gallery (Horizontal Scroll) */
.team-gallery {
    display: flex;
    flex-wrap: nowrap;
    /* Ensure single line */
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for cleaner look but allow scrolling */
.team-gallery::-webkit-scrollbar {
    height: 8px;
}

.team-gallery::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.team-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.team-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    min-width: 300px;
    width: 300px;
    /* Fixed width to ensure text wraps */
    /* Fixed width to prevent shrinking */
    flex: 0 0 auto;
    /* Do not grow or shrink */
    scroll-snap-align: start;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-img {
    position: relative;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 102, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    /* Allow clicks to pass through */
}

.team-card:hover .social-overlay {
    opacity: 1;
}

.social-overlay a {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    /* Re-enable clicks for social icons */
}

.social-overlay a:hover {
    background: var(--white);
    color: var(--primary-color);
}

.team-info {
    padding: 20px;
}

.team-info h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.team-info span {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.team-bio {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 10px;
    color: var(--text-light);
    white-space: normal;
    /* Ensure text wraps */
}

/* -----------------------------------------------------------------
   8. Contact & FAQ Pages
----------------------------------------------------------------- */
.page-header {
    background-color: var(--bg-secondary);
    padding: 160px 0 60px;
    /* Adjusted for taller header */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header #particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: red;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Accordion */
.accordion-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.accordion-header.active {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.accordion-content p {
    padding: 20px 0;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* -----------------------------------------------------------------
   9. Footer
----------------------------------------------------------------- */
.footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 10px 0 20px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer h3 span {
    color: var(--primary-color);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about p {
    color: #cccccc;
    margin-bottom: 20px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #333;
    color: var(--white);
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-links a {
    color: #cccccc;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #cccccc;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-newsletter p {
    color: #bbb;
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter input {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #222;
    color: #fff;
    outline: none;
}

.footer-newsletter input:focus {
    border-color: var(--primary-color);
}

.footer-newsletter button {
    width: 100%;
    border-radius: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #888;
}

.footer-bottom-logo {
    max-width: 400px;
    height: auto;
    margin-top: 30px;
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
   
}

.footer-bottom-logo:hover {
    opacity: 1;
}

/* -----------------------------------------------------------------
   10. Responsive Design
----------------------------------------------------------------- */
@media (max-width: 992px) {

    .col-md-6,
    .col-md-4,
    .col-md-3 {
        width: 100%;
        margin-bottom: 30px;
    }

    .package-card.featured {
        transform: none;
    }

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

    .carousel-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

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

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

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .theme-toggle {
        margin-left: 0;
        margin-top: 30px;
        font-size: 1.5rem;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .carousel-btn {
        display: none;
    }

    .top-bar {
        display: none;
        /* Hide top bar on mobile to save space */
    }
}

@media (max-width: 480px) {
    .carousel-content h1 {
        font-size: 1.5rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

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

/* -----------------------------------------------------------------
   Scroll to Top Button
   ----------------------------------------------------------------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
    background: #ff8800;
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* -----------------------------------------------------------------
   11. Instructor Detail Page Styles
----------------------------------------------------------------- */
.instructor-detail-section {
    padding-top: 160px;
    /* Account for fixed header + top bar */
    min-height: 80vh;
}

.instructor-img-large img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* Center the row content vertically */
.instructor-profile .row {
    align-items: center;
    justify-content: center;
    /* Center horizontally if needed, though cols fill width */
}

.instructor-info-large {
    padding-left: 40px;
}

.instructor-info-large h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    /* Increased spacing */
}

.instructor-info-large .role {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 600;
    display: block;
    /* Ensure it takes full width */
}

.instructor-info-large .bio {
    margin-bottom: 30px;
}

.instructor-info-large .bio h4,
.instructor-info-large .skills h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.instructor-info-large .bio p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.skill-tag {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Social Links Styling */
.instructor-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.instructor-social-links a {
    width: 45px;
    height: 45px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.instructor-social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Back Button Styling */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-back:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .instructor-img-large {
        margin-bottom: 30px;
    }

    .instructor-info-large {
        padding-left: 0;
    }

    .instructor-info-large h1 {
        font-size: 2rem;
    }
}