/* Executive Programs Online - Program Comparison Page Styling */

/* 1. Full-Width Hero Section */
.compare-hero {
    background:
        radial-gradient(circle at 86% 18%, rgba(243, 36, 36, .08), transparent 24%),
        radial-gradient(circle at 74% 8%, rgba(118, 74, 241, .15), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f5f3fb 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: clamp(1.75rem, 3.2vw, 2.75rem) 0;
    position: relative;
    font-family: 'DM Sans', Arial, sans-serif;
    width: 100%;
}

.compare-breadcrumbs {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.compare-breadcrumbs a {
    color: #764af1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.compare-breadcrumbs a:hover {
    color: #5830c9;
    text-decoration: underline;
}

/* Full Width Typography in Hero */
.compare-hero-title {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #030519;
    letter-spacing: -0.03em;
    margin: 0.5rem 0 0.75rem;
    max-width: 100% !important;
    width: 100%;
}

.compare-hero-subtitle {
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    color: #646778;
    max-width: 100% !important;
    width: 100%;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Comparison Container Section */
.compare-section {
    padding: 32px 0 56px;
    background: #fbfbfd;
}

/* 2. Side-by-Side Comparison Header Grid */
.compare-header-grid {
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    position: sticky;
    top: 72px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.compare-header-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 12px;
    border-right: 1px solid #e2e8f0;
}

.compare-header-label h3 {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.compare-header-label span {
    font-size: 12px;
    color: #64748b;
}

.compare-card-head {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.compare-card-head-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.compare-card-inst-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 2px;
    flex-shrink: 0;
}

.compare-card-inst-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #764af1;
    background: rgba(118, 74, 241, 0.08);
    border: 1px solid rgba(118, 74, 241, 0.18);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.compare-card-title {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin: 0;
    word-break: break-word;
}

.compare-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.18s ease;
}

.compare-card-title a:hover {
    color: #764af1;
}

.compare-card-fee {
    font-size: 14px;
    font-weight: 800;
    color: #047857;
    margin-top: 4px;
}

.compare-btn-enquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 14px;
    background: #764af1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.compare-btn-enquire:hover {
    background: #5830c9;
    transform: translateY(-1px);
    color: #fff;
}

/* 3. Comparison Table & Rows */
.compare-table-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: 28px;
}

.compare-category-header {
    background: linear-gradient(90deg, #f8f7ff 0%, #ffffff 100%);
    padding: 12px 18px;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #764af1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.compare-table-wrapper > .compare-category-header:first-child {
    border-top: none;
}

.compare-row {
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    align-items: baseline;
    transition: background 0.15s ease;
}

.compare-row:nth-child(even) {
    background: #fbfbfd;
}

.compare-row:hover {
    background: #f5f3ff;
}

.compare-row-label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    line-height: 1.4;
}

.compare-row-cell {
    font-size: 13.5px;
    color: #1e293b;
    line-height: 1.6;
    word-break: break-word;
}

.compare-row-cell strong {
    color: #0f172a;
}

.compare-check {
    color: #059669;
    font-weight: 700;
}

.compare-cross {
    color: #64748b;
    font-weight: 500;
}

/* 4. Editorial Verdict Card */
.compare-verdict-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    margin-bottom: 32px;
}

.compare-verdict-title {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 18px;
}

.compare-verdict-option {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    border-left: 4px solid #764af1;
}

.compare-verdict-option h4 {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.compare-verdict-option p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0;
}

/* 5. Scalable Compact 2-Slot Comparison Selector */
.compare-hub-selector {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 36px;
}

.compare-slots-container {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

/* Compact Slot Box - Reduced Height */
.compare-slot-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 68px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.compare-slot-box:hover {
    border-color: #764af1;
    background: #f5f3ff;
}

.compare-slot-box.has-program {
    border-style: solid;
    border-color: #e2e8f0;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.compare-slot-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.compare-slot-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(118, 74, 241, 0.1);
    color: #764af1;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.compare-slot-empty-title {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.compare-slot-empty-sub {
    font-size: 11.5px;
    color: #64748b;
}

.compare-slot-selected {
    width: 100%;
}

.compare-slot-selected-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.compare-slot-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding: 2px;
    background: #fff;
    flex-shrink: 0;
}

