/* ========================================
   EDUTECH - Professional Education Website
   ======================================== */

/* ========================================
   CSS VARIABLES (Easy Color Customization)
   ======================================== */
:root {
    /* Primary Colors */
    --primary-red: #fd7e14;
    --primary-dark: #fd7e14;
    --primary-light: #fd7e14;

    /* Text Colors */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --text-white: #FFFFFF;

    /* Background Colors */
    --bg-light: #F8F9FA;
    --bg-dark: #2C3E50;
    --bg-darker: #1A252F;

    /* Border & Shadow */
    --border-color: #E0E0E0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Fonts */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    /* Layout Widths */
    --container-width: 1200px;
    --header-container-width: 1200px;
    --content-max-width: 1140px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

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

@keyframes underlineExpand {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

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

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

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

.btn-search {
    background-color: var(--primary-red);
    color: var(--text-white);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
}

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

.btn-read-more {
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 15px;
}

.btn-read-more:hover {
    color: var(--bg-darker);
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background-color: var(--bg-darker);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 25px;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

/* Staggered animation delays for left items */
.top-bar-left span:nth-child(1) {
    animation-delay: 0.1s;
}

.top-bar-left span:nth-child(2) {
    animation-delay: 0.2s;
}

.top-bar-left span:nth-child(3) {
    animation-delay: 0.3s;
}

.top-bar-left i {
    margin-right: 8px;
    color: var(--primary-red);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right>* {
    opacity: 0;
    animation: slideInRight 0.6s ease forwards;
}

/* Staggered animation delays for right items */
.top-bar-right>*:nth-child(1) {
    animation-delay: 0.1s;
}

.top-bar-right>*:nth-child(2) {
    animation-delay: 0.2s;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 13px;
}

.lang-btn i {
    margin: 0 5px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
}

/* ========================================
   MAIN HEADER
   ======================================== */
.main-header {
    background-color: var(--primary-red);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.header-content {
    max-width: var(--header-container-width);
    margin: 0 auto;
    /* padding: 0 20px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    font-size: 32px;
}

.main-nav ul {
    display: flex;
    gap: 11px;
}

.main-nav {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.2s;
    margin-top: 0;
}

.main-nav a {
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.4s ease;
}

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

.header-search {
    display: flex;
    background-color: var(--text-white);
    border-radius: 4px;
    overflow: hidden;
}

.header-search input {
    border: none;
    padding: 10px 15px;
    outline: none;
    width: 200px;
}

.header-search button {
    background-color: var(--primary-dark);
    color: var(--text-white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.header-search button:hover {
    background-color: var(--bg-darker);
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

/* Slow zoom/pan animation for slider images */
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.slide-overlay-v {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)); */
}


.slide-content {
    position: absolute;
    /* left: 0; */
    /* right: 0; */
    transform: translateY(-50%);
    color: var(--text-white);
    text-align: center;
    top: 55%;
}

.slide-content-v {
    color: var(--bg-dark) !important;
}

.slide-content-v .btn-outline {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.slide-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-50px);
}

.slide.active .slide-subtitle {
    animation: fadeInRight 0.8s ease forwards;
    animation-delay: 0.3s;
}

.slide-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.8);
}

.slide.active .slide-title {
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.6s;
}

.slide-title .highlight {
    color: var(--primary-red);
}

.slide-title-2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(50px);
}

.slide.active .slide-title-2 {
    animation: fadeInLeft 0.8s ease forwards;
    animation-delay: 0.9s;
}

.slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .slide-buttons {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-white);
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background-color: var(--primary-red);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

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

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

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

/* ========================================
   FEATURE CARDS
   ======================================== */
