


:root {

    --primary-color: #d7509b;
    --brand-cyan: #548e91;
    --font-color: #548e91;
    --accent-color: #10b981;
    --dark-color: #FFD93D;
    --light-bg: #f8fafc;
    --tertiary-color: #FFD93D;
    --quaternary-color: #A8E6CF;
    --accent-purple: #548e91;
    --bg-gradient: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    --bg-color: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    --main-bg-gradient: linear-gradient(150deg, var(--brand-pink) 2%, var(--brand-cyan) 5%, var(--brand-pink) 2%,var(--brand-cyan) 2%);
    --text-dark: #2d3436;
    --text-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);

  --brand-primary: #2563eb; /* blue */
  --brand-secondary: #5a5eea; /* indigo */
  --brand-accent: #FFD93D; /* yellow */
  --brand-dark: #1f2937; /* slate-800 */
  --brand-muted: #374151; /* slate-700 */
  --bg-soft: #f8fafc;
  --bg-gradient: linear-gradient(180deg, rgba(168,230,207,0.18) 0%, rgba(255,217,61,0.12) 40%, rgba(90,94,234,0.10) 100%);
  --brand-pink: #d7509b;
  --brand-cyan: #548e91;
  --brand-alt: #6dbfb8;

  --correct-answer: #10b981;
}
/* Large CTA variant for big actions */
.btn-cta-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    line-height: 1.2;
    border-radius: 0.6rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}



html {
    scroll-behavior: smooth;
    font-size: 1.1rem;
     scroll-behavior: smooth; 
    overflow-x: hidden;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--main-bg-gradient);
    color: var(--brand-alt);
    overflow-x: hidden;
    font-size: 1rem;
    color: var( --brand-pink);
}

* {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     color: var( --brand-pink);
}




