﻿/* =============================================
   HOMEPAGE.CSS - Spectacular Homepage Styles
   Noor-e-Ilm LMS
============================================= */

/* --- KEYFRAME ANIMATIONS --- */

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

@keyframes floatReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, -80px) scale(0.9); }
    75% { transform: translate(50px, -30px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-40px, 30px) scale(0.95); }
    50% { transform: translate(60px, -20px) scale(1.1); }
    75% { transform: translate(-30px, -40px) scale(1); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, 40px); }
    66% { transform: translate(-30px, 60px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.7), 0 0 60px rgba(245, 158, 11, 0.3); }
}

@keyframes rotateGrad {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- HERO CAROUSEL SECTION --- */

.hero-carousel-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 90% 15%, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 8% 85%, rgba(16, 185, 129, 0.07) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero-carousel-section .carousel {
    position: relative;
    z-index: 1;
}

.hero-carousel-section .carousel-item {
    line-height: 0;
}

.hero-slide-link {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.hero-carousel-section .carousel-indicators {
    bottom: 20px;
    z-index: 10;
}

.hero-carousel-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-carousel-section .carousel-indicators .active {
    background-color: var(--accent-color);
    width: 35px;
    border-radius: 6px;
}

.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.hero-carousel-section:hover .carousel-control-prev,
.hero-carousel-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel-section .carousel-control-prev { left: 20px; }
.hero-carousel-section .carousel-control-next { right: 20px; }

.hero-carousel-section .carousel-control-prev-icon,
.hero-carousel-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.hero-slide {
    width: 100%;
}

.hero-slide-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #0f172a;
}

@media (max-width: 991px) {
    .hero-slide-img {
        max-height: 400px;
    }
    .hero-carousel-section .carousel-control-prev,
    .hero-carousel-section .carousel-control-next {
        opacity: 0.8;
        width: 40px;
        height: 40px;
    }
    .hero-carousel-section .carousel-control-prev { left: 10px; }
    .hero-carousel-section .carousel-control-next { right: 10px; }
}

@media (max-width: 575px) {
    .hero-slide-img {
        max-height: 250px;
    }
    .hero-carousel-section .carousel-indicators {
        bottom: 10px;
    }
    .hero-carousel-section .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    .hero-carousel-section .carousel-indicators .active {
        width: 25px;
    }
    .hero-carousel-section .carousel-control-prev,
    .hero-carousel-section .carousel-control-next {
        opacity: 0.9;
        width: 35px;
        height: 35px;
    }
    .hero-carousel-section .carousel-control-prev-icon,
    .hero-carousel-section .carousel-control-next-icon {
        width: 14px;
        height: 14px;
    }
}

/* --- STATS SECTION --- */

.stats-section {
    position: relative;
    padding: 84px 0;
    background: linear-gradient(125deg, #0f172a 0%, #1e3a8a 55%, #2563eb 130%);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 300% 100%;
    animation: shimmer 4s linear infinite;
}

.stats-section::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
}

.stat-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(245, 158, 11, 0.35);
    border-radius: 50%;
    font-size: 1.6rem;
    color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.05);
    transition: all 0.35s ease;
}

.stat-card:hover .stat-icon {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-number::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(245, 158, 11, 0.15));
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* --- ABOUT SECTION --- */

.about-section {
    position: relative;
    padding: 88px 0;
    overflow: hidden;
    background: var(--background-color);
}

.about-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 8%, transparent) 0%, transparent 70%);
    border-radius: 50%;
}

.about-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 15%, transparent), color-mix(in srgb, var(--accent-color) 10%, transparent));
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
    margin: 14px 0 8px;
}

.about-title-accent {
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.about-title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.about-sub-heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

.about-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 22px;
}

.about-image-wrapper {
    position: relative;
    padding: 12px;
}

.about-image-wrapper img {
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.4;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    z-index: 0;
    opacity: 0.15;
}

.about-placeholder {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-color);
    background: color-mix(in srgb, var(--primary-color) 4%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, #eef2f7);
    border-radius: 12px;
    height: 100%;
}

.about-feature-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.about-feature-label {
    line-height: 1.3;
}

/* --- About: Mission & Vision cards --- */

.about-mv-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 22px 20px;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(2, 8, 23, 0.05);
    transition: all 0.35s ease;
}

.about-mv-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.about-mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.1);
    border-color: color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.about-mv-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 14px;
}

