/* ============================================
   CollegeKampus Explore - Public Portal Styles
   Subdomain: explore.collegekampus.com
   Brand Colors: Blue #1a73e8, Dark Blue #0d47a1
   ============================================ */

/* === CSS Variables === */
:root {
    --ck-primary: #1a73e8;
    --ck-primary-dark: #0d47a1;
    --ck-primary-light: #e8f0fe;
    --ck-secondary: #34a853;
    --ck-accent: #fbbc04;
    --ck-danger: #ea4335;
    --ck-warning: #ff9800;
    --ck-info: #4fc3f7;
    --ck-dark: #1a1a2e;
    --ck-text: #333333;
    --ck-text-light: #666666;
    --ck-text-muted: #999999;
    --ck-bg: #f4f7fa;
    --ck-bg-white: #ffffff;
    --ck-border: #e0e4e8;
    --ck-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --ck-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --ck-radius: 12px;
    --ck-radius-sm: 8px;
    --ck-transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ck-bg);
    color: var(--ck-text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--ck-primary);
    text-decoration: none;
    transition: var(--ck-transition);
}

a:hover {
    color: var(--ck-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Form Elements === */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ck-text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    font-size: 14px;
    color: var(--ck-text);
    background: var(--ck-bg);
    transition: var(--ck-transition);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--ck-primary);
    background: var(--ck-bg-white);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-input::placeholder {
    color: var(--ck-text-muted);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--ck-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ck-transition);
    font-family: inherit;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ck-primary), var(--ck-primary-dark));
    color: #fff;
}

/* Pages that want an edge-to-edge primary button (auth forms, search bars)
   set style="width:100%" explicitly - .btn-primary itself no longer forces
   it, so it doesn't stretch inline action-row buttons (e.g. "Apply Now"
   next to Save/Compare on the college detail page). */

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.btn-secondary {
    background: var(--ck-bg);
    color: var(--ck-text);
    border: 2px solid var(--ck-border);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--ck-primary);
    color: var(--ck-primary);
}

.btn-success {
    background: var(--ck-secondary);
    color: #fff;
}

.btn-danger {
    background: var(--ck-danger);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--ck-primary);
    border: 2px solid var(--ck-primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--ck-primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* === Alerts === */
.alert {
    padding: 12px 16px;
    border-radius: var(--ck-radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.alert.show {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.alert-error {
    background: #ffeaea;
    color: var(--ck-danger);
    border: 1px solid #ffcccc;
}

.alert-success {
    background: #e6f9ed;
    color: var(--ck-secondary);
    border: 1px solid #b8e6c8;
}

.alert-info {
    background: var(--ck-primary-light);
    color: var(--ck-primary);
    border: 1px solid #c5d9f5;
}

/* === Section Cards === */
.section-card {
    background: var(--ck-bg-white);
    border-radius: var(--ck-radius);
    box-shadow: var(--ck-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ck-border);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ck-dark);
}

.section-body {
    padding: 24px;
}

/* === College Cards === */
.college-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.college-card {
    background: var(--ck-bg-white);
    border-radius: var(--ck-radius);
    border: 1px solid var(--ck-border);
    transition: var(--ck-transition);
    overflow: hidden;
}

.college-card:hover {
    border-color: var(--ck-primary);
    box-shadow: var(--ck-shadow-hover);
    transform: translateY(-2px);
}

.college-card-header {
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.college-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--ck-radius-sm);
    background: var(--ck-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--ck-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.college-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.college-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ck-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.college-location {
    font-size: 13px;
    color: var(--ck-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.college-meta {
    padding: 0 20px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: hidden;
}

.college-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.3;
}

.tag-type {
    background: var(--ck-primary-light);
    color: var(--ck-primary);
}

.tag-rating {
    background: #fff3e0;
    color: var(--ck-warning);
}

.tag-accreditation {
    background: #e6f9ed;
    color: var(--ck-secondary);
}

.tag-nirf {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 700;
}

.college-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--ck-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
}

.college-fees {
    font-size: 14px;
    font-weight: 700;
    color: var(--ck-dark);
}

.college-fees small {
    font-weight: 400;
    color: var(--ck-text-muted);
    font-size: 12px;
}

/* === Placement Strip in College Card === */
.college-placement-strip {
    padding: 8px 20px;
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--ck-text-light);
    background: #f8fafc;
    border-top: 1px solid #f0f0f0;
}

.college-placement-strip span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === Icon Buttons === */
.btn-icon {
    padding: 8px;
    min-width: 34px;
    width: 34px;
    height: 34px;
}

.btn-compare-active {
    background: var(--ck-primary);
    color: #fff;
    border: none;
}

/* === Compare Toggle on College Cards === */
.compare-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.compare-toggle-btn:hover {
    border-color: var(--ck-primary);
    color: var(--ck-primary);
}
.compare-toggle-btn.compare-active {
    border-color: var(--ck-primary);
    background: #e8f0fe;
    color: var(--ck-primary);
    font-weight: 600;
}
.compare-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    flex-shrink: 0;
}
.compare-active .compare-circle {
    background: var(--ck-primary);
    border-color: var(--ck-primary);
    color: #fff;
}
.college-card.compare-selected,
.college-list-item.compare-selected {
    border: 2px solid var(--ck-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
.college-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 12px;
    right: 12px;
}

/* === Search Filters === */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--ck-bg-white);
    border-radius: var(--ck-radius);
    box-shadow: var(--ck-shadow);
}

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

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ck-text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    font-size: 13px;
    color: var(--ck-text);
    background: var(--ck-bg);
    transition: var(--ck-transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--ck-primary);
}

/* === Filter Actions in Search === */
.filter-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* === Results Header === */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    padding: 8px;
    border: 2px solid var(--ck-border);
    background: var(--ck-bg-white);
    border-radius: 6px;
    cursor: pointer;
    color: var(--ck-text-muted);
    transition: var(--ck-transition);
}

.view-btn.active {
    border-color: var(--ck-primary);
    color: var(--ck-primary);
    background: var(--ck-primary-light);
}

/* === List View === */
.college-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.college-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--ck-bg-white);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    transition: var(--ck-transition);
}

.college-list-item:hover {
    border-color: var(--ck-primary);
    box-shadow: var(--ck-shadow);
}

.cli-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--ck-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--ck-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.cli-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cli-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ck-dark);
}