.main-content {
      /* background: var(--light-bg); */
      min-height: calc(100vh - 200px);
      border-radius: 20px 20px 0 0;
      margin-top: 20px;
      /* padding: 30px 0; */
    }


    .btn-primary {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      border: none;
      padding: 12px 30px;
      border-radius: 12px;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    }

    .btn-success {
      background: linear-gradient(135deg, var(--accent-color), #059669);
      border: none;
      padding: 12px 30px;
      border-radius: 12px;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .btn-success:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    }

    .alert {
      border-radius: 12px;
      border: none;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    footer {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 15px 15px 0 0;
      margin-top: 50px;
    }

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

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

    .container {
      animation: fadeIn 0.6s ease;
    }

    /* Ensure anchors account for sticky navbar height */
    #features, #courses, #stages { scroll-margin-top: 100px; }

    /* Breadcrumbs Styling */
    .kids-news-ticker-wrapper {
      width: 100%;
      padding: 0 0 8px 0;
      z-index: 900;
    }

    .kids-news-ticker-bg {
      background: linear-gradient(90deg, #FFD93D 0%, #A8E6CF 100%);
      border-radius: 16px;
      box-shadow: 0 2px 12px rgba(255, 215, 61, 0.08);
      display: flex;
      align-items: center;
      padding: 8px 18px;
      min-height: 48px;
      position: relative;
      overflow: hidden;
    }

    .news-ticker-icon {
      font-size: 2rem;
      margin-left: 18px;
      margin-right: 8px;
      animation: ticker-bounce 1.2s infinite alternate;
    }

    @keyframes ticker-bounce {
      0% {
        transform: translateY(0);
      }

      100% {
        transform: translateY(-7px);
      }
    }

    .kids-news-ticker {
      flex: 1;
      overflow: hidden;
      font-family: 'Cairo', sans-serif;
      font-size: 1.18rem;
      color: #2563eb;
      font-weight: 700;
      white-space: nowrap;
      letter-spacing: 0.01em;
    }

    .news-ticker-item {
      color: #2563eb;
      font-family: 'Cairo', sans-serif;
      font-weight: 700;
      font-size: 1.18rem;
      margin-left: 18px;
      display: inline-block;
    }

    @media (max-width: 767px) {
      .kids-news-ticker-bg {
        padding: 6px 6px;
        min-height: 38px;
      }

      .news-ticker-icon {
        font-size: 1.3rem;
        margin-left: 8px;
      }

      .kids-news-ticker {
        font-size: 1.02rem;
      }

      .news-ticker-item {
        font-size: 1.02rem;
        margin-left: 8px;
      }
    }

    .breadcrumb-wrapper .breadcrumb-item i {
      font-size: 0.75rem;
    }


/* Responsive Cards for Sliders */
@media (max-width: 600px) {

    .project-card,
    .course-card-modern,
    .stage-card {
        min-width: 90vw !important;
        max-width: 96vw !important;
        margin: 0 2vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .project-image-wrapper,
    .course-img-wrapper {
        height: 120px !important;
        min-height: 100px !important;
    }

    .trainee-slider {

        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 8px 0 8px 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .stages-slider,
    .traineeprojects-slider,
    .courses-slider {
        gap: 12px !important;
        padding: 10px 0 !important;
    }

    .project-info,
    .course-card-body {
        padding: 10px 4px !important;
    }
}

@media (max-width: 400px) {

    .project-card,
    .course-card-modern,
    .stage-card {
        min-width: 98vw !important;
        max-width: 99vw !important;
        margin: 0 0.5vw !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
    }

    .project-image-wrapper,
    .course-img-wrapper {
        height: 80px !important;
        min-height: 60px !important;
    }
}


/* Slider hero background */
.slider-card-bg {
    background-image: url('/kids-educational-platform/images/abf.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
}

/* CTA size variants */
.btn-cta,
.btn-cta-sm,
.btn-cta-xs { display: inline-block; text-decoration: none; }
.btn-cta { /* alias to cta-button already defined above */ }
.btn-cta-sm { padding: 0.4rem 1.25rem; font-size: 0.9rem; border-radius: 40px; }
.btn-cta-xs { padding: 0.18rem 0.5rem; font-size: 0.8rem; border-radius: 36px; }

/* Inherit gradient/hover from cta-button */
.btn-cta,
.btn-cta-sm,
.btn-cta-xs {
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-cta::before,
.btn-cta-sm::before,
.btn-cta-xs::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: rgba(255,255,255,0.3);
    transition: left 0.5s ease;
}
.btn-cta:hover,
.btn-cta-sm:hover,
.btn-cta-xs:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255, 107, 107, 0.5);
}
.btn-cta:hover::before,
.btn-cta-sm:hover::before,
.btn-cta-xs:hover::before { left: 100%; }
/* Notification badge offset */
.badge-offset-notif { top: -10px; right: -25px; }
/* Subjects page */
.card-left-blue { border-left: 5px solid #2563eb; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.card-header-blue { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; }
.transition-300 { transition: all 0.3s ease; }
.position-relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.subject-decor-circle { position: absolute; top: -20px; right: -20px; width: 100px; height: 100px; background: linear-gradient(135deg, #2563eb80 0%, #1d4ed880 100%); border-radius: 50%; opacity: 0.2; }
.icon-3rem { font-size: 3rem; }
.text-gray-800 { color: #1f2937 !important; }
.badge-brand-blue { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); padding: 8px 15px; font-size: 0.9rem; }
.border-2 { border-width: 2px !important; }

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
}

/* Units popup */
.units-popup {
    position: fixed;
    top: 10vh;
    left: 0; right: 0;
    margin: auto;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.125);
    padding: 24px;
    z-index: 9999;
}
.units-title { color: #2563eb; font-weight: 700; }
.units-loading { color: #888; text-align: center; }
.units-list { list-style: none; padding: 0; }
.units-close-btn { margin-top: 12px; background: #2563eb; color: #fff; border: none; border-radius: 8px; padding: 6px 18px; }
.unit-link { margin-bottom: 8px; padding: 8px 0; border-bottom: 1px solid #eee; cursor: pointer; color: #2563eb; }
/* Partners section */
.partners-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 24px 0;
    border: 3px solid #EAF2FF;
}

.partners-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--bg-gradient);
    border-bottom: 1px solid #E6ECFF;
}

.partners-logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.img-contain-90 {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.partners-title {
    margin: 0;
    font-weight: 900;
    color: #222;
}

.mw-820 { max-width: 820px; }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    justify-content: center;
    justify-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

.partner-item {
    background: #f9fbff;
    border: 1px solid #E6ECFF;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-logo-box {
    width: 120px;
    height: 64px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eef3ff;
}

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

.partner-name {
    font-weight: 800;
    color: #222;
    margin-bottom: 6px;
}

.partner-desc {
    color: #555;
    font-size: 0.95rem;
}

.grid-span-all { grid-column: 1 / -1; }




.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

main-content {
    padding: 4rem 0rem;
    width: 100% ;
    margin: 0;
}

.logo {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    color: var(-- --brand-pink);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--brand-pink);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-cyan));
    transition: width 0.3s ease;
}

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




/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    width: 100%;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}

.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(40px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #FF6B6B;
    top: -50px;
    left: -50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #FFD93D;
    top: 50%;
    right: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: #4ECDC4;
    bottom: -100px;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-4 {
    width: 280px;
    height: 280px;
    background: #A8E6CF;
    bottom: 50px;
    right: 50px;
    animation: float 9s ease-in-out infinite reverse;
}

.hero-content {
    position: sticky;
    z-index: 10;
    text-align: center;
    width: 80%;
    height: 100vh;
    padding: 2rem;
    background-image: url(../images/abf.jpg);
    background-size: 100%;
    border-radius: 20px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.word {
    display: block;
    animation: wordFlip 0.8s ease-out backwards;
}

.word:nth-child(1) {
    animation-delay: 0.1s;
}

.word:nth-child(2) {
    animation-delay: 0.3s;
}

.word:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes wordFlip {
    from {
        opacity: 0;
        transform: rotateX(90deg) translateY(20px);
    }

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--brand-pink);
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out 0.7s both;
}

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out 0.9s both;
    background: var(--bg-gradient);
    border-radius: 20px;
}

.icon-box {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.2) rotateZ(10deg);
}

.icon-box:nth-child(1) {
    animation-delay: 0s;
}

.icon-box:nth-child(2) {
    animation-delay: 0.2s;
}

.icon-box:nth-child(3) {
    animation-delay: 0.4s;
}

.icon-box:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.cta-button,
.btn-cta {
    padding: 0.5rem 3rem;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-out 1.1s both;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.cta-button::before,
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

.cta-button:hover,
.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.6);
}

.cta-button:hover::before,
.btn-cta:hover::before {
    left: 100%;
}

/* Featured Slider Section */
.featured {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #880857 5%, #eaeff0 20%);
    margin-top: 3rem;
}



.slider-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    /* height: 1200px; */
    margin-top: 100px;
}