.about-mv-icon.mission {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.about-mv-icon.vision {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.about-mv-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.about-mv-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 575px) {
    .about-mv-card {
        padding: 20px 18px;
    }
}

/* --- COURSES SECTION --- */

.courses-section {
    position: relative;
    padding: 88px 0;
    background: linear-gradient(180deg, var(--background-color) 0%, #eef2ff 100%);
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-color) 6%, transparent) 0%, transparent 70%);
    border-radius: 50%;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 15%, transparent), color-mix(in srgb, var(--accent-color) 10%, transparent));
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
}

.section-description {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.7;
}

.courses-section .nav-pills .nav-link {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.courses-section .nav-pills .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 8%, white);
}

.courses-section .nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.course-card {
    background: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.course-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    line-height: 0;
}

.course-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image-wrapper img {
    filter: brightness(1.03);
}

.course-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.course-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.course-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    flex: 1;
}

.course-info-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: #6b7280;
}

.course-info-list li i {
    color: var(--primary-color);
    font-size: 0.8rem;
    width: 16px;
}

.course-footer {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.course-footer .btn {
    flex: 1 1 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--button-radius);
}

.course-fee {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.course-coming-soon {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 5%, transparent), color-mix(in srgb, var(--accent-color) 3%, transparent));
    border-radius: 20px;
    border: 2px dashed color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.course-coming-soon i {
    font-size: 3rem;
    color: color-mix(in srgb, var(--primary-color) 30%, transparent);
    margin-bottom: 15px;
    display: block;
}

.course-coming-soon h5 {
    color: var(--text-color);
    font-weight: 700;
}

.course-coming-soon p {
    color: #9ca3af;
    margin: 0;
}

/* --- FEATURES / WHY CHOOSE SECTION --- */

.why-section {
    position: relative;
    padding: 88px 0;
    background: #fff;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-color) 6%, transparent) 0%, transparent 70%);
    border-radius: 50%;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--card-radius);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 1.8rem;
    color: #fff;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.feature-card:hover .feature-icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px color-mix(in srgb, var(--primary-color) 45%, transparent);
    background: linear-gradient(135deg, var(--accent-color), #fbbf24);
    color: #1a1a2e;
}

.feature-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* Why Choose Us cards used as full-card links.
   Keeps the exact same card design — only the element type,
   pointer, and a keyboard focus ring are added. */
a.feature-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

a.feature-card:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.certificate-callout {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 34px;
    padding: 26px 30px;
    background: #0B1F4D;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(11, 31, 77, 0.25);
    position: relative;
    overflow: hidden;
}

.certificate-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06B6B4, #F5B400);
}

.certificate-callout-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06B6B4, #0EA5E9);
    border-radius: 16px;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 10px 26px rgba(6, 182, 180, 0.4);
}

.certificate-callout-body {
    flex: 1 1 auto;
    min-width: 0;
}

.certificate-callout-body h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.certificate-callout-body p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin: 0;
}

.certificate-callout-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    background: #0B1F4D;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid #06B6B4;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(11, 31, 77, 0.35);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.certificate-callout-btn:hover {
    background: #06B6B4;
    border-color: #06B6B4;
    color: #ffffff !important;
    box-shadow: 0 14px 32px rgba(6, 182, 180, 0.45);
    transform: translateY(-2px);
}

.certificate-callout-btn:focus,
.certificate-callout-btn:active {
    background: #06B6B4;
    border-color: #06B6B4;
    color: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 180, 0.4);
}

@media (max-width: 768px) {
    .certificate-callout {
        flex-direction: column;
        text-align: center;
        padding: 30px 22px;
        gap: 18px;
    }

    .certificate-callout-icon {
        margin: 0 auto;
    }

    .certificate-callout-btn {
        width: 100%;
    }
}

/* 
   Smooth scroll-reveal animations (AOS).
   AOS applies opacity:0 + translateY to [data-aos] elements and
   animates them to visible (opacity:1, transform:none) via the
   .aos-animate class once they enter the viewport. We keep AOS's
   defaults so sections/cards smoothly rise from bottom to top while
   scrolling.

   Robustness: if the AOS JS/CDN fails to load, elements would remain
   at opacity:0 (invisible). The small guard script in footer.php adds
   the class `nii-aos-fallback` to <html> only when AOS is confirmed
   unavailable, forcing every reveal target permanently visible so
   content NEVER disappears and no blank gaps appear. By default this
   fallback is inactive and the real animations run.
*/
html.nii-aos-fallback [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Optional: when animations are disabled from the admin panel, force
   content visible immediately without any reveal motion. */
html.nii-aos-off [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
}

/* --- TESTIMONIALS SECTION --- */

.testimonials-section {
    position: relative;
    padding: 88px 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 5%, var(--background-color)), var(--background-color));
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-color) 6%, transparent) 0%, transparent 70%);
    border-radius: 50%;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 35px;
    border: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.4s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.testimonial-quote-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.testimonial-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
}

