﻿/* Homepage styles extracted from resources/views/frontend/home.blade.php */


/* SECTION CONTAINER */
.ec-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(59,130,246,.05) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 100%, rgba(99,102,241,.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139,92,246,.03) 0%, transparent 40%),
        linear-gradient(180deg, #eff6ff 0%, #ffffff 40%, #eef2ff 100%);
}

.ec-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(rgba(59,130,246,.06), transparent 70%);
    top: -250px;
    left: -200px;
    pointer-events: none;
}

/* HEADER */
.ec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.ec-header-left { flex: 1; min-width: 0; }

.ec-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(99,102,241,.05));
    border: 1px solid rgba(59,130,246,.12);
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.ec-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: ecPulse 2s infinite;
}

@keyframes ecPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.ec-title {
    margin: 16px 0 8px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -1.5px;
}

.ec-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

/* HEADER RIGHT */
.ec-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.ec-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 16px rgba(15,23,42,.04);
}

.ec-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.ec-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ec-stat-num.text-primary { color: #2563eb; }
.ec-stat-num.text-amber { color: #d97706; }

.ec-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.ec-stat-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.ec-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(37,99,235,.25);
    white-space: nowrap;
}

.ec-view-all:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(37,99,235,.35);
}

.ec-view-all i { transition: transform .3s; }
.ec-view-all:hover i { transform: translateX(4px); }

/* FILTER TABS */
.ec-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.ec-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    white-space: nowrap;
}

.ec-tab:hover {
    border-color: #93c5fd;
    color: #2563eb;
    background: #eff6ff;
}

.ec-tab.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(37,99,235,.2);
}

.ec-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 50px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.25);
    color: #fff;
}

.ec-tab i { font-size: 16px; }

/* EVENTS GRID */
.ec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.ec-card-wrapper { position: relative; }

/* EVENT CARD */
.ec-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 45px rgba(15,23,42,.05);
    transition: all .4s cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ec-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(59,130,246,.02), transparent 50%);
    opacity: 0;
    transition: opacity .4s;
}

.ec-card:hover {
    transform: translateY(-12px);
    border-color: #bfdbfe;
    box-shadow: 0 30px 80px rgba(59,130,246,.15);
}

.ec-card:hover::before { opacity: 1; }

.ec-card.urgent {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff, #fef2f2);
}

/* Top accent bar */
.ec-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.ec-card:hover .ec-card-accent { transform: scaleX(1); }

.ec-card.urgent .ec-card-accent {
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
}

/* Urgent Badge */
.ec-urgent-badge {
    position: absolute;
    top: 16px;
    right: -38px;
    width: 150px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 0;
    letter-spacing: .5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(220,38,38,.3);
}

.ec-urgent-badge i { margin-right: 4px; font-size: 9px; }

/* Card Top */
.ec-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

/* Date Box */
.ec-date-box {
    width: 60px;
    height: 68px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
    transition: all .35s ease;
}

.ec-card:hover .ec-date-box {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    transform: scale(1.05);
}

.ec-date-month {
    font-size: 11px;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1;
    transition: color .3s;
}