.slider {
    position: relative;
    top: 0;
    right: 0;
    height: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f5f7fa;
}


.slider-img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    border-radius: 20px;
    position: absolute;
}

.slider-content-section {
    position: absolute;
    left: 20%;
    bottom: 30%;
    padding: 5rem 2rem;
    /* background: linear-gradient(135deg, #880857 5%, #eaeff0 20%); */
    border-radius: 20px;
    height: 100px;
    color: var(--brand-accent);
}

.slider-info {
    position: absolute;
    left: 10px;
    top: 55%;
    z-index: 10;

    background: linear-gradient(135deg, #f5f7fa, #e4e9f0);

    border-radius: 20px;
    /* margin-top: 2rem; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* padding: 20px; */
    /* padding: 32px; */


    transform: translate(-50%, -50%);
    width: 80%;
    height: 30px;

}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-pink);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--brand-pink);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: -30px;
}

.slider-btn.next {
    right: -30px;
}


.curriculum-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-pink);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.curriculum-slider-btn:hover {
    background: var(--brand-pink);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.curriculum-slider-btn.prev {
    left: -30px;
}

.curriculum-slider-btn.next {
    right: -30px;
}


.courses-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-pink);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.courses-slider-btn:hover {
    background: var(--brand-pink);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.courses-slider-btn.prev {
    left: -30px;
}

.courses-slider-btn.next {
    right: -30px;
}


.traineeprojects-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-pink);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.traineeprojects-slider-btn:hover {
    background: var(--brand-pink);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.traineeprojects-slider-btn.prev {
    left: -30px;
}

.traineeprojects-slider-btn.next {
    right: -30px;
}

.slider-info h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.slider-info p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.slider-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.slider-meta span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.enroll-button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--brand-cyan), #45B7D1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.enroll-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(78, 205, 196, 0.6);
}

/* Courses Section */
.courses {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa, #e4e9f0);
}

.course-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.7rem 1.5rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.category-btn:hover,
.category-btn.active {
    background: var(--bg-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.course-card {
    background: linear-gradient(135deg, #880857 5%, #eaeff0 20%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.course-card.hidden {
    display: none;
    opacity: 0;
}

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

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

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    /* background: linear-gradient(135deg, #880857 5%, #eaeff0 20%); */
    padding: 0.5rem 3rem;
    font-size: 0.7rem;
    font-weight: 700;
    /* background: linear-gradient(135deg, #FF6B6B, #FF8E72); */
    color: white;
    border: none;
    border-radius: 50px;
    /* cursor: pointer; */
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-out 1.1s both;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.course-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    min-height: 60px;
}

.course-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-level {
    background: #f0f0f0;
    color: var(--brand-pink);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
}

.learn-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.learn-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    max-width: 1200px;
    margin: 3rem auto;
    border-radius: 20px;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Quiz Section */
.quiz-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #880857 5%, #eaeff0 20%);
}

.content-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #880857 5%, #eaeff0 20%);
    border-radius: 20px;
    height: 100px;

}