.testimonial-stars i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.testimonial-stars i.empty {
    color: #d1d5db;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.testimonial-avatar-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.testimonial-author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.testimonial-author-role {
    font-size: 0.85rem;
    color: #9ca3af;
}

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

.testimonial-empty {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 5%, transparent), color-mix(in srgb, var(--accent-color) 3%, transparent));
    border-radius: 20px;
    border: 2px dashed color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.testimonial-empty i {
    font-size: 3rem;
    color: color-mix(in srgb, var(--primary-color) 30%, transparent);
    margin-bottom: 15px;
    display: block;
}

/* --- CTA SECTION --- */

.cta-section {
    position: relative;
    padding: 88px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
}

.cta-section .cta-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-section .cta-orb-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: orbFloat1 12s ease-in-out infinite;
}

.cta-section .cta-orb-2 {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: 10%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    animation: orbFloat2 10s ease-in-out infinite;
}

.cta-section .cta-orb-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
    animation: orbFloat3 14s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-btn {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--accent-color), #fbbf24);
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--button-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    animation: glowPulse 3s ease-in-out infinite;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 50px rgba(245, 158, 11, 0.6);
    color: #1a1a2e;
}

/* --- FAQ SECTION --- */

.faq-section {
    position: relative;
    padding: 88px 0;
    background: #fff;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 5%, transparent) 0%, transparent 70%);
    border-radius: 50%;
}

.faq-section .accordion-item {
    border: 1px solid #f0f0f0;
    border-radius: var(--card-radius) !important;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 14px rgba(2, 8, 23, 0.04);
}

.faq-section .accordion-item:hover {
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.faq-section .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
    padding: 20px 25px;
    border-radius: var(--card-radius) !important;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 3%, transparent), color-mix(in srgb, var(--accent-color) 2%, transparent));
}

.faq-section .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: none;
}

.faq-section .accordion-button::after {
    background-size: 1.2rem;
    transition: all 0.3s ease;
}

.faq-section .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.faq-section .accordion-body {
    padding: 18px 25px 22px;
    font-size: 0.98rem;
    color: #6b7280;
    line-height: 1.8;
}

.faq-section .section-badge {
    display: inline-block;
}

/* --- FOOTER --- */

.site-footer {
    background: linear-gradient(180deg, var(--footer-color) 0%, #0a1120 100%);
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 300% 100%;
    animation: shimmer 4s linear infinite;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-col-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.footer-about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 20px;
    max-width: 540px;
    width: 100%;
    text-align: left;
    overflow-wrap: break-word;
}

.footer-logo {
    max-width: 64px;
    margin-bottom: 12px;
    display: block;
}

.footer-brand-name {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--accent-color);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-contact-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    font-size: 1.25rem;
    color: #94a3b8;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* ---- Original/natural colors for Contact Information icons ---- */
.footer-contact-item i.fa-map-marker-alt {
    color: #06B6B4;
    text-shadow: 0 2px 8px rgba(6, 182, 180, 0.3);
}
.footer-contact-item i.fa-phone-alt {
    color: #F5B400;
    text-shadow: 0 2px 8px rgba(245, 180, 0, 0.3);
}
.footer-contact-item i.fa-envelope {
    color: #38BDF8;
    text-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}
.footer-contact-item i.fa-whatsapp {
    color: #25D366;
    text-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.footer-contact-item:hover i {
    transform: scale(1.12);
}

.footer-contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.footer-contact-item a:hover {
    color: #fbbf24;
}

.footer-follow-title {
    margin: 22px 0 12px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    position: relative;
}

.footer-follow-title::after {
    content: '';
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--accent-color), #06B6B4);
    border-radius: 2px;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.footer-social-icons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* ---- Official brand colors (social icons are NOT themed by global color rules) ---- */
.footer-social-icons a.nii-social-whatsapp  { color: #25D366; }
.footer-social-icons a.nii-social-facebook  { color: #1877F2; }
.footer-social-icons a.nii-social-youtube   { color: #FF0000; }
.footer-social-icons a.nii-social-linkedin  { color: #0A66C2; }
.footer-social-icons a.nii-social-tiktok    {
    color: #ffffff;
    text-shadow: 2px 2px 0 #25F4EE, 4px 4px 0 #FE2C55;
}
.footer-social-icons a.nii-social-instagram {
    color: transparent;
}
.footer-social-icons a.nii-social-instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Hover: professional, keeps brand identity ---- */
.footer-social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}
.footer-social-icons a.nii-social-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.footer-social-icons a.nii-social-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}
.footer-social-icons a.nii-social-youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
}
.footer-social-icons a.nii-social-linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.35);
}
.footer-social-icons a.nii-social-tiktok:hover {
    background: #010101;
    border-color: #010101;
    color: #ffffff;
    text-shadow: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.footer-social-icons a.nii-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35);
}
.footer-social-icons a.nii-social-instagram:hover i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #fbbf24;
}

