﻿:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #7dd3fc;
    --secondary: #10b981;
    --accent: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ===== Outer container ===== */
.kp-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(to bottom, var(--gray-50) 0%, #ffffff 300px);
}

.exams-page {
    padding-top: 16px;
    padding-bottom: 40px;
}

/* ===== Two-column grid ===== */
.kp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .kp-grid {
        grid-template-columns: 1fr;
    }

    .kp-main {
        padding: 10px;
    }
}

/* ===== Card styles ===== */
.kp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .kp-card:hover {
        box-shadow: var(--shadow-lg);
    }

.padded {
    padding: 32px;
}

@media (max-width: 768px) {
    .padded {
        padding: 12px;
    }
}

/* ===== Support info banner (modern, simple) ===== */
.support-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: radial-gradient(circle at top left, #0ea5e9 0%, #0369a1 45%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    margin-bottom: 24px;
    color: #f9fafb;
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.4s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Label "💬 Helpdesk" */
.support-info strong {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
    opacity: 0.95;
}

/* WhatsApp chip */
.support-info-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #22c55e;
    color: #ecfdf5;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.support-info-caption i {
    font-size: 18px;
}

/* Hover / active */
.support-info-caption:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.6);
}

.support-info-caption:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.7);
}

/* Keyboard focus */
.support-info-caption:focus-visible {
    outline: 3px solid #fde68a;
    outline-offset: 3px;
}

/* Mobile: stack vertically, full-width button */
@media (max-width: 768px) {
    .support-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
    }

    .support-info strong {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .support-info-caption {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 10px 16px;
        white-space: normal;
        text-align: center;
    }
}


/* ===== HERO SECTION ===== */
.exams-hero {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
    gap: 32px;
    align-items: center;
    padding: 24px 24px 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 50%), radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.06), transparent 55%), #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

    .exams-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 60%);
        opacity: 0.8;
    }

    .exams-hero > * {
        position: relative;
        z-index: 1;
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.full-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 4px 0 12px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: var(--gray-700);
    max-width: 560px;
    margin-bottom: 12px;
}

.hero-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

    .hero-highlights li {
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .hero-highlights li::before {
            content: "•";
            color: var(--secondary);
            font-weight: 900;
        }

.exams-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Search blocks in hero */
.primary-search {
    margin: 0;
}

/* Reuse search container styles */
#search-container-1,
#search-container-2 {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    position: relative;
}

    #search-container-1 input,
    #search-container-2 input {
        flex: 1;
        border: 2px solid var(--gray-200);
        border-radius: var(--radius);
        padding: 14px 48px 14px 16px;
        font-size: 15px;
        background: #fff;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-sm);
        width: 100%;
        max-width: 100%;
    }

        #search-container-1 input:focus,
        #search-container-2 input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
            transform: translateY(-1px);
        }

    #search-container-1 button,
    #search-container-2 button {
        border: 0;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff;
        border-radius: var(--radius);
        padding: 14px 28px;
        cursor: pointer;
        font-weight: 700;
        font-size: 15px;
        letter-spacing: 0.5px;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        white-space: nowrap;
    }

        #search-container-1 button::before,
        #search-container-2 button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
        }

        #search-container-1 button:hover::before,
        #search-container-2 button:hover::before {
            left: 100%;
        }

        #search-container-1 button:hover,
        #search-container-2 button:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        #search-container-1 button:active,
        #search-container-2 button:active {
            transform: translateY(0);
        }

.hero-cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

    .hero-cta-primary:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-1px);
    }

.hero-cta-ghost {
    background: rgba(148, 163, 184, 0.12);
    color: var(--gray-800);
    border-color: rgba(148, 163, 184, 0.4);
}

    .hero-cta-ghost:hover {
        background: rgba(148, 163, 184, 0.18);
        transform: translateY(-1px);
    }

.hero-trust-row {
    font-size: 12px;
    color: var(--gray-600);
}

@media (max-width: 1024px) {
    .exams-hero {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }
}

@media (max-width: 768px) {
    .full-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    #search-container-1,
    #search-container-2 {
        flex-direction: column;
    }

        #search-container-1 button,
        #search-container-2 button {
            width: 100%;
        }

    .hero-cta-stack {
        flex-direction: column;
    }

    .hero-cta {
        width: 100%;
    }
}