.feature-cards {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.feature-cards-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.feature-card {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-middle img {
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    max-width: 350px;
}

/* ========================================
   COURSE SEARCH
   ======================================== */
.course-search {
    padding: 40px 0;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

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

/* ========================================
   WELCOME SECTION
   ======================================== */
.welcome-section {
    padding: 80px 0;
    background-color: var(--text-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-description {
    font-size: 15px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.feature-icon-circle {
    width: 100px;
    height: 100px;
    background-color: var(--primary-red);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.welcome-feature:hover .feature-icon-circle {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.welcome-feature h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.welcome-feature p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   POPULAR COURSES
   ======================================== */
.popular-courses {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    align-items: start;
    /* Align all cards to top */
}

.course-card {
    background-color: var(--text-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
}

/* Directional entrance animations for course cards - triggered on scroll */
.course-card:nth-child(1).animate-in {
    animation: slideInLeft 1.2s ease forwards;
    animation-delay: 0.3s;
}

.course-card:nth-child(2).animate-in {
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.3s;
}

.course-card:nth-child(3).animate-in {
    animation: slideInRight 1.2s ease forwards;
    animation-delay: 0.3s;
}

.course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);


}

.course-title {
    transition: color 0.3s ease;
    text-transform: uppercase;
}

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

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

.course-instructor img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.course-instructor span {
    font-size: 14px;
    color: var(--text-light);
}

.course-rating {
    margin-bottom: 15px;
}

.course-rating i {
    color: #FFC107;
    font-size: 14px;
}

.course-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.course-meta span i {
    margin-right: 5px;
}

/* ========================================
   STATISTICS SECTION
   ======================================== */
.statistics-section {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--text-white);
}

.statistics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.statistics-section .container {
    position: relative;
    z-index: 1;
}

.statistics-header {
    text-align: center;
    margin-bottom: 60px;
}

.statistics-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.statistics-header .highlight {
    color: var(--primary-red);
}

.statistics-header p {
    font-size: 16px;
    margin-bottom: 30px;
}

.statistics-header h3 {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.stat-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   EVENTS SECTION
   ======================================== */
.events-section {
    padding: 80px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    align-items: start;
    /* Align all cards to top */
}

.event-card {
    background-color: var(--text-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    display: flex;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

/* Directional entrance animations for event cards - triggered on scroll */
.event-card:nth-child(1).animate-in {
    animation: slideInLeft 1.2s ease forwards;
    animation-delay: 0.3s;
}

.event-card:nth-child(2).animate-in {
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.3s;
}

.event-card:nth-child(3).animate-in {
    animation: slideInRight 1.2s ease forwards;
    animation-delay: 0.3s;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.event-card:hover::before {
    left: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.event-date {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 15px 13px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
    transition: all 0.3s ease;
}

.event-card:hover .event-date {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.4);
}

.date-day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 5px;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.event-title {
    transition: color 0.3s ease;
}

.event-title:hover {
    color: var(--primary-red);
}

.event-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.event-meta span i {
    margin-right: 5px;
}

.event-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.event-price {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    background-color: var(--bg-darker);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
    color: var(--primary-red);
    margin-top: 3px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }

    .main-nav ul {
        justify-content: center;
        gap: 11px;
    }

    .feature-cards-row {
        grid-template-columns: 1fr;
    }

    .feature-middle {
        order: -1;
    }

    .welcome-features,
    .courses-grid,
    .events-grid,
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-left span {
        display: block;
        margin: 5px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 11px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-title,
    .slide-title-2 {
        font-size: 13px;
        /* padding: 0px 30% !important; */
    }

    .slide-subtitle {
        font-size: 12px;
    }


    .slide-buttons {
        flex-direction: column;
        align-items: center;
        margin-left: -25px;
        gap: 10px;
    }

    .btn {
        padding: 5px 9px;
    }

    .slider-nav {
        padding: 10px 15px;
        font-size: 18px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .welcome-features,
    .courses-grid,
    .events-grid,
    .statistics-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .stat-number {
        font-size: 36px;
    }

    .mu-view-toggle {
        display: none !important;
    }
}

.slide-title,
.slide-title-2 {
    /* font-size: 14px; */
    padding: 0px 18%;
}


/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-title,
    .slide-title-2 {
        font-size: 14px;

    }

    .section-title {
        font-size: 22px;
    }

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



/* Submenu Styles */
.main-nav .has-submenu {
    position: relative;


}

.main-nav .has-submenu>a i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;

}

.main-nav .has-submenu:hover>a i {
    transform: rotate(180deg);
}

.main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--text-white);
    min-width: 220px;
    box-shadow: var(--shadow-medium);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    padding: 10px 0;
    margin-top: 22px;
}

.main-nav .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .submenu li {
    opacity: 0;
    transform: translateX(-10px);
}

.main-nav .has-submenu:hover .submenu li {
    animation: fadeInRight 0.4s ease forwards;
}

.main-nav .has-submenu:hover .submenu li:nth-child(1) {
    animation-delay: 0.1s;
}

.main-nav .has-submenu:hover .submenu li:nth-child(2) {
    animation-delay: 0.2s;
}

.main-nav .has-submenu:hover .submenu li:nth-child(3) {
    animation-delay: 0.3s;
}

.main-nav .has-submenu:hover .submenu li:nth-child(4) {
    animation-delay: 0.4s;
}

.main-nav .has-submenu:hover .submenu li:nth-child(5) {
    animation-delay: 0.5s;
}

.main-nav .submenu li {
    display: block;
}

.main-nav .submenu a {
    display: block;
    padding: 10px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-nav .submenu a::after {
    display: none;
}

.main-nav .submenu a:hover {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding-left: 25px;
}


/* ========================================
   CARD FADE-IN ANIMATIONS
   =======================================/* Feature cards and welcome features - scroll-triggered fade-in */
.feature-card,
.welcome-feature {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-card.animate-in,
.welcome-feature.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Keyframe for fade-in-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Statistics items animation */
.stat-item {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.statistics-section.in-view .stat-item {
    opacity: 1;
    transform: scale(1);
}

.statistics-section.in-view .stat-item:nth-child(1) {
    transition-delay: 0s;
}

.statistics-section.in-view .stat-item:nth-child(2) {
    transition-delay: 0.2s;
}

.statistics-section.in-view .stat-item:nth-child(3) {
    transition-delay: 0.4s;
}

.statistics-section.in-view .stat-item:nth-child(4) {
    transition-delay: 0.6s;
}




dl,
ol,
ul {
    margin-top: 0;
    margin-bottom: 0rem;
}

.mu-top-social-nav {
    z-index: 1001;
}

ul .dropdown-menu .dropdown-item * {
    font-size: 14px;
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: black !important;
}

.dropdown-item.active {
    background-color: var(--primary-red) !important;
}

.logo .navbar-brand {
    max-width: 160px !important;
}

.mainSection {
    padding: 25px 0 25px 0;
}

/* Hide header search on Tablet & Mobile */
@media (max-width: 1024px) {
    .header-search {
        display: none !important;
    }
}


.active>.page-link,
.page-link.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.page-link,
.disabled>.page-link,
.page-link.disabled {
    color: var(--primary-red);
}



#mu-footer .mu-footer-top .mu-footer-top-area .mu-footer-widget ul li a {
    color: #f9f9f9;
    display: inline-block;
    font-size: 13px;
    font-weight: normal;
    padding: 5px 0 5px 15px;
    position: relative;
    text-transform: capitalize;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#mu-footer .mu-footer-top .mu-footer-top-area .mu-footer-widget ul li a:before {
    content: "\f101";
    font-family: FontAwesome;
    left: 0;
    position: absolute;
    top: 5px;
}

#mu-footer .mu-footer-top .mu-footer-top-area .mu-footer-widget ul li a:hover,
#mu-footer .mu-footer-top .mu-footer-top-area .mu-footer-widget ul li a:focus {
    margin-left: 5px;
    color: #f9bd40;
}

.rtl {
    direction: rtl;
}

.course-instructor,
.course-price,
.course-description {
    display: none;
}

/* Default: 3 or more courses – assume grid or flex row */
.courses-grid {
    display: flex;
    flex-wrap: wrap;
    /* gap: 20px;  */
    justify-content: flex-center;
}

/* When only 1 course: center it */
.courses-grid.single-course {
    justify-content: center;
}

/* When 2 courses: space them evenly with space around */
.courses-grid.two-courses {
    justify-content: space-around;
}

.course-card {
    flex: 1 1 300px;
    /* grow, shrink, base width */
    max-width: 350px;
}

.section-title {
    margin-left: -45px;
}

.event-description {
    height: 75px;
    /* Adjust as needed – e.g., 2 lines of text */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
    /* Ensure wrapping */
}







/* Default: 3 or more courses – assume grid or flex row */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    /* gap: 20px;  */
    justify-content: center;
}

/* When only 1 course: center it */
.events-grid.single-course {
    justify-content: center;
}

/* When 2 courses: space them evenly with space around */
.events-grid.two-courses {
    justify-content: space-around;
}

.event-card {
    flex: 1 1 300px;
    /* grow, shrink, base width */
    max-width: 350px;
}
.dropdown-toggle::after {
    margin-right: .255em;
}
.me-1 {
  margin-left: .25rem !important;
}