.cli-location {
    font-size: 12px;
    color: var(--ck-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.cli-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.cli-fees {
    font-size: 14px;
    font-weight: 700;
    color: var(--ck-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.cli-fees small {
    font-weight: 400;
    color: var(--ck-text-muted);
    font-size: 11px;
}

.cli-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* === Pagination === */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
}

/* === Search Hero Banner === */
.search-hero {
    background: linear-gradient(135deg, var(--ck-primary), var(--ck-primary-dark));
    border-radius: var(--ck-radius);
    padding: 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: visible;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.search-hero-inner {
    position: relative;
    z-index: 1;
}

.search-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.search-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

/* === Autocomplete === */
.autocomplete-wrap {
    position: relative;
    max-width: 600px;
}

.autocomplete-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.autocomplete-icon {
    position: absolute;
    left: 16px;
    color: var(--ck-text-muted);
    pointer-events: none;
}

.autocomplete-input {
    width: 100%;
    padding: 14px 40px 14px 48px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--ck-text);
    transition: var(--ck-transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.autocomplete-input:focus {
    outline: none;
    border-color: var(--ck-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.autocomplete-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--ck-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.autocomplete-clear:hover {
    color: var(--ck-text);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.ac-item:last-child {
    border-bottom: none;
}

.ac-item:hover,
.ac-item.ac-active {
    background: var(--ck-primary-light);
}

.ac-item-main {
    flex: 1;
    min-width: 0;
}

.ac-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ck-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-name mark {
    background: #ffe082;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.ac-sub {
    font-size: 12px;
    color: var(--ck-text-muted);
    margin-top: 2px;
}

.ac-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 12px;
}

.ac-badge {
    background: #e3f2fd;
    color: var(--ck-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.ac-type {
    font-size: 11px;
    color: var(--ck-text-muted);
    text-transform: capitalize;
}

.ac-rating {
    font-size: 12px;
    white-space: nowrap;
}

/* === Stream Tags === */
.stream-tags {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stream-tags::-webkit-scrollbar {
    display: none;
}

.stream-tag {
    white-space: nowrap;
    padding: 8px 16px;
    border: 2px solid var(--ck-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ck-text-light);
    background: var(--ck-bg-white);
    cursor: pointer;
    transition: var(--ck-transition);
    font-family: inherit;
}

.stream-tag:hover {
    border-color: var(--ck-primary);
    color: var(--ck-primary);
}

.stream-tag.active {
    background: var(--ck-primary);
    color: #fff;
    border-color: var(--ck-primary);
}

/* === Compare Page === */
.compare-add-bar {
    margin-bottom: 24px;
}

.compare-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.compare-slot {
    border-radius: var(--ck-radius-sm);
    padding: 12px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-slot.filled {
    background: var(--ck-bg-white);
    border: 1px solid var(--ck-border);
    justify-content: space-between;
}

.compare-slot.empty {
    background: var(--ck-bg);
    border: 2px dashed var(--ck-border);
}

.compare-slot.empty a {
    font-size: 14px;
    color: var(--ck-text-muted);
}

.compare-slot-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.compare-slot-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--ck-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--ck-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.compare-slot-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-slot-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ck-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-slot-remove {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--ck-text-muted);
    cursor: pointer;
    padding: 4px;
}

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table th,
.compare-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--ck-border);
    vertical-align: top;
}

.compare-table th {
    background: var(--ck-bg);
    font-weight: 600;
    font-size: 13px;
    position: sticky;
    top: 0;
}

.compare-label {
    font-weight: 600;
    color: var(--ck-text-muted);
    font-size: 13px;
    white-space: nowrap;
    background: #fafbfc;
}

.compare-best {
    color: var(--ck-secondary);
    font-weight: 700;
}

.compare-college-link {
    font-weight: 700;
    color: var(--ck-primary);
}

.compare-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compare-course-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.compare-course-list li:last-child {
    border-bottom: none;
}

/* === College Detail Page === */
.cd-back-link {
    margin-bottom: 16px;
}

.cd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.cd-back:hover {
    color: #fff;
}

.cd-back-link .cd-back {
    color: var(--ck-text-muted);
}

.cd-back-link .cd-back:hover {
    color: var(--ck-primary);
}

.cd-header {
    background: linear-gradient(125deg, #4f7df0 0%, var(--ck-primary) 45%, var(--ck-primary-dark) 100%);
    position: relative;
    overflow: hidden;
    border-radius: var(--ck-radius);
    padding: 24px;
    color: #fff;
    margin-bottom: 20px;
}
.cd-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 88% -10%, rgba(255,255,255,0.22), transparent 55%);
    pointer-events: none;
}
.cd-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.cd-header-top {
    margin-bottom: 16px;
}

.cd-header-main {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.cd-logo-big {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.35);
    overflow: hidden;
}

.cd-logo-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-header-info {
    flex: 1;
}

.cd-title {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cd-short-name {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
}

.cd-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    opacity: 0.92;
    margin: 0 0 10px;
}

.cd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cd-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Header sits on a dark blue gradient - the site-wide .btn-secondary/
   .btn-outline are tuned for light backgrounds (gray fill / blue-on-white
   outline), which reads as low-contrast or invisible here. Scope a
   glass/solid-white variant to just this action row. */
.cd-header-actions .btn-secondary {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}
.cd-header-actions .btn-secondary:hover:not(:disabled) {
    background: rgba(255,255,255,0.26);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.cd-header-actions .btn-outline {
    background: #fff;
    color: var(--ck-primary);
    border: 1px solid rgba(255,255,255,0.6);
}
.cd-header-actions .btn-outline:hover:not(:disabled) {
    background: #fff;
    color: var(--ck-primary-dark);
}
.cd-header-actions .btn-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
}

/* === Quick Stats Strip === */
.cd-stats-strip {
    display: flex;
    gap: 1px;
    background: var(--ck-border);
    border-radius: var(--ck-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.cd-stat {
    flex: 1;
    background: var(--ck-bg-white);
    padding: 16px;
    text-align: center;
    min-width: 120px;
}

.cd-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ck-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cd-stat-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--ck-dark);
}

/* === Tabs === */
.cd-tabs {
    margin-bottom: 24px;
}

.cd-tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--ck-border);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 64px; /* sits just below .public-nav, which is sticky at top:0 and 64px tall */
    z-index: 90;
    background: var(--ck-bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.cd-tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ck-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--ck-transition);
    white-space: nowrap;
    font-family: inherit;
}

.cd-tab-btn:hover {
    color: var(--ck-primary);
}

.cd-tab-btn.active {
    color: var(--ck-primary-dark);
    border-width: 0 0 2px 0;
    border-style: solid;
    border-image: linear-gradient(90deg, var(--ck-primary), #8b5cf6) 1;
}

.cd-tab-panel {
    display: none;
}

.cd-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* === Info Grid === */
.cd-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.cd-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cd-info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ck-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cd-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--ck-dark);
}
.cd-info-value a { color: var(--ck-primary); text-decoration: none; }
.cd-info-value a:hover { text-decoration: underline; }

/* === Course List (Detail Page) === */
.cd-course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    transition: var(--ck-transition);
    flex-wrap: wrap;
}

.cd-course-item:hover {
    border-color: var(--ck-primary);
    box-shadow: var(--ck-shadow);
}

.cd-course-info {
    flex: 1;
    min-width: 200px;
}

.cd-course-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ck-dark);
    margin-bottom: 4px;
}

.cd-course-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--ck-text-muted);
}

