/**
 * Joogate Exam Manager - Frontend Styles
 *
 * @package JoogateExamManager
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --jg-primary: #2563eb;
    --jg-primary-dark: #1d4ed8;
    --jg-secondary: #10b981;
    --jg-accent: #f59e0b;
    --jg-text: #1f2937;
    --jg-text-light: #6b7280;
    --jg-border: #e5e7eb;
    --jg-bg: #f9fafb;
    --jg-white: #ffffff;
    --jg-success: #10b981;
    --jg-error: #ef4444;
    --jg-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --jg-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --jg-radius: 8px;
}

/* ==========================================================================
   Base / Container
   ========================================================================== */

.jg-exam-single,
.jg-vendor-archive,
.jg-certification-archive,
.jg-products-archive {
    background: var(--jg-bg);
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.jg-exam-container,
.jg-vendor-container,
.jg-cert-container,
.jg-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.jg-breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    font-size: 0.875rem;
}

.jg-breadcrumb a {
    color: var(--jg-primary);
    text-decoration: none;
}

.jg-breadcrumb a:hover {
    text-decoration: underline;
}

.jg-breadcrumb .separator {
    color: var(--jg-text-light);
    margin: 0 0.5rem;
}

.jg-breadcrumb .current {
    color: var(--jg-text-light);
}

/* ==========================================================================
   Header
   ========================================================================== */

.jg-exam-header,
.jg-vendor-header,
.jg-cert-header,
.jg-products-header {
    margin-bottom: 2rem;
}

.jg-exam-title,
.jg-vendor-title,
.jg-cert-title,
.jg-products-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--jg-text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.jg-exam-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.jg-meta-item {
    font-size: 0.875rem;
    color: var(--jg-text-light);
}

.jg-meta-item strong {
    color: var(--jg-text);
}

.jg-meta-item a {
    color: var(--jg-primary);
    text-decoration: none;
}

.jg-meta-item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Single Exam Layout
   ========================================================================== */

.jg-exam-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

@media (max-width: 992px) {
    .jg-exam-content-wrapper {
        grid-template-columns: 1fr;
    }

    .jg-exam-sidebar {
        order: -1;
    }
}

/* Main Content */
.jg-exam-main {
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow);
}

.jg-exam-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--jg-border);
}

.jg-exam-section:last-child {
    border-bottom: none;
}

.jg-exam-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--jg-text);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--jg-primary);
}

.jg-section-content {
    color: var(--jg-text);
    line-height: 1.7;
}

.jg-section-content p {
    margin: 0 0 1rem;
}

.jg-section-content ul,
.jg-section-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

/* ==========================================================================
   Buy Box (Sidebar)
   ========================================================================== */

.jg-buy-box {
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.jg-buy-box-header {
    background: var(--jg-primary);
    color: var(--jg-white);
    padding: 1rem 1.5rem;
    text-align: center;
}

.jg-exam-code {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.jg-product-type {
    font-size: 0.875rem;
    opacity: 0.9;
}

.jg-buy-box-price {
    padding: 1.5rem;
    text-align: center;
    background: var(--jg-bg);
}

.jg-price-original {
    display: block;
    font-size: 1rem;
    color: var(--jg-text-light);
    text-decoration: line-through;
}

.jg-price-current {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--jg-secondary);
    line-height: 1.2;
}

.jg-price-savings {
    display: inline-block;
    background: var(--jg-accent);
    color: var(--jg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.jg-buy-box-actions {
    padding: 0 1.5rem 1.5rem;
}

.jg-buy-button-wrap {
    text-align: center;
}

.jg-buy-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--jg-secondary);
    color: var(--jg-white) !important;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--jg-radius);
    cursor: pointer;
    transition: background 0.2s;
}

.jg-buy-button:hover {
    background: #059669;
}

.jg-buy-box-features {
    list-style: none;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

.jg-buy-box-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.875rem;
    color: var(--jg-text);
    border-bottom: 1px solid var(--jg-border);
}

.jg-buy-box-features li:last-child {
    border-bottom: none;
}

.jg-buy-box-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--jg-secondary);
    font-weight: 700;
}

/* Exam Info Box */
.jg-exam-info-box {
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow);
    padding: 1.5rem;
}

.jg-exam-info-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--jg-text);
}

.jg-info-table {
    width: 100%;
    font-size: 0.875rem;
}

.jg-info-table th,
.jg-info-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--jg-border);
}

.jg-info-table th {
    text-align: left;
    color: var(--jg-text-light);
    font-weight: 500;
    width: 40%;
}

.jg-info-table td {
    color: var(--jg-text);
}

.jg-info-table tr:last-child th,
.jg-info-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Related Exams
   ========================================================================== */

.jg-related-exams {
    margin-top: 3rem;
}

.jg-related-exams h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--jg-text);
}

