/* Mini course cards inside testimonial carousel */
.explore-intro { max-width: 100%; }
@media (min-width: 992px) { .explore-intro { margin-right: 16px; } }
@media (min-width: 1200px) { .explore-intro { margin-right: 24px; } }
.explore-highlights { display: grid; gap: 18px; margin-bottom: 32px; }
.explore-highlight { display: flex; align-items: flex-start; gap: 14px; }
.explore-highlight-icon { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(229,57,53,0.12); color: var(--color-primary); font-size: 18px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(229,57,53,0.12); }
.explore-highlight h5 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--color-text); }
.explore-highlight p { margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.6; }
.mini-course-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); display: flex; flex-direction: column; height: 100%; }
.mini-course-media { width: 100%; height: 280px; object-fit: cover; display: block; flex-shrink: 0; }
.mini-course-body { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 14px; }
.mini-course-body .mini-badge { align-self: center; }
.testimonial-carousel .owl-item { display: flex; height: 100%; }
.testimonial-carousel .owl-item .mini-course-card { width: 100%; }
.testimonial-carousel .mini-course-card .mini-course-media { width: 100%; height: 280px; object-fit: cover; }
@media (max-width: 767.98px) {
  .mini-course-media, .testimonial-carousel .mini-course-card .mini-course-media { height: 220px; }
  .explore-intro { max-width: 100%; }
  .explore-highlights { gap: 14px; margin-bottom: 28px; }
  #courses { padding-left: 16px; padding-right: 16px; }
  #courses .owl-carousel .owl-item { padding: 0 6px; }
  .courses-carousel .courses-item { max-width: 320px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
  .courses-carousel .courses-item img { margin-top: 0; border-radius: 18px 18px 0 0; }
  .courses-carousel .courses-item .courses-text { height: calc(100% + 40px); padding: 30px 18px 18px; }
  .courses-carousel .courses-item .courses-text h4 { font-size: 1.15rem; margin: 0; }
  .courses-carousel .courses-item .courses-text .border-top { margin-top: 12px; }
  .courses-carousel .courses-item .courses-text .border-top .d-flex { padding: 16px 0 0; flex-direction: column; align-items: flex-start; gap: 6px; }
  .courses-carousel .courses-item .courses-text .border-top span { font-size: 0.95rem; }
  .courses-carousel .courses-item .courses-text .w-100.bg-white { margin-top: 18px; text-align: left; }
  .courses-carousel .courses-item .courses-text .w-100.bg-white .btn { width: 100%; border-radius: 12px; }
}
.mini-course-body h3 { font-size: 22px; font-weight: 800; margin: 10px 0 12px; color: var(--color-text); line-height: 1.25; }
.mini-badge { display:inline-block; padding: 6px 10px; border-radius: 999px; background: #ffe9cf; color:#8a5a00; font-weight: 700; font-size: 12px; border:1px solid #ffd9a6; }
.mini-meta { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; color: var(--color-muted); font-weight: 700; font-size: 14px; }
.mini-meta li i { color: var(--color-primary); margin-right: 6px; }
.testimonial-carousel .owl-item { padding: 6px; }

/* Ensure testimonial CTA text is readable on dark background */
.testimonial-cta { color: #ffffff; }
.testimonial-cta h1,
.testimonial-cta h2,
.testimonial-cta h3,
.testimonial-cta p,
.testimonial-cta .lead { color: #ffffff !important; }
.testimonial-cta .interactive-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; }
.testimonial-cta .interactive-card p,
.testimonial-cta .interactive-card small { color: #e5e7eb; }
.testimonial-cta .owl-dots .owl-dot span { background: rgba(255,255,255,.35); }
.testimonial-cta .owl-dots .owl-dot.active span { background: #e53935; }

/* Make right column cards larger on desktop */
@media (min-width: 992px) {
  .testimonial-carousel .owl-stage-outer { padding-top: 6px; padding-bottom: 6px; }
  .testimonial-carousel .owl-item { padding: 10px; }
}

/* Achievements sizing tweak */
.achievements .card-counter { padding: 24px !important; }
.achievements .icon-wrap { width: 84px !important; height: 84px !important; }
.achievements .number { font-size: 36px !important; }
.achievements .label { font-size: 14px !important; }

/* Awards logos styled like IIDE */
.award-logo { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: 0 10px 26px rgba(38,63,144,.18); margin: 0 auto -22px; color: #2b4acb; }
.award-logo i { font-size: 28px; }
/* FAQ styles */
.faq-section { background:
    radial-gradient(800px 260px at 5% -20%, rgba(229,57,53,.10), transparent 65%),
    radial-gradient(700px 240px at 95% 120%, rgba(0,0,0,.06), transparent 70%),
    var(--color-bg);
}
.faq-accordion { max-width: 920px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); margin-bottom: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; position: relative; }
.faq-item:before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background: linear-gradient(180deg, var(--color-primary), transparent); opacity:.35; transition: opacity .2s ease; }
.faq-item:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(0,0,0,.12); border-color: rgba(229,57,53,0.25); }
.faq-item.active { border-color: rgba(229,57,53,0.35); box-shadow: 0 18px 48px rgba(229,57,53,0.15); }
.faq-item.active:before { opacity: .85; }
.faq-question { width: 100%; text-align: left; padding: 18px 20px; background: transparent; border: none; font-weight: 800; color: var(--color-text); display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.faq-left { display: inline-flex; align-items: center; gap: 10px; }
.faq-qicon { color: var(--color-primary); background: rgba(229,57,53,0.12); border: 1px solid rgba(229,57,53,0.25); width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(229,57,53,0.18); }
.faq-question i { transition: transform .25s ease, color .2s ease, background .2s ease; color: #fff; background: var(--color-primary); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(229,57,53,0.35); }
.faq-question:hover i { color: var(--color-primary-strong); }
.faq-item[open] .faq-question i, .faq-question[aria-expanded='true'] i { transform: rotate(45deg); }
.faq-answer { height: 0; overflow: hidden; padding: 0 20px; color: var(--color-muted); transition: height .3s ease, padding .3s ease, background .3s ease; background: linear-gradient(180deg, rgba(229,57,53,0.03), transparent 30%); font-size: 16px; }
.faq-item.active .faq-answer { padding: 0 18px 16px; }

/* Heading polish for FAQ section */
.faq-section h2, .faq-section .display-4 { font-weight: 900; letter-spacing: .3px; }
.faq-section .text-muted { color: var(--color-muted) !important; }
/* Explore Courses Carousel (replaces testimonials) */
.explore-carousel .course-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; height: 100%; }
.explore-carousel .course-card:hover { transform: translateY(-6px); box-shadow: 0 16px 44px rgba(0,0,0,.12); }
.explore-carousel .course-media { position: relative; height: 220px; overflow: hidden; }
.explore-carousel .course-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-carousel .badge-chip { position: absolute; top: 14px; left: 14px; background: #ffe9cf; color: #8a5a00; border: 1px solid #ffd9a6; padding: 6px 10px; border-radius: 20px; font-weight: 700; font-size: 12px; }
.explore-carousel .course-body { padding: 18px; }
.explore-carousel .course-title { font-weight: 800; font-size: 20px; margin-bottom: 10px; color: var(--color-text); }
.explore-carousel .course-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.explore-carousel .meta-item { display: flex; align-items: center; gap: 8px; color: var(--color-muted); font-weight: 600; }
.explore-carousel .meta-item i { color: var(--color-primary); }
.explore-carousel .cta-row { display: flex; gap: 12px; }
.explore-carousel .btn-ghost { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.explore-carousel .btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
/* Instructors sizing */
.team-item img { height: 360px; object-fit: cover; }
@media (max-width: 991.98px) { .team-item img { height: 300px; } }
@media (max-width: 575.98px) { .team-item img { height: 240px; } }
/* ===== IIDE-like sections ===== */
.section-heading { font-weight: 800; color: #1f3a8a; }

/* Awards */
.awards-section { background: radial-gradient(circle at 10% -20%, #e9efff 0%, #f7f9fc 60%), #f7f9fc; position: relative; overflow: hidden; }
/* Ensure awards background doesn't create rendering issues on some browsers */
.awards-section { background-attachment: scroll !important; z-index: 0; }
.awards-section:before,
.awards-section:after { content:""; position:absolute; width:420px; height:420px; border-radius:50%; filter: blur(70px); opacity:.35; pointer-events:none; }
.awards-section:before { background: radial-gradient(circle at 30% 30%, rgba(49,82,196,.35), transparent 60%); left:-120px; top:-120px; animation: float1 14s ease-in-out infinite; }
.awards-section:after { background: radial-gradient(circle at 70% 70%, rgba(255,89,94,.25), transparent 60%); right:-140px; bottom:-160px; animation: float2 16s ease-in-out infinite; }
@keyframes float1 { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(18px)} }
@keyframes float2 { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-14px)} }

.awards-marquee { overflow: hidden; }
.awards-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 28px; align-items: end; animation: awards-scroll 28s linear infinite; }
@keyframes awards-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.award-card { text-align: center; filter: saturate(.98); opacity: 0; transform: translateY(16px) scale(.98); transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .55s; }
.award-card.io-in { opacity: 1; transform: translateY(0); }
.award-card:hover { transform: translateY(-4px) scale(1.01); }
.award-card .award-badge { margin: 0 auto -24px; width: 64px; height: 64px; display: grid; place-items: center; background: linear-gradient(180deg,#fff, #f3f6ff); border-radius: 14px; box-shadow: 0 10px 26px rgba(38,63,144,.18); }
.award-card .award-badge img { width: 34px; height: 34px; }
.award-card .award-title { background: #ffffff; border-radius: 18px; padding: 32px 18px 20px; margin-bottom: -14px; box-shadow: inset 0 0 0 1px rgba(49,82,196,.08), 0 14px 40px rgba(0,0,0,.08); font-weight: 800; color: #0f172a; letter-spacing: .2px; }
.award-card .award-ribbon { display: inline-block; background: linear-gradient(135deg, #a2b4ef, #7f95e0); color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 800; letter-spacing: .2px; box-shadow: 0 6px 20px rgba(98,116,199,.35); transform: translateZ(0); }
.award-card .award-ribbon.prominent { background: #3152c4; }
.award-card .award-year { color: #475569; margin-top: 12px; font-weight: 700; font-size: 14px; }
.award-card.focus { transform: translateY(0) scale(1.06); }

/* Subtle shimmer on ribbons */
.award-card .award-ribbon { position: relative; overflow: hidden; }
.award-card .award-ribbon:after { content:""; position:absolute; top:0; left:-120%; width:80%; height:100%; background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.35) 45%, transparent 100%); transform: skewX(-20deg); opacity:.0; }
.award-card:hover .award-ribbon:after { animation: shine 1.2s ease forwards; }
@keyframes shine { 0%{ left:-120%; opacity:.0 } 30%{ opacity:.7 } 100%{ left:140%; opacity:0 } }

/* Marquee responsiveness: adjust card width */
@media (max-width: 1199.98px) { .awards-track { grid-auto-columns: minmax(280px, 1fr); } }
@media (max-width: 767.98px) { .awards-track { grid-auto-columns: minmax(240px, 1fr); } }
@media (max-width: 479.98px) { .awards-track { grid-auto-columns: minmax(220px, 1fr); } }

/* Removed Explore section styles as per request */
/* DSSD-inspired theme using CSS variables and toggleable light/dark modes */

:root {
    --color-bg: #ffffff; /* light background */
    --color-surface: #ffffff; /* white cards/nav */
    --color-text: #111111; /* near-black text */
    --color-muted: #6b7280;
    --color-primary: #e53935; /* red */
    --color-primary-strong: #c62828; /* darker red */
    --color-border: #e5e7eb;
    --color-secondary: #ff7a7a; /* for gradients */
}

/* Prevent horizontal scrollbar across all pages */
html, body { max-width: 100%; overflow-x: hidden; }

[data-theme='dark'], .theme-dark {
    --color-bg: #0a0a0a; /* black base */
    --color-surface: #111111; /* deep grey surfaces */
    --color-text: #f5f5f5; /* white text */
    --color-muted: #9ca3af;
    --color-primary: #e53935; /* keep red accent */
    --color-primary-strong: #ff4d4d; /* bright red */
    --color-border: #1f2937;
    --color-secondary: #ff7a7a;
}

body { background-color: var(--color-bg); color: var(--color-text); padding-top: 86px; }
@media (max-width: 991.98px) { body { padding-top: 74px; } }

.text-primary { color: var(--color-primary) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.border-primary { border-color: var(--color-primary) !important; }

.btn-primary {
    color: #fff !important;
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}
.btn-primary:hover,
.btn-primary:focus { background-color: var(--color-primary-strong) !important; border-color: var(--color-primary-strong) !important; }

.btn-secondary { color: #fff !important; background-color: #212121 !important; border-color: #212121 !important; }
.theme-dark .btn-secondary { background-color: #000 !important; border-color: #000 !important; }

/* Surfaces and containers */
.card-like { background: var(--color-surface); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.theme-dark .card-like { box-shadow: 0 8px 24px rgba(0,0,0,0.35); }

/* Glass and glow effects to mirror DSSD visuals */
.glass-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; backdrop-filter: blur(10px); }
.theme-dark .glass-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); }

.glass-elevated { background: radial-gradient(1200px 300px at 50% -100px, rgba(229,57,53,0.15), transparent 60%), linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.04)); border-bottom: 1px solid var(--color-border); }

.glow-primary { box-shadow: 0 0 0 0 rgba(229,57,53,0); transition: box-shadow .3s ease; }
.glow-primary:hover { box-shadow: 0 8px 24px rgba(229,57,53,0.35); }

/* Gradient headings */
.gradient-text { background: linear-gradient(90deg, #ff6b6b, #e53935); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-text-secondary { background: linear-gradient(90deg, #ffa5a5, #ff6b6b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero tweaks */
/* Course hero alignment */
.course-page-light .hero-content {
    text-align: center;
}

.course-page-light .hero-badge {
    margin: 0 auto 22px;
    justify-content: center;
}

.course-page-light .hero-cta {
    justify-content: center;
    gap: 12px;
}

.course-page-light .hero-cta .btn {
    margin-bottom: 12px;
}

.course-page-light .hero-content .row {
    justify-content: center !important;
}

.course-page-light .hero-content .row > [class^="col"] {
    margin-bottom: 1.5rem;
}

.course-page-light .hero-stat-card-container,
.course-page-light .hero-stat-card {
    text-align: center;
    min-width: 140px;
    margin: 0 auto;
}

.course-page-light .hero-stat-card strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.course-page-light .hero-stat-card .hero-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--dssd-text-muted);
    display: block;
}

.course-hero .hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 820px;
}

.course-hero .hero-stats {
    justify-content: center !important;
}

.course-hero .hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.course-hero .row.align-items-center {
    justify-content: center;
}

.course-hero .brochure-download {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 28px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #e53935, #ff7070) !important;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(229,57,53,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
    margin: 0 auto !important;
}

.course-hero .brochure-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(229,57,53,0.35);
}

@media (max-width: 991.98px) {
    .course-page-light .hero-content .hero-cta {
        justify-content: center;
    }
    .course-hero {
        text-align: center;
    }
    .course-hero .hero-content {
        max-width: 100%;
    }
    .course-hero .hero-stats {
        gap: 12px;
    }
}

/* Mobile-first refinements for ALL course hero sections */
@media (max-width: 767.98px) {
    .course-hero {
        min-height: auto !important;
        padding: 36px 0 !important;
    }

    .course-hero h1,
    .course-hero .display-3,
    .course-hero h1.display-3 {
        font-size: clamp(1.6rem, 6vw, 2.1rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }

    .course-hero .lead {
        font-size: 0.98rem !important;
        line-height: 1.6 !important;
    }

    .course-hero .hero-stats {
        justify-content: center !important;
        gap: 8px !important;
    }

    .course-hero .hero-stats .stat-item {
        margin: 4px !important;
        padding: 8px 12px !important;
        border-radius: 18px !important;
    }

    .course-hero .hero-actions {
        justify-content: center !important;
        gap: 10px !important;
    }

    .course-hero .hero-actions .btn,
    .course-hero .brochure-download {
        width: 100% !important;
        max-width: 320px !important;
    }

    .course-hero .hero-image img {
        max-height: 260px !important;
        margin-top: 12px !important;
    }
}

.hero-overlay { position: relative; }
.hero-overlay::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 300px at 50% 0, rgba(229,57,53,0.25), transparent 60%); pointer-events: none; }

/* DSSD-style hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4) contrast(1.05); }
.hero-bg .mask { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.35), rgba(0,0,0,0.75)); }
.theme-dark .hero-bg video, .theme-dark .hero-bg img { filter: brightness(0.35); }

/* Hero background carousel tweaks */
.hero-bg-carousel { height: 100%; }
.hero-bg-carousel .owl-stage-outer, .hero-bg-carousel .owl-stage, .hero-bg-carousel .owl-item,
.hero-bg-carousel .hero-slide, .hero-bg-carousel .hero-slide img {
    height: 100%;
}
.hero-bg-carousel .hero-slide img {
    width: 100%;
    object-fit: cover; /* cover to fill hero */
    object-position: center;
    display: block;
}
/* allow overriding crop for tall images */
.hero-bg-carousel .hero-slide img.pos-top { object-position: center top; }

/* Position nav/dots off to avoid overlaying CTA */
.hero-bg-carousel .owl-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero-bg-carousel .owl-nav { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 8px; z-index: 1; }
.hero-bg-carousel .owl-nav button { color: #fff !important; font-size: 28px !important; }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 1100px; padding: 0 16px; }
.hero-title { font-weight: 800; line-height: 1.05; margin-bottom: 16px; color: #fff; }
.hero-title .line { display: block; }
.hero-sub { color: rgba(255,255,255,0.92); max-width: 960px; margin: 0 auto 24px; font-size: 1.125rem; text-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.hero-ctas .btn { margin: 0 8px; }

/* Ensure hero heading lines are readable regardless of gradient clipping support */
.hero .gradient-text,
.hero .gradient-text-secondary {
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Video Hover Functionality */
.video-hover-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-hover-container:hover {
    transform: scale(1.02);
}

.video-hover {
    transition: all 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease;
}

.video-hover-container:hover .video-overlay {
    opacity: 0;
}

.play-button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
}

.video-hover-container:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.5);
}

/* Video hover play functionality */
.video-hover-container:hover .video-hover {
    filter: brightness(1);
}

.video-hover-container:not(:hover) .video-hover {
    filter: brightness(0.8);
}

/* Horizontal Scrolling Cards */
.overflow-x-auto::-webkit-scrollbar {
    display: none;
}

.overflow-x-auto {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Student profile icons */
.bg-primary.bg-opacity-10 {
    background-color: rgba(229, 57, 53, 0.1) !important;
}

.text-primary {
    color: #e53935 !important;
}

/* Life Beyond Classroom - IIDE-style */
.lbc-iide-section { background: #fff; }
.lbc-iide-section h2 { font-weight: 800; }
.lbc-bullets li { margin-bottom: 10px; font-size: 16px; color: #4b5563; }

/* Mosaic grid */
.lbc-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; gap: 12px; }
.lbc-tile { position: relative; overflow: hidden; border-radius: 14px; display: block; }
.lbc-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; filter: brightness(.95); }
.lbc-tile:hover img { transform: scale(1.05); }
.lbc-tile .lbc-caption { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.lbc-tile-large { grid-row: span 2; }

@media (max-width: 991.98px) {
  .lbc-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .lbc-tile-large { grid-column: span 2; }
}
@media (max-width: 575.98px) {
  .lbc-mosaic { grid-template-columns: 1fr; grid-auto-rows: 160px; }
}

/* Carousel cards */
.lbc-carousel .lbc-card { position: relative; overflow: hidden; border-radius: 14px; background: #000; }
.lbc-carousel .lbc-card img { width: 100%; height: 220px; object-fit: cover; opacity: .92; transition: transform .35s ease, opacity .35s ease; }
.lbc-carousel .lbc-card:hover img { transform: scale(1.05); opacity: 1; }
.lbc-card-caption { position: absolute; left: 12px; bottom: 12px; color: #fff; background: rgba(0,0,0,.55); padding: 6px 10px; border-radius: 8px; font-size: 13px; }

/* Owl carousel spacing similar to IIDE blocks */
.lbc-carousel .owl-stage { padding: 8px 0; }

/* Portrait Video Cards Layout */
.student-card {
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.student-card .card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: auto;
    background: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.student-card:hover {
    transform: scale(1.08);
    z-index: 10;
}

.student-card:hover .card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.student-card .video-hover-container {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.student-card .video-hover {
    transition: all 0.4s ease;
    border-radius: 16px;
}

/* Video hover play functionality */
.student-card:hover .video-hover {
    filter: brightness(1.05);
}

.student-card:not(:hover) .video-hover {
    filter: brightness(1);
}

/* Responsive layout */
@media (max-width: 1200px) {
    .d-flex.justify-content-center.gap-4.flex-wrap {
        justify-content: center !important;
    }
    
    .student-card {
        margin: 0 10px 20px 10px;
    }
}

@media (max-width: 768px) {
    .student-card {
        width: 100% !important;
        max-width: 320px;
        margin: 0 auto 20px auto;
    }
    
    .student-card:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 767.98px) {
    .hero { min-height: 70vh; }
    .hero-title { font-size: 2rem !important; }
    .hero-sub { font-size: 0.95rem; }
}

/* Topbar, navbar, footer surfaces */
.navbar, .dropdown-menu { background-color: var(--color-surface) !important; }
.navbar .nav-link, .navbar .navbar-brand h1, .dropdown-item { color: var(--color-text) !important; }
.dropdown-item:hover { background-color: rgba(229,57,53,0.08) !important; color: var(--color-text) !important; }
/* Show simple dropdown on hover so clicking the label can navigate */
.navbar .nav-item.dropdown.simple:hover > .dropdown-menu { display: block; }
.navbar .nav-item.dropdown.simple .dropdown-menu { margin-top: 0; border: 1px solid var(--color-border); box-shadow: 0 10px 24px rgba(0,0,0,.12); }

/* Fixed topbar above navbar */
.container-fluid.bg-dark {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2003;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 50px; /* fixed topbar height to align navbar */
}
.container-fluid.bg-dark > .row {
    height: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center;
}

/* Mobile responsive topbar */
@media (max-width: 991.98px) {
    .container-fluid.bg-dark {
        height: auto !important;
        min-height: 70px;
        overflow: visible !important;
    }
    .container-fluid.bg-dark > .row {
        padding: 10px 15px !important;
        flex-wrap: wrap;
        min-height: 70px;
        overflow: visible !important;
        align-items: flex-start !important;
    }
    .container-fluid.bg-dark .col-lg-6 {
        width: 100%;
        text-align: center !important;
        margin-bottom: 8px;
        flex: 0 0 100%;
        overflow: visible !important;
    }
    .container-fluid.bg-dark .col-lg-6:last-child {
        margin-bottom: 0;
    }
    .container-fluid.bg-dark .d-inline-flex {
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
        overflow: visible !important;
    }
    .container-fluid.bg-dark small {
        font-size: 0.75rem;
        white-space: nowrap;
        display: inline-block;
        line-height: 1.5;
    }
    .container-fluid.bg-dark .fa,
    .container-fluid.bg-dark .fab {
        font-size: 14px;
        display: inline-block;
        vertical-align: middle;
    }
    .container-fluid.bg-dark .text-white.px-2,
    .container-fluid.bg-dark .text-white.pl-2 {
        padding: 0 8px !important;
        display: inline-block;
        vertical-align: middle;
    }
    /* Fix logo visibility in topbar if logos exist */
    .container-fluid.bg-dark img {
        max-height: 35px;
        max-width: 120px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: inline-block;
        vertical-align: middle;
        margin: 0 5px;
    }
}

@media (max-width: 767.98px) {
    .container-fluid.bg-dark {
        height: auto !important;
        min-height: 80px;
        overflow: visible !important;
    }
    .container-fluid.bg-dark > .row {
        padding: 8px 12px !important;
        min-height: 80px;
        overflow: visible !important;
        align-items: flex-start !important;
    }
    .container-fluid.bg-dark .col-lg-6 {
        margin-bottom: 6px;
        overflow: visible !important;
    }
    .container-fluid.bg-dark small {
        font-size: 0.7rem;
        line-height: 1.6;
    }
    .container-fluid.bg-dark .fa,
    .container-fluid.bg-dark .fab {
        font-size: 13px;
        display: inline-block;
        vertical-align: middle;
    }
    .container-fluid.bg-dark .text-white.px-2,
    .container-fluid.bg-dark .text-white.pl-2 {
        padding: 0 6px !important;
        display: inline-block;
        vertical-align: middle;
    }
    .container-fluid.bg-dark .px-3 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    /* Ensure logos are visible and properly sized on mobile */
    .container-fluid.bg-dark img {
        max-height: 30px;
        max-width: 100px;
        height: auto;
        width: auto;
        object-fit: contain;
        display: inline-block;
        vertical-align: middle;
        margin: 0 4px;
    }
}

/* Sticky navbar with shadow - positioned below topbar */
/* Increase z-index above topbar (2003) so dropdowns are visible */
.navbar.sticky-top { position: fixed; top: 50px; left: 0; right: 0; z-index: 3005; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.navbar.sticky-top.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.12); background-color: #ffffff !important; }
.navbar .navbar-brand img { height: 56px !important; }

/* Mobile navbar positioning - adjust for dynamic topbar height */
@media (max-width: 991.98px) {
    .navbar.sticky-top {
        position: fixed;
        top: 70px;
    }
}
@media (max-width: 767.98px) {
    .navbar.sticky-top {
        position: fixed;
        top: 80px;
    }
}

/* Adjust body padding to account for both fixed topbar and navbar */
body { background-color: var(--color-bg); color: var(--color-text); padding-top: 136px; }
@media (max-width: 991.98px) { 
    body { padding-top: 150px; }
}
@media (max-width: 767.98px) {
    body { padding-top: 160px; }
}

/* Ensure dropdowns are fully visible above hero/video and not clipped */
.navbar { overflow: visible; }
.navbar .dropdown { z-index: 2005; position: relative; }
/* Ensure dropdowns are absolutely positioned relative to their parent in navbar */
.navbar .dropdown-menu {
    position: absolute !important;
    z-index: 2006;
    overflow-y: auto;
    overflow-x: hidden; /* prevent horizontal scrollbar seen in screenshots */
}

/* Dropdown base */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important; /* align to trigger's left */
    will-change: transform, opacity;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18) !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    min-width: 220px !important;
    margin-top: 10px !important;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}
/* Wider layout for mega dropdowns */
/* Remove mega menu grid spacing for simple list */
.navbar .dropdown-menu .container, 
.navbar .dropdown-menu .row, 
.navbar .dropdown-menu .col-md-4 { padding: 0; margin: 0; }

/* Align right menu if needed */
.navbar .dropdown-menu.dropdown-menu-right { left: auto !important; right: 0 !important; }
.dropdown-menu.show { opacity: 1; transform: translateY(0); }

/* Refined items */
/* Simple dropdown items */
.dropdown-item {
    display: block !important;
    padding: 10px 16px !important;
    line-height: 1.4;
    white-space: nowrap;
}
.dropdown-item:hover { background: rgba(0,0,0,0.04) !important; }

.text-muted {
    color: #6b7280 !important;
    font-size: 14px;
    font-weight: 500;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Navbar: hide rightmost toggle/logo area if present */
/* Theme toggle button */
#themeToggle { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; border:1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); }
#themeToggle:hover { background: rgba(229,57,53,0.08); }

/* Dropdown specific tweaks for Our Centre / Courses */
.navbar .dropdown-menu .container { padding: 0; }
.navbar .dropdown-menu .row { margin: 0; }
.navbar .dropdown-menu .dropdown-item .text-xs { color: #6b7280; }
.navbar .dropdown-menu .dropdown-item:hover .text-xs { color: #374151; }

/* Ensure dropdowns don't overflow viewport */
.navbar .dropdown-menu { max-height: 70vh; }

/* Responsive alignment for dropdowns */
@media (min-width: 992px) {
    .navbar .dropdown { position: relative; }
    .navbar .dropdown-menu { left: 0 !important; transform: translateY(8px); width: auto; max-width: none; }
    .navbar .dropdown-menu.show { transform: translateY(0); }
}

@media (max-width: 991.98px) {
    /* In collapsed navbar, let dropdown flow in the menu */
    .navbar .dropdown-menu {
        position: static !important;
        opacity: 1;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: none;
        overflow: visible;
    }
    .navbar .dropdown-menu .container { max-width: none; padding: 0; }
    .navbar .dropdown-menu .row { margin: 0; }
    .navbar .dropdown-menu .col-md-4 { width: 100%; }
}

/* Animated red/black background for contact page */
.contact-animated-section {
    position: relative;
    background: linear-gradient(135deg, #8B0000 0%, #0a0a0a 55%, #8B0000 100%);
    overflow: hidden;
}
.contact-animated-section::before,
.contact-animated-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}
.contact-animated-section::before {
    width: 500px; height: 500px; left: -120px; top: -120px;
    background: radial-gradient(circle at 30% 30%, rgba(255,80,80,.5), transparent 60%);
    animation: float1 12s ease-in-out infinite;
}
.contact-animated-section::after {
    width: 420px; height: 420px; right: -120px; bottom: -120px;
    background: radial-gradient(circle at 70% 70%, rgba(255,120,120,.45), transparent 60%);
    animation: float2 14s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(20px)} }
@keyframes float2 { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-18px)} }

/* Contact animated cards and inputs */
.contact-info-panel { background: rgba(255,255,255,0.9); border: 1px solid rgba(229,57,53,0.12); border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.contact-info-item { transition: transform .25s ease, box-shadow .25s ease; }
.contact-info-item:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.contact-info-icon { width: 56px; height: 56px; border-radius: 14px; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow: 0 10px 24px rgba(229,57,53,0.35); animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100%{ box-shadow: 0 8px 20px rgba(229,57,53,0.30)} 50%{ box-shadow: 0 16px 36px rgba(229,57,53,0.50)} }

.contact-form-animated { background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:16px; box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.contact-form-animated .form-control { height:52px; border-radius:10px; border:2px solid #eee; padding-left:16px; transition: border-color .2s ease, box-shadow .2s ease, transform .1s ease; }
.contact-form-animated textarea.form-control { height:auto; }
.contact-form-animated .form-control:focus { border-color:#e53935; box-shadow: 0 0 0 4px rgba(229,57,53,0.10); transform: translateY(-1px); }
.btn-animated-primary { background: linear-gradient(135deg, #8B0000, #FF4444, #8B0000); color:#fff; border:none; border-radius:10px; box-shadow: 0 12px 28px rgba(229,57,53,0.35); transition: transform .2s ease, box-shadow .2s ease; }
.btn-animated-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(229,57,53,0.45); }

/* Subtle entrance */
.fade-up { opacity:0; transform: translateY(12px); animation: fadeUp .6s ease forwards; }
.fade-up.d1 { animation-delay: .1s }
.fade-up.d2 { animation-delay: .2s }
.fade-up.d3 { animation-delay: .3s }
@keyframes fadeUp { to { opacity:1; transform: translateY(0) } }

.hover:underline:hover {
    text-decoration: underline;
}

.footer, .overlay-top.bg-dark, .bg-dark { background-color: #0a0a0a !important; }
.footer, .bg-dark, .text-white-50, .footer p, .footer a, .footer h3 { color: #9ca3af !important; }

/* Headers and titles */
h1, .display-4 { letter-spacing: 0.2px; color: var(--color-text); }

/* Gradient text fallback for browsers that don't support text clipping */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .gradient-text, .gradient-text-secondary { color: var(--color-primary) !important; }
}

/* Improve hero heading contrast to ensure visibility */
.hero-title { text-shadow: 0 2px 8px rgba(0,0,0,0.35); }

/* Ensure highlighted word in About heading remains visible */
.section-title span.gradient-text { background: none !important; color: #e53935 !important; -webkit-text-fill-color: #e53935 !important; }

/* Jumbotron overlays: keep imagery but tint subtly in dark mode */
.theme-dark .jumbotron.overlay-bottom, .theme-dark .page-header.overlay-bottom { filter: brightness(0.8); }

/* Inputs */
input.form-control, .custom-select, textarea.form-control { color: var(--color-text); background-color: var(--color-surface); border-color: var(--color-border); }
input.form-control::placeholder, textarea.form-control::placeholder { color: var(--color-muted); }

/* Links */
a { color: var(--color-primary); }
a:hover { color: var(--color-primary-strong); }

/* Back-to-top to match accent */
.back-to-top { background-color: var(--color-primary) !important; border-color: var(--color-primary) !important; }

/* Home contact panel */
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 992px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { border-radius: 14px; padding: 20px; background: rgba(229,57,53,0.06); border: 1px solid rgba(229,57,53,0.12); transition: transform .25s ease, box-shadow .25s ease; }
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(229,57,53,0.18); }
.contact-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--color-primary); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow: 0 6px 18px rgba(229,57,53,0.35); }

/* Feedback Carousel Styling - Matching Courses Section */
.feedback-carousel .feedback-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 10px;
    background: white;
    min-height: 300px;
}

.feedback-carousel .feedback-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.feedback-carousel .feedback-item .video-hover-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
    width: 100%;
}

.feedback-carousel .feedback-item .video-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.9);
    border-radius: 8px;
    display: block;
}

.feedback-carousel .feedback-item:hover .video-hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Ensure proper carousel spacing */
.feedback-carousel.owl-carousel .owl-stage {
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.feedback-carousel.owl-carousel .owl-item {
    transition: all 0.3s ease;
    height: 300px;
}

/* Owl Carousel Custom Styling */
.feedback-carousel.owl-carousel .owl-stage {
    padding: 20px 0;
}

.feedback-carousel.owl-carousel .owl-item {
    transition: all 0.3s ease;
}

.feedback-carousel.owl-carousel .owl-item.active {
    transform: scale(1.02);
}

.feedback-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.feedback-carousel.owl-carousel .owl-prev,
.feedback-carousel.owl-carousel .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(229, 57, 53, 0.9) !important;
    border-radius: 50%;
    color: white !important;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.feedback-carousel.owl-carousel .owl-prev {
    left: -25px;
}

.feedback-carousel.owl-carousel .owl-next {
    right: -25px;
}

.feedback-carousel.owl-carousel .owl-prev:hover,
.feedback-carousel.owl-carousel .owl-next:hover {
    background: rgba(229, 57, 53, 1) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
}

.feedback-carousel.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.feedback-carousel.owl-carousel .owl-dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(229, 57, 53, 0.3) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feedback-carousel.owl-carousel .owl-dot.active {
    background: #e53935 !important;
    transform: scale(1.2);
}

/* Video hover play functionality for feedback carousel */
.feedback-carousel .feedback-item:hover .video-hover {
    filter: brightness(1.05);
}

.feedback-carousel .feedback-item:not(:hover) .video-hover {
    filter: brightness(0.8);
}

/* Achievements / Counters */
.achievements .card-counter {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
    transform: translateY(0);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Soft colored ambient glow behind each card */
.achievements .card-counter::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    background: var(--card-glow, radial-gradient(120px 60px at 50% 0%, rgba(229,57,53,0.20), transparent));
    filter: blur(20px);
    z-index: -1;
    opacity: 0.6;
    transition: opacity .3s ease, transform .3s ease, filter .3s ease;
}

/* Hover lift and intensified glow */
.achievements .card-counter:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}

.achievements .card-counter:hover::after { opacity: .95; filter: blur(26px); }

.achievements .icon-wrap {
    width: 140px; height: 140px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.achievements .card-counter:hover .icon-wrap {
    transform: scale(1.08) translateY(-4px) rotate(-2deg);
    box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

.achievements .label { color: var(--color-muted); font-weight: 600; transition: color .3s ease; }
.achievements .number { font-size: 44px; font-weight: 800; color: #e53935; transition: all 0.3s ease; }

.achievements .card-counter:hover .number { transform: scale(1.05); color: #c62828; }

/* Colored shadows per card (1..4) - Enhanced Beautiful Shadows */
.achievements .row > div:nth-child(1) .card-counter {
    --card-glow: radial-gradient(280px 180px at 50% 0%, rgba(229,57,53,0.35), rgba(255,87,87,0.20) 50%, transparent 80%);
    box-shadow: 
        0 0 0 1px rgba(229,57,53,0.08),
        0 8px 20px rgba(229,57,53,0.15),
        0 20px 40px rgba(229,57,53,0.12),
        0 35px 65px rgba(229,57,53,0.08),
        0 50px 100px rgba(229,57,53,0.05);
}
.achievements .row > div:nth-child(1) .card-counter:hover {
    box-shadow: 
        0 0 0 1px rgba(229,57,53,0.15),
        0 15px 35px rgba(229,57,53,0.25),
        0 30px 70px rgba(229,57,53,0.20),
        0 50px 100px rgba(229,57,53,0.15),
        0 80px 160px rgba(229,57,53,0.08);
}

.achievements .row > div:nth-child(2) .card-counter {
    --card-glow: radial-gradient(280px 180px at 50% 0%, rgba(140,123,255,0.35), rgba(170,155,255,0.20) 50%, transparent 80%);
    box-shadow: 
        0 0 0 1px rgba(140,123,255,0.08),
        0 8px 20px rgba(140,123,255,0.15),
        0 20px 40px rgba(140,123,255,0.12),
        0 35px 65px rgba(140,123,255,0.08),
        0 50px 100px rgba(140,123,255,0.05);
}
.achievements .row > div:nth-child(2) .card-counter:hover {
    box-shadow: 
        0 0 0 1px rgba(140,123,255,0.15),
        0 15px 35px rgba(140,123,255,0.25),
        0 30px 70px rgba(140,123,255,0.20),
        0 50px 100px rgba(140,123,255,0.15),
        0 80px 160px rgba(140,123,255,0.08);
}

.achievements .row > div:nth-child(3) .card-counter {
    --card-glow: radial-gradient(280px 180px at 50% 0%, rgba(255,213,79,0.40), rgba(255,235,120,0.25) 50%, transparent 80%);
    box-shadow: 
        0 0 0 1px rgba(255,213,79,0.10),
        0 8px 20px rgba(255,213,79,0.18),
        0 20px 40px rgba(255,213,79,0.15),
        0 35px 65px rgba(255,213,79,0.10),
        0 50px 100px rgba(255,213,79,0.06);
}
.achievements .row > div:nth-child(3) .card-counter:hover {
    box-shadow: 
        0 0 0 1px rgba(255,213,79,0.18),
        0 15px 35px rgba(255,213,79,0.30),
        0 30px 70px rgba(255,213,79,0.25),
        0 50px 100px rgba(255,213,79,0.18),
        0 80px 160px rgba(255,213,79,0.10);
}

.achievements .row > div:nth-child(4) .card-counter {
    --card-glow: radial-gradient(280px 180px at 50% 0%, rgba(38,198,218,0.38), rgba(80,220,240,0.22) 50%, transparent 80%);
    box-shadow: 
        0 0 0 1px rgba(38,198,218,0.10),
        0 8px 20px rgba(38,198,218,0.16),
        0 20px 40px rgba(38,198,218,0.13),
        0 35px 65px rgba(38,198,218,0.09),
        0 50px 100px rgba(38,198,218,0.06);
}
.achievements .row > div:nth-child(4) .card-counter:hover {
    box-shadow: 
        0 0 0 1px rgba(38,198,218,0.16),
        0 15px 35px rgba(38,198,218,0.28),
        0 30px 70px rgba(38,198,218,0.22),
        0 50px 100px rgba(38,198,218,0.16),
        0 80px 160px rgba(38,198,218,0.09);
}

/* Animated CTA Button (Explore Courses) */
.btn-cta {
    color: #fff !important;
    background: linear-gradient(90deg, #e53935, #ff6b6b, #e53935);
    background-size: 200% 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(229,57,53,0.35);
    transition: transform .25s ease, box-shadow .25s ease, background-position 1.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta:hover {
    transform: translateY(-3px);
    background-position: 100% 0;
    box-shadow: 0 16px 40px rgba(229,57,53,0.45);
}

.btn-cta::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.25), rgba(255,255,255,0.0));
    transform: skewX(-20deg);
    transition: left .6s ease;
}

.btn-cta:hover::after { left: 120%; }

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

.btn-cta { animation: gradientShift 6s ease infinite; }

/* ========== Red Themed Animated Logos ========== */
.brand-logo { height: 56px !important; transition: transform .25s ease, filter .25s ease; filter: drop-shadow(0 0 0 rgba(229,57,53,0)); }
.logo-animated-red { animation: logoPulse 4s ease-in-out infinite; }
.logo-animated-red:hover { transform: translateY(-2px) scale(1.03); filter: drop-shadow(0 10px 24px rgba(229,57,53,.35)); }
@keyframes logoPulse {
    0%,100% { filter: drop-shadow(0 0 0 rgba(229,57,53,.0)); }
    50% { filter: drop-shadow(0 8px 18px rgba(229,57,53,.35)); }
}

/* Circular icon background in red gradient with subtle float */
.icon-circle-red {
    background: radial-gradient(120px 120px at 50% 30%, #ff9a9a, #e53935) !important;
    box-shadow: 0 16px 40px rgba(229,57,53,.25);
    animation: floatIcon 6s ease-in-out infinite;
}
@keyframes floatIcon { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }

/* Contact Popup Styles - DIDM Style Layout */
.contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.contact-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.contact-popup {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(139, 0, 0, 0.2);
    position: relative;
}

.contact-popup-overlay.show .contact-popup {
    transform: scale(1) translateY(0);
}

.contact-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.contact-popup-close:hover {
    background: rgba(139, 0, 0, 0.9);
    transform: rotate(90deg);
}

.popup-content-wrapper {
    display: flex;
    min-height: 500px;
}

/* Left Section */
.popup-left-section {
    flex: 1;
    background: linear-gradient(135deg, #8B0000 0%, #000000 50%, #8B0000 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.popup-left-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.popup-brand-header {
    margin-bottom: 30px;
}

.popup-brand-text h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-demo-info {
    margin-bottom: 30px;
}

.popup-demo-info h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-demo-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.popup-instructor-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.instructor-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

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

.instructor-details h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.instructor-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Right Section - Form */
.popup-right-section {
    flex: 1;
    padding: 40px;
    background: #ffffff;
}

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

.popup-form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.popup-form-control:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.popup-form-control::placeholder {
    color: #999;
}

/* Custom Checkbox */
.popup-terms {
    margin-bottom: 25px;
}

.popup-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.popup-checkbox input[type="checkbox"] {
    display: none;
}

.popup-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #8B0000;
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.popup-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #8B0000;
}

.popup-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.terms-link {
    color: #8B0000;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.popup-submit-btn {
    width: 100%;
    padding: 15px;
    background: #8B0000;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-submit-btn:hover {
    background: #a31e1e;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content-wrapper {
        flex-direction: column;
    }

    .popup-left-section {
        padding: 30px 25px;
        min-height: auto;
    }

    .popup-right-section {
        padding: 30px 25px;
    }

    .popup-brand-text h3 {
        font-size: 1.2rem;
    }

    .popup-demo-info h2 {
        font-size: 1.5rem;
    }

    .contact-popup {
        width: 95%;
        margin: 20px;
        max-height: 95vh;
        overflow-y: auto;
    }

    .popup-content-wrapper {
        min-height: auto;
    }

    .popup-instructor-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .instructor-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .contact-popup {
        width: 98%;
        margin: 10px;
        max-height: 98vh;
    }

    .popup-left-section {
        padding: 25px 20px;
    }

    .popup-right-section {
        padding: 25px 20px;
    }

    .popup-brand-text h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .popup-demo-info h2 {
        font-size: 1.3rem;
    }

    .popup-demo-info p {
        font-size: 0.9rem;
    }

    .popup-form-control {
        padding: 12px;
        font-size: 0.9rem;
    }

    .popup-submit-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .popup-checkbox {
        font-size: 0.8rem;
    }

    .contact-popup-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .instructor-details h4 {
        font-size: 1rem;
    }

    .instructor-details p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-popup {
        width: 100%;
        margin: 5px;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }

    .popup-left-section {
        padding: 20px 15px;
    }

    .popup-right-section {
        padding: 20px 15px;
    }

    .popup-brand-text h3 {
        font-size: 1rem;
    }

    .popup-demo-info h2 {
        font-size: 1.2rem;
    }

    .popup-demo-info p {
        font-size: 0.85rem;
    }

    .popup-form-control {
        padding: 10px;
        font-size: 0.85rem;
    }

    .popup-submit-btn {
        padding: 10px;
        font-size: 0.85rem;
    }

    .popup-checkbox {
        font-size: 0.75rem;
    }

    .contact-popup-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .instructor-image {
        width: 50px;
        height: 50px;
    }

    .instructor-details h4 {
        font-size: 0.9rem;
    }

    .instructor-details p {
        font-size: 0.8rem;
    }
}

/* Reduce side spacing by increasing container max-widths */
@media (min-width: 576px) {
    .container, .container-sm {
        max-width: 700px !important; /* Increased from 540px */
    }
}

@media (min-width: 768px) {
    .container, .container-sm, .container-md {
        max-width: 900px !important; /* Increased from 720px */
    }
}

@media (min-width: 992px) {
    .container, .container-sm, .container-md, .container-lg {
        max-width: 1200px !important; /* Increased from 960px */
    }
}

@media (min-width: 1200px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1400px !important; /* Increased from 1140px */
    }
}

/* Additional spacing reduction for very large screens */
@media (min-width: 1400px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1600px !important;
    }
}

/* Reduce padding on larger screens for even less side spacing */
@media (min-width: 992px) {
    .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (min-width: 1200px) {
    .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

/* Reduce navbar and topbar padding on larger screens */
@media (min-width: 992px) {
    .navbar .px-lg-5,
    .px-lg-5 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (min-width: 1200px) {
    .navbar .px-lg-5,
    .px-lg-5 {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
}

@media (min-width: 1400px) {
    .navbar .px-lg-5,
    .px-lg-5 {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

/* ========== ADVANCED ANIMATIONS & EFFECTS ========== */

/* Particle Background Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-shapes .shape {
    position: absolute;
    opacity: 0.1;
    background: linear-gradient(45deg, rgba(229, 57, 53, 0.3), rgba(255, 107, 107, 0.3));
    border-radius: 50%;
}

.floating-shapes .shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shapes .shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-shapes .shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.floating-shapes .shape-4 {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 30%;
    animation-delay: 3s;
}

/* Enhanced Hero Animations */
.hero-title .line {
    display: inline-block;
    overflow: hidden;
}

.hero-title .line span {
    display: inline-block;
    transform: translateY(100%);
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Glowing Text Effect */
.glow-text {
    text-shadow: 
        0 0 5px rgba(229, 57, 53, 0.5),
        0 0 10px rgba(229, 57, 53, 0.3),
        0 0 15px rgba(229, 57, 53, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 5px rgba(229, 57, 53, 0.5),
            0 0 10px rgba(229, 57, 53, 0.3),
            0 0 15px rgba(229, 57, 53, 0.2);
    }
    to {
        text-shadow: 
            0 0 10px rgba(229, 57, 53, 0.8),
            0 0 20px rgba(229, 57, 53, 0.6),
            0 0 30px rgba(229, 57, 53, 0.4);
    }
}

/* Morphing Button Effect */
.btn-morph {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-morph:hover::before {
    left: 100%;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-animation {
    animation: rotate 10s linear infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.bounce-animation {
    animation: bounce 2s infinite;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

/* Gradient Border Animation */
.gradient-border {
    position: relative;
    background: linear-gradient(45deg, #e53935, #ff6b6b, #e53935);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    padding: 2px;
    border-radius: 10px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 8px;
    z-index: -1;
}

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

/* 3D Card Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Liquid Button Effect */
.btn-liquid {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #e53935, #ff6b6b);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-liquid:hover::before {
    left: 100%;
}

.btn-liquid:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 57, 53, 0.3);
}

/* Neon Glow Effect */
.neon-glow {
    color: #e53935;
    text-shadow:
        0 0 5px #e53935,
        0 0 10px #e53935,
        0 0 15px #e53935,
        0 0 20px #e53935;
    animation: neonFlicker 1.5s infinite alternate;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 5px #e53935,
            0 0 10px #e53935,
            0 0 15px #e53935,
            0 0 20px #e53935;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(45deg, #e53935, #ff6b6b, #e53935, #ff6b6b);
    background-size: 400% 400%;
    animation: holographic 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Magnetic Hover Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.magnetic:hover {
    transform: scale(1.05);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Glassmorphism Effect */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Morphing Shapes */
.morphing-shape {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #e53935, #ff6b6b);
    border-radius: 50%;
    animation: morph 4s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 50%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 20%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 50%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 20%;
        transform: rotate(270deg);
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(229, 57, 53, 0.1);
    border-left: 4px solid #e53935;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Progress Bar Animation */
.progress-bar-animated {
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #e53935, #ff6b6b);
    border-radius: 2px;
    animation: progressFill 2s ease-in-out forwards;
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

/* Text Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #e53935;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #e53935;
    }
}

/* Parallax Scrolling */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced Hover Effects */
.hover-lift-3d {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
}

.hover-lift-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: #e53935;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff6b6b;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #ff6b6b;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(2px, -2px);
    }
    40% {
        transform: translate(-2px, 2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(2px, 2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(-2px, -2px);
    }
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .card-3d:hover {
        transform: none;
    }
    
    .hover-lift-3d:hover {
        transform: translateY(-5px);
    }
    
    .float-animation {
        animation-duration: 4s;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== LOADING SCREEN ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B0000 0%, #000000 50%, #8B0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 20px;
}

.loading-logo {
    margin-bottom: 30px;
}

.loading-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo-spin {
    animation: logoSpin 3s linear infinite, logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoGlow {
    0% {
        box-shadow: 0 0 20px rgba(229, 57, 53, 0.5);
        border-color: rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 40px rgba(229, 57, 53, 0.8);
        border-color: rgba(229, 57, 53, 0.6);
    }
}

.loading-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #e53935, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 2s ease infinite;
}

.loading-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.5s both;
}

.loading-progress {
    width: 100%;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e53935, #ff6b6b, #e53935);
    background-size: 200% 100%;
    border-radius: 3px;
    width: 0%;
    animation: progressFill 3s ease-in-out forwards, gradientShift 1s ease infinite;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e53935;
    animation: fadeInUp 1s ease 1s both;
}

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

/* ========== ENHANCED INTERACTIVE ELEMENTS ========== */

/* Animated Background Patterns */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(229, 57, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(229, 57, 53, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Interactive Cards with Tilt Effect */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
}

.interactive-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(229, 57, 53, 0.1);
}

/* Magnetic Buttons */
.magnetic-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.magnetic-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.text-reveal span:nth-child(1) { animation-delay: 0.1s; }
.text-reveal span:nth-child(2) { animation-delay: 0.2s; }
.text-reveal span:nth-child(3) { animation-delay: 0.3s; }
.text-reveal span:nth-child(4) { animation-delay: 0.4s; }
.text-reveal span:nth-child(5) { animation-delay: 0.5s; }

/* Hover Glow Effect */
.hover-glow {
    transition: all 0.3s ease;
    position: relative;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(229, 57, 53, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.hover-glow:hover::before {
    opacity: 1;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(229, 57, 53, 0.3);
}

/* Animated Icons */
.animated-icon {
    transition: all 0.3s ease;
}

.animated-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: #e53935;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background: #e53935;
    transform: scale(1.5);
}

/* Enhanced Form Animations */
.animated-input {
    position: relative;
    overflow: hidden;
}

.animated-input input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(229, 57, 53, 0.3);
    padding: 10px 0;
    width: 100%;
    transition: all 0.3s ease;
}

.animated-input input:focus {
    outline: none;
    border-bottom-color: #e53935;
}

.animated-input label {
    position: absolute;
    top: 10px;
    left: 0;
    transition: all 0.3s ease;
    color: rgba(229, 57, 53, 0.7);
}

.animated-input input:focus + label,
.animated-input input:valid + label {
    top: -20px;
    font-size: 0.8rem;
    color: #e53935;
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Interactive Timeline */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #e53935;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    width: 2px;
    height: calc(100% + 10px);
    background: linear-gradient(to bottom, #e53935, transparent);
}

.timeline-item:last-child::after {
    display: none;
}

/* Enhanced Carousel Effects */
.enhanced-carousel .owl-item {
    transition: all 0.5s ease;
    transform: scale(0.9);
    opacity: 0.7;
}

.enhanced-carousel .owl-item.active {
    transform: scale(1);
    opacity: 1;
}

.enhanced-carousel .owl-item.active.center {
    transform: scale(1.05);
    z-index: 2;
}

/* ========== IIDE STYLE AWARD-WINNING EXCELLENCE SECTION ========== */

/* Awards Container */
.awards-iide-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Heptagon shapes for award cards and badges */
.heptagon-card {
    --w: 220px;
    --h: 260px;
    width: var(--w);
    height: var(--h);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.06);
    clip-path: polygon(
        50% 0%, 90% 18%, 100% 58%, 74% 100%, 26% 100%, 0% 58%, 10% 18%
    );
    padding: 22px 16px 18px;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
}
.heptagon-card:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(0,0,0,0.16); }
.heptagon-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.heptagon-badge {
    --s: 66px;
    width: var(--s);
    height: var(--s);
    background: radial-gradient(circle at 50% 40%, #ffe066, #ffca28);
    color: #7a5800;
    display: grid;
    place-items: center;
    clip-path: polygon(
        50% 0%, 90% 18%, 100% 58%, 74% 100%, 26% 100%, 0% 58%, 10% 18%
    );
    box-shadow: 0 8px 18px rgba(255, 202, 40, 0.3);
}
.heptagon-badge img{ width:36px; height:36px; object-fit:contain; display:block; z-index:2; position:relative; }
.heptagon-badge::before{ content:""; position:absolute; inset:0; clip-path:inherit; background:inherit; z-index:1; }
.heptagon-badge i { color: #7a5800; }

.hept-title {
    background: #fff;
    font-weight: 800;
    color: #2c3e50;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(229,57,53,.08);
}
.hept-ribbon {
    display: inline-block;
    background: linear-gradient(135deg, #ff9a9a, #e53935);
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: 0 6px 20px rgba(229,57,53,.35);
    position: relative;
}
.hept-year { color: #6b7280; font-weight: 700; }

/* Horizontal marquee for awards */
.awards-marquee-wrap { overflow: hidden; position: relative; }
.awards-marquee-track {
    display: flex;
    align-items: stretch;
    gap: 22px;
    width: max-content;
    animation: awards-marquee 28s linear infinite;
}
@keyframes awards-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause animation on hover for accessibility */
.awards-marquee-wrap:hover .awards-marquee-track { animation-play-state: paused; }

/* Responsive sizing */
@media (max-width: 1199.98px) {
    .heptagon-card { --w: 200px; --h: 240px; }
}
@media (max-width: 767.98px) {
    .heptagon-card { --w: 180px; --h: 220px; }
}

/* Shield-shaped Award Cards */
.award-shield-card {
    position: relative;
    width: 200px;
    height: 280px;
    background: #ffffff;
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Shield shape with pointed bottom */
.award-shield-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #ffffff;
}

.award-shield-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Trophy Icon */
.trophy-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.trophy-icon i {
    color: #ffffff;
}

/* Award Content */
.award-content {
    padding: 2rem 1rem 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Award Event Name */
.award-event {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.award-event-focus {
    color: #2c3e50 !important;
    font-weight: 700 !important;
}

/* Award Ribbon */
.award-ribbon {
    position: relative;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ribbon-light {
    background: #e3f2fd;
    color: #1976d2;
}

.ribbon-dark {
    background: #1976d2;
    color: #ffffff;
}

.award-ribbon span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Award Year */
.award-year {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: auto;
    padding-bottom: 1rem;
}

/* Focus Card (Center Card) */
.award-shield-focus {
    transform: scale(1.05);
    z-index: 1;
}

.award-shield-focus:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Featured In Section */
.featured-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.25rem;
    margin-top: 2rem;
}

.featured-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    width: 200px;
    height: 140px;
    text-align: center;
}

.featured-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.featured-logo-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #e53935;
}
.featured-logo-item img {
    max-width: 90%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(229,57,53,0.15));
}

.featured-logo-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .awards-iide-container {
        gap: 1.5rem;
    }
    
    .award-shield-card {
        width: 180px;
        height: 260px;
    }
}

@media (max-width: 992px) {
    .awards-iide-container {
        gap: 1rem;
    }
    
    .award-shield-card {
        width: 160px;
        height: 240px;
    }
    
    .award-content {
        padding: 1.5rem 0.75rem 0.75rem;
    }
    
    .award-event {
        font-size: 0.8rem;
    }
    
    .award-ribbon span {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .awards-iide-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .award-shield-card {
        width: 200px;
        height: 280px;
    }
    
    .award-shield-focus {
        transform: none;
    }
    
    .award-shield-focus:hover {
        transform: translateY(-5px);
    }
    
    .featured-logos {
        gap: 1rem;
    }
    
    .featured-logo-item {
        width: 160px;
        height: 120px;
        padding: 0.9rem;
    }
    
    .featured-logo-item i {
        font-size: 1.5rem;
    }

    .featured-logo-item img {
        max-width: 90%;
        max-height: 80%;
    }

/* About page marquee logos */
.logos-marquee-wrap { overflow: hidden; position: relative; }
.logos-marquee-track { display: flex; gap: 28px; width: max-content; animation: logos-marquee 26s linear infinite; align-items: center; }
@keyframes logos-marquee { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }

.about-logo-item { width: 200px; height: 120px; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.about-logo-item img { max-width: 90%; max-height: 80%; object-fit: contain; display: block; }

/* Pause on hover */
.logos-marquee-wrap:hover .logos-marquee-track { animation-play-state: paused; }

@media (max-width: 992px) {
  .about-logo-item { width: 180px; height: 110px; }
}
@media (max-width: 768px) {
  .about-logo-item { width: 160px; height: 100px; }
}
@media (max-width: 576px) {
  .about-logo-item { width: 140px; height: 90px; }
}
    
    .featured-logo-item span {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .award-shield-card {
        width: 180px;
        height: 260px;
    }
    
    .featured-logos {
        gap: 0.75rem;
    }
    
    .featured-logo-item {
        width: 140px;
        height: 110px;
        padding: 0.6rem;
    }

    .featured-logo-item img {
        max-width: 90%;
        max-height: 80%;
    }
}

/* ========== TEXT DISPLAY FIXES ========== */

/* Ensure text doesn't get cut off */
.section-title h1,
.display-4 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    margin-bottom: 1rem;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

/* Prevent awkward word breaks */
.section-title h1 span,
.display-4 span {
    display: inline;
    white-space: normal;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .section-title h1,
    .display-4 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    .section-title h1,
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.25;
        word-break: break-word;
    }
    
    .section-title h1 span,
    .display-4 span {
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .section-title h1,
    .display-4 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
}

/* Fix text overflow issues */
.hero-title {
    white-space: normal;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
}

.hero-title .line {
    display: block;
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Ensure section titles have proper width */
.section-title {
    width: 100%;
    max-width: 100%;
}

.section-title h1,
.section-title .display-4 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Improve text contrast and readability */
.text-primary {
    color: #e53935 !important;
    font-weight: 600;
}

.text-secondary {
    color: #6c757d !important;
}

.text-muted {
    color: #6c757d !important;
    font-weight: 500;
}

/* Enhanced lead text styling */
.lead {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem;
}

/* Course card text improvements */
.courses-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.3;
    padding: 0.5rem;
}

/* Ensure proper spacing for animated elements */
.interactive-card,
.hover-glow,
.card-3d {
    overflow: visible;
    z-index: 1;
}

/* Fix animation text clipping */
[data-aos] {
    overflow: visible;
}

/* Improve button text contrast */
.btn-primary {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: none;
}

.btn-secondary {
    color: #ffffff !important;
    font-weight: 600;
}

/* Navigation text improvements */
.navbar .nav-link {
    font-weight: 500;
    color: #333333 !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #e53935 !important;
}

/* Hero text improvements */
.hero-sub {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Hero title specific fixes */
.hero-title {
    font-size: 3.25rem !important;
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    word-wrap: break-word;
    white-space: normal;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
    }
}

/* Achievement counter text */
.card-counter .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e53935;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.card-counter .label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FAQ text improvements */
.faq-question {
    font-size: 1rem;
    line-height: 1.4;
}

.faq-answer {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team section text */
.team-item h5 {
    font-weight: 700;
    color: #333;
}

.team-item p {
    color: #6c757d;
    font-weight: 500;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2rem;
    }
    
    .loading-logo img {
        width: 60px;
        height: 60px;
    }
    
    .scroll-indicator {
        right: 15px;
    }
    
    .interactive-card:hover {
        transform: translateY(-5px);
    }
    
    /* Mobile text adjustments */
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .section-title h1 {
        font-size: 1.8rem;
    }
}

/* Tablet adjustments */
@media (max-width: 992px) and (min-width: 769px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem !important;
    }
}

/* Extra small mobile responsive headings */
@media (max-width: 480px) {
    h1, .h1, .display-4 {
        font-size: 1.5rem !important;
        line-height: 1.25;
        word-break: break-word;
    }
    
    h2, .h2 {
        font-size: 1.35rem !important;
        line-height: 1.25;
        word-break: break-word;
    }
    
    h3, .h3 {
        font-size: 1.15rem !important;
        line-height: 1.25;
    }
    
    h4, .h4 {
        font-size: 1.05rem !important;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
        word-break: break-word;
        line-height: 1.25;
    }
    
    .section-title h1,
    .section-title h2 {
        font-size: 1.35rem !important;
        word-break: break-word;
        line-height: 1.25;
    }
}

/* Medium mobile responsive headings */
@media (max-width: 640px) and (min-width: 481px) {
    h1, .h1, .display-4 {
        font-size: 1.7rem !important;
        line-height: 1.25;
    }
    
    h2, .h2 {
        font-size: 1.5rem !important;
        line-height: 1.25;
    }
}


/* ========== BEAUTY PASS FOR DIDM MASTER PAGE (RED/BLACK/WHITE THEME) ========== */

/* Section wrapper polish */
section { position: relative; }
section.section-bg { background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%); }
/* Make generic sections stack above any decorative separators */
section.py-5 { position: relative; z-index: 1; }

/* Decorative heading underline */
.container h2 { position: relative; font-weight: 800; letter-spacing: .3px; }
.container h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 10px auto 0 auto;
    background: linear-gradient(90deg, #8B0000, #e53935, #8B0000);
    border-radius: 4px;
}

/* Cards */
.module-card {
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.module-card:hover { transform: translateY(-8px); box-shadow: 0 22px 58px rgba(0,0,0,0.14); border-color: rgba(229,57,53,0.18); }

/* Subtle gradient halo on hover */
.module-card:hover:before {
    content: ""; position: absolute; inset: -1px; border-radius: 20px; pointer-events: none;
    background:
      radial-gradient(220px 80px at 50% 0%, rgba(229,57,53,.10), transparent 70%),
      radial-gradient(220px 80px at 50% 100%, rgba(0,0,0,.04), transparent 70%);
}

/* Bulleted lists inside cards */
.module-card ul li { line-height: 1.7; color: #222; }
.module-card ul li i.fas, .module-card ul li i.fa { color: #16a34a; }

/* Left spec labels */
.module-card h5 { font-weight: 800; color: #0f172a; }
.module-card h6, .module-card .h6 { font-weight: 800; color: #0f172a; }

/* Forms */
.module-card .form-control {
    height: 52px; border-radius: 12px; border: 2px solid #ececec; transition: border-color .2s ease, box-shadow .2s ease, transform .1s ease;
}
.module-card textarea.form-control { height: auto; }
.module-card .form-control:focus {
    border-color: #e53935; box-shadow: 0 0 0 4px rgba(229,57,53,.10); transform: translateY(-1px);
}
.module-card .form-check-input:checked { background-color: #e53935; border-color: #e53935; }

/* CTA buttons (inherit existing btn-cta animation) */
.btn { border-radius: 12px; font-weight: 700; }
.btn-primary { background: linear-gradient(90deg,#8B0000,#e53935,#8B0000) !important; border: none !important; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }

/* Comparison cards */
.display-4 { font-weight: 900; letter-spacing: .5px; }
.hover-lift:hover { box-shadow: 0 18px 54px rgba(229,57,53,0.18); }

/* Gallery tiles */
.row .p-1 img { border-radius: 14px; transition: transform .35s ease, filter .35s ease; filter: saturate(.95) contrast(1.02); }
.row .p-1 img:hover { transform: scale(1.04); filter: saturate(1.05) contrast(1.05); }

/* Awards logos grayscale -> color */
.awards-section img { filter: grayscale(100%) opacity(.85); transition: filter .25s ease, transform .25s ease; }
.awards-section img:hover { filter: grayscale(0%) opacity(1); transform: translateY(-3px) scale(1.03); }

/* Awards/Associations blocks */
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.awards-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 18px; padding: 22px; box-shadow: 0 12px 26px rgba(0,0,0,.06); transition: transform .25s ease, box-shadow .25s ease; }
.awards-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0,0,0,.12); }
.awards-card h3 { font-weight: 800; color: #0f172a; text-align: center; margin-bottom: 14px; }
.awards-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }

/* Companies section two-column cards */
.companies-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.companies-card { background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:18px; padding:22px; box-shadow:0 12px 26px rgba(0,0,0,.06); }
.companies-logos { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.companies-logos img { width:110px; height:60px; object-fit:cover; border-radius:8px; box-shadow:0 6px 16px rgba(0,0,0,.08); transition: transform .25s ease, box-shadow .25s ease; }
.companies-logos img:hover { transform: translateY(-4px) scale(1.03); box-shadow:0 12px 26px rgba(0,0,0,.18); }

/* Overview tiles hover with subtle lift and glow */
.hover-glow { position: relative; }
.hover-glow:after { content:""; position:absolute; left:10%; right:10%; bottom:-6px; height:12px; filter: blur(12px); background: radial-gradient(closest-side, rgba(229,57,53,.25), transparent); opacity:0; transition: opacity .25s ease; }
.hover-glow:hover:after { opacity:1; }


/* Lists with checkmarks and spacing (global) */
ul.list-unstyled li { margin-bottom: 12px; }

/* Hero shapes colors tuned to theme */
.floating-shapes .shape { background: radial-gradient(50% 50% at 50% 50%, rgba(229,57,53,.28), rgba(139,0,0,.22)); box-shadow: 0 10px 30px rgba(229,57,53,.15); }

/* Soft section separators */
section + section:before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(229,57,53,.25), transparent); }

.navbar .dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.navbar .dropdown-menu {
  margin-top: 0.6rem;
  transition: all 0.1s;
}

/* Hero Image Animations with Particles */
.hero-image {
  position: relative;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 15px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-image img {
  display: block;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  animation: floatImage 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(229, 57, 53, 0.25));
  border-radius: 15px;
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 20px 40px rgba(229, 57, 53, 0.25));
  }
  50% {
    transform: translateY(-20px) scale(1.02);
    filter: drop-shadow(0 30px 50px rgba(229, 57, 53, 0.35));
  }
}

@keyframes particleFloat1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(30px, -60px) scale(0.5); opacity: 0; }
}

@keyframes particleFloat2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(-40px, -70px) scale(0.4); opacity: 0; }
}

@keyframes particleFloat3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(50px, -50px) scale(0.3); opacity: 0; }
}

@keyframes particleFloat4 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(-30px, -65px) scale(0.45); opacity: 0; }
}

@keyframes particleFloat5 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(35px, -75px) scale(0.35); opacity: 0; }
}

.hero-image::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(255, 100, 100, 0.8), rgba(229, 57, 53, 0.4));
  border-radius: 50%;
  bottom: 20%;
  left: 50%;
  z-index: 1;
  box-shadow: 
    20px -30px 0 -4px rgba(255, 150, 150, 0.6),
    -25px -35px 0 -5px rgba(255, 100, 100, 0.5),
    35px -25px 0 -3px rgba(255, 120, 120, 0.65),
    -15px -40px 0 -4.5px rgba(255, 80, 80, 0.55),
    30px -45px 0 -3.5px rgba(255, 130, 130, 0.6),
    -35px -20px 0 -4px rgba(255, 110, 110, 0.5),
    15px -50px 0 -3px rgba(255, 140, 140, 0.58),
    -40px -30px 0 -5px rgba(255, 90, 90, 0.52);
  animation: particleFloat1 3s ease-in infinite, particleFloat2 3.5s ease-in 0.2s infinite, 
             particleFloat3 4s ease-in 0.4s infinite, particleFloat4 3.2s ease-in 0.6s infinite,
             particleFloat5 3.8s ease-in 0.8s infinite;
  filter: blur(0.5px);
}

.hero-image img:hover {
  transform: translateY(-25px) scale(1.05);
  filter: drop-shadow(0 40px 60px rgba(229, 57, 53, 0.4));
}

/* Mobile Responsive - Particles and centered image */
@media (max-width: 767px) {
  .hero-image {
    justify-content: center;
    padding: 20px 0;
  }

  .hero-image img {
    animation: floatImageMobile 6s ease-in-out infinite;
    filter: drop-shadow(0 12px 25px rgba(229, 57, 53, 0.2));
    max-width: 100%;
    height: auto;
  }

  @keyframes floatImageMobile {
    0%, 100% {
      transform: translateY(0px) scale(1);
      filter: drop-shadow(0 12px 25px rgba(229, 57, 53, 0.2));
    }
    50% {
      transform: translateY(-12px) scale(1.01);
      filter: drop-shadow(0 18px 35px rgba(229, 57, 53, 0.28));
    }
  }

  .hero-image::after {
    width: 8px;
    height: 8px;
    bottom: 15%;
    box-shadow: 
      12px -18px 0 -3px rgba(255, 150, 150, 0.5),
      -15px -20px 0 -3.5px rgba(255, 100, 100, 0.45),
      18px -15px 0 -2px rgba(255, 120, 120, 0.55),
      -10px -25px 0 -3px rgba(255, 80, 80, 0.48),
      16px -28px 0 -2.5px rgba(255, 130, 130, 0.5),
      -20px -12px 0 -3px rgba(255, 110, 110, 0.42),
      8px -30px 0 -2px rgba(255, 140, 140, 0.48),
      -22px -18px 0 -3.5px rgba(255, 90, 90, 0.44);
    animation: particleFloat1 2.5s ease-in infinite, particleFloat2 3s ease-in 0.2s infinite, 
               particleFloat3 3.5s ease-in 0.4s infinite, particleFloat4 2.8s ease-in 0.6s infinite,
               particleFloat5 3.2s ease-in 0.8s infinite;
  }

  .hero-image img:hover {
    transform: translateY(-15px) scale(1.03);
    filter: drop-shadow(0 25px 40px rgba(229, 57, 53, 0.3));
  }
}

/* Tablet Responsive */
@media (max-width: 991px) and (min-width: 768px) {
  .hero-image {
    justify-content: center;
  }

  .hero-image img {
    animation: floatImageTablet 6s ease-in-out infinite;
    filter: drop-shadow(0 16px 32px rgba(229, 57, 53, 0.22));
  }

  @keyframes floatImageTablet {
    0%, 100% {
      transform: translateY(0px) scale(1);
      filter: drop-shadow(0 16px 32px rgba(229, 57, 53, 0.22));
    }
    50% {
      transform: translateY(-16px) scale(1.015);
      filter: drop-shadow(0 24px 42px rgba(229, 57, 53, 0.32));
    }
  }

  .hero-image::after {
    width: 10px;
    height: 10px;
    box-shadow: 
      16px -24px 0 -3.5px rgba(255, 150, 150, 0.55),
      -20px -28px 0 -4px rgba(255, 100, 100, 0.48),
      28px -20px 0 -2.5px rgba(255, 120, 120, 0.6),
      -12px -32px 0 -3.5px rgba(255, 80, 80, 0.52),
      24px -36px 0 -3px rgba(255, 130, 130, 0.55),
      -28px -16px 0 -3.5px rgba(255, 110, 110, 0.46),
      12px -40px 0 -2.5px rgba(255, 140, 140, 0.53),
      -30px -24px 0 -4px rgba(255, 90, 90, 0.48);
    animation: particleFloat1 2.8s ease-in infinite, particleFloat2 3.2s ease-in 0.2s infinite, 
               particleFloat3 3.8s ease-in 0.4s infinite, particleFloat4 3s ease-in 0.6s infinite,
               particleFloat5 3.5s ease-in 0.8s infinite;
  }

  .hero-image img:hover {
    transform: translateY(-20px) scale(1.04);
    filter: drop-shadow(0 32px 50px rgba(229, 57, 53, 0.35));
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero-image {
    justify-content: center;
    padding: 15px 0;
  }

  .hero-image img {
    animation: floatImageXs 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(229, 57, 53, 0.18));
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  @keyframes floatImageXs {
    0%, 100% {
      transform: translateY(0px) scale(1);
      filter: drop-shadow(0 10px 20px rgba(229, 57, 53, 0.18));
    }
    50% {
      transform: translateY(-8px) scale(1.005);
      filter: drop-shadow(0 14px 28px rgba(229, 57, 53, 0.24));
    }
  }

  .hero-image::after {
    width: 6px;
    height: 6px;
    bottom: 10%;
    box-shadow: 
      8px -12px 0 -2px rgba(255, 150, 150, 0.45),
      -10px -14px 0 -2.5px rgba(255, 100, 100, 0.4),
      12px -10px 0 -1.5px rgba(255, 120, 120, 0.48),
      -7px -16px 0 -2px rgba(255, 80, 80, 0.42),
      10px -18px 0 -2px rgba(255, 130, 130, 0.45),
      -14px -8px 0 -2.5px rgba(255, 110, 110, 0.38),
      6px -20px 0 -1.5px rgba(255, 140, 140, 0.43),
      -16px -12px 0 -2.5px rgba(255, 90, 90, 0.4);
    animation: particleFloat1 2s ease-in infinite, particleFloat2 2.4s ease-in 0.2s infinite, 
               particleFloat3 2.8s ease-in 0.4s infinite, particleFloat4 2.2s ease-in 0.6s infinite,
               particleFloat5 2.6s ease-in 0.8s infinite;
  }

  .hero-image img:hover {
    transform: translateY(-12px) scale(1.02);
    filter: drop-shadow(0 20px 32px rgba(229, 57, 53, 0.26));
  }
}

/* Pedagogy Section - Interactive Cards with Red-White-Black Gradient Theme */
.container > .row .interactive-card {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%);
  border: 2px solid rgba(139, 0, 0, 0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(139, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.container > .row .interactive-card:hover {
  background: linear-gradient(135deg, #ffffff 0%, #ffe6e6 50%, #ffffff 100%);
  border-color: rgba(229, 57, 53, 0.4);
  box-shadow: 0 12px 32px rgba(229, 57, 53, 0.2);
  transform: translateY(-8px);
}

.container > .row .interactive-card h5 {
  color: #1a1a1a;
  font-weight: 700;
}

.container > .row .interactive-card p {
  color: #6b7280;
}

.container > .row .interactive-card .btn-primary {
  background: linear-gradient(135deg, #e53935 0%, #8B0000 100%);
  border: none;
}

.container > .row .interactive-card .btn-primary:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #660000 100%);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.4);
}

/* Why Choose Us Section - Image Styling */
.container-fluid.animated-bg .col-lg-6:last-child img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container-fluid.animated-bg .col-lg-6:last-child img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
}

@media (max-width: 991.98px) {
  .container-fluid.animated-bg .col-lg-6:last-child {
    margin-top: 30px;
    min-height: 400px !important;
  }
}

@media (max-width: 767.98px) {
  .container-fluid.animated-bg .col-lg-6:last-child {
    margin-top: 20px;
    min-height: 300px !important;
  }
}

.reviews-carousel {
  position: relative;
}

.reviews-carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 10;
  pointer-events: none;
}

.reviews-nav-btn {
  pointer-events: all;
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #e53935, #ff7070);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.25);
  cursor: pointer;
}

.reviews-nav-btn:hover {
  background: linear-gradient(135deg, #c62828, #ff5555);
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.35);
}

.reviews-nav-btn i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .reviews-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .reviews-carousel-nav {
    padding: 0 8px;
  }
}


/* Footer Tabs Styling */
#pills-tab .nav-item {
    margin-right: 10px;
    margin-bottom: 10px;
}

#pills-tab .nav-link {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8) !important;
}

#pills-tab .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#pills-tab .nav-link.active {
    background: #fff;
    color: #8B0000 !important; /* Dark red to match theme */
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