.cd-course-meta span::after {
    content: '|';
    margin-left: 8px;
    color: var(--ck-border);
}

.cd-course-meta span:last-child::after {
    display: none;
}

.cd-course-eligibility {
    font-size: 12px;
    color: var(--ck-text-light);
    margin-top: 6px;
}

.cd-course-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cd-course-fee {
    font-size: 16px;
    font-weight: 700;
    color: var(--ck-dark);
}

.cd-course-fee small {
    font-weight: 400;
    font-size: 12px;
    color: var(--ck-text-muted);
}

.cd-course-seats {
    font-size: 12px;
    color: var(--ck-text-muted);
}

/* === Placement Cards === */
.cd-placement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.cd-placement-card {
    background: var(--ck-bg);
    border-radius: var(--ck-radius-sm);
    padding: 20px;
    text-align: center;
    border-left: 4px solid var(--ck-border);
}

.cd-placement-card.blue { border-left-color: var(--ck-primary); }
.cd-placement-card.green { border-left-color: var(--ck-secondary); }
.cd-placement-card.orange { border-left-color: var(--ck-warning); }

.cd-placement-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--ck-dark);
    margin-bottom: 4px;
}

.cd-placement-label {
    font-size: 12px;
    color: var(--ck-text-muted);
    font-weight: 500;
}

/* === Ranking Table === */
.cd-table,
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cd-table th,
.cd-table td,
.ranking-table th,
.ranking-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--ck-border);
}

.cd-table th,
.ranking-table th {
    background: var(--ck-bg);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--ck-text-muted);
}

.ranking-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rank-cell {
    width: 60px;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    background: var(--ck-bg);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ck-text);
}

.rank-badge.rank-top {
    background: linear-gradient(135deg, var(--ck-accent), #ff9800);
    color: #fff;
}

.rank-college-name {
    font-weight: 600;
    color: var(--ck-dark);
}

.rank-college-meta {
    font-size: 12px;
    color: var(--ck-text-muted);
}

/* === Rankings Page === */
.rankings-hero {
    margin-bottom: 24px;
}

.rankings-hero h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ck-dark);
    margin-bottom: 4px;
}

.rankings-hero p {
    font-size: 14px;
    color: var(--ck-text-muted);
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--ck-bg-white);
    cursor: pointer;
}

.ranking-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ranking-list-card {
    background: var(--ck-bg);
    border-radius: var(--ck-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--ck-transition);
    border: 1px solid transparent;
}

.ranking-list-card:hover {
    border-color: var(--ck-primary);
    box-shadow: var(--ck-shadow);
}

.ranking-list-card.featured {
    background: var(--ck-bg-white);
    box-shadow: var(--ck-shadow);
}

.rlc-header {
    padding: 16px;
}

.rlc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ck-dark);
    margin-bottom: 4px;
}

.rlc-desc {
    font-size: 13px;
    color: var(--ck-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rlc-footer {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--ck-border);
    font-size: 12px;
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--ck-bg-white);
    border-radius: var(--ck-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ck-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ck-text-muted);
    padding: 4px;
    line-height: 1;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--ck-border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--ck-text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--ck-text-muted);
    margin-bottom: 20px;
}

/* === Spinner/Loading === */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner.dark {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--ck-primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Compare Bar (fixed bottom) === */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ck-primary);
    color: #fff;
    padding: 14px 24px;
    z-index: 999;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.compare-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.compare-bar-items {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
}

.compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    flex-shrink: 0;
}

/* === Public Navigation (No Sidebar Layout) === */
.public-nav {
    background: var(--ck-bg-white);
    border-bottom: 1px solid var(--ck-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.public-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--ck-dark);
    flex-shrink: 0;
}

.public-logo span {
    color: var(--ck-accent);
}

.public-logo:hover {
    color: var(--ck-dark);
}

.public-nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.public-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ck-text-light);
    border-radius: 8px;
    transition: var(--ck-transition);
}

.public-nav-link:hover {
    background: var(--ck-bg);
    color: var(--ck-primary);
}

.public-nav-link.active {
    background: var(--ck-primary-light);
    color: var(--ck-primary);
}

.public-nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.public-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ck-text);
    padding: 4px;
}

.public-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 8px 24px 16px;
    background: var(--ck-bg-white);
    border-top: 1px solid var(--ck-border);
}

.public-mobile-menu.show {
    display: flex;
}

.public-mobile-menu a {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--ck-text);
    border-bottom: 1px solid var(--ck-border);
}

.public-mobile-menu a:last-child {
    border-bottom: none;
}

/* === Public Content Area === */
.public-content {
    min-height: calc(100vh - 64px - 200px);
}

.public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* === Homepage Hero === */
.home-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--ck-primary-dark) 50%, var(--ck-primary) 100%);
    padding: 60px 24px 70px;
    text-align: center;
    position: relative;
    overflow: visible;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(251,188,4,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(26,115,232,0.15) 0%, transparent 50%);
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.home-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.home-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

.home-quick-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.home-quick-link {
    padding: 6px 16px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--ck-transition);
    border: 1px solid rgba(255,255,255,0.15);
}

.home-quick-link:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* === Stats Bar === */
.home-stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 20px 24px;
    background: var(--ck-bg-white);
    border-bottom: 1px solid var(--ck-border);
}

.home-stat-item {
    text-align: center;
}

.home-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--ck-primary);
}

.home-stat-label {
    font-size: 12px;
    color: var(--ck-text-muted);
    font-weight: 500;
}

/* === Homepage Sections === */
.home-section {
    margin-top: 32px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.home-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ck-dark);
}

/* === Stream Cards Grid === */
.home-streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.home-stream-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--ck-bg-white);
    border-radius: var(--ck-radius-sm);
    border: 1px solid var(--ck-border);
    transition: var(--ck-transition);
}

.home-stream-card:hover {
    box-shadow: var(--ck-shadow);
    transform: translateY(-2px);
}

.home-stream-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ck-dark);
}

.home-stream-arrow {
    font-size: 16px;
    color: var(--ck-text-muted);
}