.ec-card:hover .ec-date-month { color: #bfdbfe; }

.ec-date-day {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-top: 2px;
    transition: color .3s;
}

.ec-card:hover .ec-date-day { color: #fff; }

/* Event Type Badge */
.ec-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: all .3s;
}

.ec-type-exam { background: #dbeafe; color: #2563eb; }
.ec-type-admit_card { background: #fef3c7; color: #d97706; }
.ec-type-answer_key { background: #f3e8ff; color: #7c3aed; }
.ec-type-result { background: #d1fae5; color: #059669; }
.ec-type-application_last_date { background: #fee2e2; color: #dc2626; }
.ec-type-other { background: #f1f5f9; color: #64748b; }

.ec-card:hover .ec-type-exam { background: #2563eb; color: #fff; }
.ec-card:hover .ec-type-admit_card { background: #d97706; color: #fff; }
.ec-card:hover .ec-type-answer_key { background: #7c3aed; color: #fff; }
.ec-card:hover .ec-type-result { background: #059669; color: #fff; }
.ec-card:hover .ec-type-application_last_date { background: #dc2626; color: #fff; }

/* Organization Row */
.ec-org-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.ec-org-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eef2f7;
}

.ec-org-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    flex-shrink: 0;
}

.ec-org-name {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Title */
.ec-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
}

.ec-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color .3s;
}

.ec-card-title a:hover { color: #2563eb; }

/* Description */
.ec-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 14px;
    position: relative;
    z-index: 2;
    flex-grow: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Info Grid */
.ec-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.ec-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    transition: all .3s ease;
}

.ec-card:hover .ec-info-cell { transform: translateX(4px); }

.ec-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 14px;
    flex-shrink: 0;
    transition: all .35s ease;
}

.ec-card:hover .ec-info-icon {
    background: #2563eb;
    color: #fff;
    transform: scale(1.05);
}

.ec-info-icon.amber {
    background: #fffbeb;
    color: #d97706;
}

.ec-card:hover .ec-info-icon.amber {
    background: #d97706;
    color: #fff;
}

.ec-info-data {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ec-info-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}

.ec-info-value {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    white-space: nowrap;
}

.ec-days-urgent { color: #dc2626 !important; }
.ec-days-soon { color: #d97706 !important; }
.ec-days-safe { color: #16a34a !important; }
.ec-days-passed { color: #94a3b8 !important; }

/* CTA Button */
.ec-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 8px 20px rgba(37,99,235,.2);
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.ec-card-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37,99,235,.3);
}

.ec-card-btn i:first-child { font-size: 16px; }
.ec-card-btn i:last-child {
    transition: transform .3s;
    font-size: 14px;
    margin-left: auto;
}
.ec-card-btn:hover i:last-child { transform: translateX(4px); }

/* BOTTOM CTA */
.ec-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
    position: relative;
    z-index: 2;
}

.ec-bottom-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ec-bottom-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #bfdbfe;
}

.ec-bottom-text {
    margin: 0 0 2px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.ec-bottom-text strong { color: #2563eb; font-weight: 700; }

.ec-bottom-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.ec-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(37,99,235,.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.ec-bottom-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(37,99,235,.35);
}

.ec-bottom-btn i { transition: transform .3s; }
.ec-bottom-btn:hover i { transform: translateX(4px); }

/* RESPONSIVE */
@media (max-width: 1199px) {
    .ec-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .ec-title { font-size: 34px; }
}

@media (max-width: 991px) {
    .ec-section { padding: 70px 0; }
    .ec-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ec-header-right { width: 100%; justify-content: space-between; }
    .ec-title { font-size: 30px; }
    .ec-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ec-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
    .ec-bottom-info { flex-direction: column; }
    .ec-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .ec-tab { flex-shrink: 0; }
}

@media (max-width: 767px) {
    .ec-section { padding: 60px 0; }
    .ec-title { font-size: 26px; letter-spacing: -1px; }
    .ec-subtitle { font-size: 14px; }
    .ec-badge { font-size: 12px; padding: 8px 18px; }
    .ec-header-right { flex-direction: column; gap: 12px; align-items: stretch; }
    .ec-stats-row { justify-content: center; padding: 12px 16px; gap: 12px; }
    .ec-stat-num { font-size: 18px; }
    .ec-stat-item { min-width: 50px; }
    .ec-view-all { justify-content: center; padding: 12px 24px; }
    .ec-grid { grid-template-columns: 1fr; gap: 20px; }
    .ec-card { padding: 22px; border-radius: 20px; }
    .ec-date-box { width: 50px; height: 58px; }
    .ec-date-day { font-size: 20px; }
    .ec-date-month { font-size: 10px; }
    .ec-card-title { font-size: 15px; }
    .ec-urgent-badge { top: 14px; right: -40px; width: 140px; font-size: 10px; padding: 5px 0; }
    .ec-info-value { font-size: 12px; }
    .ec-card-btn { width: 100%; justify-content: center; }
    .ec-bottom { margin-top: 36px; padding: 18px 20px; }
    .ec-bottom-btn { width: 100%; justify-content: center; }
    .ec-bottom-text { font-size: 14px; }
}

@media (max-width: 480px) {
    .ec-title { font-size: 22px; }
    .ec-card { padding: 20px; }
    .ec-urgent-badge { display: none; }
    .ec-stats-row { flex-wrap: wrap; justify-content: center; }
    .ec-stat-dot:last-child { display: none; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ec-card,
    .ec-card-accent,
    .ec-date-box,
    .ec-info-icon,
    .ec-info-cell,
    .ec-card-btn,
    .ec-view-all,
    .ec-bottom-btn,
    .ec-urgent-badge {
        transition: none !important;
        animation: none !important;
    }
    .ec-card:hover { transform: none !important; }
    .ec-card:hover .ec-card-accent { transform: none !important; }
    .ec-card:hover .ec-date-box { transform: none !important; }
    .ec-badge-dot { animation: none !important; }
}

/* ============================================================
   ca- - PREMIUM CURRENT AFFAIRS SECTION
   Modern, Backend-Connected, Animated, Mobile Responsive
============================================================ */

/* SECTION CONTAINER */
.ca-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(6,182,212,.05) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 100%, rgba(14,165,233,.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(34,211,238,.03) 0%, transparent 40%),
        linear-gradient(180deg, #ecfeff 0%, #ffffff 40%, #f0fdfa 100%);
}

.ca-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(rgba(6,182,212,.06), transparent 70%);
    top: -250px;
    left: -200px;
    pointer-events: none;
}

/* HEADER */
.ca-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.ca-header-left { flex: 1; min-width: 0; }

.ca-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(6,182,212,.1), rgba(14,165,233,.05));
    border: 1px solid rgba(6,182,212,.12);
    color: #0891b2;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.ca-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: caPulse 2s infinite;
}

@keyframes caPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.ca-title {
    margin: 16px 0 8px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -1.5px;
}

.ca-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

/* HEADER RIGHT */
.ca-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.ca-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 16px rgba(15,23,42,.04);
}

.ca-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.ca-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #0891b2;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ca-stat-num.text-primary { color: #2563eb; }
.ca-stat-num.text-amber { color: #d97706; }

.ca-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.ca-stat-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.ca-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(8,145,178,.25);
    white-space: nowrap;
}

.ca-view-all:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(8,145,178,.35);
}

.ca-view-all i { transition: transform .3s; }
.ca-view-all:hover i { transform: translateX(4px); }

/* FILTER TABS */
.ca-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.ca-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    white-space: nowrap;
}

.ca-tab:hover {
    border-color: #67e8f9;
    color: #0891b2;
    background: #ecfeff;
}

.ca-tab.active {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(8,145,178,.2);
}

.ca-tab i { font-size: 15px; }

/* AFFAIRS GRID */
.ca-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.ca-card-wrapper { position: relative; }

/* AFFAIR CARD */
.ca-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 45px rgba(15,23,42,.05);
    transition: all .4s cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ca-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(6,182,212,.02), transparent 50%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.ca-card:hover {
    transform: translateY(-12px);
    border-color: #a5f3fc;
    box-shadow: 0 30px 80px rgba(6,182,212,.15);
}

.ca-card:hover::before { opacity: 1; }

.ca-card.recent {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #fff, #f0fdfa);
}

/* Top accent bar - color coded by category */
.ca-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
    z-index: 3;
}

.ca-card:hover .ca-card-accent { transform: scaleX(1); }

.ca-accent-blue { background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa); }
.ca-accent-purple { background: linear-gradient(90deg, #7c3aed, #8b5cf6, #a78bfa); }
.ca-accent-green { background: linear-gradient(90deg, #059669, #10b981, #34d399); }
.ca-accent-cyan { background: linear-gradient(90deg, #0891b2, #06b6d4, #22d3ee); }
.ca-accent-orange { background: linear-gradient(90deg, #ea580c, #f97316, #fb923c); }
.ca-accent-amber { background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24); }
.ca-accent-gray { background: linear-gradient(90deg, #64748b, #94a3b8, #cbd5e1); }
.ca-accent-default { background: linear-gradient(90deg, #0891b2, #06b6d4, #22d3ee); }

/* Recent Badge */
.ca-recent-badge {
    position: absolute;
    top: 16px;
    right: -36px;
    width: 140px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 0;
    letter-spacing: .5px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(5,150,105,.3);
}

.ca-recent-badge i { margin-right: 4px; font-size: 9px; }

/* Card Image */
.ca-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.ca-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.ca-card:hover .ca-card-image img {
    transform: scale(1.08);
}

.ca-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    transition: transform .5s ease;
}

.ca-card:hover .ca-image-placeholder {
    transform: scale(1.08);
}

.ca-placeholder-blue { background: linear-gradient(135deg, #dbeafe, #eff6ff); color: #2563eb; }
.ca-placeholder-purple { background: linear-gradient(135deg, #e9d5ff, #f3e8ff); color: #7c3aed; }
.ca-placeholder-green { background: linear-gradient(135deg, #d1fae5, #ecfdf5); color: #059669; }
.ca-placeholder-cyan { background: linear-gradient(135deg, #cffafe, #ecfeff); color: #0891b2; }
.ca-placeholder-orange { background: linear-gradient(135deg, #fed7aa, #fff7ed); color: #ea580c; }
.ca-placeholder-amber { background: linear-gradient(135deg, #fde68a, #fffbeb); color: #d97706; }
.ca-placeholder-gray { background: linear-gradient(135deg, #e2e8f0, #f1f5f9); color: #64748b; }
.ca-placeholder-default { background: linear-gradient(135deg, #cffafe, #ecfeff); color: #0891b2; }

.ca-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,.15));
    pointer-events: none;
}

/* Floating Date Badge */
.ca-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    z-index: 5;
    transition: all .35s ease;
}

.ca-card:hover .ca-date-badge {
    transform: scale(1.08);
    background: rgba(8,145,178,.92);
    border-color: rgba(8,145,178,.5);
}

.ca-date-badge strong {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    transition: color .3s;
}

.ca-card:hover .ca-date-badge strong { color: #fff; }

.ca-date-badge span {
    font-size: 9px;
    font-weight: 800;
    color: #0891b2;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 2px;
    transition: color .3s;
}

.ca-card:hover .ca-date-badge span { color: #cffafe; }

/* Card Body */
.ca-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Pill */
.ca-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    transition: all .3s;
    align-self: flex-start;
}

.ca-pill-blue { background: #dbeafe; color: #2563eb; }
.ca-pill-purple { background: #e9d5ff; color: #7c3aed; }
.ca-pill-green { background: #d1fae5; color: #059669; }
.ca-pill-cyan { background: #cffafe; color: #0891b2; }
.ca-pill-orange { background: #fed7aa; color: #ea580c; }
.ca-pill-amber { background: #fde68a; color: #d97706; }
.ca-pill-gray { background: #e2e8f0; color: #64748b; }
.ca-pill-default { background: #cffafe; color: #0891b2; }

.ca-card:hover .ca-pill-blue { background: #2563eb; color: #fff; }
.ca-card:hover .ca-pill-purple { background: #7c3aed; color: #fff; }
.ca-card:hover .ca-pill-green { background: #059669; color: #fff; }
.ca-card:hover .ca-pill-cyan { background: #0891b2; color: #fff; }
.ca-card:hover .ca-pill-orange { background: #ea580c; color: #fff; }
.ca-card:hover .ca-pill-amber { background: #d97706; color: #fff; }
.ca-card:hover .ca-pill-gray { background: #64748b; color: #fff; }
.ca-card:hover .ca-pill-default { background: #0891b2; color: #fff; }

.ca-category-pill i { font-size: 12px; }

/* Card Title */
.ca-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ca-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color .3s;
}

.ca-card-title a:hover { color: #0891b2; }

/* Description */
.ca-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Footer */
.ca-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.ca-meta-left,
.ca-meta-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.ca-meta-left i,
.ca-meta-right i {
    font-size: 13px;
    color: #0891b2;
}

/* CTA Button */
.ca-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 8px 20px rgba(8,145,178,.2);
    margin-top: auto;
}

.ca-btn-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.ca-btn-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; }
.ca-btn-green { background: linear-gradient(135deg, #059669, #047857); color: #fff; }
.ca-btn-cyan { background: linear-gradient(135deg, #0891b2, #0e7490); color: #fff; }
.ca-btn-orange { background: linear-gradient(135deg, #ea580c, #c2410c); color: #fff; }
.ca-btn-amber { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.ca-btn-gray { background: linear-gradient(135deg, #64748b, #475569); color: #fff; }
.ca-btn-default { background: linear-gradient(135deg, #0891b2, #0e7490); color: #fff; }

.ca-card-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(8,145,178,.3);
}

.ca-card-btn i:first-child { font-size: 15px; }
.ca-card-btn i:last-child {
    transition: transform .3s;
    font-size: 13px;
    margin-left: auto;
}
.ca-card-btn:hover i:last-child { transform: translateX(4px); }

/* BOTTOM CTA */
.ca-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
    position: relative;
    z-index: 2;
}

.ca-bottom-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ca-bottom-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #0891b2;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #a5f3fc;
}

.ca-bottom-text {
    margin: 0 0 2px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.ca-bottom-text strong { color: #0891b2; font-weight: 700; }

.ca-bottom-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.ca-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(8,145,178,.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.ca-bottom-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(8,145,178,.35);
}

.ca-bottom-btn i { transition: transform .3s; }
.ca-bottom-btn:hover i { transform: translateX(4px); }

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet Landscape */
@media (max-width: 1199px) {
    .ca-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ca-title { font-size: 34px; }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .ca-section { padding: 70px 0; }
    .ca-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ca-header-right { width: 100%; justify-content: space-between; }
    .ca-title { font-size: 30px; }
    .ca-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ca-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
    .ca-bottom-info { flex-direction: column; }
    .ca-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .ca-tab { flex-shrink: 0; }
}

/* Mobile */
@media (max-width: 767px) {
    .ca-section { padding: 60px 0; }
    .ca-title { font-size: 26px; letter-spacing: -1px; }
    .ca-subtitle { font-size: 14px; }
    .ca-badge { font-size: 12px; padding: 8px 18px; }
    .ca-header-right { flex-direction: column; gap: 12px; align-items: stretch; }
    .ca-stats-row { justify-content: center; padding: 12px 16px; gap: 12px; }
    .ca-stat-num { font-size: 18px; }
    .ca-stat-item { min-width: 50px; }
    .ca-view-all { justify-content: center; padding: 12px 24px; }
    .ca-grid { grid-template-columns: 1fr; gap: 20px; }
    .ca-card { border-radius: 20px; }
    .ca-card-image { height: 180px; }
    .ca-card-body { padding: 18px 18px 20px; }
    .ca-card-title { font-size: 15px; }
    .ca-recent-badge { top: 14px; right: -40px; width: 130px; font-size: 10px; padding: 5px 0; }
    .ca-date-badge { width: 48px; height: 54px; }
    .ca-date-badge strong { font-size: 18px; }
    .ca-date-badge span { font-size: 8px; }
    .ca-card-btn { width: 100%; justify-content: center; }
    .ca-bottom { margin-top: 36px; padding: 18px 20px; }
    .ca-bottom-btn { width: 100%; justify-content: center; }
    .ca-bottom-text { font-size: 14px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ca-title { font-size: 22px; }
    .ca-card-image { height: 160px; }
    .ca-recent-badge { display: none; }
    .ca-stats-row { flex-wrap: wrap; justify-content: center; }
    .ca-stat-dot:last-child { display: none; }
    .ca-tabs { gap: 6px; }
    .ca-tab { font-size: 12px; padding: 8px 16px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ca-card,
    .ca-card-accent,
    .ca-card-image img,
    .ca-image-placeholder,
    .ca-date-badge,
    .ca-card-btn,
    .ca-view-all,
    .ca-bottom-btn,
    .ca-recent-badge,
    .ca-category-pill {
        transition: none !important;
        animation: none !important;
    }
    .ca-card:hover { transform: none !important; }
    .ca-card:hover .ca-card-accent { transform: none !important; }
    .ca-card:hover .ca-card-image img { transform: none !important; }
    .ca-card:hover .ca-image-placeholder { transform: none !important; }
    .ca-card:hover .ca-date-badge { transform: none !important; }
    .ca-badge-dot { animation: none !important; }
}

/* ============================================================
   sn- - PREMIUM STUDY NOTES SECTION
   Modern, Backend-Connected, Animated, Mobile Responsive
============================================================ */

/* SECTION CONTAINER */
.sn-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(139,92,246,.05) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 100%, rgba(99,102,241,.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(167,139,250,.03) 0%, transparent 40%),
        linear-gradient(180deg, #f5f3ff 0%, #ffffff 40%, #eef2ff 100%);
}

.sn-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(rgba(139,92,246,.06), transparent 70%);
    top: -250px;
    left: -200px;
    pointer-events: none;
}

/* HEADER */
.sn-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.sn-header-left { flex: 1; min-width: 0; }

.sn-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(139,92,246,.1), rgba(99,102,241,.05));
    border: 1px solid rgba(139,92,246,.12);
    color: #7c3aed;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.sn-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: snPulse 2s infinite;
}

@keyframes snPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.sn-title {
    margin: 16px 0 8px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -1.5px;
}

.sn-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

/* HEADER RIGHT */
.sn-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.sn-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 16px rgba(15,23,42,.04);
}

.sn-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.sn-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sn-stat-num.text-purple { color: #7c3aed; }

.sn-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.sn-stat-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.sn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(124,58,237,.25);
    white-space: nowrap;
}

.sn-view-all:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(124,58,237,.35);
}

.sn-view-all i { transition: transform .3s; }
.sn-view-all:hover i { transform: translateX(4px); }

/* FILTER TABS */
.sn-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.sn-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    white-space: nowrap;
}

.sn-tab:hover {
    border-color: #c4b5fd;
    color: #7c3aed;
    background: #f5f3ff;
}

.sn-tab.active {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(124,58,237,.2);
}

.sn-tab i { font-size: 16px; }

/* NOTES GRID */
.sn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.sn-card-wrapper { position: relative; }

/* NOTE CARD */
.sn-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 45px rgba(15,23,42,.05);
    transition: all .4s cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sn-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(139,92,246,.02), transparent 50%);
    opacity: 0;
    transition: opacity .4s;
}

.sn-card:hover {
    transform: translateY(-12px);
    border-color: #ddd6fe;
    box-shadow: 0 30px 80px rgba(139,92,246,.15);
}

.sn-card:hover::before { opacity: 1; }

.sn-card.recent {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #fff, #f0fdfa);
}

.sn-card.popular {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fff, #fffbeb);
}

/* Top accent bar */
.sn-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6, #a78bfa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.sn-card:hover .sn-card-accent { transform: scaleX(1); }

/* FREE Ribbon */
.sn-card-ribbon {
    position: absolute;
    top: 16px;
    right: -38px;
    width: 150px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 0;
    letter-spacing: .5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(5,150,105,.3);
}

.sn-card-ribbon i { margin-right: 4px; font-size: 9px; }

/* Recent Badge */
.sn-recent-badge {
    position: absolute;
    top: 52px;
    right: -38px;
    width: 150px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 0;
    letter-spacing: .3px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(245,158,11,.3);
}

.sn-recent-badge i { margin-right: 3px; font-size: 8px; }

/* Card Top: Category + Subject */
.sn-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.sn-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    background: #f3e8ff;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 700;
    transition: all .3s;
}

.sn-card:hover .sn-category-pill {
    background: #7c3aed;
    color: #fff;
}

.sn-category-pill i { font-size: 11px; }

.sn-subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .3s;
}

.sn-card:hover .sn-subject-tag {
    background: #e2e8f0;
    color: #475569;
}

.sn-subject-tag i { font-size: 9px; }

/* Icon Area */
.sn-icon-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.sn-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3e8ff, #f5f3ff);
    color: #7c3aed;
    font-size: 30px;
    transition: all .35s ease;
    border: 1px solid #e4d5fc;
}

.sn-card:hover .sn-card-icon {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    transform: scale(1.08) rotate(-5deg);
    border-color: #7c3aed;
    box-shadow: 0 12px 30px rgba(124,58,237,.25);
}

/* Card Title */
.sn-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sn-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color .3s;
}

.sn-card-title a:hover { color: #7c3aed; }

/* Description */
.sn-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Meta Footer */
.sn-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.sn-meta-left,
.sn-meta-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.sn-meta-left i,
.sn-meta-right i {
    font-size: 13px;
    color: #7c3aed;
}

/* Card Actions */
.sn-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.sn-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s ease;
}

.sn-action-primary {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(124,58,237,.2);
}

.sn-action-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(124,58,237,.3);
}

.sn-action-primary i:last-child {
    margin-left: auto;
    transition: transform .3s;
    font-size: 14px;
}

.sn-action-primary:hover i:last-child { transform: translateX(4px); }

.sn-action-download {
    width: 46px;
    background: #fff;
    color: #7c3aed;
    border: 2px solid #e4d5fc;
    font-size: 18px;
}

.sn-action-download:hover {
    color: #7c3aed;
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124,58,237,.1);
}

/* BOTTOM CTA */
.sn-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
    position: relative;
    z-index: 2;
}

.sn-bottom-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sn-bottom-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3e8ff, #f8f4ff);
    color: #7c3aed;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #e4d5fc;
}

.sn-bottom-text {
    margin: 0 0 2px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.sn-bottom-text strong { color: #7c3aed; font-weight: 700; }

.sn-bottom-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.sn-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(124,58,237,.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.sn-bottom-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(124,58,237,.35);
}

.sn-bottom-btn i { transition: transform .3s; }
.sn-bottom-btn:hover i { transform: translateX(4px); }

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet Landscape */
@media (max-width: 1199px) {
    .sn-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .sn-title { font-size: 34px; }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .sn-section { padding: 70px 0; }
    .sn-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .sn-header-right { width: 100%; justify-content: space-between; }
    .sn-title { font-size: 30px; }
    .sn-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .sn-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
    .sn-bottom-info { flex-direction: column; }
    .sn-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .sn-tab { flex-shrink: 0; }
}

/* Mobile */
@media (max-width: 767px) {
    .sn-section { padding: 60px 0; }
    .sn-title { font-size: 26px; letter-spacing: -1px; }
    .sn-subtitle { font-size: 14px; }
    .sn-badge { font-size: 12px; padding: 8px 18px; }
    .sn-header-right { flex-direction: column; gap: 12px; align-items: stretch; }
    .sn-stats-row { justify-content: center; padding: 12px 16px; gap: 12px; }
    .sn-stat-num { font-size: 18px; }
    .sn-stat-item { min-width: 50px; }
    .sn-view-all { justify-content: center; padding: 12px 24px; }
    .sn-grid { grid-template-columns: 1fr; gap: 20px; }
    .sn-card { padding: 22px; border-radius: 20px; }
    .sn-card-icon { width: 54px; height: 54px; font-size: 24px; }
    .sn-card-title { font-size: 15px; }
    .sn-card-ribbon { top: 14px; right: -40px; width: 140px; font-size: 10px; padding: 5px 0; }
    .sn-recent-badge { top: 48px; right: -40px; width: 140px; font-size: 9px; padding: 3px 0; }
    .sn-card-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
    .sn-card-actions { flex-direction: column; }
    .sn-action-primary { width: 100%; justify-content: center; }
    .sn-action-download { width: 100%; justify-content: center; }
    .sn-bottom { margin-top: 36px; padding: 18px 20px; }
    .sn-bottom-btn { width: 100%; justify-content: center; }
    .sn-bottom-text { font-size: 14px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sn-title { font-size: 22px; }
    .sn-card { padding: 20px; }
    .sn-card-ribbon { display: none; }
    .sn-recent-badge { display: none; }
    .sn-stats-row { flex-wrap: wrap; justify-content: center; }
    .sn-stat-dot:last-child { display: none; }
    .sn-tabs { gap: 6px; }
    .sn-tab { font-size: 12px; padding: 8px 16px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .sn-card,
    .sn-card-accent,
    .sn-card-icon,
    .sn-category-pill,
    .sn-action-btn,
    .sn-view-all,
    .sn-bottom-btn,
    .sn-card-ribbon,
    .sn-recent-badge {
        transition: none !important;
        animation: none !important;
    }
    .sn-card:hover { transform: none !important; }
    .sn-card:hover .sn-card-accent { transform: none !important; }
    .sn-card:hover .sn-card-icon { transform: none !important; }
    .sn-badge-dot { animation: none !important; }
}

/* ============================================================
   sy- - PREMIUM SYLLABUS SECTION
   Modern, Backend-Connected, Animated, Mobile Responsive
============================================================ */

/* SECTION CONTAINER */
.sy-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(234,88,12,.05) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 100%, rgba(249,115,22,.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(251,146,60,.03) 0%, transparent 40%),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 40%, #fefce8 100%);
}

.sy-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(rgba(234,88,12,.06), transparent 70%);
    top: -250px;
    right: -200px;
    pointer-events: none;
}

/* HEADER */
.sy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.sy-header-left { flex: 1; min-width: 0; }

.sy-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(234,88,12,.1), rgba(249,115,22,.05));
    border: 1px solid rgba(234,88,12,.12);
    color: #ea580c;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.sy-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: syPulse 2s infinite;
}

@keyframes syPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.sy-title {
    margin: 16px 0 8px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -1.5px;
}

.sy-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

/* HEADER RIGHT */
.sy-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.sy-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 16px rgba(15,23,42,.04);
}

.sy-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.sy-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #ea580c;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sy-stat-num.text-sy-purple { color: #ea580c; }

.sy-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.sy-stat-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.sy-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(234,88,12,.25);
    white-space: nowrap;
}

.sy-view-all:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(234,88,12,.35);
}

.sy-view-all i { transition: transform .3s; }
.sy-view-all:hover i { transform: translateX(4px); }

/* FILTER TABS */
.sy-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.sy-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    white-space: nowrap;
}

.sy-tab:hover {
    border-color: #fdba74;
    color: #ea580c;
    background: #fff7ed;
}

.sy-tab.active {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(234,88,12,.2);
}

.sy-tab i { font-size: 16px; }

/* SYLLABUS GRID */
.sy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.sy-card-wrapper { position: relative; }

/* SYLLABUS CARD */
.sy-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 45px rgba(15,23,42,.05);
    transition: all .4s cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sy-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(234,88,12,.02), transparent 50%);
    opacity: 0;
    transition: opacity .4s;
}

.sy-card:hover {
    transform: translateY(-12px);
    border-color: #fdba74;
    box-shadow: 0 30px 80px rgba(234,88,12,.15);
}

.sy-card:hover::before { opacity: 1; }

.sy-card.recent {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #fff, #f0fdfa);
}

.sy-card.popular {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fff, #fffbeb);
}

/* Top accent bar */
.sy-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ea580c, #f97316, #fb923c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.sy-card:hover .sy-card-accent { transform: scaleX(1); }

/* FREE Ribbon */
.sy-card-ribbon {
    position: absolute;
    top: 16px;
    right: -38px;
    width: 150px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 0;
    letter-spacing: .5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(5,150,105,.3);
}

.sy-card-ribbon i { margin-right: 4px; font-size: 9px; }

/* Recent Badge */
.sy-recent-badge {
    position: absolute;
    top: 52px;
    right: -38px;
    width: 150px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 0;
    letter-spacing: .3px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(245,158,11,.3);
}

.sy-recent-badge i { margin-right: 3px; font-size: 8px; }

/* Card Top: Category + Org */
.sy-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.sy-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 11px;
    font-weight: 700;
    transition: all .3s;
}

.sy-card:hover .sy-category-pill {
    background: #ea580c;
    color: #fff;
}

.sy-category-pill i { font-size: 11px; }

.sy-org-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .3s;
}

.sy-card:hover .sy-org-tag {
    background: #e2e8f0;
    color: #475569;
}

.sy-org-tag i { font-size: 9px; }

/* Icon Area */
.sy-icon-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.sy-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
    font-size: 30px;
    transition: all .35s ease;
    border: 1px solid #fed7aa;
}

.sy-card:hover .sy-card-icon {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    transform: scale(1.08) rotate(-5deg);
    border-color: #ea580c;
    box-shadow: 0 12px 30px rgba(234,88,12,.25);
}

/* Card Title */
.sy-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sy-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color .3s;
}

.sy-card-title a:hover { color: #ea580c; }

/* Description */
.sy-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Meta Footer */
.sy-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.sy-meta-left,
.sy-meta-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.sy-meta-left i,
.sy-meta-right i {
    font-size: 13px;
    color: #ea580c;
}

/* Card Actions */
.sy-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.sy-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s ease;
}

.sy-action-primary {
    flex: 1;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    box-shadow: 0 8px 20px rgba(234,88,12,.2);
}

.sy-action-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(234,88,12,.3);
}

.sy-action-primary i:last-child {
    margin-left: auto;
    transition: transform .3s;
    font-size: 14px;
}

.sy-action-primary:hover i:last-child { transform: translateX(4px); }

.sy-action-download {
    width: 46px;
    background: #fff;
    color: #ea580c;
    border: 2px solid #fed7aa;
    font-size: 18px;
}

.sy-action-download:hover {
    color: #ea580c;
    border-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234,88,12,.1);
}

/* BOTTOM CTA */
.sy-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
    position: relative;
    z-index: 2;
}

.sy-bottom-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sy-bottom-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #fed7aa;
}

.sy-bottom-text {
    margin: 0 0 2px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.sy-bottom-text strong { color: #ea580c; font-weight: 700; }

.sy-bottom-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.sy-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(234,88,12,.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.sy-bottom-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(234,88,12,.35);
}

.sy-bottom-btn i { transition: transform .3s; }
.sy-bottom-btn:hover i { transform: translateX(4px); }

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet Landscape */
@media (max-width: 1199px) {
    .sy-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .sy-title { font-size: 34px; }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .sy-section { padding: 70px 0; }
    .sy-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .sy-header-right { width: 100%; justify-content: space-between; }
    .sy-title { font-size: 30px; }
    .sy-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .sy-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
    .sy-bottom-info { flex-direction: column; }
    .sy-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .sy-tab { flex-shrink: 0; }
}

/* Mobile */
@media (max-width: 767px) {
    .sy-section { padding: 60px 0; }
    .sy-title { font-size: 26px; letter-spacing: -1px; }
    .sy-subtitle { font-size: 14px; }
    .sy-badge { font-size: 12px; padding: 8px 18px; }
    .sy-header-right { flex-direction: column; gap: 12px; align-items: stretch; }
    .sy-stats-row { justify-content: center; padding: 12px 16px; gap: 12px; }
    .sy-stat-num { font-size: 18px; }
    .sy-stat-item { min-width: 50px; }
    .sy-view-all { justify-content: center; padding: 12px 24px; }
    .sy-grid { grid-template-columns: 1fr; gap: 20px; }
    .sy-card { padding: 22px; border-radius: 20px; }
    .sy-card-icon { width: 54px; height: 54px; font-size: 24px; }
    .sy-card-title { font-size: 15px; }
    .sy-card-ribbon { top: 14px; right: -40px; width: 140px; font-size: 10px; padding: 5px 0; }
    .sy-recent-badge { top: 48px; right: -40px; width: 140px; font-size: 9px; padding: 3px 0; }
    .sy-card-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
    .sy-card-actions { flex-direction: column; }
    .sy-action-primary { width: 100%; justify-content: center; }
    .sy-action-download { width: 100%; justify-content: center; }
    .sy-bottom { margin-top: 36px; padding: 18px 20px; }
    .sy-bottom-btn { width: 100%; justify-content: center; }
    .sy-bottom-text { font-size: 14px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sy-title { font-size: 22px; }
    .sy-card { padding: 20px; }
    .sy-card-ribbon { display: none; }
    .sy-recent-badge { display: none; }
    .sy-stats-row { flex-wrap: wrap; justify-content: center; }
    .sy-stat-dot:last-child { display: none; }
    .sy-tabs { gap: 6px; }
    .sy-tab { font-size: 12px; padding: 8px 16px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .sy-card,
    .sy-card-accent,
    .sy-card-icon,
    .sy-category-pill,
    .sy-action-btn,
    .sy-view-all,
    .sy-bottom-btn,
    .sy-card-ribbon,
    .sy-recent-badge {
        transition: none !important;
        animation: none !important;
    }
    .sy-card:hover { transform: none !important; }
    .sy-card:hover .sy-card-accent { transform: none !important; }
    .sy-card:hover .sy-card-icon { transform: none !important; }
    .sy-badge-dot { animation: none !important; }
}

/* ============================================================
   qb- - PREMIUM QUESTION BANK SECTION
   Teal/Cyan Theme, Modern, Backend-Connected, Mobile Responsive
============================================================ */

/* SECTION CONTAINER */
.qb-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(13,148,136,.05) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 100%, rgba(8,145,178,.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(20,184,166,.03) 0%, transparent 40%),
        linear-gradient(180deg, #f0fdfa 0%, #ffffff 40%, #ecfeff 100%);
}

.qb-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(rgba(13,148,136,.06), transparent 70%);
    top: -250px;
    left: -200px;
    pointer-events: none;
}

/* HEADER */
.qb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.qb-header-left { flex: 1; min-width: 0; }

.qb-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(13,148,136,.1), rgba(8,145,178,.05));
    border: 1px solid rgba(13,148,136,.12);
    color: #0d9488;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.qb-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: qbPulse 2s infinite;
}

@keyframes qbPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.qb-title {
    margin: 16px 0 8px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -1.5px;
}

.qb-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

/* HEADER RIGHT */
.qb-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.qb-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 16px rgba(15,23,42,.04);
}

.qb-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.qb-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #0d9488;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.qb-stat-num.text-qb-teal { color: #0d9488; }

.qb-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.qb-stat-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.qb-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(13,148,136,.25);
    white-space: nowrap;
}

.qb-view-all:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(13,148,136,.35);
}

.qb-view-all i { transition: transform .3s; }
.qb-view-all:hover i { transform: translateX(4px); }

/* FILTER TABS */
.qb-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.qb-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    white-space: nowrap;
}

.qb-tab:hover {
    border-color: #5eead4;
    color: #0d9488;
    background: #f0fdfa;
}

.qb-tab.active {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(13,148,136,.2);
}

.qb-tab i { font-size: 16px; }

/* SUBJECTS GRID */
.qb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.qb-card-wrapper { position: relative; }

/* SUBJECT CARD */
.qb-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 45px rgba(15,23,42,.05);
    transition: all .4s cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.qb-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(13,148,136,.02), transparent 50%);
    opacity: 0;
    transition: opacity .4s;
}

.qb-card:hover {
    transform: translateY(-12px);
    border-color: #99f6e4;
    box-shadow: 0 30px 80px rgba(13,148,136,.15);
}

.qb-card:hover::before { opacity: 1; }

.qb-card.popular {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fff, #fffbeb);
}

/* Top accent bar */
.qb-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.qb-card:hover .qb-card-accent { transform: scaleX(1); }

.qb-card-accent {
    background: linear-gradient(90deg, var(--qb-accent), var(--qb-accent-soft), var(--qb-accent-faint));
}

.qb-card-icon,
.qb-action-btn {
    background: linear-gradient(135deg, var(--qb-accent), var(--qb-accent-soft));
}

.qb-palette-0 { --qb-accent: #0d9488; --qb-accent-soft: #0d9488cc; --qb-accent-faint: #0d948888; }
.qb-palette-1 { --qb-accent: #0891b2; --qb-accent-soft: #0891b2cc; --qb-accent-faint: #0891b288; }
.qb-palette-2 { --qb-accent: #2563eb; --qb-accent-soft: #2563ebcc; --qb-accent-faint: #2563eb88; }
.qb-palette-3 { --qb-accent: #7c3aed; --qb-accent-soft: #7c3aedcc; --qb-accent-faint: #7c3aed88; }
.qb-palette-4 { --qb-accent: #059669; --qb-accent-soft: #059669cc; --qb-accent-faint: #05966988; }
.qb-palette-5 { --qb-accent: #d97706; --qb-accent-soft: #d97706cc; --qb-accent-faint: #d9770688; }
.qb-palette-6 { --qb-accent: #dc2626; --qb-accent-soft: #dc2626cc; --qb-accent-faint: #dc262688; }
.qb-palette-7 { --qb-accent: #ea580c; --qb-accent-soft: #ea580ccc; --qb-accent-faint: #ea580c88; }

/* Popular Badge */
.qb-popular-badge {
    position: absolute;
    top: 16px;
    right: -38px;
    width: 140px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 0;
    letter-spacing: .5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(245,158,11,.3);
}

.qb-popular-badge i { margin-right: 4px; font-size: 9px; }

/* Card Icon */
.qb-card-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.qb-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(13,148,136,.2);
}

.qb-card:hover .qb-card-icon {
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 18px 40px rgba(13,148,136,.3);
}

/* Card Title */
.qb-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
}

.qb-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color .3s;
}

.qb-card-title a:hover { color: #0d9488; }

/* Description */
.qb-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Count Badge */
.qb-count-row {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.qb-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    background: #f0fdfa;
    color: #0d9488;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #99f6e4;
    transition: all .3s;
}

.qb-card:hover .qb-count-badge {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
}

.qb-count-badge i { font-size: 14px; }

/* Card Actions */
.qb-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.qb-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 8px 20px rgba(13,148,136,.2);
    width: 100%;
}

.qb-action-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(13,148,136,.3);
}

.qb-action-btn i:first-child { font-size: 16px; }
.qb-action-btn i:last-child {
    margin-left: auto;
    transition: transform .3s;
    font-size: 14px;
}
.qb-action-btn:hover i:last-child { transform: translateX(4px); }

/* BOTTOM CTA */
.qb-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
    position: relative;
    z-index: 2;
}

.qb-bottom-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qb-bottom-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #99f6e4;
}

.qb-bottom-text {
    margin: 0 0 2px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.qb-bottom-text strong { color: #0d9488; font-weight: 700; }

.qb-bottom-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.qb-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(13,148,136,.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.qb-bottom-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(13,148,136,.35);
}

.qb-bottom-btn i { transition: transform .3s; }
.qb-bottom-btn:hover i { transform: translateX(4px); }

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet Landscape */
@media (max-width: 1199px) {
    .qb-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .qb-title { font-size: 34px; }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .qb-section { padding: 70px 0; }
    .qb-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .qb-header-right { width: 100%; justify-content: space-between; }
    .qb-title { font-size: 30px; }
    .qb-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .qb-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
    .qb-bottom-info { flex-direction: column; }
    .qb-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .qb-tab { flex-shrink: 0; }
}

/* Mobile */
@media (max-width: 767px) {
    .qb-section { padding: 60px 0; }
    .qb-title { font-size: 26px; letter-spacing: -1px; }
    .qb-subtitle { font-size: 14px; }
    .qb-badge { font-size: 12px; padding: 8px 18px; }
    .qb-header-right { flex-direction: column; gap: 12px; align-items: stretch; }
    .qb-stats-row { justify-content: center; padding: 12px 16px; gap: 12px; }
    .qb-stat-num { font-size: 18px; }
    .qb-stat-item { min-width: 50px; }
    .qb-view-all { justify-content: center; padding: 12px 24px; }
    .qb-grid { grid-template-columns: 1fr; gap: 20px; }
    .qb-card { padding: 24px 20px 20px; border-radius: 20px; }
    .qb-card-icon { width: 60px; height: 60px; font-size: 26px; }
    .qb-card-title { font-size: 16px; }
    .qb-popular-badge { top: 14px; right: -40px; width: 130px; font-size: 10px; padding: 5px 0; }
    .qb-action-btn { width: 100%; justify-content: center; }
    .qb-bottom { margin-top: 36px; padding: 18px 20px; }
    .qb-bottom-btn { width: 100%; justify-content: center; }
    .qb-bottom-text { font-size: 14px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .qb-title { font-size: 22px; }
    .qb-card { padding: 20px 16px 18px; }
    .qb-card-icon { width: 52px; height: 52px; font-size: 22px; }
    .qb-popular-badge { display: none; }
    .qb-stats-row { flex-wrap: wrap; justify-content: center; }
    .qb-stat-dot:last-child { display: none; }
    .qb-tabs { gap: 6px; }
    .qb-tab { font-size: 12px; padding: 8px 16px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .qb-card,
    .qb-card-accent,
    .qb-card-icon,
    .qb-count-badge,
    .qb-action-btn,
    .qb-view-all,
    .qb-bottom-btn,
    .qb-popular-badge {
        transition: none !important;
        animation: none !important;
    }
    .qb-card:hover { transform: none !important; }
    .qb-card:hover .qb-card-accent { transform: none !important; }
    .qb-card:hover .qb-card-icon { transform: none !important; }
    .qb-badge-dot { animation: none !important; }
}

/* Autocomplete Suggestions Dropdown - Premium Style */
#heroSearchWrapper {
    position: relative;
    z-index: 1;
}
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 25px 60px rgba(15,23,42,.18), 0 8px 20px rgba(15,23,42,.08);
    z-index: 999999;
    overflow: hidden;
    display: none;
    max-height: 440px;
    overflow-y: auto;
}
.search-suggestions.active {
    display: block;
}
.search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}
.search-suggestions .suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: all .15s ease;
    cursor: pointer;
    position: relative;
}
.search-suggestions .suggestion-item:hover,
.search-suggestions .suggestion-item.active {
    background: #f8fbff;
    color: #2563eb;
    border-left: 3px solid #2563eb;
    padding-left: 17px;
}
.search-suggestions .suggestion-item .suggestion-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: .2s;
}
.search-suggestions .suggestion-item:hover .suggestion-icon,
.search-suggestions .suggestion-item.active .suggestion-icon {
    background: #2563eb;
    color: #fff;
    transform: scale(1.05);
}
.search-suggestions .suggestion-item .suggestion-text {
    flex: 1;
    min-width: 0;
}
.search-suggestions .suggestion-item .suggestion-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggestions .suggestion-item .suggestion-org {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.search-suggestions .suggestion-item .suggestion-arrow {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
    transition: .2s;
}
.search-suggestions .suggestion-item:hover .suggestion-arrow,
.search-suggestions .suggestion-item.active .suggestion-arrow {
    color: #2563eb;
    transform: translateX(4px);
}
.search-suggestions .suggestion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
}
.search-suggestions .suggestion-header kbd {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
}
.search-suggestions .suggestion-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    font-size: 11px;
    color: #94a3b8;
}
.search-suggestions .suggestion-footer kbd {
    background: #e2e8f0;
    color: #64748b;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid #d1d9e6;
}
.search-suggestions .suggestion-footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.search-suggestions .suggestion-empty {
    padding: 30px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}
.search-suggestions .suggestion-empty i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    color: #cbd5e1;
}
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}
.search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}
.search-suggestions::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Hero Title Smaller */
.hero-title-smaller {
    font-size: 26px !important;
    display: inline !important;
    margin-top: 2px !important;
}

/* ============================================================
   PREMIUM MOCK TEST HERO (mt-hero)
   Modern, Backend-Connected, Animated, Mobile Responsive
============================================================ */

/* SECTION CONTAINER */
.mt-hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    padding: 100px 0;
    margin-top: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(139,92,246,.08) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(99,102,241,.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(167,139,250,.05) 0%, transparent 40%),
        linear-gradient(180deg, #f8faff 0%, #f5f3ff 40%, #eef2ff 100%);
}

/* Particles */
.mt-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.mt-particle {
    position: absolute;
    border-radius: 50%;
}

.mt-particle.p1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139,92,246,.1), transparent 70%);
    top: -100px;
    right: 5%;
    animation: mtFloat 8s ease-in-out infinite;
}

.mt-particle.p2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(99,102,241,.07), transparent 70%);
    bottom: 5%;
    left: 10%;
    animation: mtFloat 10s ease-in-out infinite 1s;
}

.mt-particle.p3 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(167,139,250,.08), transparent 70%);
    top: 40%;
    left: 50%;
    animation: mtFloat 12s ease-in-out infinite .5s;
}

.mt-particle.p4 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(139,92,246,.06);
    top: 15%;
    right: 30%;
    animation: mtFloat 14s ease-in-out infinite 2s;
}

@keyframes mtFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.mt-hero-section > .container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
}

/* LEFT CONTENT */
.mt-hero-left {
    position: relative;
    z-index: 20;
}

.mt-hero-content {
    max-width: 640px;
}

/* Badge */
.mt-badge-wrapper {
    margin-bottom: 24px;
}

.mt-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(139,92,246,.1), rgba(99,102,241,.05));
    border: 1px solid rgba(139,92,246,.15);
    color: #7c3aed;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 4px 20px rgba(139,92,246,.08);
    backdrop-filter: blur(8px);
}

.mt-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulseGlow 2s infinite;
}

/* Title */
.mt-title {
    margin: 0 0 18px;
    font-size: 50px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1.5px;
}

.mt-title-line {
    display: block;
}

.mt-title-highlight {
    display: block;
    margin-top: 6px;
}

/* Subtitle */
.mt-subtitle {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.8;
    color: #475569;
    max-width: 560px;
}

.mt-subtitle strong {
    color: #7c3aed;
}

/* Feature Pills */
.mt-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.mt-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,.8);
    border: 1px solid #e8e0f8;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    transition: all .3s;
    backdrop-filter: blur(4px);
}

