﻿: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;
}
.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: 3rem 0 5rem 0;
    background: radial-gradient(circle at top right, #eaf4f4 0%, #f7f9fb 60%);
}
.mq-hero-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 380px;
    background: #0f2742;
    box-shadow: 0 15px 35px rgba(13, 39, 70, 0.15);
}
.mq-hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.mq-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 3.5rem 3rem;
    color: #ffffff;
}
.mq-hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.mq-hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

/* Hero Search Box */
.mq-hero-search {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 680px;
    z-index: 5;
}
.mq-search-input-group {
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 8px;
    box-shadow: 0 10px 30px rgba(11, 158, 138, 0.18);
    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;
}
.mq-search-btn:hover {
    background: var(--mq-accent-hover);
    color: #ffffff;
}

/* 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: #94a3b8;
    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: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.mq-footer a:hover {
    color: var(--mq-accent);
}
.mq-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 3rem;
}