.jg-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.jg-related-item {
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.jg-related-item:hover {
    box-shadow: var(--jg-shadow-lg);
}

.jg-related-item h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

.jg-related-item h3 a {
    color: var(--jg-primary);
    text-decoration: none;
}

.jg-related-item h3 a:hover {
    text-decoration: underline;
}

.jg-related-title {
    font-size: 0.875rem;
    color: var(--jg-text);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.jg-related-vendor {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--jg-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--jg-text-light);
    margin-bottom: 0.75rem;
}

.jg-related-link {
    font-size: 0.875rem;
    color: var(--jg-primary);
    text-decoration: none;
}

.jg-related-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Exam Tables
   ========================================================================== */

.jg-exam-table {
    width: 100%;
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow);
    border-collapse: collapse;
    font-size: 0.875rem;
    table-layout: fixed;
}

.jg-exam-table thead {
    background: var(--jg-primary);
    color: var(--jg-white);
}

.jg-exam-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.jg-exam-table th:first-child {
    border-radius: var(--jg-radius) 0 0 0;
}

.jg-exam-table th:last-child {
    border-radius: 0 var(--jg-radius) 0 0;
}

.jg-exam-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--jg-border);
    vertical-align: middle;
}

.jg-exam-table tbody tr:hover {
    background: var(--jg-bg);
}

.jg-exam-table tbody tr:last-child td {
    border-bottom: none;
}

.jg-exam-table a {
    color: var(--jg-primary);
    text-decoration: none;
}

.jg-exam-table a:hover {
    text-decoration: underline;
}

/* Column widths for vendor/certification tables (5 columns) */
.jg-exam-table .col-code {
    width: 15%;
}

.jg-exam-table .col-title {
    width: auto;
}

.jg-exam-table .col-questions {
    width: 12%;
    text-align: center;
}

.jg-exam-table .col-price {
    width: 10%;
    text-align: center;
}

.jg-exam-table .col-action {
    width: 10%;
    text-align: center;
}

/* Column widths for products table (6 columns with vendor) */
.jg-products-table .col-vendor {
    width: 14%;
}

.jg-products-table .col-code {
    width: 12%;
}

.jg-products-table .col-title {
    width: auto;
}

.jg-products-table .col-questions {
    width: 10%;
    text-align: center;
}

.jg-products-table .col-price {
    width: 8%;
    text-align: center;
}

.jg-products-table .col-action {
    width: 8%;
    text-align: center;
}

/* Table header alignment */
.jg-exam-table th.col-questions,
.jg-exam-table th.col-price,
.jg-exam-table th.col-action {
    text-align: center;
}

/* Title column text handling */
.jg-exam-table .col-title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jg-btn-detail {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--jg-primary);
    color: var(--jg-white) !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.jg-btn-detail:hover {
    background: var(--jg-primary-dark);
}

/* ==========================================================================
   Vendor Archive
   ========================================================================== */

.jg-vendor-count,
.jg-cert-count,
.jg-products-summary {
    color: var(--jg-text-light);
    font-size: 1rem;
    margin: 0;
}

.jg-quick-jump {
    background: var(--jg-white);
    padding: 1rem;
    border-radius: var(--jg-radius);
    margin-bottom: 2rem;
}

.jg-quick-jump-label {
    font-weight: 600;
    color: var(--jg-text);
    margin-right: 1rem;
}

.jg-quick-jump-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jg-quick-jump-list li a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--jg-bg);
    color: var(--jg-primary);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
}

.jg-quick-jump-list li a:hover {
    background: var(--jg-primary);
    color: var(--jg-white);
}

.jg-cert-section {
    margin-bottom: 2.5rem;
}

.jg-cert-section .jg-cert-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--jg-text);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--jg-primary);
}

.jg-cert-section .jg-cert-count {
    font-weight: 400;
    color: var(--jg-text-light);
    font-size: 1rem;
}

/* ==========================================================================
   Products Archive / Filters
   ========================================================================== */

.jg-products-filters {
    background: var(--jg-white);
    padding: 1.5rem;
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow);
    margin-bottom: 1.5rem;
}

.jg-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.jg-filter-group {
    flex: 1;
    min-width: 200px;
}

.jg-filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jg-text);
    margin-bottom: 0.375rem;
}

.jg-filter-group select,
.jg-filter-group input[type="text"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--jg-border);
    border-radius: var(--jg-radius);
    font-size: 0.875rem;
}