/* --- Footer: View All Courses link --- */
.footer-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color, #f59e0b);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    transition: color 0.3s ease, gap 0.3s ease;
}
.footer-view-all:hover {
    color: #fbbf24;
    gap: 10px;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1200px) {
    .section-title,
    .about-title,
    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {

    .stats-section,
    .about-section {
        padding: 68px 0;
    }

    .about-image-wrapper {
        margin-bottom: 36px;
    }

    .about-image-wrapper img {
        max-height: 460px;
    }

    .courses-section,
    .why-section,
    .testimonials-section,
    .cta-section,
    .faq-section {
        padding: 68px 0;
    }

    .cta-glass {
        padding: 40px 25px;
    }

    .footer-col {
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .stats-section,
    .about-section,
    .courses-section,
    .why-section,
    .testimonials-section,
    .cta-section,
    .faq-section {
        padding: 56px 0;
    }
}

@media (max-width: 767px) {

    .section-title,
    .about-title,
    .cta-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-icon {
        width: 65px;
        height: 65px;
        font-size: 1.4rem;
    }

    .courses-section .nav-pills .nav-link {
        padding: 10px 18px;
        font-size: 0.85rem;
        margin: 3px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon-circle {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    .testimonial-card {
        padding: 25px;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-subtitle {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }

    .footer-about-text {
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .hero-slide {
        min-height: 350px;
    }

    .about-feature-item {
        font-size: 0.9rem;
    }

    .footer-about-text {
        font-size: 0.92rem;
    }

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

/* --- HERO FALLBACK (no banners configured) --- */

.hero-fallback {
    position: relative;
    overflow: hidden;
    padding: 130px 0 110px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 130%);
    text-align: center;
    color: #fff;
}

.hero-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 300% 100%;
    animation: shimmer 4s linear infinite;
}

.hero-fallback .hero-fallback-orb {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.25) 0%, transparent 70%);
    animation: orbFloat1 12s ease-in-out infinite;
    pointer-events: none;
}

.hero-fallback .hero-fallback-orb-2 {
    top: auto;
    right: auto;
    bottom: -140px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, transparent 70%);
    animation: orbFloat2 14s ease-in-out infinite;
}

.hero-fallback .container {
    position: relative;
    z-index: 2;
}

.hero-fallback-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.35);
    color: #fbbf24;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-fallback h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    max-width: 780px;
    margin: 0 auto 20px;
}

.hero-fallback p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 640px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.hero-fallback-actions .btn {
    padding: 14px 34px;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .hero-fallback {
        padding: 90px 0 80px;
    }
    .hero-fallback-actions .btn {
        display: block;
        width: 100%;
        margin: 10px 0 0 !important;
    }
}

/* --- WHATSAPP FLOAT PULSE RING --- */

#whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.45);
    animation: waPulse 2.2s ease-out infinite;
    z-index: -1;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* --- SCROLL ANIMATIONS --- */

.animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* --- STATS SECTION (small screens: 2x2 grid) --- */

@media (max-width: 575px) {
    .stats-section {
        padding: 60px 0;
    }

    .stats-section .row.g-4 {
        --bs-gutter-x: 0.9rem;
    }

    .stat-card {
        padding: 24px 12px;
    }

    .stat-icon {
        width: 58px;
        height: 58px;
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .stat-number {
        font-size: 1.75rem;
        white-space: nowrap;
    }

    .stat-number::after {
        width: 34px;
        margin-top: 10px;
    }

    .stat-label {
        font-size: 0.78rem;
        letter-spacing: 0.8px;
    }
}