/* === CTA Banner === */
.public-cta-banner {
    background: linear-gradient(135deg, var(--ck-primary), var(--ck-primary-dark));
    border-radius: var(--ck-radius);
    padding: 4px;
    margin-top: 32px;
}

.public-cta-inner {
    background: linear-gradient(135deg, var(--ck-primary), var(--ck-primary-dark));
    border-radius: var(--ck-radius);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: #fff;
}

.public-cta-inner h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.public-cta-inner p {
    font-size: 14px;
    opacity: 0.85;
}

.public-cta-inner .btn-primary {
    background: #fff;
    color: var(--ck-primary);
}

/* === Homepage CTA Section === */
.home-cta-section {
    margin-top: 40px;
    text-align: center;
}

.home-cta-card {
    background: linear-gradient(135deg, #f8f9ff, #e8f0fe);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius);
    padding: 40px;
}

.home-cta-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ck-dark);
    margin-bottom: 8px;
}

.home-cta-card p {
    font-size: 14px;
    color: var(--ck-text-light);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* === Public Footer === */
.public-footer {
    background: var(--ck-dark);
    color: rgba(255,255,255,0.7);
    margin-top: 40px;
}

.public-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.public-footer-brand {
    flex: 1;
    min-width: 240px;
}

.public-footer-brand .public-logo {
    color: #fff;
    margin-bottom: 12px;
    display: inline-block;
}

.public-footer-brand p {
    font-size: 13px;
    line-height: 1.6;
    max-width: 300px;
}

.public-footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--ck-accent);
}

.public-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* === Review Rating Bars === */
.cd-review-summary {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ck-border);
}

.cd-review-overall {
    text-align: center;
    flex-shrink: 0;
}

.cd-review-score {
    font-size: 42px;
    font-weight: 800;
    color: var(--ck-dark);
    line-height: 1;
}

.cd-review-stars {
    font-size: 16px;
    margin: 4px 0;
}

.cd-review-count {
    font-size: 12px;
    color: var(--ck-text-muted);
}

.cd-review-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.cd-rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-rating-bar-label {
    font-size: 13px;
    color: var(--ck-text-light);
    width: 110px;
    flex-shrink: 0;
}

.cd-rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--ck-bg);
    border-radius: 4px;
    overflow: hidden;
}

.cd-rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ck-accent), #ff9800);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.cd-rating-bar-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--ck-dark);
    width: 32px;
    text-align: right;
}

/* === Review Items === */
.cd-review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--ck-border);
}

.cd-review-item:last-child {
    border-bottom: none;
}

.cd-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cd-review-text {
    font-size: 14px;
    color: var(--ck-text-light);
    line-height: 1.6;
}

.cd-review-date {
    font-size: 12px;
    color: var(--ck-text-muted);
    margin-top: 8px;
}

/* === Gallery Grid === */
.cd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.cd-gallery-item {
    border-radius: var(--ck-radius-sm);
    overflow: hidden;
    position: relative;
}

.cd-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.cd-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 20px 10px 8px;
    font-size: 12px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .public-nav-links {
        display: none;
    }

    .public-nav-actions .btn {
        display: none;
    }

    .public-mobile-btn {
        display: block;
    }

    .public-nav-actions {
        gap: 0;
    }

    .home-hero {
        padding: 40px 16px 50px;
    }

    .home-hero-title {
        font-size: 26px;
    }

    .home-stats-bar {
        gap: 20px;
        flex-wrap: wrap;
    }

    .home-stat-item {
        flex: 1;
        min-width: 80px;
    }

    .home-stat-number {
        font-size: 18px;
    }

    .public-container {
        padding: 0 16px 32px;
    }

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

    .public-footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .public-footer-links {
        gap: 24px;
    }

    .public-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .search-hero {
        padding: 24px 16px;
    }

    .search-hero-title {
        font-size: 18px;
    }

    .autocomplete-input {
        font-size: 14px;
        padding: 12px 36px 12px 42px;
    }

    .cd-header-main {
        flex-direction: column;
        align-items: stretch;
    }

    .cd-stats-strip {
        flex-wrap: wrap;
    }

    .cd-stat {
        min-width: calc(50% - 1px);
    }

    .cd-tab-nav {
        gap: 0;
    }

    .cd-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

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

    .college-grid {
        grid-template-columns: 1fr;
    }

    .college-list-item {
        flex-wrap: wrap;
    }

    .cli-tags {
        display: none;
    }

    .cli-fees {
        margin-left: auto;
    }

    .cd-review-summary {
        flex-direction: column;
    }

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

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

    .search-filters {
        flex-direction: column;
    }

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

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

    .cd-placement-grid {
        grid-template-columns: 1fr;
    }

    .compare-slots {
        grid-template-columns: 1fr;
    }

    .home-stats-bar {
        gap: 12px;
    }
}