.quiz-container {
    max-width: 900px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* Quiz Selection */
.quiz-selection {
    text-align: center;
}

.quiz-selection h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.quiz-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.quiz-topic-btn {
    padding: 2rem;
    background: white;
    border: 3px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.quiz-topic-btn:hover {
    border-color: var(--brand-pink);
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
}

.topic-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.category-btn:hover .topic-icon {
    transform: scale(1.2) rotateZ(10deg);
}

.topic-name {
    font-size: 1.1rem;
}

/* Quiz Content */
.quiz-content {
    background: var(--bg-gradient);
    border-radius: 20px;
    padding: 3rem;
    animation: slideUp 0.5s ease-out;
}

.quiz-content.hidden {
    display: none;
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--bg-gradient);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.score-display {
    color: var(--brand-pink);
}

/* Question Container */
.question-container {
    background: var(--bg-gradient);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.question-text {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.6;
}

/* Answers Grid */
.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.answer-btn {
    padding: 1.5rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.answer-btn:hover:not(.disabled) {
    border-color: var(--brand-pink);
    background: linear-gradient(135deg,var(--brand-dark, var(--brand-muted)), var(--brand-cyan));
    transform: translateY(-5px);
}

.answer-btn.selected {
    border-color: var(--brand-pink);
    background: linear-gradient(135deg, var(--brand-pink),var(--brand-cyan));
    color: white;
}

.answer-btn.correct {
    border-color: var(--correct-answer);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    animation: correctAnswer 0.5s ease-out;
}

.answer-btn.incorrect {
    border-color: #ef4444;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: shake 0.5s ease-out;
}

.answer-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes correctAnswer {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Quiz Controls */
.quiz-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.quiz-nav-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--brand-pink), #FF8E72);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.quiz-nav-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.quiz-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Page */
.quiz-results {
    animation: slideUp 0.5s ease-out;
}

.quiz-results.hidden {
    display: none;
}

.results-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #880857 5%, #eaeff0 20%);
    box-shadow: var(--shadow-lg);
}

.results-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    animation: bounce 0.6s ease-out;
}

.score-circle {
    background: rgba(255, 255, 255, 0.2);
    border: 5px solid white;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    flex-direction: column;
    backdrop-filter: blur(10px);
    animation: scaleIn 0.6s ease-out;
}

.score-number {
    font-size: 4rem;
    font-weight: 900;
}

.score-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.results-message {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    font-weight: 700;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat {
    padding: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-name {
    font-size: 0.95rem;
    opacity: 0.9;
}

.results-feedback {
    font-size: 1.1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    line-height: 1.6;
}

.results-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.retake-btn,
.home-btn {
    padding: 1rem 2rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.retake-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Projects Section */
.projects-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa, #e4e9f0);
}

.projects-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 3rem;
    font-weight: 500;
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: linear-gradient(135deg, #880857 5%, #eaeff0 20%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.project-card:hover .project-image-wrapper img {
    transform: scale(1.15) rotate(2deg);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #880857 5%, #eaeff0 20%);
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 2rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    animation: slideUp 0.4s ease-out;
}

.project-overlay p {
    font-size: 1rem;
    opacity: 0.95;
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0;
}

.project-type {
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.project-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Projects CTA */
.projects-cta {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 20px;
    color: white;
}

.projects-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.projects-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.submit-project-btn {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--brand-pink);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.submit-project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #880857 5%, #eaeff0 20%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f5f7fa, #e4e9f0);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.about-card:hover .about-icon,
.about-card:hover h3,
.about-card:hover p {
    color: white;
}

.about-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.about-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.about-card p {
    color: var(--text-dark);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa, #e4e9f0);
}

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-pink);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dark);
}

.submit-button {
    padding: 1rem;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.contact-info {
    background: linear-gradient(135deg, #880857 5%, #eaeff0 20%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-info p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

/* Footer social icons: centered circular frame in brand color */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--brand-cyan);
    color: var(--brand-cyan) !important;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    margin-right: 0 !important;
}
.social-links a i { color: inherit; }
.social-links a:hover {
    background: var(--brand-cyan);
    color: #fff !important;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--text-dark);
    color: white;
    font-weight: 600;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-icons {
        gap: 1rem;
    }

    .quiz-topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quiz-content {
        padding: 1.5rem;
    }

    .question-container {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .answers-grid {
        grid-template-columns: 1fr;
    }

    .results-stats {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
    }

    .retake-btn,
    .home-btn {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-cta {
        padding: 2rem;
    }

    .projects-cta h3 {
        font-size: 1.5rem;
    }

    .icon-box {
        font-size: 2rem;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }





    .courses-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem;
    }

    .slider-info {
        padding: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }



    .stats {
        grid-template-columns: 1fr;
    }

    .slider-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Student Cards — flip on click */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.student-card {
    perspective: 1000px;
    outline: none;
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 350px;
    margin: 14px;

    padding: 24px 16px 16px 16px;
    /* font-family: 'Cairo', 'Tajawal', 'Roboto', sans-serif; */
    transition: box-shadow 0.2s;
    /* background-color: red; */



    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

}

.student-info {
    text-align: center;
    margin-top: 12px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.student-info .student-meta {


    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 12px;
    gap: 0;
    line-height: 1.3;
}

.student-info .student-name {
    /* font-size: 1.18rem; */
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 2px;
    text-align: center;
    line-height: 1.2;
}



.student-flex-column {

    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    color: var(--text-dark);
    font-size: 0.98rem;
    margin-bottom: 12px;
}

.student-flex-row {

    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    color: var(--text-dark);
    font-size: 0.98rem;
    margin-bottom: 12px;
}




.student-grade {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.student-country {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.show-video-btn {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--brand-pink);
    border: none;
    box-shadow: 0 2px 8px rgba(90, 94, 234, 0.13);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}


.student-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;

}

student-img-wrapper {
    position: relative;
    top: -400px;
    right: 0px;
    /* margin-top: -48px; */
    margin-bottom: 8px;
    background-color: #9f0e0e;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.card-inner {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* square */
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front {
    background: white;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-back {
    background: linear-gradient(135deg, var(--brand-cyan), var(--accent-purple));
    color: white;
    transform: rotateY(180deg);
    padding: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.card-name {
    font-weight: 800;
    font-size: 1rem;
}

.card-role {
    font-size: 0.9rem;
    opacity: 0.95;
}

.student-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.07), 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

@media (max-width: 480px) {
    .students-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}






/* Slider Styles */
.main-slider {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.carousel-item {
    height: 500px;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.slide-content p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.slide-content .btn {
    animation: fadeInUp 1.2s ease;
}

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

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

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

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

/* Slide Backgrounds */
.slide-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slide-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--brand-cyan);
    border-radius: 50%;
    padding: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-pink);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
}

.feature-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.stage-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stage-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}

.stage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}



.stats-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}


.courses-section {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px 20px;
}

/* Horizontal courses slider container */
.courses-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.courses-slider::-webkit-scrollbar { display: none; }

.course-card-modern {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 260px;

}

/* Inline card sizing/alignment extracted from Blade */
.learning-step-card {
    padding: 24px 0 16px 0;
    min-width: 260px;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 8px;
    transition: transform 0.2s;
}

.course-card-modern:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.13);
}

/* Course card emoji/title box */
.course-card-filter-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.course-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    transition: transform 0.3s;
}

.course-card-modern:hover .course-img-wrapper img {
    transform: scale(1.07);
}



.course-card-body {
    padding: 22px 18px 18px 18px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-title {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.course-desc {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 12px;
    min-height: 38px;
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.97rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Course card icon box extracted from inline */
.course-card-modern .course-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* CTA button styling for course cards extracted from inline */
.course-card-modern .cta-button {
 background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

@media (max-width: 991px) {
    .courses-section {
        padding: 30px 5px;
    }

    .course-img-wrapper {
        height: 170px;
    }
}

/* Placeholder card styles for empty state */
.course-card-modern.placeholder {
    min-width: 220px;
    max-width: 260px;
    flex: 0 0 auto;
    margin: 0 8px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px #0001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.course-img-wrapper.placeholder {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}
.course-card-body.placeholder {
    padding: 16px;
    width: 100%;
    text-align: center;
}
.course-title.placeholder {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}
.course-desc.placeholder {
    font-size: 0.97rem;
    color: var(--text-dark);
    margin: 8px 0 0 0;
    min-height: 38px;
}
.course-meta.placeholder {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .courses-section {
        padding: 18px 2px;
    }

    .course-img-wrapper {
        height: 140px;
    }

    .course-title {
        font-size: 1.1rem;
    }

    .course-desc {
        font-size: 0.95rem;
    }
}


.kids-news-ticker-wrapper {
    width: 100%;
    padding: 0 0 8px 0;
    z-index: 900;
}

.news-ticker-icon {
    font-size: 2rem;
    margin-left: 18px;
    margin-right: 8px;
    animation: ticker-bounce 1.2s infinite alternate;
}

@keyframes ticker-bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-7px);
    }
}

.kids-news-ticker {
    flex: 1;
    overflow: hidden;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
}









@media (max-width: 767px) {
    .kids-news-ticker-bg {
        padding: 6px 6px;
        min-height: 38px;
    }

    .news-ticker-icon {
        font-size: 1.3rem;
        margin-left: 8px;
    }

    .kids-news-ticker {
        font-size: 0.98rem;
    }

    .news-ticker-item {
        font-size: 0.98rem;
        margin-left: 8px;
    }
}

.newsimage {}

.news-ticker-item .newsimage {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* object-fit: 100%; */
    margin-right: 12px;

}

.news-ticker-track {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    animation: ticker-scroll 30s linear infinite;
    cursor: pointer;
}

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

    100% {
        transform: translateX(100%);
    }
}















.features-modern-section {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px 20px 20px 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.about-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 32px 18px 24px 18px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 260px;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.13);
}

.about-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #4ECDC4, #5563DE);
}