.jg-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.jg-btn-filter {
    padding: 0.625rem 1.25rem;
    background: var(--jg-primary);
    color: var(--jg-white);
    border: none;
    border-radius: var(--jg-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.jg-btn-filter:hover {
    background: var(--jg-primary-dark);
}

.jg-btn-clear {
    padding: 0.625rem 1.25rem;
    background: var(--jg-bg);
    color: var(--jg-text);
    border: 1px solid var(--jg-border);
    border-radius: var(--jg-radius);
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
}

.jg-btn-clear:hover {
    background: var(--jg-border);
}

.jg-results-info {
    margin-bottom: 1rem;
}

.jg-results-info p {
    margin: 0;
    color: var(--jg-text-light);
    font-size: 0.875rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.jg-pagination {
    margin-top: 2rem;
    text-align: center;
}

.jg-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    margin: 0 0.125rem;
    background: var(--jg-white);
    color: var(--jg-text);
    border: 1px solid var(--jg-border);
    border-radius: var(--jg-radius);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.jg-pagination .page-numbers:hover {
    background: var(--jg-primary);
    color: var(--jg-white);
    border-color: var(--jg-primary);
}

.jg-pagination .page-numbers.current {
    background: var(--jg-primary);
    color: var(--jg-white);
    border-color: var(--jg-primary);
}

/* ==========================================================================
   Popular Vendors Grid
   ========================================================================== */

.jg-popular-vendors,
.jg-other-vendors,
.jg-related-certs {
    margin-top: 3rem;
}

.jg-popular-vendors h2,
.jg-other-vendors h2,
.jg-related-certs h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--jg-text);
}

.jg-vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.jg-vendor-card {
    display: block;
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow);
    padding: 1.25rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.jg-vendor-card:hover {
    box-shadow: var(--jg-shadow-lg);
    transform: translateY(-2px);
}

.jg-vendor-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--jg-text);
    margin-bottom: 0.25rem;
}

.jg-vendor-card .jg-vendor-count {
    font-size: 0.875rem;
    color: var(--jg-text-light);
}

.jg-vendor-list,
.jg-cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jg-vendor-list li a,
.jg-cert-list li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--jg-white);
    border: 1px solid var(--jg-border);
    border-radius: var(--jg-radius);
    color: var(--jg-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.jg-vendor-list li a:hover,
.jg-cert-list li a:hover {
    background: var(--jg-primary);
    color: var(--jg-white);
    border-color: var(--jg-primary);
}

.jg-vendor-list li a .count,
.jg-cert-list li a .count {
    color: var(--jg-text-light);
    font-size: 0.75rem;
}

.jg-vendor-list li a:hover .count,
.jg-cert-list li a:hover .count {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   No Results
   ========================================================================== */

.jg-no-results {
    text-align: center;
    padding: 3rem;
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow);
}

.jg-no-results p {
    margin: 0 0 1rem;
    color: var(--jg-text-light);
}

.jg-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--jg-primary);
    color: var(--jg-white);
    text-decoration: none;
    border-radius: var(--jg-radius);
    font-weight: 500;
}

.jg-btn:hover {
    background: var(--jg-primary-dark);
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.jg-homepage {
    background: var(--jg-bg);
}

/* Hero Section */
.jg-hero {
    background: linear-gradient(135deg, var(--jg-primary) 0%, var(--jg-primary-dark) 100%);
    color: var(--jg-white);
    padding: 4rem 1rem;
    text-align: center;
}

.jg-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.jg-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.jg-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0 0 2rem;
}

/* Hero Search */
.jg-hero-search {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.jg-search-form {
    display: flex;
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.jg-search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.jg-search-btn {
    padding: 1rem 2rem;
    background: var(--jg-secondary);
    color: var(--jg-white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.jg-search-btn:hover {
    background: #059669;
}

/* Hero Stats */
.jg-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.jg-stat {
    text-align: center;
}

.jg-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.jg-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Vendor Navigation */
.jg-vendor-nav {
    background: var(--jg-white);
    border-bottom: 1px solid var(--jg-border);
    padding: 0.75rem 1rem;
    overflow-x: auto;
}

.jg-vendor-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jg-vendor-nav-list li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--jg-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--jg-radius);
    transition: all 0.2s;
}

.jg-vendor-nav-list li a:hover {
    background: var(--jg-primary);
    color: var(--jg-white);
}

.jg-vendor-nav-list li.jg-all-vendors a {
    color: var(--jg-primary);
    font-weight: 600;
}

/* Container */
.jg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sections */
.jg-section {
    padding: 3rem 0;
}

.jg-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--jg-text);
    margin: 0 0 1.5rem;
    text-align: center;
}

.jg-section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Top Vendors Grid */
.jg-vendor-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

/* Certifications Columns */
.jg-cert-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.jg-cert-column {
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow);
    padding: 1.5rem;
}

.jg-cert-vendor-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--jg-primary);
}

.jg-cert-vendor-title a {
    color: var(--jg-text);
    text-decoration: none;
}

.jg-cert-vendor-title a:hover {
    color: var(--jg-primary);
}

.jg-cert-column .jg-cert-list {
    flex-direction: column;
    gap: 0;
}

.jg-cert-column .jg-cert-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--jg-border);
}