.mt-feature-pill i {
    color: #7c3aed;
    font-size: 14px;
}

.mt-feature-pill:hover {
    border-color: #7c3aed;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139,92,246,.1);
}

/* CTA Buttons */
.mt-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.mt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}

.mt-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    box-shadow: 0 12px 30px rgba(124,58,237,.28);
}

.mt-btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(124,58,237,.38);
}

.mt-btn-arrow {
    transition: transform .3s;
}

.mt-btn-primary:hover .mt-btn-arrow {
    transform: translateX(4px);
}

.mt-btn-secondary {
    background: #fff;
    color: #7c3aed;
    border: 2px solid #e8e0f8;
    box-shadow: 0 4px 12px rgba(15,23,42,.05);
}

.mt-btn-secondary:hover {
    color: #7c3aed;
    border-color: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(124,58,237,.15);
}

/* Stats Row */
.mt-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.mt-stat-item {
    display: flex;
    flex-direction: column;
}

.mt-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.mt-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.mt-stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(transparent, #e2e8f0, transparent);
}

/* RIGHT VISUAL COLUMN */
.mt-hero-visual-col {
    position: relative;
}

.mt-visual-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

/* Decorative Rings */
.mt-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(139,92,246,.1);
}

.mt-ring-1 {
    width: 380px;
    height: 380px;
    animation: mtSpin 30s linear infinite;
}

.mt-ring-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(99,102,241,.08);
    border-style: dashed;
    animation: mtSpin 25s linear infinite reverse;
}

.mt-ring-3 {
    width: 260px;
    height: 260px;
    border-color: rgba(167,139,250,.06);
    border-width: 2px;
    animation: mtSpin 20s linear infinite;
}

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

/* Glow */
.mt-visual-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,.15), rgba(99,102,241,.08), transparent 70%);
    filter: blur(50px);
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Visual Icon Stack */
.mt-visual-stack {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
}

.mt-visual-icon {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 15px 40px rgba(124,58,237,.2);
    transition: transform .4s;
}

.mt-visual-icon.main-icon {
    width: 110px;
    height: 110px;
    font-size: 48px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    z-index: 3;
    box-shadow: 0 20px 50px rgba(124,58,237,.3);
}

.mt-visual-icon.icon-2 {
    width: 70px;
    height: 70px;
    font-size: 28px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    top: -20px;
    right: -30px;
    z-index: 4;
    animation: mtBadgeFloat 5s ease-in-out infinite;
}

.mt-visual-icon.icon-3 {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background: linear-gradient(135deg, #10b981, #34d399);
    bottom: -10px;
    left: -20px;
    z-index: 4;
    animation: mtBadgeFloat 5s ease-in-out infinite 1.5s;
}

.mt-visual-icon:hover {
    transform: scale(1.1) rotate(-5deg);
}

@keyframes mtBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Floating Badges */
.mt-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226,232,240,.8);
    box-shadow: 0 8px 30px rgba(15,23,42,.08);
    z-index: 10;
    white-space: nowrap;
}

.mt-float-1 {
    top: 30px;
    right: -10px;
}

