:root {
    --mq-primary: #0d2746;
    --mq-primary-light: #163863;
    --mq-accent: #0b9e8a;
    --mq-accent-hover: #088271;
    --mq-accent-subtle: #e6f6f4;
    --mq-gold: #c59b27;
    --mq-gold-subtle: #fcf6e8;
    --mq-bg: #f7f9fb;
    --mq-card-border: #e2e8f0;
    --mq-text-muted: #64748b;
}

body {
    background-color: var(--mq-bg);
    color: #1e293b;
    overflow-x: hidden;
}

/* Navbar */
.mq-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    z-index: 1040;
}
.mq-navbar .nav-link {
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    transition: color 0.2s ease;
}
.mq-navbar .nav-link:hover,
.mq-navbar .nav-link.active {
    color: var(--mq-accent);
}
.mq-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--mq-primary);
}
.mq-brand-sub {
    font-size: 0.75rem;
    color: var(--mq-text-muted);
}

/* Hero Section */
.mq-hero-section {
    position: relative;
    padding: 1.25rem 0 2rem 0;
    background: radial-gradient(circle at top right, #eaf4f4 0%, #f7f9fb 60%);
}
.mq-hero-banner {
    position: relative;
    margin: 0 auto;
}
.mq-hero-banner-frame,
.mq-hero-banner-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: transparent !important;
    min-height: 0 !important;
    height: auto !important;
    box-shadow: none !important;
}
#heroBannerCarousel,
#heroBannerCarousel .carousel-inner,
#heroBannerCarousel .carousel-item {
    min-height: 0 !important;
    height: auto !important;
}
.mq-hero-banner-img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(13, 39, 70, 0.12);
    object-fit: contain;
}
.mq-hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

/* Hero Search Box */
.mq-hero-search-wrap {
    width: 100%;
    max-width: 680px;
    margin: 1.25rem auto 0 auto;
}

@media (max-width: 767.98px) {
    .mq-hero-section {
        padding: 0.75rem 0 1.5rem 0;
    }
    .mq-hero-banner-img {
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(13, 39, 70, 0.1);
    }
    .mq-hero-banner-frame,
    .mq-hero-banner-inner {
        border-radius: 14px;
    }
    .mq-hero-search-wrap {
        margin: 1rem auto 0 auto;
    }
}
.mq-search-input-group {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 6px 8px;
    box-shadow: 0 8px 24px rgba(13, 39, 70, 0.1);
    display: flex;
    align-items: center;
}
.mq-search-input {
    border: none;
    outline: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    width: 100%;
    background: transparent;
}
.mq-search-btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    background: var(--mq-accent);
    color: #ffffff;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s;
    white-space: nowrap;
}
.mq-search-btn:hover {
    background: var(--mq-accent-hover);
    color: #ffffff;
}

/* Portal Cards */
.mq-portal-card {
    text-decoration: none;
    color: inherit;
}
.mq-portal-card .card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mq-portal-card:hover .card {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(13, 39, 70, 0.12) !important;
    border-color: rgba(9, 71, 112, 0.25);
}
.mq-portal-icon-wrap {
    transition: transform 0.25s ease;
}
.mq-portal-card:hover .mq-portal-icon-wrap {
    transform: scale(1.08);
}

/* Section Title */
.mq-section-header {
    margin-bottom: 2.5rem;
    position: relative;
}
.mq-section-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--mq-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.mq-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--mq-accent);
    border-radius: 2px;
    margin-top: 6px;
}

/* Course Cards */
.mq-course-card {
    background: #ffffff;
    border: 1px solid var(--mq-card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.mq-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.mq-course-thumb-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #e2e8f0;
}
.mq-course-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mq-course-card:hover .mq-course-thumb {
    transform: scale(1.04);
}
.mq-badge-type {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}
.mq-badge-status {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}
.mq-course-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.mq-course-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mq-primary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.mq-course-meta {
    font-size: 0.85rem;
    color: var(--mq-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mq-btn-course {
    background: var(--mq-accent);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    width: 100%;
    margin-top: auto;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}
.mq-btn-course:hover {
    background: var(--mq-accent-hover);
    color: #ffffff;
}

/* Features / Why Miqat */
.mq-feature-card {
    background: #ffffff;
    border: 1px solid var(--mq-card-border);
    border-radius: 16px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    transition: all 0.25s ease;
    height: 100%;
}
.mq-feature-card:hover {
    border-color: var(--mq-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(11, 158, 138, 0.08);
}
.mq-feature-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--mq-accent-subtle);
    color: var(--mq-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.2rem auto;
}

/* Stats Ribbon */
.mq-stats-ribbon {
    background: linear-gradient(135deg, #09796b 0%, #0ba59a 100%);
    color: #ffffff;
    padding: 3.5rem 0;
    margin: 4rem 0;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(11, 158, 138, 0.2);
}
.mq-stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}
.mq-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Instructors */
.mq-instructor-card {
    text-align: center;
    padding: 1.5rem 1rem;
}
.mq-instructor-avatar-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    padding: 4px;
    border: 3px solid var(--mq-accent);
    overflow: hidden;
    background: #ffffff;
}
.mq-instructor-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.mq-instructor-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mq-primary);
    margin-bottom: 0.2rem;
}
.mq-instructor-spec {
    font-size: 0.85rem;
    color: var(--mq-text-muted);
}

/* News Cards */
.mq-news-card {
    background: #ffffff;
    border: 1px solid var(--mq-card-border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.mq-news-thumb {
    height: 150px;
    object-fit: cover;
    width: 100%;
}
.mq-news-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--mq-card-border);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.accordion-button:not(.collapsed) {
    background-color: var(--mq-accent-subtle);
    color: var(--mq-accent-hover);
    font-weight: 700;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--mq-accent);
}

/* Footer */
.mq-footer {
    background: #0d1e34;
    color: #e2e8f0;
    padding: 4rem 0 1.5rem 0;
    margin-top: 5rem;
}
.mq-footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}
.mq-footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}
.mq-footer a:hover,
.mq-footer .hover-white:hover {
    color: #ffffff !important;
}
.mq-footer .text-muted {
    color: #cbd5e1 !important;
}
.mq-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

/* Educational Products & Audio Packages */
.mq-product-card {
    background: #ffffff;
    border: 2px solid var(--mq-primary);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 16px rgba(13, 39, 70, 0.08);
    position: relative;
}
.mq-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(13, 39, 70, 0.18);
    border-color: var(--mq-accent);
}
.mq-product-thumb-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
    border-bottom: 2px solid var(--mq-primary);
}
.mq-product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mq-product-card:hover .mq-product-thumb {
    transform: scale(1.04);
}
.mq-product-body {
    background: #ffffff;
}
.mq-product-footer {
    background: #f8fafc;
    border-top: 1.5px solid #e2e8f0;
    margin-top: auto;
}
.mq-btn-product {
    background: var(--mq-primary);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none;
}
.mq-btn-product:hover {
    background: var(--mq-accent);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 158, 138, 0.3);
}