.compare-slot-info {
    flex: 1;
    min-width: 0;
}

.compare-slot-inst {
    font-size: 10.5px;
    font-weight: 700;
    color: #764af1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: 2px;
}

.compare-slot-name {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    white-space: normal; /* No chopping */
    word-break: break-word;
}

.compare-slot-meta {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.compare-slot-change-btn {
    font-size: 11px;
    font-weight: 700;
    color: #764af1;
    background: rgba(118, 74, 241, 0.08);
    border: 1px solid rgba(118, 74, 241, 0.2);
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.compare-slots-vs-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #764af1;
    color: #fff;
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 800;
    font-size: 12px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(118, 74, 241, 0.22);
}

/* Bigger & More Prominent Compare Button */
.compare-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    padding: 0 32px;
    background: #764af1;
    color: #fff;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(118, 74, 241, 0.22);
}

.compare-submit-btn:hover:not(:disabled) {
    background: #5830c9;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(118, 74, 241, 0.3);
}

.compare-submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

/* 6. Popular Curated Comparisons Grid with Inline Row Logos */
.compare-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-top: 14px;
}

.compare-hub-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.compare-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.compare-card-header-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.compare-card-domain {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #764af1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.compare-card-action-hint {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.compare-hub-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Program Row with Logo on the Same Row */
.compare-card-prog-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.compare-card-row-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    flex-shrink: 0;
}

.compare-card-row-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare-logo-initials {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #764af1;
    text-align: center;
}

.compare-card-row-text {
    flex: 1;
    min-width: 0;
}

.compare-card-inst-name {
    font-size: 11px;
    font-weight: 700;
    color: #764af1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 2px;
}

.compare-card-prog-title {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    display: block;
    word-break: break-word;
}

.compare-card-vs-divider {
    text-align: center;
    margin: 4px 0;
    position: relative;
}

.compare-card-vs-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.compare-card-vs-divider span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 2px 10px;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    color: #94a3b8;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.compare-hub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: #764af1;
}

.compare-hub-card:hover .compare-hub-card-footer span {
    text-decoration: underline;
}

/* 7. Searchable Program Modal Dialog - Full Text (No Chopping) */
.compare-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.compare-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.compare-modal-dialog {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.compare-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compare-modal-header h3 {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.compare-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.compare-modal-search {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.compare-search-input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 12px center / 16px 16px;
}

.compare-search-input:focus {
    outline: none;
    border-color: #764af1;
    box-shadow: 0 0 0 3px rgba(118, 74, 241, 0.12);
}

.compare-modal-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.compare-filter-pill {
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.compare-filter-pill:hover,
.compare-filter-pill.is-active {
    background: #764af1;
    color: #fff;
}

.compare-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 20px;
    max-height: 420px;
}

.compare-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    margin-bottom: 6px;
}

.compare-modal-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.compare-modal-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.compare-modal-item-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.compare-modal-item-info {
    flex: 1;
    min-width: 0;
}

.compare-modal-item-inst {
    font-size: 11px;
    font-weight: 700;
    color: #764af1;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* NO CHOPPING: wraps naturally */
.compare-modal-item-name {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    white-space: normal !important;
    word-break: break-word;
}

.compare-modal-item-meta {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

.compare-modal-item-btn {
    font-size: 12px;
    font-weight: 700;
    color: #764af1;
    background: rgba(118, 74, 241, 0.08);
    border: 1px solid rgba(118, 74, 241, 0.2);
    border-radius: 6px;
    padding: 6px 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.compare-modal-item:hover .compare-modal-item-btn {
    background: #764af1;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .compare-header-grid {
        grid-template-columns: 1fr;
        top: 60px;
    }
    .compare-header-label {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
    }
    .compare-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .compare-row-label {
        font-size: 12px;
        text-transform: uppercase;
        color: #764af1;
    }
    .compare-slots-container {
        grid-template-columns: 1fr;
    }
    .compare-slots-vs-circle {
        margin: 4px auto;
    }
    .compare-verdict-grid {
        grid-template-columns: 1fr;
    }
}