.mt-float-2 {
    bottom: 80px;
    left: -20px;
}

.mt-float-3 {
    bottom: 10px;
    right: 10px;
}

.mt-float-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.mt-float-icon.green {
    background: #e8f5e9;
    color: #16a34a;
}

.mt-float-icon.amber {
    background: #fff7e6;
    color: #f59e0b;
}

.mt-float-icon.purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.mt-float-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mt-float-text strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

.mt-float-text small {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Trust Badges Below Visual */
.mt-visual-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mt-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.mt-trust-item i {
    font-size: 16px;
}

/* ============================================================
   PREMIUM POPULAR TEST SERIES
============================================================ */

.mt-popular-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0 90px;
    background:
        radial-gradient(ellipse at 30% 100%, rgba(139,92,246,.04) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 0%, rgba(99,102,241,.04) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #fafaff 100%);
}

/* Free Strip */
.mt-free-strip {
    margin-bottom: 50px;
}

.mt-free-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 60px;
    max-width: 880px;
    margin: 0 auto;
    box-shadow: 0 16px 40px rgba(5,150,105,.22);
    flex-wrap: wrap;
}

.mt-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.mt-free-counts {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mt-free-count-item {
    color: rgba(255,255,255,.95);
    font-size: 14px;
    font-weight: 500;
}

.mt-free-count-item strong {
    font-weight: 700;
    color: #fff;
}

.mt-free-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
}

/* Section Header */
.mt-section-header {
    max-width: 720px;
    margin: 0 auto 48px;
}

.mt-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(139,92,246,.1), rgba(99,102,241,.05));
    border: 1px solid rgba(139,92,246,.12);
    color: #7c3aed;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.mt-section-title {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin: 18px 0 16px;
}

.mt-section-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    margin: 0;
}

/* Test Cards Grid */
.mt-cards-grid {
    position: relative;
    z-index: 2;
}

/* Individual Card */
.mt-test-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 26px 24px 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 35px rgba(15,23,42,.05);
    transition: all .4s cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mt-test-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(139,92,246,.02), transparent 50%);
    opacity: 0;
    transition: opacity .4s;
}

.mt-test-card:hover {
    transform: translateY(-10px);
    border-color: #ddd6fe;
    box-shadow: 0 28px 70px rgba(124,58,237,.15);
}

.mt-test-card:hover::before {
    opacity: 1;
}

/* Card Accent Bar */
.mt-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6, #a78bfa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.mt-test-card:hover .mt-card-accent {
    transform: scaleX(1);
}

/* FREE Ribbon */
.mt-card-ribbon {
    position: absolute;
    top: 16px;
    right: -38px;
    width: 150px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 0;
    letter-spacing: .5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(5,150,105,.3);
}

.mt-card-ribbon i {
    margin-right: 4px;
    font-size: 10px;
}

/* Card Top */
.mt-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.mt-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform .35s ease;
    box-shadow: 0 8px 20px rgba(124,58,237,.2);
}

.mt-test-card:hover .mt-card-icon {
    transform: scale(1.08) rotate(-5deg);
}

.mt-card-icon--easy {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.mt-card-icon--medium {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.mt-card-icon--hard {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.qb-bottom-icon--questions {
    background: linear-gradient(135deg, #ccfbf1, #f0fdfa);
    color: #0d9488;
    border-color: #99f6e4;
}

.mt-card-category {
    min-width: 0;
    flex: 1;
}

.mt-card-cat-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    background: #f3e8ff;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mt-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    padding: 2px 10px;
    border-radius: 50px;
}

/* Card Title */
.mt-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 14px;
    color: #0f172a;
    position: relative;
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating & Attempts */
.mt-card-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.mt-card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.mt-card-stars i {
    font-size: 13px;
    color: #f59e0b;
}

.mt-card-stars i.bi-star {
    color: #d1d5db;
}

.mt-card-stars span {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.mt-card-attempts {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.mt-card-attempts i {
    color: #7c3aed;
}

/* Stats Row */
.mt-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.mt-card-stat {
    text-align: center;
}

.mt-card-stat strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.mt-card-stat small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
}

.mt-difficulty-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.mt-difficulty-badge.easy {
    background: #d1fae5;
    color: #059669;
}

.mt-difficulty-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

.mt-difficulty-badge.hard {
    background: #fee2e2;
    color: #dc2626;
}

/* CTA Button */
.mt-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 8px 20px rgba(124,58,237,.2);
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.mt-card-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(124,58,237,.3);
}

.mt-card-btn i {
    transition: transform .3s;
    font-size: 16px;
}

.mt-card-btn:hover i {
    transform: translateX(4px);
}

/* Bottom CTA */
.mt-bottom-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
    position: relative;
    z-index: 2;
}

.mt-bottom-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mt-bottom-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3e8ff, #f8f4ff);
    color: #7c3aed;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #e4d5fc;
}

.mt-bottom-text {
    margin: 0 0 2px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.mt-bottom-text strong {
    color: #7c3aed;
    font-weight: 700;
}

.mt-bottom-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.mt-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(124,58,237,.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.mt-bottom-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(124,58,237,.35);
}

.mt-bottom-btn i {
    transition: transform .3s;
}

.mt-bottom-btn:hover i {
    transform: translateX(4px);
}

.mt-total-count {
}

/* ============================================================
   RESPONSIVE - Mock Test Hero
============================================================ */

/* Tablet Landscape */
@media (max-width: 1199px) {
    .mt-title { font-size: 40px; }
    .mt-visual-wrapper { min-height: 360px; }
    .mt-ring-1 { width: 320px; height: 320px; }
    .mt-ring-2 { width: 270px; height: 270px; }
    .mt-ring-3 { width: 220px; height: 220px; }
    .mt-visual-icon.main-icon { width: 90px; height: 90px; font-size: 38px; }
    .mt-visual-icon.icon-2 { width: 60px; height: 60px; font-size: 24px; top: -10px; right: -20px; }
    .mt-visual-icon.icon-3 { width: 50px; height: 50px; font-size: 20px; bottom: 0; left: -10px; }
    .mt-float-1 { top: 10px; right: 0; }
    .mt-float-2 { bottom: 60px; left: -10px; }
    .mt-float-3 { bottom: 0; right: 0; }
    .mt-section-title { font-size: 34px; }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .mt-hero-section { padding: 80px 0; }
    .mt-hero-left { text-align: center; }
    .mt-hero-content { max-width: 100%; margin: 0 auto; }
    .mt-badge-wrapper { display: flex; justify-content: center; }
    .mt-title { font-size: 34px; text-align: center; }
    .mt-subtitle { margin: 0 auto 20px; text-align: center; }
    .mt-features { justify-content: center; }
    .mt-actions { justify-content: center; }
    .mt-stats { justify-content: center; }
    .mt-stat-divider:last-child { display: none; }
    .mt-hero-visual-col { margin-top: 20px; }
    .mt-visual-wrapper { min-height: 320px; }
    .mt-ring-1 { width: 280px; height: 280px; }
    .mt-ring-2 { width: 240px; height: 240px; }
    .mt-ring-3 { width: 200px; height: 200px; }
    .mt-visual-icon.main-icon { width: 80px; height: 80px; font-size: 34px; }
    .mt-section-title { font-size: 30px; }
    .mt-free-strip-inner { flex-direction: column; border-radius: 24px; padding: 18px 22px; text-align: center; gap: 12px; }
    .mt-bottom-cta { flex-direction: column; text-align: center; padding: 20px 24px; }
    .mt-bottom-info { flex-direction: column; }
}

/* Mobile */
@media (max-width: 767px) {
    .mt-hero-section { padding: 60px 0; }
    .mt-title { font-size: 28px; letter-spacing: -1px; }
    .mt-badge { font-size: 12px; padding: 8px 18px; }
    .mt-subtitle { font-size: 15px; line-height: 1.7; }
    .mt-feature-pill { font-size: 12px; padding: 6px 14px; }
    .mt-actions { flex-direction: column; align-items: stretch; }
    .mt-btn { justify-content: center; width: 100%; height: 50px; padding: 0 24px; font-size: 14px; }
    .mt-stat-num { font-size: 18px; }
    .mt-stat-label { font-size: 12px; }
    .mt-stats { gap: 16px; }
    .mt-stat-divider { height: 30px; }
    .mt-visual-wrapper { min-height: 280px; }
    .mt-ring-1 { width: 240px; height: 240px; }
    .mt-ring-2 { width: 200px; height: 200px; }
    .mt-ring-3 { width: 160px; height: 160px; }
    .mt-visual-icon.main-icon { width: 70px; height: 70px; font-size: 28px; }
    .mt-visual-icon.icon-2 { width: 50px; height: 50px; font-size: 20px; top: 0; right: -10px; }
    .mt-visual-icon.icon-3 { width: 44px; height: 44px; font-size: 18px; bottom: 5px; left: -5px; }
    .mt-float-1 { top: 0; right: 0; padding: 10px 14px; }
    .mt-float-2 { bottom: 40px; left: 0; padding: 10px 14px; }
    .mt-float-3 { display: none; }
    .mt-float-text strong { font-size: 12px; }
    .mt-float-text small { font-size: 10px; }
    .mt-float-icon { width: 30px; height: 30px; font-size: 14px; }
    .mt-visual-trust { gap: 14px; }
    .mt-popular-section { padding: 60px 0 70px; }
    .mt-section-title { font-size: 26px; }
    .mt-section-desc { font-size: 14px; }
    .mt-section-header { margin-bottom: 32px; }
    .mt-test-card { padding: 22px 20px 20px; border-radius: 18px; }
    .mt-card-title { font-size: 16px; }
    .mt-card-stats { padding: 12px 0; gap: 6px; }
    .mt-card-stat strong { font-size: 16px; }
    .mt-card-stat small { font-size: 10px; }
    .mt-card-ribbon { top: 14px; right: -40px; width: 140px; font-size: 11px; padding: 5px 0; }
    .mt-bottom-cta { margin-top: 36px; padding: 18px 20px; }
    .mt-bottom-btn { width: 100%; justify-content: center; }
    .mt-bottom-text { font-size: 14px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .mt-title { font-size: 24px; }
    .mt-visual-wrapper { min-height: 240px; }
    .mt-ring-1 { width: 200px; height: 200px; }
    .mt-ring-2 { width: 170px; height: 170px; }
    .mt-ring-3 { width: 140px; height: 140px; }
    .mt-visual-icon.main-icon { width: 60px; height: 60px; font-size: 24px; }
    .mt-visual-icon.icon-2 { width: 44px; height: 44px; font-size: 18px; }
    .mt-visual-icon.icon-3 { width: 38px; height: 38px; font-size: 16px; }
    .mt-section-title { font-size: 22px; }
    .mt-free-strip-inner { padding: 14px 16px; }
    .mt-free-badge { font-size: 12px; padding: 6px 16px; }
    .mt-free-count-item { font-size: 12px; }
    .mt-card-ribbon { display: none; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .mt-test-card,
    .mt-card-accent,
    .mt-card-icon,
    .mt-card-btn,
    .mt-float-badge,
    .mt-btn,
    .mt-feature-pill,
    .mt-bottom-btn {
        transition: none !important;
        animation: none !important;
    }
    .mt-test-card:hover { transform: none !important; }
    .mt-test-card:hover .mt-card-accent { transform: none !important; }
    .mt-test-card:hover .mt-card-icon { transform: none !important; }
    .mt-particle { animation: none !important; }
    .mt-ring { animation: none !important; }
    .mt-visual-glow { animation: none !important; }
    .mt-visual-icon.icon-2, .mt-visual-icon.icon-3 { animation: none !important; }
}

/* ============================================================
   PREMIUM LATEST RESULTS (rr-*)
   Modern, Backend-Connected, Animated, Mobile Responsive
============================================================ */

/* SECTION CONTAINER */
.rr-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(22,163,74,.04) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 100%, rgba(34,197,94,.04) 0%, transparent 50%),
        linear-gradient(180deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%);
}

.rr-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(rgba(22,163,74,.05), transparent 70%);
    top: -200px;
    left: -150px;
    pointer-events: none;
}

/* HEADER */
.rr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.rr-header-left {
    flex: 1;
    min-width: 0;
}

.rr-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(22,163,74,.08), rgba(34,197,94,.04));
    border: 1px solid rgba(22,163,74,.12);
    color: #16a34a;
    font-size: 14px;
    font-weight: 700;
}

.rr-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: rrPulse 2s infinite;
}

@keyframes rrPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.rr-title {
    margin: 16px 0 8px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -1.5px;
}

.rr-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

/* HEADER RIGHT - STATS ROW */
.rr-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.rr-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 16px rgba(15,23,42,.04);
}

.rr-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.rr-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #16a34a;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.rr-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.rr-stat-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.rr-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(22,163,74,.25);
    white-space: nowrap;
}

.rr-view-all:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(22,163,74,.35);
}

.rr-view-all i {
    transition: transform .3s;
}

.rr-view-all:hover i {
    transform: translateX(4px);
}

/* RESULTS GRID */
.rr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.rr-card-wrapper {
    position: relative;
}

/* RESULT CARD */
.rr-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 45px rgba(15,23,42,.05);
    transition: all .4s cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rr-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(22,163,74,.02), transparent 50%);
    opacity: 0;
    transition: opacity .4s;
}

.rr-card:hover {
    transform: translateY(-12px);
    border-color: #bbf7d0;
    box-shadow: 0 30px 80px rgba(22,163,74,.15);
}

.rr-card:hover::before {
    opacity: 1;
}

/* Top accent bar */
.rr-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #16a34a, #22c55e, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.rr-card:hover .rr-card-accent {
    transform: scaleX(1);
}

/* Status */
.rr-card-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    transition: all .3s;
}

.rr-card:hover .rr-card-status {
    background: #16a34a;
    color: #fff;
}

.rr-card-status i {
    font-size: 14px;
}

/* Organization Badge */
.rr-org-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.rr-org-badge img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eef2f7;
}

.rr-org-badge i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 18px;
    flex-shrink: 0;
}

.rr-org-badge span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Title */
.rr-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
}

.rr-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color .3s;
}

.rr-card-title a:hover {
    color: #16a34a;
}

/* Description */
.rr-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
    flex-grow: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Info Rows */
.rr-card-info {
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.rr-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.rr-info-row:last-child {
    margin-bottom: 0;
}

.rr-info-row span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 500;
}

.rr-info-row span i {
    color: #16a34a;
    font-size: 13px;
}

.rr-info-row strong {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* CTA Button */
.rr-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 8px 20px rgba(22,163,74,.2);
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.rr-card-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(22,163,74,.3);
}

.rr-card-btn i:first-child {
    font-size: 16px;
}

.rr-card-btn i:last-child {
    transition: transform .3s;
    font-size: 14px;
    margin-left: auto;
}

.rr-card-btn:hover i:last-child {
    transform: translateX(4px);
}

/* Recent Badge */
.rr-recent-badge {
    position: absolute;
    top: 16px;
    right: -36px;
    width: 140px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 0;
    letter-spacing: .5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(245,158,11,.3);
}

.rr-recent-badge i {
    margin-right: 4px;
    font-size: 10px;
}

/* BOTTOM CTA */
.rr-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
    position: relative;
    z-index: 2;
}

.rr-bottom-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rr-bottom-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4, #f8fcf9);
    color: #16a34a;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #bbf7d0;
}

.rr-bottom-text {
    margin: 0 0 2px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.rr-bottom-text strong {
    color: #16a34a;
    font-weight: 700;
}

.rr-bottom-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.rr-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(22,163,74,.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.rr-bottom-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(22,163,74,.35);
}

.rr-bottom-btn i {
    transition: transform .3s;
}

.rr-bottom-btn:hover i {
    transform: translateX(4px);
}

/* RESPONSIVE - Tablet Landscape */
@media (max-width: 1199px) {
    .rr-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .rr-title { font-size: 34px; }
}

/* RESPONSIVE - Tablet Portrait */
@media (max-width: 991px) {
    .rr-section { padding: 70px 0; }
    .rr-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .rr-header-right { width: 100%; justify-content: space-between; }
    .rr-title { font-size: 30px; }
    .rr-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .rr-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
    .rr-bottom-info { flex-direction: column; }
}

/* RESPONSIVE - Mobile */
@media (max-width: 767px) {
    .rr-section { padding: 60px 0; }
    .rr-title { font-size: 26px; letter-spacing: -1px; }
    .rr-subtitle { font-size: 14px; }
    .rr-badge { font-size: 12px; padding: 8px 18px; }
    .rr-header-right { flex-direction: column; gap: 12px; align-items: stretch; }
    .rr-stats-row { justify-content: center; padding: 12px 16px; }
    .rr-stat-num { font-size: 18px; }
    .rr-stat-item { min-width: 50px; }
    .rr-view-all { justify-content: center; padding: 12px 24px; }
    .rr-grid { grid-template-columns: 1fr; gap: 20px; }
    .rr-card { padding: 22px; border-radius: 20px; }
    .rr-card-title { font-size: 16px; }
    .rr-recent-badge { top: 14px; right: -38px; width: 130px; font-size: 10px; padding: 5px 0; }
    .rr-info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .rr-info-row strong { text-align: left; max-width: 100%; }
    .rr-card-btn { width: 100%; justify-content: center; }
    .rr-bottom { margin-top: 36px; padding: 18px 20px; }
    .rr-bottom-btn { width: 100%; justify-content: center; }
    .rr-bottom-text { font-size: 14px; }
}

/* RESPONSIVE - Small Mobile */
@media (max-width: 480px) {
    .rr-title { font-size: 22px; }
    .rr-card { padding: 20px; }
    .rr-recent-badge { display: none; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .rr-card,
    .rr-card-accent,
    .rr-card-status,
    .rr-card-btn,
    .rr-view-all,
    .rr-bottom-btn,
    .rr-recent-badge {
        transition: none !important;
        animation: none !important;
    }
    .rr-card:hover { transform: none !important; }
    .rr-card:hover .rr-card-accent { transform: none !important; }
    .rr-badge-dot { animation: none !important; }
}

/* ============================================================
   PREMIUM LATEST ADMIT CARDS (ac-*) V2
   Premium, Modern, Backend-Connected, Mobile Responsive
============================================================ */

/* SECTION CONTAINER */
.ac-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(245,158,11,.05) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(217,119,6,.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(251,191,36,.03) 0%, transparent 40%),
        linear-gradient(180deg, #fffbeb 0%, #ffffff 40%, #fefce8 100%);
}

.ac-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(rgba(245,158,11,.06), transparent 70%);
    top: -250px;
    right: -200px;
    pointer-events: none;
}

.ac-section::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(rgba(217,119,6,.04), transparent 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
}

/* HEADER */
.ac-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.ac-header-left {
    flex: 1;
    min-width: 0;
}

.ac-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(245,158,11,.1), rgba(217,119,6,.05));
    border: 1px solid rgba(245,158,11,.15);
    color: #d97706;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.ac-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: acPulse 2s infinite;
}