/* ===== QUICK SHORTCUTS ===== */
.exam-quick-filters {
    margin: 10px 0 24px;
    padding: 12px 4px 2px;
    border-radius: var(--radius-lg);
}

.section-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.quick-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.quick-filter-card {
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s ease;
}

    .quick-filter-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .quick-filter-card .qf-label {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--gray-900);
    }

    .quick-filter-card .qf-text {
        font-size: 0.8rem;
        color: var(--gray-600);
    }

.quick-filter-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.09));
    border-color: rgba(37, 99, 235, 0.6);
}

/* ===== Typography for sections ===== */
h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

    h2::before {
        content: '';
        width: 6px;
        height: 24px;
        background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
        border-radius: 3px;
    }

h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 24px 0 16px;
}

/* ===== Exam sections ===== */
.exam-section {
    margin-top: 18px;
}

.exam-section-header {
    margin-bottom: 4px;
}

.exam-section-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: -8px;
    margin-bottom: 8px;
}

.exam-section-highlight {
    border-radius: var(--radius-lg);
    padding: 14px 12px 4px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(37, 99, 235, 0.04));
}

/* ===== Lists ===== */
.limheight {
    margin: 12px 0 24px 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

@media (max-width: 768px) {
    .limheight {
        grid-template-columns: 1fr;
    }
}

.limheight li {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .limheight li::before {
        content: '→';
        position: absolute;
        left: 16px;
        color: var(--primary);
        font-weight: bold;
        font-size: 18px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .limheight li:hover {
        background: #fff;
        border-color: var(--primary);
        transform: translateX(8px);
        box-shadow: var(--shadow-md);
    }

        .limheight li:hover::before {
            opacity: 1;
            left: 8px;
        }

    .limheight li a {
        padding-left: 0;
        transition: padding-left 0.3s ease;
    }

    .limheight li:hover a {
        padding-left: 24px;
    }

/* ===== Text styles ===== */
.qt,
.qa {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.qt {
    font-weight: 600;
    color: var(--gray-900);
}

.exam-count {
    margin-top: 10px;
}

/* ===== Purchase buttons ===== */
.purchase-options {
    margin: 16px 0 4px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn1,
.btn2 {
    border: 0;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn1 {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    color: #fff;
}

.btn2 {
    background: linear-gradient(135deg, var(--secondary) 0%, #16a34a 100%);
    color: #fff;
}

    .btn1:hover,
    .btn2:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .btn1:active,
    .btn2:active {
        transform: translateY(0);
    }

    .btn1 i,
    .btn2 i {
        font-size: 16px;
    }

/* ===== Right sidebar ===== */
#right-bar .rightbar-container {
    position: sticky;
    top: 84px;
}

#right-bar .rightside-categories {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

    #right-bar .rightside-categories:hover {
        box-shadow: var(--shadow-lg);
    }

#right-bar .rightsocialbox {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
    font-weight: 700;
    color: var(--gray-700);
    font-size: 15px;
    letter-spacing: 0.5px;
}

#right-bar .rightside-categories ul {
    margin: 0;
    padding: 16px 20px 20px;
    list-style: none;
}

    #right-bar .rightside-categories ul li {
        padding: 10px 0;
        border-bottom: 1px solid var(--gray-100);
        transition: all 0.3s ease;
        position: relative;
        padding-left: 20px;
    }

        #right-bar .rightside-categories ul li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: var(--primary);
            font-weight: bold;
            transition: all 0.3s ease;
        }

        #right-bar .rightside-categories ul li:hover::before {
            left: 4px;
        }

        #right-bar .rightside-categories ul li:last-child {
            border-bottom: none;
        }

        #right-bar .rightside-categories ul li:hover {
            padding-left: 28px;
            background: var(--gray-50);
        }

@media (max-width: 1024px) {
    #right-bar .rightbar-container,
    #right-bar .rightside-categories,
    #right-bar .rightside-categories ul,
    #right-bar .rightside-categories ul li {
        position: static;
        max-width: 100%;
        overflow: hidden;
    }
}