.about-card:nth-child(2) .about-icon {
    background: linear-gradient(135deg, #FFD93D, #F38181);
}

.about-card:nth-child(3) .about-icon {
    background: linear-gradient(135deg, #A29BFE, #45B7D1);
}

.about-card:nth-child(4) .about-icon {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.about-card:nth-child(5) .about-icon {
    background: linear-gradient(135deg, #A8E6CF, #FFB4A2);
}

.about-card:nth-child(6) .about-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.about-card p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .features-modern-section {
        padding: 30px 5px 10px 5px;
    }

    .about-card {
        padding: 22px 8px 14px 8px;
    }

    .about-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

.shadow-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    position: relative;
    /* height: 500px; */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f5f7fa;
}

.section-title {
  
    border-radius: 20px;
    overflow: hidden;
    
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--bg-color);

    position: relative;
    
    text-align: center;
    margin: 10px 10px;
    background: var(--main-bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    width: 90%;
    height: 50px;
    border: var(--brand-pink) 4px solid   ;
    display: flex;
    align-items: center;
    justify-content: center;    
    gap: 12px;
    font-size: 100px;
}


/* Global gradient text utility */
.gradient-text {
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Apply gradient to common headings site-wide */
h1, h2, h3, .section-title, .page-title, .card-title, .hero-title {
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}


/* Optional alternates: apply when needed */
.gradient-text-alt {
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-alt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.text-pink { color: var(--brand-pink) !important; }
.text-cyan { color: var(--brand-cyan) !important; }
.text-alt { color: var(--brand-alt) !important; }

/* Navbar polish */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
    align-items: center;
    justify-content: space-between;
        width: 80%;
        margin: 10px auto;
    
}
.nav-link {
  color: var(--brand-pink) !important;
  font-weight: 600;
    border: var(--brand-accent) 2px solid;
    margin: 10px;
    border-radius: 20px;
}
.nav-link::before{
  /* content: '|';
  color: var(--brand-accent);
  padding: 10px; */

}
.nav-link.active,
.nav-link:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
}

/* Navbar responsive width */
@media (max-width: 767px) {
    .navbar { width: 95%; margin: 10px auto; }
}

/* Hero section wrapper */
.main-hero-section {
  position: relative;
  padding-top: 12px;
  padding-bottom: 0;
  /* background: var(--bg-gradient); */
  margin: 0;
  /* background-color: #880857; */
  width: 100%;
}
.main-hero-section .animated-bg { pointer-events: none; z-index: 0; }
.main-hero-section .animated-bg .shape { opacity: 0.08; pointer-events: none; }


.course-card-filter-title{
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: box-shadow .25s ease, transform .25s ease;  

}






.section-title .icon-box i { color: var(--brand-cyan); }
.section-title img { width: 42px; height: 42px; object-fit: contain; }

/* Slider Card full-bleed background adjustments */
.slider-card { position: relative; }
.slider-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

/* Info panel style outside circular slider */
.slider-info-panel {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 14px auto 0 auto;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  text-align: center;
}
.slider-info-panel .info-title {
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.slider-info-panel .info-desc {
  color: var(--brand-accent);
  margin-bottom: 8px;
  font-size: 20px;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
}
.slider-info-panel .info-meta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

/* General cards spacing */
.combined-card { margin-top: 12px; }
.features-curriculum-card, .courses-projects-card { border: 3px solid var(--brand-accent); }
.combined-card .combined-header {
  background: linear-gradient(90deg, rgba(255,217,61,0.35), rgba(90,94,234,0.20)) !important;
    padding: 12px 14px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  border-radius: 12px 12px 0 0;
}
.combined-card .combined-card-body {
  padding: 14px 12px !important;
}

/* Unified combined card base styling */
.combined-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Navbar overlay */
.navbar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 900;
}

/* Navbar helpers */
.navbar-logo {
    height: 70px;
    vertical-align: middle;
}
.navbar-open-btn {
    border-radius: 999px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-close-btn {
    border-radius: 999px;
}

/* Login modal overlay and content */
.login-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.login-modal-content {
    background: #fff;
    border-radius: 18px;
    max-width: 98vw;
    width: 400px;
    min-width: 320px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 40px #0002;
    position: relative;
    text-align: center;
    animation: fadeInModal 0.3s;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.login-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #FF6B6B;
    cursor: pointer;
}
.login-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-gradient);
    margin-bottom: 1.2rem;
}

/* Scroll-activated highlight for Featured Courses card */
.courses-projects-card {
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.courses-projects-card.is-active {
  border-color: var(--brand-cyan) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,0.14), 0 0 0 4px rgba(109,191,184,0.18);
  transform: translateY(-4px);
}

/* Scroll-activated highlight for Stages (features-curriculum) */
.features-curriculum-card {
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.features-curriculum-card.is-active {
  border-color: var(--brand-cyan) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,0.14), 0 0 0 4px rgba(109,191,184,0.18);
  transform: translateY(-4px);
}

/* Scroll-activated highlight for Projects and Features sections */
#projects, #features {
  transition: box-shadow .25s ease, transform .25s ease, outline-color .25s ease;
}
#projects.is-active, #features.is-active {
  box-shadow: 0 14px 36px rgba(0,0,0,0.12), 0 0 0 4px rgba(109,191,184,0.18);
  outline: 2px solid var(--brand-cyan);
  outline-offset: 0;
}