@keyframes acPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.ac-title {
    margin: 16px 0 8px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -1.5px;
}

.ac-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 540px;
}

/* HEADER RIGHT - STATS ROW */
.ac-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.ac-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 28px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 16px rgba(15,23,42,.04);
}

.ac-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.ac-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #d97706;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ac-stat-num.text-primary {
    color: #2563eb;
}

.ac-stat-num.text-amber {
    color: #d97706;
}

.ac-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.ac-stat-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.ac-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(217,119,6,.25);
    white-space: nowrap;
}

.ac-view-all:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(217,119,6,.35);
}

.ac-view-all i {
    transition: transform .3s;
}

.ac-view-all:hover i {
    transform: translateX(4px);
}

/* FILTER TABS */
.ac-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.ac-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    white-space: nowrap;
}

.ac-tab:hover {
    border-color: #fcd34d;
    color: #d97706;
    background: #fffbeb;
}

.ac-tab.active {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(217,119,6,.2);
}

.ac-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 50px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.25);
    color: #fff;
}

.ac-tab i {
    font-size: 16px;
}

/* ADMIT CARDS GRID */
.ac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.ac-card-wrapper {
    position: relative;
}

/* ====================================
   ADMIT CARD - PREMIUM V2
==================================== */
.ac-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 15px 45px rgba(15,23,42,.05);
    transition: all .4s cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ac-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(245,158,11,.02), transparent 50%);
    opacity: 0;
    transition: opacity .4s;
}

.ac-card:hover {
    transform: translateY(-12px);
    border-color: #fde68a;
    box-shadow: 0 30px 80px rgba(245,158,11,.15);
}

.ac-card:hover::before {
    opacity: 1;
}

.ac-card.featured {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fff, #fffbeb);
}

.ac-card.new-release {
    border-color: #bbf7d0;
}

/* -----------------------------------
   TOP METALLIC ACCENT BAR
----------------------------------- */
.ac-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24, #f59e0b, #d97706);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.ac-card:hover .ac-card-accent {
    transform: scaleX(1);
    animation: acAccentShine 2s linear infinite;
}

.ac-card.featured .ac-card-accent {
    background: linear-gradient(90deg, #d97706, #f59e0b, #f97316, #f59e0b, #d97706);
    background-size: 200% 100%;
}

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

.ac-accent-shine {
    display: none;
}

/* -----------------------------------
   CARD TOP HEADER
----------------------------------- */
.ac-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

/* Org Badge */
.ac-org-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.ac-org-badge img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #fef3c7;
    transition: all .35s ease;
    box-shadow: 0 4px 12px rgba(217,119,6,.1);
}

.ac-card:hover .ac-org-badge img {
    transform: scale(1.05) rotate(-3deg);
    border-color: #fcd34d;
    box-shadow: 0 8px 24px rgba(217,119,6,.18);
}

.ac-org-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
    font-size: 24px;
    border: 2px solid #fde68a;
    transition: all .35s ease;
    flex-shrink: 0;
}

.ac-card:hover .ac-org-placeholder {
    transform: scale(1.05) rotate(-3deg);
    border-color: #f59e0b;
}

.ac-org-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-org-name {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-org-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
}

.ac-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.ac-status-dot.pulse {
    animation: acStatusPulse 1.5s infinite;
}

@keyframes acStatusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Right Badges */
.ac-card-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.ac-badge-featured,
.ac-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.ac-badge-featured {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    border: 1px solid #fcd34d;
    animation: acBadgeGlow 2s infinite;
}

@keyframes acBadgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.2); }
    50% { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}

.ac-badge-new {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
    border: 1px solid #6ee7b7;
}

.ac-badge-new i {
    font-size: 9px;
}

/* Card Title */
.ac-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
}

.ac-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color .3s;
}

.ac-card-title a:hover {
    color: #d97706;
}

/* Description */
.ac-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
    flex-grow: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -----------------------------------
   PREMIUM INFO GRID
----------------------------------- */
.ac-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.ac-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    transition: all .3s ease;
}

.ac-card:hover .ac-info-cell {
    transform: translateX(4px);
}

.ac-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffbeb;
    color: #d97706;
    font-size: 16px;
    flex-shrink: 0;
    transition: all .35s ease;
}

.ac-card:hover .ac-info-icon {
    background: #d97706;
    color: #fff;
    transform: scale(1.05);
}

.ac-info-icon.amber {
    background: #fffbeb;
    color: #d97706;
}

.ac-card:hover .ac-info-icon.amber {
    background: #d97706;
    color: #fff;
}

.ac-info-icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.ac-card:hover .ac-info-icon.green {
    background: #16a34a;
    color: #fff;
}

.ac-info-data {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ac-info-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}

.ac-info-value {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.ac-info-value.ac-info-na {
    color: #94a3b8;
    font-weight: 600;
}

.ac-download-link {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s;
}

.ac-download-link:hover {
    color: #b45309;
    text-decoration: underline;
}

/* -----------------------------------
   CARD ACTIONS
----------------------------------- */
.ac-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.ac-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .35s ease;
    flex: 1;
}

.ac-action-primary {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    box-shadow: 0 8px 20px rgba(217,119,6,.2);
}

.ac-action-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(217,119,6,.3);
}

.ac-action-download {
    background: #fff;
    color: #d97706;
    border: 2px solid #fde68a;
}

.ac-action-download:hover {
    color: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217,119,6,.1);
}

.ac-action-btn i {
    font-size: 15px;
}

.ac-action-primary i:first-child {
    font-size: 16px;
}

/* BOTTOM CTA */
.ac-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 44px;
    padding: 24px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
    position: relative;
    z-index: 2;
}

.ac-bottom-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ac-bottom-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #fde68a;
}

