/* College Admin Platform Guide */

.cah-page .cah-hero {
    position: relative;
    padding: 7.5rem 0 3rem;
    background: linear-gradient(145deg, #042f2e 0%, #0f766e 45%, #134e4a 100%);
    color: #fff;
    overflow: hidden;
}

.help-student-portal-page.cah-page .cah-hero,
.help-student-portal-hero {
    background: linear-gradient(145deg, #1e1b4b 0%, #4338ca 45%, #6366f1 100%);
}

.help-student-portal-page.cah-page .cah-hero::before {
    background: radial-gradient(ellipse 50% 40% at 80% 20%, rgba(165, 180, 252, 0.22) 0%, transparent 55%);
}

.help-student-portal-page .cah-hero-meta i {
    color: #a5b4fc;
}

.help-student-portal-page .help-hero-badge {
    background: rgba(165, 180, 252, 0.2);
    border: 1px solid rgba(165, 180, 252, 0.35);
    color: #c7d2fe;
}

.help-student-portal-cta {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #6366f1 100%);
}

.help-student-portal-page .cah-sidebar-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
}

.help-student-portal-page .cah-sidebar-num {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.help-student-portal-page .cah-sidebar-back {
    color: #4338ca;
}

.help-student-portal-page .cah-section-head {
    border-bottom-color: rgba(99, 102, 241, 0.15);
}

.help-student-portal-page .cah-section-icon {
    background: linear-gradient(135deg, #4338ca, #6366f1);
}

.help-student-portal-page .cah-section-num {
    color: #4338ca;
}

.help-student-portal-page .cah-feature-list i {
    color: #6366f1;
}

/* Recruiter portal guide — pink theme matching help-hub-recruiters */
.help-recruiter-portal-page.cah-page .cah-hero,
.help-recruiter-portal-hero {
    background: linear-gradient(145deg, #1a0a2e 0%, #831843 45%, #be185d 100%);
}

.help-recruiter-portal-page.cah-page .cah-hero::before {
    background: radial-gradient(ellipse 50% 40% at 80% 20%, rgba(236, 72, 153, 0.22) 0%, transparent 55%);
}

.help-recruiter-portal-page .cah-hero-meta i {
    color: #fbcfe8;
}

.help-recruiter-portal-page .help-hero-badge {
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #fbcfe8;
}

.help-recruiter-portal-cta {
    background: linear-gradient(135deg, #1a0a2e 0%, #831843 50%, #be185d 100%);
}

.help-recruiter-portal-page .cah-sidebar-link:hover {
    background: rgba(219, 39, 119, 0.08);
    color: #be185d;
}

.help-recruiter-portal-page .cah-sidebar-num {
    background: rgba(219, 39, 119, 0.12);
    color: #be185d;
}

.help-recruiter-portal-page .cah-sidebar-back {
    color: #be185d;
}

.help-recruiter-portal-page .cah-section-head {
    border-bottom-color: rgba(219, 39, 119, 0.15);
}

.help-recruiter-portal-page .cah-section-icon {
    background: linear-gradient(135deg, #be185d, #db2777);
}

.help-recruiter-portal-page .cah-section-num {
    color: #be185d;
}

.help-recruiter-portal-page .cah-feature-list i {
    color: #db2777;
}

.cah-page .cah-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 80% 20%, rgba(45, 212, 191, 0.2) 0%, transparent 55%);
    pointer-events: none;
}

.cah-page .cah-hero .hp-container {
    position: relative;
    z-index: 1;
}

.cah-back-link {
    display: inline-flex;
    margin-bottom: 1.25rem;
}

.cah-page .cah-hero h1 {
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 800;
    margin-bottom: 1rem;
    max-width: 720px;
}

.cah-page .cah-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.cah-page .help-hero-badge {
    background: rgba(45, 212, 191, 0.18);
    border-color: rgba(94, 234, 212, 0.35);
    color: #99f6e4;
}

.cah-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.cah-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cah-hero-meta i {
    color: #5eead4;
}

/* Sidebar + main layout */
.cah-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0;
    align-items: start;
    background: #f8fafc;
}

.cah-sidebar {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    background: #fff;
}

.cah-sidebar-inner {
    padding: 1.5rem 1rem 2rem;
}

.cah-sidebar-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.cah-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cah-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cah-sidebar-link:hover {
    background: rgba(13, 148, 136, 0.08);
    color: #0d9488;
}

.cah-sidebar-num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cah-sidebar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0d9488;
    text-decoration: none;
}

.cah-main {
    padding: 2.5rem 2rem 4rem;
    max-width: none;
}

/* Sections */
.cah-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 80px;
}

.cah-section:last-child {
    margin-bottom: 0;
}

.cah-section-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(13, 148, 136, 0.15);
}

.cah-section-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d9488, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cah-section-num {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0d9488;
    margin-bottom: 0.25rem;
}

.cah-section-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.cah-section-head p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
}

/* Feature rows: text + demo */
.cah-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    scroll-margin-top: 88px;
}

.cah-feature-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.cah-feature-text > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.cah-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cah-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    line-height: 1.45;
}

.cah-feature-list i {
    color: #0d9488;
    margin-top: 0.2rem;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* Demo media panel */
.cah-demo {
    height: 100%;
    min-height: 200px;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #334155;
}

.cah-demo-media {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: contain;
    display: block;
    background: #0f172a;
}

.cah-demo-placeholder {
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.55);
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px dashed rgba(94, 234, 212, 0.25);
    border-radius: 14px;
}

.cah-demo-placeholder i {
    font-size: 2rem;
    color: rgba(94, 234, 212, 0.45);
    margin-bottom: 0.65rem;
}

.cah-demo-placeholder span {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.cah-demo-placeholder small {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    line-height: 1.45;
    max-width: 220px;
}

@media (max-width: 1100px) {
    .cah-layout {
        grid-template-columns: 1fr;
    }

    .cah-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .cah-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cah-feature {
        grid-template-columns: 1fr;
    }

    .cah-demo {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .cah-main {
        padding: 1.5rem 1rem 3rem;
    }

    .cah-section-head {
        flex-direction: column;
    }
}

/* Admin GIF manager (admin/college-help-gifs.php) */
.cah-admin-section {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.cah-admin-section-head {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

.cah-admin-feature-row {
    display: grid;
    grid-template-columns: 1fr 200px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.cah-admin-feature-row:last-child {
    border-bottom: none;
}

.cah-admin-feature-row h4 {
    font-size: 0.9rem;
    margin: 0 0 0.2rem;
}

.cah-admin-feature-row p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

.cah-admin-thumb {
    width: 200px;
    height: 112px;
    border-radius: 8px;
    object-fit: cover;
    background: #0f172a;
    border: 1px solid var(--border-color);
}

.cah-admin-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cah-admin-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cah-admin-upload-status {
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.cah-admin-upload-status.ok { color: #059669; }
.cah-admin-upload-status.err { color: #dc2626; }

@media (max-width: 992px) {
    .cah-admin-feature-row {
        grid-template-columns: 1fr;
    }
}
