/**
 * Web theme – Student Dashboard color scheme applied across web pages.
 * Single source for palette and card/section styling so all pages feel consistent.
 */

:root {
    /* Backgrounds */
    --web-bg: #f0f2f5;
    --web-card-bg: #fff;
    --web-card-bg-subtle: #f8f9fa;

    /* Primary / accent (indigo–purple, matches Student Dashboard) */
    --web-primary: #4f46e5;
    --web-primary-hover: #7c3aed;
    --web-primary-light: #ede9fe;
    --web-primary-lighter: #f5f3ff;

    /* Text */
    --web-text: #111827;
    --web-text-muted: #6b7280;
    --web-text-secondary: #374151;

    /* Borders & shadows */
    --web-border: #e5e7eb;
    --web-border-light: #f1f5f9;
    --web-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --web-radius: 12px;
    --web-radius-sm: 8px;
}

/* Main content area: same background as Student Dashboard */
.web-content {
    background-color: var(--web-bg);
    min-height: 50vh;
}

/* Dashboard-style cards (for sections that use .web-card) */
.web-card {
    background: var(--web-card-bg);
    border-radius: var(--web-radius);
    box-shadow: var(--web-card-shadow);
    border: 1px solid var(--web-border);
}

.web-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--web-text);
    margin: 0 0 4px;
}

.web-card-sub {
    font-size: 13px;
    color: var(--web-text-muted);
    margin: 0 0 16px;
}

/* Override old section backgrounds so new mk- classes show clean */
.web-content .online_practice_test_section {
    margin: 0;
    padding: 0;
}
.web-content .online_practice_test_section .container {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}
.web-content .college_counselling_section {
    padding: 0 !important;
    overflow: visible !important;
}
.web-content .college_counselling_section .college_counselling_main {
    padding: 0;
}
.web-content .virtual_classes_section {
    padding: 0;
}

/* Page title banners: remove blue block, show as simple heading */
/* Hide old blue banners completely — pages now use mk-page-header */
.web-content .other_section_with_bk,
.web-content .other_section_heading_top {
    display: none !important;
}

/* Blogs: align card shadow with dashboard style */
.web-content .blogs_section .blog_card_body {
    box-shadow: var(--web-card-shadow);
}
.web-content .blogs_section .main_blog_card:hover .blog_card_body {
    background-color: var(--web-primary);
}

/* ─── Shared Page Template ─────────────────────────────────────── */

/* Page header: title + subtitle */
.mk-page-header {
    text-align: center;
    padding: 32px 16px 8px;
    max-width: 1200px;
    margin: 0 auto;
}
.mk-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    font-family: "Jost", sans-serif;
    font-style: normal;
    text-transform: uppercase;
}
.mk-page-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 24px;
    font-weight: 400;
}

/* Counselling page-specific header overrides */
.counselling-page {
    padding: 0 24px;
}
.counselling-page .mk-page-header {
    padding: 36px 16px 8px;
}
.counselling-page .mk-page-title {
    font-size: 36px;
}
.counselling-page .mk-page-subtitle {
    font-size: 17px;
}