/* Buttons alignment */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: none;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
}

/* Navbar tweaks: keep consistent with redesign */
/* .navbar { background: rgba(255,255,255,0.98) !important; }
.navbar .nav-link { padding: 10px 15px !important; border-radius: 8px; color: var(--brand-pink) !important; border: 2px solid var(--brand-cyan); }
.navbar .navbar-brand { color: var(--brand-pink) !important; font-weight: 700; }
.navbar .nav-link.active,
.navbar .nav-link:hover {
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-cyan));
  color: #fff !important;
} */

/* Card text color: use brand cyan across card components */
.learning-step-card h1,
.learning-step-card h2,
.learning-step-card h3,
.learning-step-card h4,
.learning-step-card h5,
.learning-step-card p,
.learning-step-card span,
.learning-step-card small,
.course-card-modern h1,
.course-card-modern h2,
.course-card-modern h3,
.course-card-modern h4,
.course-card-modern h5,
.course-card-modern p,
.course-card-modern span,
.course-card-modern small,
.student-card h1,
.student-card h2,
.student-card h3,
.student-card h4,
.student-card h5,
.student-card p,
.student-card span,
.student-card small,
.project-card h1,
.project-card h2,
.project-card h3,
.project-card h4,
.project-card h5,
.project-card p,
.project-card span,
.project-card small,
.stage-card h1,
.stage-card h2,
.stage-card h3,
.stage-card h4,
.stage-card h5,
.stage-card p,
.stage-card span,
.stage-card small {
  color: var(--brand-cyan) !important;
}

/* Keep button texts readable (white) inside cards */
.learning-step-card .cta-button,
.course-card-modern .cta-button,
.project-card .learn-btn,
.project-card .submit-project-btn,
.stage-card .cta-button,
.student-card .student-btn,
.student-card .show-video-btn {
  color: #fff !important;
}

/* News ticker polish */
.kids-news-ticker-bg {
  background: linear-gradient(90deg, #FFD93D 0%, #A8E6CF 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(255,215,61,0.08);
}
.news-ticker-item { color: var(--bg-gradient); font-weight: 700; }

@media (max-width: 767px) {
  .slider-info-panel { margin-top: 10px; padding: 10px 12px; }
}

/* Footer */
footer h5 { color: var(--brand-primary) !important; }

/* Course description: use brand pink for highlighted text */
.course-card-modern .course-desc {
    color: var(--brand-pink) !important;
}

/* ==== Curriculum Section & Stages ==== */
.stages-slider-wrapper {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.stages-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.stages-slider::-webkit-scrollbar { display: none; }

.stage-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 24px 0 16px 0;
    min-width: 260px;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 8px;
    transition: transform 0.2s;
}
.stage-icon { font-size: 2.2rem; margin-bottom: 10px; }
.stage-icon i { font-size: 2.5rem; color: var(--brand-cyan); }
.stage-stats { color: var(--text-dark); font-size: 1.05rem; margin-bottom: 12px; min-height: 38px; }

.stage-selected {
    background: #f5f8ff !important;
    box-shadow: 0 6px 20px rgba(90,94,234,0.25) !important;
    border: 2px solid #5a5eea;
}

.curriculum-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    font-size: 2rem;
    background: #FFD93D;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px #0002;
}
.curriculum-slider-btn.prev { right: -32px; }
.curriculum-slider-btn.next { left: -32px; }