/* === Utilities === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--ck-text-muted); }
.text-primary { color: var(--ck-primary); }
.text-success { color: var(--ck-secondary); }
.text-danger { color: var(--ck-danger); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-2 { gap: 16px; }
.flex-1 { flex: 1; }
.fw-bold { font-weight: 700; }
.hidden { display: none !important; }

/* Breadcrumb Navigation */
.cd-breadcrumb { padding: 12px 20px; background: #f8f9fa; border-bottom: 1px solid #e0e0e0; }
.cd-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; max-width: 900px; margin: 0 auto; font-size: 13px; }
.cd-breadcrumb li { display: flex; align-items: center; }
.cd-breadcrumb li + li::before { content: '\203A'; margin-right: 6px; color: #999; }
.cd-breadcrumb a { color: var(--ck-primary, #1a73e8); text-decoration: none; }
.cd-breadcrumb a:hover { text-decoration: underline; }
.cd-breadcrumb li:last-child { color: #555; font-weight: 500; }

/* SEO content block below fold */
.seo-below-fold { margin-bottom: 40px; }
.seo-below-fold h2 { font-size: 20px; margin: 20px 0 10px; color: #333; }
.seo-below-fold h3 { font-size: 17px; margin: 16px 0 8px; color: #444; }
.seo-below-fold p { margin-bottom: 12px; }
.seo-below-fold ul, .seo-below-fold ol { margin: 10px 0; padding-left: 24px; }
.seo-below-fold li { margin-bottom: 6px; }
.seo-below-fold a { color: var(--ck-primary, #1a73e8); }

/* ===========================
   Browse Hub Page
   =========================== */
.browse-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--ck-primary-dark) 50%, var(--ck-primary) 100%);
    padding: 48px 24px;
    text-align: center;
    position: relative;
}
.browse-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.browse-hero h1 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.browse-hero p { font-size: 16px; color: rgba(255,255,255,0.8); }

.browse-section { margin-bottom: 40px; }
.browse-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.browse-section-sub { font-size: 14px; color: var(--ck-text-muted); margin-bottom: 16px; }

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.browse-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.browse-grid-cities { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.browse-grid-exams { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.browse-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--ck-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
}
.browse-card:hover {
    border-color: var(--ck-primary);
    box-shadow: 0 2px 12px rgba(26,115,232,0.12);
    transform: translateY(-1px);
}
.browse-card-name { font-weight: 600; font-size: 14px; flex: 1; }
.browse-card-count { font-size: 12px; color: var(--ck-text-muted); margin: 0 8px; white-space: nowrap; }
.browse-card-arrow { color: var(--ck-primary); font-size: 16px; font-weight: 700; }
.browse-card-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e3f2fd;
    color: var(--ck-primary);
    font-weight: 600;
    margin-left: 6px;
}
.browse-card-sub { font-size: 11px; color: var(--ck-text-muted); }

/* ===========================
   Listing Page
   =========================== */
.listing-breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
    color: var(--ck-text-muted);
}
.listing-breadcrumbs a {
    color: var(--ck-primary);
    text-decoration: none;
}
.listing-breadcrumbs a:hover { text-decoration: underline; }

.listing-hero {
    background: linear-gradient(135deg, var(--ck-primary), var(--ck-primary-dark));
    border-radius: var(--ck-radius);
    padding: 28px 32px;
    margin-bottom: 20px;
    position: relative;
}
.listing-hero-inner { position: relative; z-index: 1; }
.listing-hero h1 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.listing-hero p { font-size: 14px; color: rgba(255,255,255,0.85); }
.listing-hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.listing-hero-stat {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Rich Content Sections */
.listing-content-section {
    margin-top: 40px;
    border-top: 1px solid var(--ck-border);
    padding-top: 30px;
}
.listing-content-block {
    margin-bottom: 32px;
}
.listing-content-block h2,
.listing-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}
.listing-content-block p {
    font-size: 14px;
    color: var(--ck-text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Stats Bar */
.listing-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}
.listing-stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.listing-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--ck-primary);
}
.listing-stat-label {
    font-size: 12px;
    color: var(--ck-text-muted);
    margin-top: 2px;
}

/* Content Tables */
.listing-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--ck-border, #e0e4e8);
}
.listing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 8px;
}
.listing-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--ck-text-muted);
    border-bottom: 2px solid var(--ck-border);
}
.listing-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.listing-table tr:hover td { background: #fafbfc; }
.listing-table a {
    color: var(--ck-primary);
    text-decoration: none;
    font-weight: 500;
}
.listing-table a:hover { text-decoration: underline; }
.listing-table .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ck-primary);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}
.listing-table .rank-badge.top3 { background: #fbbc04; color: #1a1a2e; }

/* FAQ Section */
.listing-faq-section { margin-bottom: 30px; }
.listing-faq-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}
.faq-item {
    border: 1px solid var(--ck-border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-question {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
    transition: background 0.15s;
}
.faq-question:hover { background: #f0f4ff; }
.faq-question .faq-icon {
    font-size: 18px;
    color: var(--ck-primary);
    transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.faq-item.open .faq-answer {
    padding: 12px 16px;
    max-height: 500px;
}

/* Admin content blocks */
.listing-intro-content,
.listing-bottom-content {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}
.listing-intro-content h2, .listing-bottom-content h2 { font-size: 18px; margin: 16px 0 8px; }
.listing-intro-content h3, .listing-bottom-content h3 { font-size: 16px; margin: 12px 0 6px; }
.listing-intro-content a, .listing-bottom-content a { color: var(--ck-primary); }

/* ===========================
   Responsive: Browse & Listing
   =========================== */
@media (max-width: 768px) {
    .browse-hero h1 { font-size: 24px; }
    .browse-hero { padding: 32px 16px; }
    .browse-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
    .browse-card { padding: 10px 12px; }
    .listing-hero { padding: 20px 16px; }
    .listing-hero h1 { font-size: 20px; }
    .listing-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .listing-table { font-size: 12px; }
    .listing-table th, .listing-table td { padding: 8px; }
    .listing-hero-stats { gap: 8px; }
    .listing-hero-stat { font-size: 11px; padding: 3px 8px; }
}

/* Admin-managed banner ad (shared/includes/ads-helper.php) */
.site-ad-banner { display: block; margin: 18px 0; border-radius: 12px; overflow: hidden; line-height: 0; }
.site-ad-banner img { width: 100%; height: auto; display: block; }

/* ===========================
   College Detail: trust badges, tooltips, quick facts, cross-links
   =========================== */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    width: max-content; max-width: 260px; background: #1f2937; color: #fff;
    font-size: 12px; font-weight: 400; line-height: 1.5; padding: 8px 10px; border-radius: 6px;
    opacity: 0; visibility: hidden; transition: opacity 0.15s ease; z-index: 20; pointer-events: none;
}
[data-tooltip]:hover::after, [data-tooltip]:focus::after { opacity: 1; visibility: visible; }

.cd-info-tip {
    display: flex; align-items: center; justify-content: flex-end; gap: 6px;
    max-width: 900px; margin: 6px auto 0; color: #999; font-size: 14px;
}
.cd-info-tip-link { color: var(--ck-primary); font-size: 12px; text-decoration: none; font-weight: 500; }
.cd-info-tip-link:hover { text-decoration: underline; }

.cd-trustbar-wrap { padding: 10px 20px; max-width: 900px; }
.cd-trustbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.cd-verified-badge {
    display: inline-flex; align-items: center; gap: 6px; background: #fef3e2; color: #92600a;
    border: 1px solid #fbdca4; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600;
}
.cd-verified-badge svg { flex-shrink: 0; color: #b06f0c; }

.cd-claim-cta {
    font-size: 12.5px; color: #666; text-decoration: none; padding: 6px 12px; border-radius: 999px;
    border: 1px dashed #d0d0d0; transition: border-color 0.15s ease, color 0.15s ease;
}
.cd-claim-cta:hover { border-color: var(--ck-primary); color: var(--ck-primary); }
.cd-claim-cta strong { color: var(--ck-primary); font-weight: 600; }

.cd-quickfacts {
    display: flex; flex-wrap: wrap; gap: 20px 32px; margin: 0 0 14px; padding: 14px 16px;
    background: #f8f9fa; border-radius: 10px;
}
.cd-quickfacts-item { display: flex; flex-direction: column; gap: 2px; }
.cd-quickfacts-item dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: #999; font-weight: 600; }
.cd-quickfacts-item dd { margin: 0; font-size: 14px; color: #222; font-weight: 500; }
.cd-quickfacts-item dd a { color: var(--ck-primary); text-decoration: none; }
.cd-quickfacts-item dd a:hover { text-decoration: underline; }

.cd-quicktags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cd-quicktag {
    display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #e0e0e0;
    color: #444; font-size: 12.5px; font-weight: 500; text-decoration: none; padding: 6px 12px; border-radius: 999px;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.cd-quicktag:hover { border-color: var(--ck-primary); color: var(--ck-primary); }
.cd-quicktag-accent { background: var(--ck-primary-light); border-color: var(--ck-primary-light); color: var(--ck-primary-dark); font-weight: 600; }
.cd-quicktag-accent:hover { border-color: var(--ck-primary); }

.cd-similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cd-similar-card {
    display: block; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px;
    text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cd-similar-card:hover { border-color: var(--ck-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cd-similar-name { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 4px; }
.cd-similar-meta { font-size: 12.5px; color: #888; }

.cd-faq-item { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.cd-faq-item summary { padding: 12px 16px; cursor: pointer; font-weight: 500; font-size: 14px; background: #fafafa; list-style: none; }
.cd-faq-item summary::-webkit-details-marker { display: none; }
.cd-faq-item summary::before { content: '+'; display: inline-block; width: 16px; font-weight: 700; color: var(--ck-primary); }
.cd-faq-item[open] summary::before { content: '\2212'; }
.cd-faq-answer { padding: 4px 16px 14px 36px; font-size: 13.5px; line-height: 1.7; color: #4b5563; }

/* ===========================
   College Detail: vibrant per-section headers ("dh-" = detail header theme)
   Each tab/section gets its own soft gradient band + accent color, so the
   page reads as distinct scannable sections instead of one long gray form.
   =========================== */
.dh-indigo  { --dh-a: #6366f1; --dh-b: #a5b4fc; --dh-tint: #eef0ff; }
.dh-emerald { --dh-a: #059669; --dh-b: #6ee7b7; --dh-tint: #ecfdf5; }
.dh-amber   { --dh-a: #d97706; --dh-b: #fcd34d; --dh-tint: #fffbeb; }
.dh-violet  { --dh-a: #7c3aed; --dh-b: #c4b5fd; --dh-tint: #f5f3ff; }
.dh-sky     { --dh-a: #0284c7; --dh-b: #7dd3fc; --dh-tint: #f0f9ff; }
.dh-rose    { --dh-a: #e11d48; --dh-b: #fda4af; --dh-tint: #fff1f2; }
.dh-teal    { --dh-a: #0d9488; --dh-b: #5eead4; --dh-tint: #f0fdfa; }
.dh-fuchsia { --dh-a: #c026d3; --dh-b: #f0abfc; --dh-tint: #fdf4ff; }
.dh-orange  { --dh-a: #ea580c; --dh-b: #fdba74; --dh-tint: #fff7ed; }

.cd-section-head {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    background: linear-gradient(120deg, var(--dh-tint), #fff 85%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--ck-radius, 12px) var(--ck-radius, 12px) 0 0;
}
.cd-section-icon {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 10px; font-size: 18px;
    background: linear-gradient(135deg, var(--dh-a), var(--dh-b));
    box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--dh-a) 50%, transparent);
}
.cd-section-title { margin: 0; font-size: 16px; font-weight: 700; color: #1a1a1a; }
.cd-section-sub { margin: 2px 0 0; font-size: 12.5px; color: #888; }

.cd-glance-card { padding: 0; }
.cd-glance-card .section-body { padding-top: 18px; }

@media (max-width: 768px) {
    .cd-breadcrumb ol { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cd-quickfacts { gap: 14px 24px; }
    .cd-section-head { padding: 14px 16px; }
}

/* ===========================
   "Know Before You Enroll" parent report
   =========================== */
.report-shell { display: grid; grid-template-columns: 210px 1fr; gap: 30px; padding: 22px 22px 6px; }
.report-nav { position: sticky; top: 80px; align-self: start; z-index: 10; }
.report-nav-label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #999; margin-bottom: 10px; }
.report-nav-link { display: block; padding: 7px 0 7px 12px; border-left: 2px solid transparent; font-size: 13px; color: #666; text-decoration: none; }
.report-nav-link:hover { color: #b45309; }
.report-nav-link.active { border-left-color: #d97706; color: #b45309; font-weight: 700; }
.report-nav-link.muted { color: #aaa; font-size: 12px; }
.report-nav-sep { height: 1px; background: #eee; margin: 10px 0; }

.report-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.report-chip {
    display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e0e0e0; border-radius: 999px;
    padding: 8px 16px; font-size: 12.5px; font-weight: 600; color: #333; text-decoration: none;
}
.report-chip:hover { border-color: #d97706; color: #b45309; }

.report-q { margin-bottom: 38px; scroll-margin-top: 20px; }
.report-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #999; margin-bottom: 8px; }
.report-q h3 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.01em; }
.report-q .hi { color: #999; font-size: 13px; margin-bottom: 14px; }
.report-body { color: #555; line-height: 1.75; font-size: 14px; margin-bottom: 14px; }

.report-data-box { display: flex; gap: 22px; flex-wrap: wrap; background: #f0fdf4; border: 1px solid #bbf0cf; border-left: 4px solid #16a34a; border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; }
.report-data-box .stat-value { font-size: 18px; font-weight: 800; color: #166534; }
.report-data-box .stat-label { font-size: 11.5px; color: #3f6b52; }
.report-source { font-size: 11.5px; color: #999; font-style: italic; margin: 8px 0 0; }

.report-gap-box { border-left: 4px solid #d97706; background: #fffbeb; border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.report-gap-tag { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #b45309; margin-bottom: 4px; }
.report-gap-box p { margin: 0; font-size: 14px; font-weight: 600; color: #78350f; }

.report-soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 10px; margin-bottom: 12px; }
.report-soon-card { display: block; border: 1px dashed #f3d199; border-radius: 8px; padding: 10px 12px; background: #fffdf7; text-decoration: none; color: inherit; }
.report-soon-card strong { display: block; font-size: 11px; font-weight: 800; color: #b45309; margin-bottom: 4px; }
.report-soon-card p { margin: 0 0 4px; font-size: 12.5px; color: #555; }
.report-soon-card span { font-size: 11px; color: #999; font-style: italic; }
.report-soon-card.compare-card { border-style: solid; border-color: #e5e7eb; background: #fff; transition: var(--ck-transition); }
.report-soon-card.compare-card strong { color: #0284c7; }
.report-soon-card.compare-card:hover { border-color: #0284c7; box-shadow: var(--ck-shadow); transform: translateY(-1px); }

.report-info-box { display: flex; gap: 10px; background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #1e3a5f; line-height: 1.65; }
.report-info-box b { color: #1e40af; }

.report-footer-note { border-top: 1px solid #eee; margin-top: 6px; padding-top: 18px; font-size: 12.5px; color: #888; line-height: 1.75; }
.report-footer-note a { color: var(--ck-primary); }

@media (max-width: 720px) {
    .report-shell { grid-template-columns: 1fr; }
    .report-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; }
    .report-nav-sep { display: none; }
}

/* ===========================
   Get Help lead-capture CTA + "report a fact" strip + shared lead modal
   =========================== */
.cta-help-card {
    background: linear-gradient(120deg, #4338ca 0%, #7c3aed 55%, #a21caf 100%);
    position: relative; overflow: hidden; color: #fff; padding: 26px 28px;
}
.cta-help-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 92% 110%, rgba(255,255,255,0.22), transparent 55%); }
.cta-help-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-help-inner h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.cta-help-inner p { margin: 0; font-size: 13.5px; opacity: 0.92; max-width: 440px; line-height: 1.6; }
.cta-help-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; position: relative; z-index: 1; }
.cta-btn {
    padding: 12px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; border: none;
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: inherit;
}
.cta-btn-admission { background: #fff; color: #5b21b6; }
.cta-btn-placement { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.5); }

.correction-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.correction-icon {
    width: 42px; height: 42px; border-radius: 10px; background: #fef3e2; display: flex; align-items: center;
    justify-content: center; font-size: 19px; flex-shrink: 0;
}
.correction-strip .correction-text { flex: 1; min-width: 220px; }
.correction-strip strong { display: block; font-size: 14px; margin-bottom: 3px; }
.correction-strip p { margin: 0; font-size: 12.5px; color: #888; line-height: 1.6; }
.btn-outline-dark { padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #333; border: 1.5px solid #ddd; text-decoration: none; white-space: nowrap; background: #fff; cursor: pointer; font-family: inherit; }

.lead-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(20,18,10,0.55); z-index: 2000;
    align-items: center; justify-content: center; padding: 20px;
}
.lead-modal-overlay.open { display: flex; }
.lead-modal {
    width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 22px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3); font-size: 13px; color: #333; position: relative;
}
.lead-modal .lm-close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 18px; color: #999; cursor: pointer; }
.lead-modal .lm-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.lead-modal .lm-sub { color: #888; margin-bottom: 16px; font-size: 12.5px; }
.lead-modal .lm-row { display: flex; gap: 8px; margin-bottom: 12px; }
.lead-modal .lm-pill {
    flex: 1; text-align: center; padding: 8px; border-radius: 8px; border: 1.5px solid #e5e7eb; font-weight: 700;
    color: #666; background: #fff; cursor: pointer; font-size: 12px; font-family: inherit;
}
.lead-modal .lm-pill.on { border-color: #7c3aed; color: #7c3aed; background: #f5f3ff; }
.lead-modal label { display: block; font-size: 11.5px; font-weight: 700; color: #555; margin-bottom: 5px; }
.lead-modal input, .lead-modal textarea {
    width: 100%; padding: 9px 11px; border: 1.5px solid #e5e7eb; border-radius: 7px; margin-bottom: 12px;
    font-family: inherit; font-size: 13px; color: #333;
}
.lead-modal textarea { resize: vertical; min-height: 56px; }
.lead-modal .lm-submit {
    width: 100%; padding: 11px; border: none; border-radius: 8px; background: linear-gradient(135deg,#7c3aed,#a21caf);
    color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.lead-modal .lm-note { font-size: 11px; color: #aaa; text-align: center; margin-top: 10px; }
.lead-modal .lm-msg { display: none; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 12.5px; }

/* Scholarships tab */
.demo-caption { display: inline-block; font-size: 11px; color: #b45309; background: #fffbeb; border: 1px solid #fbdca4; border-radius: 999px; padding: 3px 10px; margin-bottom: 16px; }
.scholarship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 14px; }
.scholarship-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; }
.scholarship-card .sc-amount { display: inline-block; font-size: 11px; font-weight: 800; color: #0d9488; background: #f0fdfa; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.scholarship-card h4 { margin: 0 0 6px; font-size: 14.5px; }
.scholarship-card p { margin: 0 0 12px; font-size: 12.5px; color: #666; line-height: 1.6; }

/* News tab */
.news-list { border-left: 2px solid #e0f2fe; margin-left: 6px; }
.news-item { position: relative; padding: 2px 0 20px 22px; }
.news-item::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #0284c7; border: 2px solid #fff; box-shadow: 0 0 0 2px #e0f2fe; }
.news-date { font-size: 11px; font-weight: 700; color: #0284c7; text-transform: uppercase; letter-spacing: 0.04em; }
.news-item h4 { margin: 4px 0 4px; font-size: 14.5px; }
.news-item p { margin: 0; font-size: 12.5px; color: #666; line-height: 1.6; }

/* Q&A tab */
.qa-ask-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.qa-ask-box p { flex: 1; margin: 0; font-size: 13px; color: #9f1239; min-width: 200px; }
.qa-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.qa-q { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.qa-q::before { content: 'Q'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: #fecdd3; color: #9f1239; font-size: 11px; font-weight: 800; margin-right: 8px; }
.qa-a { font-size: 13px; color: #555; line-height: 1.65; padding-left: 28px; }
.qa-a .qa-by { display: block; margin-top: 6px; font-size: 11px; color: #aaa; font-style: italic; }

/* Gallery tab */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; }
.gallery-tile {
    aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; padding: 10px;
    color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.4); background-size: cover; background-position: center;
}

/* Reviews tab */
.review-summary { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; background: #fff7ed; border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; }
.review-overall .ro-num { font-size: 34px; font-weight: 800; color: #c2410c; line-height: 1; }
.review-overall .ro-stars { color: #f59e0b; font-size: 13px; margin: 4px 0; }
.review-overall .ro-count { font-size: 11.5px; color: #9a5b2e; }
.review-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.review-bar-row { display: grid; grid-template-columns: 90px 1fr 30px; align-items: center; gap: 8px; font-size: 12px; color: #7c4a1e; }
.review-bar-track { height: 6px; background: #fed7aa; border-radius: 999px; overflow: hidden; }
.review-bar-fill { height: 100%; background: linear-gradient(90deg,#ea580c,#fb923c); }
.review-write-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 8px; border: none; background: linear-gradient(135deg,#ea580c,#c2410c); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; margin-bottom: 18px; font-family: inherit; }
.review-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.review-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-card-name { font-weight: 700; font-size: 13.5px; }
.review-card-stars { color: #f59e0b; font-size: 12.5px; }
.review-card-date { font-size: 11px; color: #aaa; }
.review-card p { margin: 0 0 8px; font-size: 13px; color: #555; line-height: 1.6; }
.review-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.review-card-tags span { font-size: 10.5px; background: #fff7ed; color: #c2410c; border-radius: 999px; padding: 2px 8px; font-weight: 600; }
.review-moderation-note { font-size: 11.5px; color: #999; text-align: center; margin-top: 4px; }
.review-star-input { font-size: 26px; color: #d1d5db; cursor: pointer; letter-spacing: 2px; margin-bottom: 12px; }
.review-star-input span.on { color: #f59e0b; }

@media (max-width: 768px) {
    .cta-help-inner { flex-direction: column; align-items: flex-start; }
}

/* ===========================
   Inline "Register with us" strip (above footer)
   =========================== */
.inline-register-strip { background: #f4f7fa; border-top: 1px solid var(--ck-border); padding: 40px 0 44px; margin-top: 24px; text-align: center; }
.ir-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #1a1a1a; }
.ir-sub { margin: 0 0 22px; font-size: 13.5px; color: #666; }
.ir-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.ir-form input, .ir-form select {
    flex: 1 1 180px; min-width: 150px; max-width: 220px; padding: 12px 14px; border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-sm); font-family: inherit; font-size: 13.5px; color: var(--ck-text); background: #fff;
}
.ir-form input:focus, .ir-form select:focus { outline: none; border-color: var(--ck-primary); }
.ir-form button {
    flex: 0 0 auto; padding: 12px 26px; border: none; border-radius: var(--ck-radius-sm);
    background: linear-gradient(135deg, var(--ck-primary), var(--ck-primary-dark)); color: #fff; font-weight: 700;
    font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.ir-form button:disabled { opacity: 0.7; cursor: default; }
.ir-disclaimer { margin: 18px auto 0; max-width: 480px; font-size: 11.5px; color: #999; line-height: 1.6; }

@media (max-width: 640px) {
    .ir-form input, .ir-form select, .ir-form button { flex: 1 1 100%; max-width: 100%; }
}

/* ============================================
   Admin-controlled admission-promotion widgets
   ============================================ */
.promo-badge, .promo-inline-lbl { font-weight: 700; }
.promo-badge-urgent, .promo-inline-lbl-urgent { color: var(--ck-danger); }
.promo-badge-closing, .promo-inline-lbl-closing { color: var(--ck-warning); }
.promo-badge-info, .promo-inline-lbl-info { color: var(--ck-primary); }

.promo-btn {
    flex: 0 0 auto; display: inline-block; background: var(--ck-danger); color: #fff; border: none;
    padding: 8px 18px; border-radius: var(--ck-radius-sm); font-size: 12.5px; font-weight: 700;
    cursor: pointer; font-family: inherit; text-decoration: none; letter-spacing: 0.02em;
}
.promo-btn:hover { opacity: 0.92; }

/* Popup */
.promo-popup-overlay {
    display: none; position: fixed; inset: 0; background: rgba(20,20,25,0.55);
    align-items: center; justify-content: center; padding: 20px; z-index: 1999;
}
.promo-popup-overlay.show { display: flex; }
.promo-popup {
    background: var(--ck-bg-white); border-radius: var(--ck-radius); width: 100%; max-width: 420px;
    max-height: 80vh; overflow-y: auto; box-shadow: var(--ck-shadow-hover);
}
.promo-popup-head {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
    border-bottom: 1px solid var(--ck-border); position: sticky; top: 0; background: var(--ck-bg-white);
}
.promo-popup-head h3 { font-size: 15px; font-weight: 800; letter-spacing: 0.01em; margin: 0; color: var(--ck-text); text-transform: uppercase; }
.promo-popup-head button {
    border: none; background: var(--ck-bg); color: var(--ck-text-light); width: 26px; height: 26px;
    border-radius: 7px; cursor: pointer; font-size: 15px; line-height: 1;
}
.promo-popup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--ck-border); }
.promo-popup-row:last-child { border-bottom: none; }
.promo-popup-row .name { font-size: 13.5px; font-weight: 700; color: var(--ck-text); }
.promo-popup-row .promo-badge { font-size: 12px; margin-left: 4px; }

/* Sticky bottom bar */
.promo-sticky-bar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
    background: var(--ck-dark, #1a1a2e); color: #fff; align-items: center; justify-content: space-between;
    gap: 14px; padding: 12px 24px; box-shadow: 0 -4px 24px rgba(0,0,0,0.2); animation: slideUp 0.3s ease;
}
.promo-sticky-bar.show { display: flex; }
.promo-sticky-bar .msg { font-size: 13.5px; font-weight: 600; }
.promo-sticky-bar-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.promo-sticky-bar-actions .x { background: transparent; border: none; color: rgba(255,255,255,0.6); font-size: 18px; cursor: pointer; line-height: 1; }

/* Inline text alert */
.promo-inline-alert { background: #fff8ec; border: 1px solid #f6dfae; border-radius: var(--ck-radius-sm); padding: 14px 18px; display: flex; flex-direction: column; gap: 9px; }
.promo-inline-alert p { margin: 0; font-size: 13.5px; color: var(--ck-text); }
.promo-inline-alert a { color: var(--ck-primary); font-weight: 600; text-decoration: none; }
.promo-inline-alert a:hover { text-decoration: underline; }

/* In-flow "sidebar" quick-links card */
.promo-sidebar-card { background: var(--ck-bg-white); border: 1px solid var(--ck-border); border-radius: var(--ck-radius); overflow: hidden; box-shadow: var(--ck-shadow); }
.promo-sidebar-card h4 { margin: 0; padding: 14px 18px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ck-text-light); border-bottom: 1px solid var(--ck-border); }
.promo-sidebar-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--ck-border); text-decoration: none; color: inherit; }
.promo-sidebar-row:last-child { border-bottom: none; }
.promo-sidebar-row:hover { background: var(--ck-bg); }
.promo-sidebar-row .icon { width: 32px; height: 32px; border-radius: 8px; background: var(--ck-primary-light); display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; }
.promo-sidebar-row .label { font-size: 13.5px; font-weight: 600; color: var(--ck-text); }
.promo-sidebar-row .chev { margin-left: auto; color: var(--ck-text-muted); font-size: 15px; }

@media (max-width: 640px) {
    .promo-sticky-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .promo-sticky-bar-actions { width: 100%; justify-content: space-between; }
}