.ac-bottom-text {
    margin: 0 0 2px;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.ac-bottom-text strong {
    color: #d97706;
    font-weight: 700;
}

.ac-bottom-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.ac-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all .35s ease;
    box-shadow: 0 12px 30px rgba(217,119,6,.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.ac-bottom-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(217,119,6,.35);
}

.ac-bottom-btn i {
    transition: transform .3s;
}

.ac-bottom-btn:hover i {
    transform: translateX(4px);
}

/* RESPONSIVE - Tablet Landscape */
@media (max-width: 1199px) {
    .ac-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .ac-title { font-size: 34px; }
}

/* RESPONSIVE - Tablet Portrait */
@media (max-width: 991px) {
    .ac-section { padding: 70px 0; }
    .ac-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ac-header-right { width: 100%; justify-content: space-between; }
    .ac-title { font-size: 30px; }
    .ac-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ac-bottom { flex-direction: column; text-align: center; padding: 20px 24px; }
    .ac-bottom-info { flex-direction: column; }
    .ac-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .ac-tab { flex-shrink: 0; }
}

/* RESPONSIVE - Mobile */
@media (max-width: 767px) {
    .ac-section { padding: 60px 0; }
    .ac-title { font-size: 26px; letter-spacing: -1px; }
    .ac-subtitle { font-size: 14px; }
    .ac-badge { font-size: 12px; padding: 8px 18px; }
    .ac-header-right { flex-direction: column; gap: 12px; align-items: stretch; }
    .ac-stats-row { justify-content: center; padding: 12px 16px; gap: 12px; }
    .ac-stat-num { font-size: 18px; }
    .ac-stat-item { min-width: 50px; }
    .ac-view-all { justify-content: center; padding: 12px 24px; }
    .ac-grid { grid-template-columns: 1fr; gap: 20px; }
    .ac-card { padding: 22px; border-radius: 20px; }
    .ac-card-top { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ac-card-badges { flex-direction: row; }
    .ac-card-title { font-size: 16px; }
    .ac-org-badge img,
    .ac-org-placeholder { width: 44px; height: 44px; font-size: 20px; }
    .ac-info-value { font-size: 12px; max-width: 120px; }
    .ac-card-actions { flex-direction: column; }
    .ac-action-btn { width: 100%; justify-content: center; }
    .ac-bottom { margin-top: 36px; padding: 18px 20px; }
    .ac-bottom-btn { width: 100%; justify-content: center; }
    .ac-bottom-text { font-size: 14px; }
}

/* RESPONSIVE - Small Mobile */
@media (max-width: 480px) {
    .ac-title { font-size: 22px; }
    .ac-card { padding: 20px; }
    .ac-badge-new { display: none; }
    .ac-stats-row { flex-wrap: wrap; justify-content: center; }
    .ac-stat-dot:last-child { display: none; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ac-card,
    .ac-card-accent,
    .ac-card-status,
    .ac-card-btn,
    .ac-view-all,
    .ac-bottom-btn,
    .ac-recent-badge,
    .ac-action-btn,
    .ac-org-badge img,
    .ac-org-placeholder,
    .ac-info-icon,
    .ac-info-cell {
        transition: none !important;
        animation: none !important;
    }
    .ac-card:hover { transform: none !important; }
    .ac-card:hover .ac-card-accent { 
        transform: none !important;
        animation: none !important;
    }
    .ac-card:hover .ac-org-badge img,
    .ac-card:hover .ac-org-placeholder { transform: none !important; }
    .ac-card:hover .ac-info-icon { background: #fffbeb !important; color: #d97706 !important; }
    .ac-badge-dot,
    .ac-status-dot.pulse,
    .ac-badge-featured { animation: none !important; }
}

/* ============================================================
   PREMIUM LATEST ANSWER KEYS (ak-*)
   Modern, Backend-Connected, Animated, Mobile Responsive
============================================================ */
.ak-section { position: relative; overflow: hidden; padding: 90px 0; background: radial-gradient(ellipse at 30% 0%, rgba(245,158,11,.04) 0%, transparent 55%), radial-gradient(ellipse at 70% 100%, rgba(234,179,8,.04) 0%, transparent 50%), linear-gradient(180deg, #fefce8 0%, #ffffff 50%, #fefce8 100%); }
.ak-section::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(rgba(245,158,11,.05), transparent 70%); top: -200px; right: -150px; pointer-events: none; }
.ak-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; position: relative; z-index: 2; }
.ak-header-left { flex: 1; min-width: 0; }
.ak-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 24px; border-radius: 100px; background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(234,179,8,.04)); border: 1px solid rgba(245,158,11,.12); color: #d97706; font-size: 14px; font-weight: 700; }
.ak-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: akPulse 2s infinite; }
@keyframes akPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); } 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.ak-title { margin: 16px 0 8px; font-size: 40px; font-weight: 800; line-height: 1.15; color: #0f172a; letter-spacing: -1.5px; }
.ak-subtitle { font-size: 16px; color: #64748b; line-height: 1.7; margin: 0; max-width: 540px; }
.ak-header-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.ak-stats-row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: #fff; border-radius: 18px; border: 1px solid #edf2f7; box-shadow: 0 4px 16px rgba(15,23,42,.04); }
.ak-stat-item { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.ak-stat-num { font-size: 24px; font-weight: 800; color: #d97706; line-height: 1; font-variant-numeric: tabular-nums; }
.ak-stat-num.text-success { color: #16a34a; }
.ak-stat-num.text-amber { color: #d97706; }
.ak-stat-label { font-size: 11px; color: #64748b; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ak-stat-dot { width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; }
.ak-view-all { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; background: linear-gradient(135deg, #d97706, #b45309); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: all .35s ease; box-shadow: 0 12px 30px rgba(217,119,6,.25); white-space: nowrap; }
.ak-view-all:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(217,119,6,.35); }
.ak-view-all i { transition: transform .3s; }
.ak-view-all:hover i { transform: translateX(4px); }
.ak-tabs { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; position: relative; z-index: 2; }
.ak-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 50px; border: 1px solid #e2e8f0; background: #fff; color: #64748b; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s ease; white-space: nowrap; }
.ak-tab:hover { border-color: #fcd34d; color: #d97706; background: #fffbeb; }
.ak-tab.active { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(217,119,6,.2); }
.ak-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 50px; padding: 0 8px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.25); color: #fff; }
.ak-tab i { font-size: 16px; }
.ak-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 2; }
.ak-card-wrapper { position: relative; }
.ak-card { position: relative; background: #fff; border-radius: 24px; padding: 28px; border: 1px solid #edf2f7; box-shadow: 0 15px 45px rgba(15,23,42,.05); transition: all .4s cubic-bezier(.22,.61,.36,1); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.ak-card::before { content: ""; position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(135deg, rgba(245,158,11,.02), transparent 50%); opacity: 0; transition: opacity .4s; }
.ak-card:hover { transform: translateY(-12px); border-color: #fde68a; box-shadow: 0 30px 80px rgba(245,158,11,.15); }
.ak-card:hover::before { opacity: 1; }
.ak-card.objection-open { border-color: #fde68a; background: linear-gradient(180deg, #fff, #fffbeb); }
.ak-card-accent { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.ak-card:hover .ak-card-accent { transform: scaleX(1); }
.ak-card-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 50px; background: #fef3c7; color: #d97706; font-size: 12px; font-weight: 700; margin-bottom: 18px; position: relative; z-index: 2; transition: all .3s; }
.ak-card:hover .ak-card-status { background: #d97706; color: #fff; }
.ak-card-status i { font-size: 14px; }
.ak-org-badge { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; position: relative; z-index: 2; }
.ak-org-badge img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; border: 1px solid #eef2f7; }
.ak-org-badge i { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fffbeb; color: #d97706; font-size: 18px; flex-shrink: 0; }
.ak-org-badge span { font-size: 13px; font-weight: 600; color: #64748b; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-card-title { font-size: 18px; font-weight: 700; line-height: 1.4; margin: 0 0 10px; position: relative; z-index: 2; }
.ak-card-title a { color: #0f172a; text-decoration: none; transition: color .3s; }
.ak-card-title a:hover { color: #d97706; }
.ak-card-desc { font-size: 13px; line-height: 1.7; color: #64748b; margin: 0 0 16px; position: relative; z-index: 2; flex-grow: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak-card-info { border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; padding: 14px 0; margin-bottom: 18px; position: relative; z-index: 2; }
.ak-info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.ak-info-row:last-child { margin-bottom: 0; }
.ak-info-row span { display: flex; align-items: center; gap: 6px; color: #64748b; font-weight: 500; }
.ak-info-row span i { color: #d97706; font-size: 13px; }
.ak-info-row strong { color: #0f172a; font-weight: 700; text-align: right; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.ak-info-row strong.text-danger { color: #dc2626; }
.ak-card-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; background: linear-gradient(135deg, #d97706, #b45309); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: all .35s ease; box-shadow: 0 8px 20px rgba(217,119,6,.2); margin-top: auto; position: relative; z-index: 2; }
.ak-card-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(217,119,6,.3); }
.ak-card-btn i:first-child { font-size: 16px; }
.ak-card-btn i:last-child { transition: transform .3s; font-size: 14px; margin-left: auto; }
.ak-card-btn:hover i:last-child { transform: translateX(4px); }
.ak-recent-badge { position: absolute; top: 16px; right: -36px; width: 140px; text-align: center; transform: rotate(45deg); background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 0; letter-spacing: .5px; z-index: 5; box-shadow: 0 4px 10px rgba(245,158,11,.3); }
.ak-recent-badge i { margin-right: 4px; font-size: 10px; }
.ak-objection-badge { position: absolute; top: 60px; right: -36px; width: 140px; text-align: center; transform: rotate(45deg); background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 0; letter-spacing: .3px; z-index: 5; box-shadow: 0 4px 10px rgba(220,38,38,.3); }
.ak-objection-badge i { margin-right: 3px; font-size: 9px; }
.ak-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 44px; padding: 24px 32px; background: #fff; border-radius: 20px; border: 1px solid #edf2f7; box-shadow: 0 8px 25px rgba(15,23,42,.04); position: relative; z-index: 2; }
.ak-bottom-info { display: flex; align-items: center; gap: 16px; }
.ak-bottom-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; font-size: 24px; flex-shrink: 0; border: 1px solid #fde68a; }
.ak-bottom-text { margin: 0 0 2px; font-size: 15px; color: #334155; font-weight: 500; }
.ak-bottom-text strong { color: #d97706; font-weight: 700; }
.ak-bottom-sub { margin: 0; font-size: 13px; color: #94a3b8; }
.ak-bottom-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; background: linear-gradient(135deg, #d97706, #b45309); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: all .35s ease; box-shadow: 0 12px 30px rgba(217,119,6,.25); white-space: nowrap; flex-shrink: 0; }
.ak-bottom-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(217,119,6,.35); }
.ak-bottom-btn i { transition: transform .3s; }
.ak-bottom-btn:hover i { transform: translateX(4px); }
@media (max-width: 1199px) { .ak-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .ak-title { font-size: 34px; } }
@media (max-width: 991px) { .ak-section { padding: 70px 0; } .ak-header { flex-direction: column; align-items: flex-start; gap: 20px; } .ak-header-right { width: 100%; justify-content: space-between; } .ak-title { font-size: 30px; } .ak-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } .ak-bottom { flex-direction: column; text-align: center; padding: 20px 24px; } .ak-bottom-info { flex-direction: column; } .ak-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; } .ak-tab { flex-shrink: 0; } }
@media (max-width: 767px) { .ak-section { padding: 60px 0; } .ak-title { font-size: 26px; letter-spacing: -1px; } .ak-subtitle { font-size: 14px; } .ak-badge { font-size: 12px; padding: 8px 18px; } .ak-header-right { flex-direction: column; gap: 12px; align-items: stretch; } .ak-stats-row { justify-content: center; padding: 12px 16px; } .ak-stat-num { font-size: 18px; } .ak-stat-item { min-width: 50px; } .ak-view-all { justify-content: center; padding: 12px 24px; } .ak-grid { grid-template-columns: 1fr; gap: 20px; } .ak-card { padding: 22px; border-radius: 20px; } .ak-card-title { font-size: 16px; } .ak-recent-badge { top: 14px; right: -38px; width: 130px; font-size: 10px; padding: 5px 0; } .ak-objection-badge { top: 52px; right: -38px; width: 130px; font-size: 9px; padding: 3px 0; } .ak-info-row { flex-direction: column; align-items: flex-start; gap: 4px; } .ak-info-row strong { text-align: left; max-width: 100%; } .ak-card-btn { width: 100%; justify-content: center; } .ak-bottom { margin-top: 36px; padding: 18px 20px; } .ak-bottom-btn { width: 100%; justify-content: center; } .ak-bottom-text { font-size: 14px; } }
@media (max-width: 480px) { .ak-title { font-size: 22px; } .ak-card { padding: 20px; } .ak-recent-badge,.ak-objection-badge { display: none; } }
@media (prefers-reduced-motion: reduce) { .ak-card,.ak-card-accent,.ak-card-status,.ak-card-btn,.ak-view-all,.ak-bottom-btn,.ak-recent-badge,.ak-objection-badge { transition: none !important; animation: none !important; } .ak-card:hover { transform: none !important; } .ak-card:hover .ak-card-accent { transform: none !important; } .ak-badge-dot { animation: none !important; } }

/* ============================================================
   Phase 2: Compact Testbook-style homepage UX
============================================================ */
:root {
    --tb-bg: #f6f8fb;
    --tb-surface: #ffffff;
    --tb-border: #e5eaf1;
    --tb-text: #172033;
    --tb-muted: #667085;
    --tb-primary: #2563eb;
    --tb-primary-dark: #1d4ed8;
}

.hero-section,
.exam-categories,
.pfj-section,
.gnu-notif-section,
.mt-hero-section,
.mt-popular-section,
.rr-section,
.ac-section,
.ak-section,
.ec-section,
.ca-section,
.sn-section,
.sy-section,
.qb-section,
.why-choose-section,
.faq-section {
    background: var(--tb-bg) !important;
    padding: 44px 0 !important;
}

.hero-section {
    padding: 34px 0 22px !important;
}

.hero-particles,
.particle,
.hero-ring,
.hero-image-glow,
.mt-particles,
.mt-particle,
.mt-ring,
.mt-image-glow,
.pfj-card-ribbon,
.hero-float-badge,
.mt-float-badge {
    display: none !important;
}

.hero-section .container,
.tb-quick-strip .container,
.exam-categories .container,
.pfj-section .container,
.gnu-notif-section .container,
.mt-hero-section .container,
.mt-popular-section .container,
.rr-section .container,
.ac-section .container,
.ak-section .container,
.ec-section .container,
.ca-section .container,
.sn-section .container,
.sy-section .container,
.qb-section .container {
    max-width: 1180px;
}

.text-gradient {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--tb-primary) !important;
}

.hero-badge,
.section-badge,
.pfj-badge,
.gnu-notif-badge,
.mt-badge,
.mt-section-tag,
.rr-badge,
.ac-badge,
.ak-badge,
.ec-badge,
.ca-badge,
.sn-badge,
.sy-badge,
.qb-badge {
    min-height: 26px !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    background: #eef4ff !important;
    border: 1px solid #dbe7ff !important;
    color: var(--tb-primary) !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.hero-title,
.mt-title {
    max-width: 650px;
    margin-bottom: 10px !important;
    color: var(--tb-text) !important;
    font-size: clamp(30px, 4vw, 48px) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
}

.hero-title-smaller,
.hero-title-highlight {
    display: inline !important;
    font-size: inherit !important;
}

.hero-subtitle,
.mt-subtitle {
    max-width: 640px !important;
    margin-bottom: 18px !important;
    color: var(--tb-muted) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.hero-search-wrapper {
    max-width: 650px;
}


.hero-actions,
.mt-actions {
    gap: 10px !important;
    margin-top: 16px !important;
}

.hero-btn,
.mt-btn,
.pfj-view-all,
.pfj-cta-btn,
.gnu-notif-view-all,
.gnu-notif-bottom-btn,
.mt-view-all-btn,
.mt-bottom-btn,
.rr-view-all,
.rr-bottom-btn,
.ac-view-all,
.ac-bottom-btn,
.ak-view-all,
.ak-bottom-btn,
.ec-view-all,
.ec-bottom-btn,
.ca-view-all,
.ca-bottom-btn,
.sn-view-all,
.sn-bottom-btn,
.sy-view-all,
.sy-bottom-btn,
.qb-view-all,
.qb-bottom-btn {
    min-height: 40px !important;
    padding: 9px 16px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.hero-btn-primary,
.mt-btn-primary,
.pfj-cta-btn,
.gnu-notif-bottom-btn,
.mt-bottom-btn,
.rr-bottom-btn,
.ac-bottom-btn,
.ak-bottom-btn,
.ec-bottom-btn,
.ca-bottom-btn,
.sn-bottom-btn,
.sy-bottom-btn,
.qb-bottom-btn,
.qb-action-btn {
    background: var(--tb-primary) !important;
}

.mt-btn-secondary {
    border: 1px solid var(--tb-border) !important;
    background: #fff !important;
    color: var(--tb-text) !important;
}

.hero-stats,
.mt-stats {
    width: min(100%, 650px);
    margin-top: 18px !important;
    padding: 12px !important;
    border: 1px solid var(--tb-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.hero-stat-number,
.mt-stat-number {
    color: var(--tb-text) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

.hero-stat-label,
.mt-stat-label {
    color: var(--tb-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.hero-visual-wrapper,
.mt-visual-wrapper {
    padding: 0 !important;
}

.hero-image-frame,
.mt-image-frame {
    max-width: 420px !important;
    margin-left: auto;
    border: 1px solid var(--tb-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08) !important;
}

.hero-main-image,
.mt-main-image {
    max-height: 330px !important;
    object-fit: contain;
}

.hero-visual-trust,
.mt-visual-trust {
    gap: 8px !important;
    margin-top: 10px !important;
}

.visual-trust-item,
.mt-trust-item {
    padding: 7px 10px !important;
    border-radius: 8px !important;
    border: 1px solid var(--tb-border) !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 12px !important;
}


.tb-quick-strip {
    padding: 16px 0 40px;
    background: var(--tb-bg);
}

.tb-quick-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 14px;
}

.tb-quick-main,
.tb-quick-actions {
    border: 1px solid var(--tb-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.tb-quick-main {
    padding: 16px;
}

.tb-quick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tb-kicker {
    flex: 0 0 auto;
    color: var(--tb-primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.tb-quick-header h2 {
    margin: 0;
    color: var(--tb-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.tb-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tb-exam-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    background: #f9fbff;
    color: var(--tb-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.tb-exam-chip:hover {
    border-color: #c7d8ff;
    background: #eef4ff;
    color: var(--tb-primary);
}

.tb-exam-chip i {
    color: var(--tb-primary);
}

.tb-exam-chip strong {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e8f0ff;
    color: var(--tb-primary);
    font-size: 10px;
    text-align: center;
}

.tb-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
}

.tb-action-tile {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 12px;
    background: #fff;
    color: var(--tb-text);
    text-decoration: none;
}

.tb-action-tile:hover {
    background: #f8fbff;
    color: var(--tb-primary);
}

.tb-action-tile i {
    grid-row: span 2;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--tb-primary);
}

.tb-action-tile span {
    font-size: 12px;
    font-weight: 900;
}

.tb-action-tile small {
    margin-top: -8px;
    color: var(--tb-muted);
    font-size: 11px;
    font-weight: 700;
}

.section-header,
.pfj-header,
.gnu-notif-header,
.mt-section-header,
.rr-header,
.ac-header,
.ak-header,
.ec-header,
.ca-header,
.sn-header,
.sy-header,
.qb-header {
    margin-bottom: 22px !important;
}

.section-header h2,
.pfj-title,
.gnu-notif-title,
.mt-section-title,
.rr-title,
.ac-title,
.ak-title,
.ec-title,
.ca-title,
.sn-title,
.sy-title,
.qb-title {
    margin-top: 10px !important;
    color: var(--tb-text) !important;
    font-size: clamp(22px, 2.4vw, 30px) !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.section-header p,
.pfj-subtitle,
.gnu-notif-subtitle,
.mt-section-desc,
.rr-subtitle,
.ac-subtitle,
.ak-subtitle,
.ec-subtitle,
.ca-subtitle,
.sn-subtitle,
.sy-subtitle,
.qb-subtitle {
    max-width: 640px !important;
    color: var(--tb-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.category-card,
.pfj-card,
.gnu-notif-card,
.mt-test-card,
.rr-card,
.ac-card,
.ak-card,
.ec-card,
.ca-card,
.sn-card,
.sy-card,
.qb-card {
    border: 1px solid var(--tb-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.category-card:hover,
.pfj-card:hover,
.gnu-notif-card:hover,
.mt-test-card:hover,
.rr-card:hover,
.ac-card:hover,
.ak-card:hover,
.ec-card:hover,
.ca-card:hover,
.sn-card:hover,
.sy-card:hover,
.qb-card:hover {
    transform: translateY(-2px) !important;
    border-color: #cbd7e8 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07) !important;
}

.category-card,
.pfj-card,
.mt-test-card,
.rr-card,
.ac-card,
.ak-card,
.ec-card,
.ca-card,
.sn-card,
.sy-card,
.qb-card {
    padding: 16px !important;
}

.gnu-notif-card {
    padding: 0 !important;
}

.category-content h4,
.pfj-job-title,
.gnu-notif-title,
.mt-card-title,
.rr-card-title,
.ac-card-title,
.ak-card-title,
.ec-card-title,
.ca-card-title,
.sn-card-title,
.sy-card-title,
.qb-card-title {
    color: var(--tb-text) !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

.category-content p,
.pfj-desc,
.gnu-notif-desc,
.rr-card-desc,
.ac-card-desc,
.ak-card-desc,
.ec-card-desc,
.ca-card-desc,
.sn-card-desc,
.sy-card-desc,
.qb-card-desc {
    color: var(--tb-muted) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.category-icon,
.pfj-org-logo,
.gnu-notif-org-icon,
.mt-card-icon,
.rr-org-logo,
.ac-org-logo,
.ak-org-logo,
.ec-org-logo,
.ca-card-icon,
.sn-card-icon,
.sy-card-icon,
.qb-card-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    box-shadow: none !important;
}

.pfj-tabs,
.gnu-notif-tabs,
.mt-tabs,
.rr-tabs,
.ac-tabs,
.ak-tabs,
.ec-tabs,
.ca-tabs,
.sn-tabs,
.sy-tabs,
.qb-tabs {
    gap: 8px !important;
    margin-bottom: 18px !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: thin;
}

.pfj-tab,
.gnu-tab,
.mt-tab,
.rr-tab,
.ac-tab,
.ak-tab,
.ec-tab,
.ca-tab,
.sn-tab,
.sy-tab,
.qb-tab {
    min-height: 34px !important;
    flex: 0 0 auto;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.pfj-tab.active,
.gnu-tab.active,
.mt-tab.active,
.rr-tab.active,
.ac-tab.active,
.ak-tab.active,
.ec-tab.active,
.ca-tab.active,
.sn-tab.active,
.sy-tab.active,
.qb-tab.active {
    background: var(--tb-primary) !important;
    color: #fff !important;
}

.pfj-grid,
.mt-grid,
.rr-grid,
.ac-grid,
.ak-grid,
.ec-grid,
.ca-grid,
.sn-grid,
.sy-grid,
.qb-grid {
    gap: 14px !important;
}

.gnu-notif-list {
    gap: 12px !important;
}

.pfj-tag,
.gnu-meta-tag,
.mt-card-stat,
.rr-info-row,
.ac-info-row,
.ak-info-row,
.ec-info-row,
.sn-meta-item,
.sy-meta-item,
.qb-count-badge {
    min-height: 28px !important;
    padding: 5px 8px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
}

.pfj-bottom-cta,
.gnu-notif-bottom,
.mt-bottom-cta,
.rr-bottom,
.ac-bottom,
.ak-bottom,
.ec-bottom,
.ca-bottom,
.sn-bottom,
.sy-bottom,
.qb-bottom {
    margin-top: 20px !important;
    padding: 14px !important;
    border: 1px solid var(--tb-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.search-suggestions {
    border: 1px solid var(--tb-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12) !important;
}

.suggestion-header,
.suggestion-footer {
    font-size: 11px !important;
}

.suggestion-item {
    padding: 10px 12px !important;
}

@media (max-width: 991px) {
    .hero-section,
    .exam-categories,
    .pfj-section,
    .gnu-notif-section,
    .mt-hero-section,
    .mt-popular-section,
    .rr-section,
    .ac-section,
    .ak-section,
    .ec-section,
    .ca-section,
    .sn-section,
    .sy-section,
    .qb-section {
        padding: 34px 0 !important;
    }

    .hero-title,
    .mt-title {
        font-size: clamp(28px, 7vw, 38px) !important;
    }

    .mt-visual-col {
        display: none !important;
    }


    .tb-quick-layout {
        grid-template-columns: 1fr;
    }

    .tb-quick-actions {
        grid-template-columns: repeat(4, minmax(130px, 1fr));
        overflow-x: auto;
    }
}

.frontend-stat-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.frontend-stat-strip__item,
.frontend-update-card {
    border: 1px solid var(--tb-border, #e5eaf1);
    border-radius: 10px;
    background: #fff;
}

.frontend-stat-strip__item {
    display: grid;
    gap: 2px;
    min-width: 110px;
    padding: 10px 12px;
}

.frontend-stat-strip__item i {
    color: var(--tb-primary, #2563eb);
}

.frontend-stat-strip__item span,
.frontend-update-card__eyebrow,
.frontend-update-card__footer {
    color: var(--tb-muted, #667085);
    font-size: 11px;
    font-weight: 800;
}

.frontend-stat-strip__item strong {
    color: var(--tb-text, #172033);
    font-size: 18px;
    font-weight: 900;
}

.frontend-update-card {
    display: flex;
    gap: 12px;
    padding: 14px;
}

.frontend-update-card__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #eef4ff;
    color: var(--tb-primary, #2563eb);
}

.frontend-update-card__body {
    min-width: 0;
}

.frontend-update-card h3 {
    margin: 2px 0 6px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.frontend-update-card h3 a {
    color: var(--tb-text, #172033);
    text-decoration: none;
}

.frontend-update-card p {
    margin: 0 0 10px;
    color: var(--tb-muted, #667085);
    font-size: 12px;
    line-height: 1.55;
}

.frontend-update-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.frontend-update-card__footer a {
    color: var(--tb-primary, #2563eb);
    text-decoration: none;
}

.tb-popular-exams,
.tb-prep-section,
.tb-quick-access-section,
.tb-updates-searches {
    padding: 38px 0;
    background: var(--tb-bg, #f6f8fb);
}

.tb-exam-grid,
.tb-access-grid,
.tb-prep-grid {
    display: grid;
    gap: 12px;
}

.tb-exam-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tb-exam-card,
.tb-prep-card,
.tb-timeline-card,
.tb-trending-card,
.tb-free-tests-panel {
    border: 1px solid var(--tb-border, #e5eaf1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.tb-exam-card {
    display: grid;
    gap: 4px;
    min-height: 108px;
    padding: 16px;
    color: var(--tb-text, #172033);
    text-decoration: none;
}

.tb-exam-card i,
.tb-prep-card i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef4ff;
    color: var(--tb-primary, #2563eb);
}

.tb-exam-card span,
.tb-prep-card strong,
.tb-free-tests-panel h3 {
    color: var(--tb-text, #172033);
    font-size: 14px;
    font-weight: 900;
}

.tb-exam-card small,
.tb-prep-card span,
.tb-free-tests-panel p,
.tb-timeline-item small {
    color: var(--tb-muted, #667085);
    font-size: 12px;
    font-weight: 700;
}

.tb-prep-layout,
.tb-updates-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
}

.tb-prep-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tb-prep-card {
    display: grid;
    gap: 7px;
    padding: 14px;
    text-decoration: none;
}

.tb-free-tests-panel,
.tb-timeline-card,
.tb-trending-card {
    padding: 18px;
}

.tb-mini-filter-row,
.tb-trending-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tb-mini-filter-row a,
.tb-trending-row a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--tb-border, #e5eaf1);
    border-radius: 999px;
    background: #f9fbff;
    color: var(--tb-primary, #2563eb);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.tb-panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--tb-primary, #2563eb);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.tb-access-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tb-access-card {
    border: 1px solid var(--tb-border, #e5eaf1);
    border-radius: 12px;
}

.tb-timeline {
    display: grid;
    gap: 10px;
}

.tb-timeline-item {
    position: relative;
    display: grid;
    gap: 2px;
    padding-left: 24px;
    color: var(--tb-text, #172033);
    text-decoration: none;
}

.tb-timeline-item span {
    position: absolute;
    top: 4px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tb-primary, #2563eb);
    box-shadow: 0 0 0 4px #eaf1ff;
}

.tb-timeline-item strong {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .tb-exam-grid,
    .tb-prep-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tb-prep-layout,
    .tb-updates-layout {
        grid-template-columns: 1fr;
    }

    .tb-access-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .tb-popular-exams,
    .tb-prep-section,
    .tb-quick-access-section,
    .tb-updates-searches {
        padding: 28px 0;
    }

    .tb-exam-grid,
    .tb-prep-grid {
        grid-template-columns: 1fr;
    }

    .tb-access-grid {
        grid-template-columns: repeat(6, 132px);
        overflow-x: auto;
    }
}

@media (max-width: 575.98px) {

    .hero-actions,
    .mt-actions {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .hero-btn,
    .mt-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-stats,
    .mt-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .hero-stat-divider,
    .mt-stat-divider {
        display: none !important;
    }


    .tb-quick-strip {
        padding-bottom: 28px;
    }

    .tb-quick-main {
        padding: 12px;
    }

    .tb-quick-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .tb-chip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .tb-exam-chip {
        flex: 0 0 auto;
    }

    .tb-quick-actions {
        grid-template-columns: repeat(4, 132px);
    }

    .section-header h2,
    .pfj-title,
    .gnu-notif-title,
    .mt-section-title,
    .rr-title,
    .ac-title,
    .ak-title,
    .ec-title,
    .ca-title,
    .sn-title,
    .sy-title,
    .qb-title {
        font-size: 21px !important;
    }

    .pfj-header,
    .gnu-notif-header,
    .rr-header,
    .ac-header,
    .ak-header,
    .ec-header,
    .ca-header,
    .sn-header,
    .sy-header,
    .qb-header {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* Hero uses the original frontend styling from public/css/app.css. */
.hero-section {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    padding: 130px 0 20px !important;
    margin-top: 0 !important;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37,99,235,.06) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(59,130,246,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(219,234,254,.12) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8faff 40%, #eef5ff 100%) !important;
}

.hero-particles,
.particle,
.hero-ring,
.hero-image-glow,
.hero-float-badge {
    display: block !important;
}

.hero-section > .container {
    position: relative !important;
    z-index: 10 !important;
    max-width: 1400px !important;
}

.hero-content-wrapper {
    max-width: 620px !important;
}

.hero-badge-wrapper {
    margin-bottom: 28px !important;
}

.hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;
    background: linear-gradient(135deg,rgba(37,99,235,.08),rgba(59,130,246,.04)) !important;
    border: 1px solid rgba(37,99,235,.12) !important;
    color: #2563eb !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    box-shadow: 0 4px 20px rgba(37,99,235,.08) !important;
    backdrop-filter: blur(8px) !important;
}

.hero-title {
    margin: 0 0 20px !important;
    max-width: none !important;
    font-size: 52px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -2px !important;
}

.hero-title-line,
.hero-title-highlight {
    display: block !important;
}

.hero-title-highlight {
    margin-top: 8px !important;
}

.hero-title-highlight.text-gradient {
    background: linear-gradient(90deg,#2563eb,#3b82f6,#06b6d4) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.hero-subtitle {
    margin: 0 0 32px !important;
    max-width: 540px !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #475569 !important;
}

.hero-search-wrapper {
    max-width: none !important;
    margin-bottom: 28px !important;
}

.hero-search-bar {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 560px !important;
    height: 60px !important;
    min-height: auto !important;
    padding: 0 8px 0 20px !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15,23,42,.06) !important;
}

.hero-search-input {
    min-height: auto !important;
    font-size: 15px !important;
    color: #0f172a !important;
    font-weight: 500 !important;
}

.hero-search-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg,#2563eb,#3b82f6) !important;
    box-shadow: none !important;
}

.hero-actions {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 0 32px !important;
    flex-wrap: wrap !important;
}

.hero-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    height: 56px !important;
    min-height: auto !important;
    padding: 0 30px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.hero-btn-primary {
    background: linear-gradient(135deg,#2563eb,#1d4ed8) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(37,99,235,.25) !important;
}

.hero-btn-secondary {
    background: #fff !important;
    color: #2563eb !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(15,23,42,.05) !important;
}

.hero-stats {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-stat-number {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

.hero-stat-label {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}

.hero-stat-divider {
    display: block !important;
    width: 1px !important;
    height: 40px !important;
    background: linear-gradient(transparent,#e2e8f0,transparent) !important;
}

.hero-visual-col {
    display: block !important;
}

.hero-visual-wrapper {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
}

.hero-image-frame {
    position: relative !important;
    width: 520px !important;
    height: 520px !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-ring {
    position: absolute !important;
    border-radius: 50% !important;
    border: 1px solid rgba(37,99,235,.08) !important;
}

.hero-image-glow {
    position: absolute !important;
    width: 400px !important;
    height: 400px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle,rgba(37,99,235,.15),rgba(59,130,246,.08),transparent 70%) !important;
    filter: blur(50px) !important;
}

.hero-main-image {
    position: relative !important;
    z-index: 5 !important;
    width: 340px !important;
    height: 340px !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 4px solid rgba(255,255,255,.8) !important;
    box-shadow:
        0 20px 60px rgba(37,99,235,.15),
        0 0 0 1px rgba(255,255,255,.9),
        inset 0 0 30px rgba(255,255,255,.3) !important;
}

.hero-float-badge {
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(226,232,240,.8) !important;
    box-shadow: 0 8px 30px rgba(15,23,42,.08) !important;
}

.hero-visual-trust {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    margin-top: 28px !important;
}

.visual-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.hero-trust-row {
    display: grid !important;
    grid-template-columns: repeat(4,1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    margin-top: 50px !important;
    padding: 12px !important;
    background: rgba(255,255,255,.7) !important;
    backdrop-filter: blur(16px) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(226,232,240,.6) !important;
    box-shadow: 0 8px 30px rgba(15,23,42,.05) !important;
}

.trust-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: auto !important;
    padding: 18px 20px !important;
    border-radius: 16px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.trust-featured {
    background: linear-gradient(135deg,rgba(22,163,74,.08),rgba(34,197,94,.04)) !important;
    border: 1px solid rgba(22,163,74,.12) !important;
}

.trust-card-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    font-size: 22px !important;
}

.trust-card-label {
    font-size: 12px !important;
}

.trust-card-value {
    font-size: 16px !important;
}

@media(max-width: 1199px) {
    .hero-section { padding: 110px 0 20px !important; }
    .hero-title { font-size: 44px !important; }
    .hero-image-frame { width: 420px !important; height: 420px !important; }
    .hero-main-image { width: 280px !important; height: 280px !important; }
}

@media(max-width: 991px) {
    .hero-section {
        min-height: auto !important;
        padding: 100px 0 40px !important;
    }
    .hero-left,
    .hero-title,
    .hero-subtitle {
        text-align: center !important;
    }
    .hero-content-wrapper {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .hero-badge-wrapper,
    .hero-actions,
    .hero-stats {
        justify-content: center !important;
    }
    .hero-title { font-size: 38px !important; }
    .hero-subtitle { margin: 0 auto 28px !important; }
    .hero-search-bar {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .hero-visual-col {
        display: block !important;
        margin-top: 40px !important;
    }
    .hero-image-frame {
        width: 360px !important;
        height: 360px !important;
        margin: 0 auto !important;
    }
    .hero-main-image {
        width: 240px !important;
        height: 240px !important;
    }
    .hero-trust-row {
        grid-template-columns: repeat(2,1fr) !important;
        margin-top: 40px !important;
    }
}

@media(max-width: 767px) {
    .hero-section { padding: 90px 0 30px !important; }
    .hero-title {
        font-size: 30px !important;
        letter-spacing: -1px !important;
    }
    .hero-badge {
        font-size: 12px !important;
        padding: 8px 18px !important;
    }
    .hero-subtitle {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    .hero-search-bar { height: 52px !important; }
    .hero-btn {
        width: auto !important;
        height: 50px !important;
        padding: 0 22px !important;
        font-size: 14px !important;
    }
    .hero-image-frame {
        width: 300px !important;
        height: 300px !important;
    }
    .hero-main-image {
        width: 200px !important;
        height: 200px !important;
    }
    .float-badge-3 { display: none !important; }
    .hero-trust-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 8px !important;
        margin-top: 30px !important;
    }
}

/* Phase 6: Mobile responsiveness and overflow hardening */
.home-page-safe-text,
.category-content h4,
.category-content p,
.pfj-job-title,
.pfj-desc,
.gnu-notif-title,
.gnu-notif-desc,
.mt-card-title,
.rr-card-title,
.ac-card-title,
.ak-card-title,
.ec-card-title,
.ca-card-title,
.sn-card-title,
.sy-card-title,
.qb-card-title,
.tb-exam-card span,
.tb-prep-card strong,
.tb-timeline-item strong {
    overflow-wrap: anywhere;
    word-break: normal;
}

.pfj-org-name,
.gnu-notif-org-name,
.gnu-notif-category,
.mt-card-cat-name,
.rr-org-badge span,
.ac-org-name,
.ak-org-badge span,
.ec-org-name,
.sn-card-subject,
.sy-card-org,
.tb-action-tile span,
.tb-action-tile small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
    }

    .hero-particles,
    .hero-ring,
    .hero-image-glow,
    .hero-visual-trust,
    .hero-float-badge,
    .mt-particles,
    .mt-visual-col,
    .why-dashboard {
        display: none !important;
    }

    .hero-title {
        max-width: 100% !important;
        font-size: clamp(28px, 9vw, 34px) !important;
        line-height: 1.08 !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .hero-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
    }

    .hero-btn {
        width: 100% !important;
        justify-content: center !important;
        min-width: 0;
        padding-inline: 10px !important;
        white-space: nowrap;
    }

    .hero-trust-row,
    .tb-exam-grid,
    .tb-access-grid,
    .pfj-grid,
    .mt-cards-grid,
    .rr-grid,
    .ac-grid,
    .ak-grid,
    .ec-grid,
    .ca-grid,
    .sn-grid,
    .sy-grid,
    .qb-grid {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(248px, 82vw);
        grid-template-columns: none !important;
        gap: 12px !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .tb-access-grid {
        grid-auto-columns: minmax(132px, 42vw);
    }

    .hero-trust-row {
        grid-auto-columns: minmax(220px, 72vw);
        margin-inline: 0 !important;
    }

    .pfj-card-wrapper,
    .mt-card-col,
    .rr-card-wrapper,
    .ac-card-wrapper,
    .ak-card-wrapper,
    .ec-card-wrapper,
    .ca-card-wrapper,
    .sn-card-wrapper,
    .sy-card-wrapper,
    .qb-card-wrapper,
    .tb-exam-card,
    .tb-access-card,
    .trust-card {
        scroll-snap-align: start;
    }

    .mt-card-col {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
    }

    .category-card,
    .pfj-card,
    .gnu-notif-card,
    .mt-test-card,
    .rr-card,
    .ac-card,
    .ak-card,
    .ec-card,
    .ca-card,
    .sn-card,
    .sy-card,
    .qb-card {
        min-height: 100%;
        padding: 14px !important;
    }

    .pfj-card-ribbon,
    .rr-recent-badge,
    .ak-recent-badge,
    .ak-objection-badge {
        display: none !important;
    }

    .gnu-notif-card {
        display: block !important;
    }

    .gnu-notif-timeline {
        display: none !important;
    }

    .gnu-notif-card-body,
    .gnu-notif-card-footer {
        padding: 14px !important;
    }

    .pfj-tags,
    .gnu-notif-meta,
    .mt-card-stats,
    .rr-card-info,
    .ac-info-grid,
    .ak-card-info,
    .ec-info-list,
    .sn-card-meta,
    .sy-card-meta {
        display: flex !important;
        overflow-x: auto;
        gap: 6px !important;
        padding-bottom: 4px;
    }

    .pfj-tag,
    .gnu-meta-tag,
    .mt-card-stat,
    .rr-info-row,
    .ac-info-cell,
    .ak-info-row,
    .ec-info-row,
    .sn-meta-item,
    .sy-meta-item {
        flex: 0 0 auto;
        max-width: 220px;
    }

    .pfj-bottom-cta,
    .gnu-notif-bottom,
    .mt-bottom-cta,
    .rr-bottom,
    .ac-bottom,
    .ak-bottom,
    .ec-bottom,
    .ca-bottom,
    .sn-bottom,
    .sy-bottom,
    .qb-bottom {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 10px !important;
        text-align: left !important;
    }

    .pfj-cta-btn,
    .gnu-notif-bottom-btn,
    .mt-bottom-btn,
    .rr-bottom-btn,
    .ac-bottom-btn,
    .ak-bottom-btn,
    .ec-bottom-btn,
    .ca-bottom-btn,
    .sn-bottom-btn,
    .sy-bottom-btn,
    .qb-bottom-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .container {
        --bs-gutter-x: 1rem;
    }

    .hero-title {
        font-size: 29px !important;
    }

    .hero-btn {
        font-size: 12px !important;
    }

}

@media (max-width: 360px) {
    .hero-title {
        font-size: 27px !important;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .tb-mobile-search {
        grid-template-columns: 22px minmax(0, 1fr) 32px;
    }

    .tb-mobile-action-row a {
        font-size: 9px;
    }
}

/* Phase 6 refinement: tighter mobile composition */
@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-page,
    .hero-section,
    .tb-quick-strip,
    .tb-popular-exams,
    .tb-prep-section,
    .tb-quick-access-section,
    .tb-updates-searches,
    .categories-section,
    .pfj-section,
    .gnu-notif-section,
    .mt-hero-section,
    .mt-popular-section,
    .rr-section,
    .ac-section,
    .ak-section,
    .ec-section,
    .ca-section,
    .sn-section,
    .sy-section,
    .qb-section,
    .why-choose-section,
    .why-section,
    .faq-section {
        overflow-x: clip;
    }

    .hero-section,
    .tb-quick-strip,
    .tb-popular-exams,
    .tb-prep-section,
    .tb-quick-access-section,
    .tb-updates-searches,
    .categories-section,
    .pfj-section,
    .gnu-notif-section,
    .mt-hero-section,
    .mt-popular-section,
    .rr-section,
    .ac-section,
    .ak-section,
    .ec-section,
    .ca-section,
    .sn-section,
    .sy-section,
    .qb-section,
    .why-choose-section,
    .why-section,
    .faq-section {
        padding-top: 34px !important;
        padding-bottom: 34px !important;
    }

    .section-header,
    .pfj-header,
    .gnu-notif-header,
    .mt-section-header,
    .rr-header,
    .ac-header,
    .ak-header,
    .ec-header,
    .ca-header,
    .sn-header,
    .sy-header,
    .qb-header,
    .faq-heading,
    .tb-section-split {
        display: block !important;
        margin-bottom: 18px !important;
        text-align: left !important;
    }

    .section-title,
    .pfj-title,
    .gnu-notif-title-main,
    .mt-section-title,
    .rr-title,
    .ac-title,
    .ak-title,
    .ec-title,
    .ca-title,
    .sn-title,
    .sy-title,
    .qb-title,
    .why-choose-section h2,
    .faq-heading h2,
    .tb-section-title {
        font-size: clamp(21px, 6vw, 26px) !important;
        line-height: 1.18 !important;
        text-align: left !important;
    }

    .section-subtitle,
    .pfj-subtitle,
    .gnu-notif-subtitle,
    .mt-section-desc,
    .rr-subtitle,
    .ac-subtitle,
    .ak-subtitle,
    .ec-subtitle,
    .ca-subtitle,
    .sn-subtitle,
    .sy-subtitle,
    .qb-subtitle,
    .section-description,
    .faq-heading p,
    .tb-section-subtitle {
        max-width: 100% !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        text-align: left !important;
    }

    .section-badge,
    .pfj-badge,
    .gnu-notif-badge,
    .mt-section-tag,
    .rr-badge,
    .ac-badge,
    .ak-badge,
    .ec-badge,
    .ca-badge,
    .sn-badge,
    .sy-badge,
    .qb-badge,
    .section-tag {
        max-width: 100%;
        margin-inline: 0 !important;
        white-space: normal !important;
    }

    .hero-search-wrapper {
        margin-top: 18px !important;
    }

    .hero-search-bar {
        min-height: 48px !important;
        padding: 5px 5px 5px 12px !important;
        border-radius: 14px !important;
    }

    .hero-search-input {
        min-width: 0;
        font-size: 13px !important;
    }

    .hero-search-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .search-suggestions {
        display: none !important;
    }

    .tb-chip-row,
    .tb-mini-filter-row,
    .tb-trending-row,
    .pfj-tabs,
    .gnu-notif-tabs,
    .mt-tabs,
    .rr-tabs,
    .ac-tabs,
    .ak-tabs,
    .ec-tabs,
    .ca-tabs,
    .sn-tabs,
    .sy-tabs,
    .qb-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tb-chip-row::-webkit-scrollbar,
    .tb-mini-filter-row::-webkit-scrollbar,
    .tb-trending-row::-webkit-scrollbar,
    .pfj-tabs::-webkit-scrollbar,
    .gnu-notif-tabs::-webkit-scrollbar,
    .mt-tabs::-webkit-scrollbar,
    .rr-tabs::-webkit-scrollbar,
    .ac-tabs::-webkit-scrollbar,
    .ak-tabs::-webkit-scrollbar,
    .ec-tabs::-webkit-scrollbar,
    .ca-tabs::-webkit-scrollbar,
    .sn-tabs::-webkit-scrollbar,
    .sy-tabs::-webkit-scrollbar,
    .qb-tabs::-webkit-scrollbar {
        display: none;
    }

    .tb-chip-row > *,
    .tb-mini-filter-row > *,
    .tb-trending-row > *,
    .pfj-tab,
    .gnu-tab,
    .mt-tab,
    .rr-tab,
    .ac-tab,
    .ak-tab,
    .ec-tab,
    .ca-tab,
    .sn-tab,
    .sy-tab,
    .qb-tab {
        flex: 0 0 auto;
        max-width: 82vw;
        white-space: nowrap;
    }

    .categories-section .row,
    .gnu-notif-grid,
    .why-choose-section .row .row,
    .why-grid,
    .faq-grid {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(246px, 82vw);
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .categories-section .row > *,
    .gnu-notif-grid > *,
    .why-choose-section .row .row > *,
    .why-grid > *,
    .faq-grid > * {
        width: auto !important;
        max-width: none !important;
        scroll-snap-align: start;
    }

    .tb-prep-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .tb-prep-card,
    .tb-action-tile,
    .tb-timeline-item,
    .category-card,
    .feature-card,
    .stat-card,
    .accordion-item,
    .faq-card {
        border-radius: 14px !important;
        padding: 14px !important;
    }

    .hero-stats,
    .mt-stats,
    .gnu-notif-stats-row,
    .rr-stats-row,
    .ac-stats-row,
    .ak-stats-row,
    .ec-stats-row,
    .ca-stats-row,
    .sn-stats-row,
    .sy-stats-row,
    .qb-stats-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        max-width: 100%;
        overflow-x: auto;
        gap: 8px !important;
        padding: 8px !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hero-stats::-webkit-scrollbar,
    .mt-stats::-webkit-scrollbar,
    .gnu-notif-stats-row::-webkit-scrollbar,
    .rr-stats-row::-webkit-scrollbar,
    .ac-stats-row::-webkit-scrollbar,
    .ak-stats-row::-webkit-scrollbar,
    .ec-stats-row::-webkit-scrollbar,
    .ca-stats-row::-webkit-scrollbar,
    .sn-stats-row::-webkit-scrollbar,
    .sy-stats-row::-webkit-scrollbar,
    .qb-stats-row::-webkit-scrollbar {
        display: none;
    }

    .hero-stat-item,
    .mt-stat-item,
    .gnu-notif-stat-item,
    .rr-stat-item,
    .ac-stat-item,
    .ak-stat-item,
    .ec-stat-item,
    .ca-stat-item,
    .sn-stat-item,
    .sy-stat-item,
    .qb-stat-item {
        flex: 0 0 auto;
        min-width: 86px !important;
        text-align: center;
    }

    .hero-stat-number,
    .mt-stat-num,
    .gnu-notif-stat-num,
    .rr-stat-num,
    .ac-stat-num,
    .ak-stat-num,
    .ec-stat-num,
    .ca-stat-num,
    .sn-stat-num,
    .sy-stat-num,
    .qb-stat-num {
        font-size: 16px !important;
        line-height: 1.1 !important;
    }

    .hero-stat-label,
    .mt-stat-label,
    .gnu-notif-stat-label,
    .rr-stat-label,
    .ac-stat-label,
    .ak-stat-label,
    .ec-stat-label,
    .ca-stat-label,
    .sn-stat-label,
    .sy-stat-label,
    .qb-stat-label {
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: nowrap;
    }

    .sn-card-actions,
    .sy-card-actions,
    .qb-card-actions,
    .ac-card-actions {
        display: grid !important;
        grid-template-columns: 1fr auto;
        gap: 8px !important;
        align-items: stretch !important;
    }

    .sn-action-btn,
    .sy-action-btn,
    .qb-action-btn,
    .ac-card-btn {
        min-width: 0;
        justify-content: center !important;
        white-space: nowrap;
    }

    .sn-action-btn span,
    .sy-action-btn span,
    .qb-action-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tb-timeline,
    .tb-trending-card {
        padding: 14px !important;
    }

    .tb-timeline-item {
        grid-template-columns: 32px minmax(0, 1fr) !important;
    }

    .tb-timeline-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .category-card {
        height: 100%;
    }

    .category-content h4,
    .feature-card h5,
    .accordion-button,
    .pfj-job-title,
    .gnu-notif-title,
    .mt-card-title,
    .rr-card-title,
    .ac-card-title,
    .ak-card-title,
    .ec-card-title,
    .ca-card-title,
    .sn-card-title,
    .sy-card-title,
    .qb-card-title {
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .feature-card p,
    .pfj-desc,
    .gnu-notif-desc,
    .mt-card-desc,
    .rr-card-desc,
    .ac-card-desc,
    .ak-card-desc,
    .ec-card-desc,
    .ca-card-desc,
    .sn-card-desc,
    .sy-card-desc,
    .qb-card-desc {
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12.5px !important;
        line-height: 1.5 !important;
    }

    .frontend-empty-state,
    .empty-state {
        padding: 22px 14px !important;
        border-radius: 14px !important;
    }

    .why-choose-section .btn {
        width: 100%;
        margin: 0 0 10px !important;
        justify-content: center;
    }

    .faq-heading {
        margin-bottom: 20px !important;
    }

    .accordion-button {
        align-items: flex-start;
        padding: 14px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .accordion-body {
        padding: 14px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 126px;
    }

    .hero-left {
        padding-top: 10px !important;
    }

    .hero-title {
        letter-spacing: 0 !important;
    }

    .hero-actions {
        grid-template-columns: 1fr !important;
    }

    .hero-btn {
        min-height: 42px !important;
        font-size: 12.5px !important;
    }

    .tb-exam-grid,
    .pfj-grid,
    .mt-cards-grid,
    .rr-grid,
    .ac-grid,
    .ak-grid,
    .ec-grid,
    .ca-grid,
    .sn-grid,
    .sy-grid,
    .qb-grid,
    .categories-section .row,
    .gnu-notif-grid,
    .why-grid,
    .faq-grid {
        grid-auto-columns: minmax(230px, 86vw);
    }

    .why-choose-section .row .row {
        grid-auto-columns: minmax(228px, 86vw);
    }

    .tb-access-grid {
        grid-auto-columns: minmax(126px, 48vw);
    }

    .pfj-card,
    .gnu-notif-card,
    .mt-test-card,
    .rr-card,
    .ac-card,
    .ak-card,
    .ec-card,
    .ca-card,
    .sn-card,
    .sy-card,
    .qb-card {
        border-radius: 14px !important;
    }

    .pfj-tags,
    .gnu-notif-meta,
    .mt-card-stats,
    .rr-card-info,
    .ac-info-grid,
    .ak-card-info,
    .ec-info-list,
    .sn-card-meta,
    .sy-card-meta {
        scrollbar-width: none;
    }

    .pfj-tags::-webkit-scrollbar,
    .gnu-notif-meta::-webkit-scrollbar,
    .mt-card-stats::-webkit-scrollbar,
    .rr-card-info::-webkit-scrollbar,
    .ac-info-grid::-webkit-scrollbar,
    .ak-card-info::-webkit-scrollbar,
    .ec-info-list::-webkit-scrollbar,
    .sn-card-meta::-webkit-scrollbar,
    .sy-card-meta::-webkit-scrollbar {
        display: none;
    }
}

/* Phase 6 final sweep: prevent remaining mobile overflow */
@media (max-width: 768px) {
    .hero-section *,
    .tb-quick-strip *,
    .tb-popular-exams *,
    .tb-prep-section *,
    .tb-quick-access-section *,
    .tb-updates-searches *,
    .categories-section *,
    .pfj-section *,
    .gnu-notif-section *,
    .mt-hero-section *,
    .mt-popular-section *,
    .rr-section *,
    .ac-section *,
    .ak-section *,
    .ec-section *,
    .ca-section *,
    .sn-section *,
    .sy-section *,
    .qb-section *,
    .why-choose-section *,
    .faq-section * {
        box-sizing: border-box;
        min-width: 0;
    }

    .hero-section img,
    .tb-quick-strip img,
    .tb-popular-exams img,
    .tb-prep-section img,
    .tb-quick-access-section img,
    .tb-updates-searches img,
    .categories-section img,
    .pfj-section img,
    .gnu-notif-section img,
    .mt-hero-section img,
    .mt-popular-section img,
    .rr-section img,
    .ac-section img,
    .ak-section img,
    .ec-section img,
    .ca-section img,
    .sn-section img,
    .sy-section img,
    .qb-section img,
    .why-choose-section img,
    .faq-section img {
        max-width: 100%;
        height: auto;
    }

    .tb-quick-actions,
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .tb-quick-card,
    .tb-action-card,
    .quick-action-card,
    .stat-card,
    .trust-box,
    .feature-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .feature-card {
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px !important;
        align-items: flex-start !important;
        height: 100%;
    }

    .feature-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        font-size: 16px !important;
    }

    .feature-card h5 {
        margin-bottom: 4px !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .feature-card p {
        margin-bottom: 0 !important;
        font-size: 12px !important;
    }

    .trust-box {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 14px !important;
    }

    .trust-box > div {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .pfj-header-right,
    .gnu-notif-header-right,
    .rr-header-right,
    .ac-header-right,
    .ak-header-right,
    .ec-header-right,
    .ca-header-right,
    .sn-header-right,
    .sy-header-right,
    .qb-header-right {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .pfj-view-all,
    .gnu-notif-view-all,
    .rr-view-all,
    .ac-view-all,
    .ak-view-all,
    .ec-view-all,
    .ca-view-all,
    .sn-view-all,
    .sy-view-all,
    .qb-view-all {
        width: 100% !important;
        justify-content: center !important;
        white-space: nowrap;
    }

    .pfj-card-footer,
    .gnu-notif-card-footer,
    .mt-card-footer,
    .rr-card-footer,
    .ac-card-footer,
    .ak-card-footer,
    .ec-card-footer,
    .ca-card-footer,
    .sn-card-footer,
    .sy-card-footer,
    .qb-card-footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .pfj-card a,
    .gnu-notif-card a,
    .mt-test-card a,
    .rr-card a,
    .ac-card a,
    .ak-card a,
    .ec-card a,
    .ca-card a,
    .sn-card a,
    .sy-card a,
    .qb-card a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 390px) {
    .tb-quick-actions,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .section-tag,
    .section-badge,
    .pfj-badge,
    .gnu-notif-badge,
    .mt-section-tag,
    .rr-badge,
    .ac-badge,
    .ak-badge,
    .ec-badge,
    .ca-badge,
    .sn-badge,
    .sy-badge,
    .qb-badge {
        font-size: 11px !important;
        padding: 7px 10px !important;
    }
}

/* Phase 6 correction: no horizontal card strips on mobile */
@media (max-width: 768px) {
    .hero-trust-row,
    .tb-exam-grid,
    .tb-access-grid,
    .pfj-grid,
    .mt-cards-grid,
    .rr-grid,
    .ac-grid,
    .ak-grid,
    .ec-grid,
    .ca-grid,
    .sn-grid,
    .sy-grid,
    .qb-grid,
    .categories-section .row,
    .gnu-notif-grid,
    .why-choose-section .row .row,
    .why-grid,
    .faq-grid {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-auto-columns: initial !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding-bottom: 0 !important;
        scroll-snap-type: none !important;
    }

    .mt-cards-grid {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .pfj-card-wrapper,
    .mt-card-col,
    .rr-card-wrapper,
    .ac-card-wrapper,
    .ak-card-wrapper,
    .ec-card-wrapper,
    .ca-card-wrapper,
    .sn-card-wrapper,
    .sy-card-wrapper,
    .qb-card-wrapper,
    .categories-section .row > *,
    .gnu-notif-grid > *,
    .why-choose-section .row .row > *,
    .why-grid > *,
    .faq-grid > *,
    .tb-exam-card,
    .tb-access-card,
    .trust-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: initial !important;
        scroll-snap-align: none !important;
    }

    .tb-access-grid,
    .tb-quick-actions,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hero-trust-row,
    .pfj-grid,
    .mt-cards-grid,
    .rr-grid,
    .ac-grid,
    .ak-grid,
    .ec-grid,
    .ca-grid,
    .sn-grid,
    .sy-grid,
    .qb-grid {
        grid-template-columns: 1fr !important;
    }

    .tb-chip-row,
    .tb-mini-filter-row,
    .tb-trending-row,
    .pfj-tabs,
    .gnu-notif-tabs,
    .mt-tabs,
    .rr-tabs,
    .ac-tabs,
    .ak-tabs,
    .ec-tabs,
    .ca-tabs,
    .sn-tabs,
    .sy-tabs,
    .qb-tabs,
    .hero-stats,
    .mt-stats,
    .gnu-notif-stats-row,
    .rr-stats-row,
    .ac-stats-row,
    .ak-stats-row,
    .ec-stats-row,
    .ca-stats-row,
    .sn-stats-row,
    .sy-stats-row,
    .qb-stats-row,
    .pfj-tags,
    .gnu-notif-meta,
    .mt-card-stats,
    .rr-card-info,
    .ac-info-grid,
    .ak-card-info,
    .ec-info-list,
    .sn-card-meta,
    .sy-card-meta {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding-bottom: 0 !important;
        scrollbar-width: auto !important;
        -webkit-overflow-scrolling: auto !important;
    }

    .tb-chip-row > *,
    .tb-mini-filter-row > *,
    .tb-trending-row > *,
    .pfj-tab,
    .gnu-tab,
    .mt-tab,
    .rr-tab,
    .ac-tab,
    .ak-tab,
    .ec-tab,
    .ca-tab,
    .sn-tab,
    .sy-tab,
    .qb-tab,
    .hero-stat-item,
    .mt-stat-item,
    .gnu-notif-stat-item,
    .rr-stat-item,
    .ac-stat-item,
    .ak-stat-item,
    .ec-stat-item,
    .ca-stat-item,
    .sn-stat-item,
    .sy-stat-item,
    .qb-stat-item,
    .pfj-tag,
    .gnu-meta-tag,
    .mt-card-stat,
    .rr-info-row,
    .ac-info-cell,
    .ak-info-row,
    .ec-info-row,
    .sn-meta-item,
    .sy-meta-item {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        white-space: normal !important;
    }
}

@media (max-width: 430px) {
    .tb-exam-grid,
    .tb-access-grid,
    .tb-quick-actions,
    .stats-grid,
    .categories-section .row,
    .gnu-notif-grid,
    .why-choose-section .row .row,
    .why-grid,
    .faq-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Phase 7: production motion budget */
@media (prefers-reduced-motion: reduce) {
    .hero-section *,
    .tb-quick-strip *,
    .tb-popular-exams *,
    .tb-prep-section *,
    .tb-quick-access-section *,
    .tb-updates-searches *,
    .categories-section *,
    .pfj-section *,
    .gnu-notif-section *,
    .mt-hero-section *,
    .mt-popular-section *,
    .rr-section *,
    .ac-section *,
    .ak-section *,
    .ec-section *,
    .ca-section *,
    .sn-section *,
    .sy-section *,
    .qb-section *,
    .why-choose-section *,
    .faq-section * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .animate-fade-up,
    .animate-fade-left,
    .animate-fade-right,
    .animate-float,
    .hero-badge-dot,
    .pfj-badge-dot,
    .gnu-notif-badge-dot,
    .rr-badge-dot,
    .ac-badge-dot,
    .ak-badge-dot,
    .ec-badge-dot,
    .ca-badge-dot,
    .sn-badge-dot,
    .sy-badge-dot,
    .qb-badge-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .animate-float,
    .hero-particles,
    .mt-particles {
        animation: none !important;
    }
}

/* Homepage advertisement slots */
.gnu-home-ad {
    max-width: min(1120px, calc(100% - 32px));
    margin: 18px auto;
    overflow: hidden;
}

.gnu-home-ad:empty {
    display: none;
}

.gnu-home-ad--header {
    margin-top: 10px;
    margin-bottom: 18px;
}

.gnu-home-ad--in-content,
.gnu-home-ad--after-sections {
    margin-top: 28px;
    margin-bottom: 28px;
}

.gnu-home-ad .adsbygoogle,
.gnu-home-ad iframe {
    max-width: 100%;
}

@media (max-width: 768px) {
    .gnu-home-ad {
        max-width: calc(100% - 20px);
        margin-top: 14px;
        margin-bottom: 14px;
    }

    .gnu-home-ad--header,
    .gnu-home-ad--in-content,
    .gnu-home-ad--after-sections {
        border-radius: 12px;
    }

}