.stage-empty-card {
    border-radius: 15px;
    min-width: 220px;
    max-width: 260px;
    flex: 0 0 auto;
    margin: 0 8px;
    background: #fff;
    box-shadow: 0 2px 12px #0001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    padding: 18px 10px;
}
.stage-empty-icon { font-size: 2.5rem; color: var(--brand-cyan); }
.stage-empty-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--brand-dark); }
.stage-empty-desc { font-size: 0.97rem; color: var(--brand-accent); margin: 8px 0 0 0; min-height: 38px; }

/* Popup for stage details */
.stage-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--text-dark);
    z-index: 9998;
    backdrop-filter: blur(4px);
}
.stage-details-popup {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    padding: 18px;
    max-width: 860px;
    width: 96%;
    margin: 24px auto;
    position: fixed;
    top: 8vh;
    left: 0;
    right: 0;
    z-index: 9999;
    border: 3px solid #FFD93D;
    animation: popupIn 220ms ease-out;
}
.popup-header {
    background: linear-gradient(90deg,#FFD93D,#FF9F1C);
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.popup-title { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.popup-title i { color: var(--brand-cyan); }
.close-popup-btn { background: var(--brand-pink); color: var(--brand-alt); border: none; border-radius: 10px; padding: 6px 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.close-popup-btn:hover { transform: translateY(-1px); }
.section-label { color: var(--brand-dark); font-weight: 700; margin: 8px 0; display: flex; align-items: center; gap: 8px; }

.vslider { margin-top: 12px; max-height: 70vh; overflow: auto; scroll-snap-type: y mandatory; padding-right: 6px; }
.vslider-btn {
    position: absolute;
    right: 12px;
    background:var(--brand-cyan);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.vslider-btn.up { top: 64px; }
.vslider-btn.down { bottom: 12px; }

/* Accordion styles */
.grade-accordion { border: 1px solid #eee; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); scroll-snap-align: start; }
.grade-header { padding: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #333; }
.grade-header:hover { background: #f9f9ff; }
.toggle-icon, .subject-toggle, .unit-toggle { background: #fff; border: 2px solid #5a5eea; color: #5a5eea; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.count-badge { background: #4ECDC4; color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 0.85rem; font-weight: 800; margin-right: 8px; }
.subject-item { color: var(--accent-color); margin-bottom: 6px; padding: 6px 0; border-bottom: 1px solid #eee; }
.subject-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: #4ECDC4; }
.subject-body { display: none; padding: 6px 12px; }
.unit-item { color: var(--brand-accent); margin: 4px 0; padding: 4px 0; border-bottom: 1px dashed #eee; }
.unit-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: #7b3ff2; }
.unit-body { display: none; padding: 6px 10px; }
.lesson-item { color: var(--brand-pink); margin: 3px 0; padding: 3px 0; cursor: pointer; }
.grade-body { display: none; padding: 8px 12px; transition: all 180ms ease-in-out; }

/* Inline stage details card (when used inline instead of popup) */
.inline-stage-details {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0002;
    padding: 16px;
    max-width: 720px;
    margin: 12px auto;
    display: block;
    width: 100%;
}
.inline-stage-details h5 { margin: 0 0 8px 0; }
.inline-back-btn { background: #5a5eea; color: #fff; border: none; border-radius: 8px; padding: 6px 14px; }

/* ==== Best Students Section ==== */
.best-students-section .section-title { margin-top: 24px; }
.best-students-slider-wrapper { display: flex; justify-content: center; align-items: center; position: relative; }
.best-students-slider { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding: 8px 0; -ms-overflow-style: none; scrollbar-width: none; }
.best-students-slider::-webkit-scrollbar { display: none; }
.best-students-slider-btn { position: absolute; top: 50%; z-index: 2; font-size: 2rem; background: #FFD93D; border: none; border-radius: 50%; width: 44px; height: 44px; transform: translateY(-50%); box-shadow: 0 2px 8px #0002; }
.best-students-slider-btn.prev { right: -24px; }
.best-students-slider-btn.next { left: -24px; }
.student-card { flex: 0 0 auto; width: 220px; background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.08); padding: 12px; text-align: center; }
.student-avatar { width: 96px; height: 96px; margin: 6px auto 10px auto; border-radius: 50%; overflow: hidden; border: 3px solid #FFD93D; box-shadow: 0 2px 8px rgba(0,0,0,0.08); background: #f9f9f9; }
.student-name { font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.student-meta { font-size: 0.9rem; color:var(--text-secondary); }
.student-score-badge { background: var(--brand-pink); color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 800; display: inline-block; margin-top: 8px; }
.ranking-btn { }

/* Ranking modal */
.ranking-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 9998; }
.ranking-modal { background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,0.2); padding: 16px; max-width: 980px; width: 96%; margin: 24px auto; position: fixed; top: 6vh; left: 0; right: 0; z-index: 9999; border: 3px solid #FFD93D; }
.ranking-content { margin-top: 12px; max-height: 70vh; overflow: auto; }
.top-ten-wrapper { margin-bottom: 12px; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.08); padding: 12px; }
.stage-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.stage-tab-btn { background: #f5f8ff; border: 2px solid var(--brand-alt); color: var(--brand-cyan); border-radius: 999px; padding: 6px 12px; font-weight: 800; }
.top-ten-list-modal { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.top-ten-item { display: flex; align-items: center; gap: 10px; background: #f9f9ff; border: 1px solid #eee; border-radius: 12px; padding: 10px; cursor: pointer; }
.top-ten-rank { font-weight: 900; color: var(--brand-cyan); width: 28px; text-align: center; }
.top-ten-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid #FFD93D; }
.top-ten-name { font-weight: 800; color: var(--brand-accent); display: flex; align-items: center; gap: 8px; }
.top-ten-meta { color: var(--text-secondary); font-size: 0.92rem; }
.top-ten-score { font-weight: 800; color: var(--text-dark); }

@keyframes popupIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Utilities */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.icon-brand-yellow { color: var(--brand-accent); }
.text-brand-secondary { color: var(--brand-secondary) !important; }

/* Primary brand text utility */
.text-brand-primary { color: var(--brand-primary) !important; }

/* Tiny badge size */
.badge-xs { font-size: 0.7rem !important; }

/* Cursor pointer helper */
.cursor-pointer { cursor: pointer !important; }

/* Notification dropdown sizing */
.dropdown-menu-notif {
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    z-index: 3000;
    position: absolute;
    right: 0;
    top: 100%;
}

/* Full-bleed section helper (edge-to-edge background) */
.full-bleed-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Mobile horizontal overflow fixes */
@media (max-width: 767px) {
    /* Avoid vw-induced overflow on mobile */
    .full-bleed-section { width: 100%; left: 0; right: 0; margin-left: 0; margin-right: 0; }

    /* Clip slider nav buttons that extend outside */
    .stages-slider-wrapper,
    .best-students-slider-wrapper { overflow: hidden; }

    /* Bring buttons inside viewport on small screens */
    .curriculum-slider-btn.prev { right: 8px; }
    .curriculum-slider-btn.next { left: 8px; }
    .best-students-slider-btn.prev { right: 8px; }
    .best-students-slider-btn.next { left: 8px; }

    /* Prevent dropdowns/modals from exceeding viewport */
    .dropdown-menu-notif { max-width: 95vw; }
    .login-modal-content { width: 94vw; max-width: 94vw; min-width: 0; }

    /* Ensure navbar containers don’t overflow */
    .navbar,
    .navbar-collapse { max-width: 100vw; overflow-x: hidden; }
}

/* Projects section background */
.bg-projects-gradient { background: linear-gradient(90deg,#f8fafc 60%,#e0f7fa 100%); }

/* Trainee projects slider base */
.trainee-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.trainee-slider::-webkit-scrollbar { display: none; }

/* Center trainee projects section content on homepage */
.trainee-trainee-slider-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.trainee-trainee-slider-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}
.trainee-trainee-slider-wrapper .trainee-slider {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Projects CTA button */
.projects-cta-btn {
    display: inline-block;
    min-width: 220px;
    max-width: 90vw;
    background: linear-gradient(90deg,#5a5eea 0%,#7b3ff2 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 32px;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(90,94,234,0.13);
    transition: background 0.2s, box-shadow 0.2s;
}

/* Video modal overlay + box */
.video-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    align-items: center;
    justify-content: center;
}
.video-modal {
    background: var(--background-light);
    border-radius: 16px;
    max-width: 95vw;
    max-height: 95vh;
    padding: 0;
    position: relative;
    box-shadow: 0 8px 32px #0005;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.video-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 2;
}
.video-container {
    width: min(360px,90vw);
    height: calc(min(360px,90vw) * 1.78);
    max-width: 100vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kids news ticker wrapper spacing */
.kids-news-ticker-wrapper { margin-bottom: 8px; }
.newsimage { max-height: 32px; max-width: 48px; vertical-align: middle; margin-left: 8px; }

/* Brand logo small (e.g., inside headers) */
.brand-logo-42 { width: 42px; height: 42px; object-fit: contain; }

/* Section title larger size */
.section-title-large { font-size: 2.1rem; }

/* Ranking modal variant for student details */
.ranking-modal-student { max-width: 720px; top: 8vh; border-color: var(--brand-alt); }
.ranking-modal-student .ranking-content { max-height: 60vh; }

/* Subject summary item in student detail modal */
.subject-summary-item { background: #f7fbff; border: 1px solid #e3efff; border-radius: 10px; padding: 10px; margin-bottom: 8px; }

/* Avatar (small variant) */
.student-avatar-sm { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid #4ECDC4; }

/* ==== Stats Section & Features Banner ==== */
.stats-section {
    background: #f8fafc;
    border-radius: 20px;
    margin-top: 40px;
}
.features-banner {
    background: var(--bg-gradient);
    border-radius: 20px;
    padding: 50px 30px;
    color: #fff;
    text-align: center;
}
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    text-align: center;
}
.feature-icon { font-size: 2.5rem; font-weight: 700; }
.stat-box { }
.stat-number { font-size: 2.5rem; font-weight: 800; }
.stat-label { font-size: 1.1rem; color: var(--brand-alt); }

/* Color utilities for stat numbers */
.text-brand-blue { color: #2563eb !important; }
.text-brand-indigo { color: #7c3aed !important; }
.text-brand-green { color: #10b981 !important; }
.text-brand-orange { color: #f59e0b !important; }


.slider-main-title {
  
    font-size: 2.1rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color:white;

    text-shadow: #fe0050 10px 10px 20px -10px;
    background-clip: text;

      position: absolute;
      top: 2%;
      right: 40px ;
      display: flex;
      flex-direction: column;

        align-items: center;   
        box-shadow: #00f2fe 10px 10px 20px -10px; 

        width: 50%;
    
}