.jg-cert-column .jg-cert-list li:last-child {
    border-bottom: none;
}

.jg-cert-column .jg-cert-list li a {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--jg-primary);
    font-size: 0.875rem;
}

.jg-cert-column .jg-cert-list li a:hover {
    text-decoration: underline;
    background: transparent;
    color: var(--jg-primary-dark);
}

.jg-cert-count {
    color: var(--jg-text-light);
    font-size: 0.75rem;
}

.jg-more-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--jg-primary);
    font-size: 0.875rem;
    text-decoration: none;
}

.jg-more-link:hover {
    text-decoration: underline;
}

/* Exam Lists */
.jg-exam-lists-section {
    padding-bottom: 0;
}

.jg-exam-lists {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Panel (card container) */
.jg-exam-list-panel {
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    box-shadow: var(--jg-shadow);
    overflow: hidden;
}

.jg-panel-header {
    background: var(--jg-primary);
    padding: 1rem 1.25rem;
}

.jg-panel-header h3 {
    margin: 0;
    color: var(--jg-white);
    font-size: 1.125rem;
    font-weight: 600;
}

.jg-panel-body {
    padding: 0;
}

/* Exam card rows */
.jg-exam-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--jg-border);
    text-decoration: none;
    transition: background 0.15s;
}

.jg-exam-card:last-child {
    border-bottom: none;
}

.jg-exam-card:hover {
    background: var(--jg-bg);
}

.jg-exam-card-main {
    flex: 1;
    min-width: 0;
}

.jg-exam-card-code {
    display: block;
    font-weight: 700;
    color: var(--jg-primary);
    font-size: 0.9375rem;
    line-height: 1.3;
}

.jg-exam-card:hover .jg-exam-card-code {
    text-decoration: underline;
}

.jg-exam-card-title {
    display: block;
    color: var(--jg-text);
    font-size: 0.8125rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jg-exam-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.jg-exam-card-vendor {
    font-size: 0.75rem;
    color: var(--jg-text-light);
    background: var(--jg-bg);
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
}

.jg-exam-card-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--jg-secondary);
}

/* Features Grid */
.jg-features-section {
    background: var(--jg-white);
    border-radius: var(--jg-radius);
    padding: 3rem;
    margin: 2rem 0;
}

.jg-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.jg-feature {
    text-align: center;
}

.jg-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.jg-feature h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--jg-text);
}

.jg-feature p {
    font-size: 0.875rem;
    color: var(--jg-text-light);
    margin: 0;
    line-height: 1.5;
}

/* (All Vendors section removed) */

/* Buttons */
.jg-btn-primary {
    background: var(--jg-primary);
    color: var(--jg-white) !important;
}

.jg-btn-primary:hover {
    background: var(--jg-primary-dark);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .jg-hero h1 {
        font-size: 2rem;
    }

    .jg-hero-stats {
        gap: 2rem;
    }

    .jg-exam-lists {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .jg-hero {
        padding: 2rem 1rem;
    }

    .jg-hero h1 {
        font-size: 1.5rem;
    }

    .jg-hero-subtitle {
        font-size: 1rem;
    }

    .jg-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .jg-stat-number {
        font-size: 1.5rem;
    }

    .jg-search-form {
        flex-direction: column;
    }

    .jg-search-input {
        border-bottom: 1px solid var(--jg-border);
    }

    .jg-vendor-nav-list {
        justify-content: flex-start;
    }

    .jg-section-title {
        font-size: 1.25rem;
    }

    .jg-cert-columns {
        grid-template-columns: 1fr;
    }

    .jg-features-section {
        padding: 2rem 1rem;
    }

    .jg-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .jg-exam-title,
    .jg-vendor-title,
    .jg-cert-title,
    .jg-products-title {
        font-size: 1.5rem;
    }

    .jg-exam-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .jg-filter-form {
        flex-direction: column;
    }

    .jg-filter-group {
        width: 100%;
    }

    .jg-exam-table {
        font-size: 0.8125rem;
    }

    .jg-exam-table th,
    .jg-exam-table td {
        padding: 0.625rem 0.5rem;
    }

    .col-questions,
    .col-price {
        display: none;
    }

    .jg-vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jg-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .jg-features-grid {
        grid-template-columns: 1fr;
    }

    .jg-vendor-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   My Account — Downloads: Expiry badges
   ========================================================================== */

.jg-expiry-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.5;
}

.jg-expiry-ok      { background: #d1fae5; color: #065f46; }
.jg-expiry-warning { background: #fef3c7; color: #92400e; }
.jg-expiry-urgent  { background: #ffedd5; color: #9a3412; }
.jg-expiry-expired { background: #fee2e2; color: #991b1b; }
.jg-expiry-none    { color: #9ca3af; }

.jg-expiry-date {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #6b7280;
}