/* ===== Link styling ===== */
.kp-main a,
#right-bar a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow-wrap: anywhere;
    word-break: break-word;
}

    .kp-main a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(to right, var(--primary), var(--primary-dark));
        transition: width 0.3s ease;
    }

    .kp-main a:hover::after {
        width: 100%;
    }

    .kp-main a:hover,
    #right-bar a:hover {
        color: var(--primary-dark);
    }

    .kp-main a:focus-visible,
    #right-bar a:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 4px;
        border-radius: 4px;
    }

/* ===== Results section ===== */
.results-search-section {
    margin-top: 8px;
}

.results-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 24px 0 12px;
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

    .results-header h5 {
        margin: 0;
        color: white;
    }

    .results-header a {
        color: white !important;
        font-weight: 700;
        text-decoration: none;
    }

.results-helper-text {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.no-results-text {
    text-align: center;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
    color: var(--gray-600);
}

/* ===== ListView results styling ===== */
.exam-results-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.exam-result-item {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px 20px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

    .exam-result-item::before {
        content: '📄';
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 24px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .exam-result-item:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
        padding-left: 60px;
    }

        .exam-result-item:hover::before {
            opacity: 1;
        }

    .exam-result-item > a {
        font-size: 16px;
        font-weight: 700;
        color: var(--gray-900);
        display: block;
        margin-bottom: 10px;
    }

        .exam-result-item > a:hover {
            color: var(--primary);
        }

    .exam-result-item p {
        margin: 6px 0;
    }

    .exam-result-item .qa {
        color: var(--gray-600);
        line-height: 1.7;
    }

.exam-meta {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.exam-price-row {
    margin-top: 8px;
}

/* ===== Pagination ===== */
.pag-lit {
    font-size: 14px;
    padding: 24px 0 4px;
    text-align: center;
}

    .pag-lit a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        margin: 0 4px;
        padding: 0 12px;
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 8px;
        color: var(--gray-700);
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-sm);
    }

        .pag-lit a:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

    .pag-lit span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        margin: 0 4px;
        padding: 0 12px;
        background: var(--primary);
        color: white;
        border-radius: 8px;
        font-weight: 700;
        box-shadow: var(--shadow-md);
    }

/* ===== Price label ===== */
/* ===== Price label (soft badge, not a button) ===== */
p [id*="lblPrice"] {
    background: var(--gray-50);
    color: var(--secondary) !important;
    border: 1px solid var(--secondary);
    padding: 4px 10px;
    border-radius: 999px;          /* pill shape */
    display: inline-block;
    font-weight: 600 !important;
    font-size: 13px !important;
    box-shadow: none;              /* no button shadow */
    letter-spacing: 0.2px;
}

/* Optional: small spacing above the buttons */
p [id*="lblPrice"] + .purchase-options {
    margin-top: 8px;
}

/* ===== Smooth scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Loading animation ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Responsive adjustments for small screens ===== */
@media (max-width: 768px) {
    .purchase-options {
        width: 100%;
        flex-direction: column;
    }

    .btn1,
    .btn2 {
        width: 100%;
        justify-content: center;
    }

    .results-header {
        border-radius: 10px;
    }

    .exam-result-item:hover {
        padding-left: 20px;
        transform: none;
    }

    .exam-result-item::before {
        opacity: 0;
    }
}

/* ===== Enhanced visual effects ===== */
.full-post {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Focus indicators for accessibility ===== */
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* --- Hard stop: never overflow horizontally --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Make widths include padding/borders (prevents tiny overflows) --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- Ensure all main containers respect the viewport --- */
.kp-main, .kp-card, .kp-grid, .padded {
    max-width: 100%;
}

    /* --- Wrap long links and tokens (URLs/long exam titles) --- */
    .kp-main a,
    .exam-result-item > a,
    .limheight li a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

/* --- Prevent list items from widening the viewport on hover --- */
.exam-result-item {
    will-change: transform, padding-left;
}

/* --- Images & media --- */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Accessibility: keep focus ring but avoid scroll jump --- */
:focus-visible {
    outline-offset: 2px;
}