/* Intro section: centered paragraph below page header */
.mk-intro-section {
    max-width: 800px;
    margin: 0 auto 28px;
    padding: 0 16px;
    text-align: center;
}
.mk-intro-box {
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 20px 28px;
    text-align: center;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mk-intro-text {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
    margin: 0;
}

/* Service highlights: pill badges */
.mk-service-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.mk-service-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
    background: #dbeafe;
    padding: 4px 12px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* Card grid: 3 columns desktop, 2 tablet, 1 mobile */
.mk-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
@media(max-width: 992px) { .mk-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .mk-card-grid { grid-template-columns: 1fr; padding: 0 16px 32px; } }

/* Unified card */
.mk-card {
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
/* Wrapper so logo/image is fully visible and not clipped by card overflow */
.mk-card-img-wrap {
    height: 200px;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mk-card-img-wrap .mk-card-img {
    width: 100%;
    height: 100%;
    max-height: 160px;
    object-fit: contain;
    object-position: center;
    padding: 0;
    border: none;
}
/* Cards that use img without wrapper (e.g. Practice Tests) */
.mk-card > .mk-card-img {
    width: 100%;
    height: 140px;
    max-height: 140px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box;
}
.mk-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}
.mk-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #dbeafe;
    color: #2563eb;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.mk-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    text-transform: uppercase;
}
.mk-card-meta {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 8px;
}
.mk-card-desc {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 16px;
    line-height: 1.5;
    flex: 1;
}
.mk-card-price {
    font-size: 24px;
    font-weight: 800;
    color: #16a34a;
    margin: 0 0 16px;
}
.mk-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}
.mk-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid transparent !important;
}
.mk-btn-primary {
    background: #16a34a !important;
    color: #fff !important;
    border-color: #16a34a !important;
}
.mk-btn-primary:hover { background: #15803d !important; border-color: #15803d !important; color: #fff !important; text-decoration: none !important; }
.mk-btn-outline {
    background: transparent !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
.mk-btn-outline:hover { background: #f1f5f9 !important; border-color: #94a3b8 !important; color: #0f172a !important; text-decoration: none !important; }
.mk-btn-blue {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
}
.mk-btn-blue:hover { background: #1d4ed8 !important; border-color: #1d4ed8 !important; color: #fff !important; text-decoration: none !important; }

/* Pricing cards (College Counselling) */
.mk-pricing-card {
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
    padding: 32px 28px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent !important;
}
.mk-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.mk-pricing-card.featured {
    border-color: #2563eb !important;
    position: relative;
}
.mk-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
}
.mk-pricing-name {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    margin: 0 0 12px !important;
}
.mk-pricing-price {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px !important;
}
.mk-pricing-price span {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #64748b !important;
}
.mk-pricing-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 24px !important;
    text-align: left !important;
}
.mk-pricing-features li {
    font-size: 14px !important;
    color: #374151 !important;
    padding: 6px 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
}
.mk-pricing-features li::before {
    content: "✓";
    color: #16a34a;
    font-weight: 700;
    flex-shrink: 0;
}
.mk-pricing-actions {
    margin-top: auto;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Hide old footer class if it somehow still renders */
.footer_section { display: none !important; }

/* ─── Footer ─────────────────────────────────────────────────── */
.mk-footer {
    background: #1e293b;
    color: #cbd5e1;
    margin-top: 40px;
}
.mk-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}
.mk-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}
@media(max-width: 768px) {
    .mk-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.mk-footer-brand {}
.mk-footer-logo {
    height: 80px;
    margin-bottom: 12px;
    background: #f7f7f9;
    border-radius: 50%;
    padding: 8px;
}
.mk-footer-tagline {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 20px;
}
.mk-footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
}
.mk-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mk-footer-links li {
    margin-bottom: 10px;
}
.mk-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.mk-footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

/* Subscribe form */
.mk-footer-subscribe {
    margin-top: 4px;
}
.mk-subscribe-form {
    display: flex;
    gap: 0;
    max-width: 360px;
}
.mk-subscribe-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #334155;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
}
.mk-subscribe-input::placeholder {
    color: #64748b;
}
.mk-subscribe-input:focus {
    border-color: #3b82f6;
}
.mk-subscribe-btn {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.mk-subscribe-btn:hover {
    background: #1d4ed8;
}

/* Bottom bar */
.mk-footer-bottom {
    border-top: 1px solid #334155;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    color: #64748b;
}
@media(max-width: 600px) {
    .mk-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
.mk-footer-social {
    display: flex;
    gap: 16px;
}
.mk-footer-social a {
    color: #64748b;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.15s;
}
.mk-footer-social a:hover {
    color: #fff;
}
