/* ============================================================
   College.aspx.css  --  LNMU College Portal
   Imports shared palette from Home.aspx.css via cascade.
   Defines only College-page-specific rules here.
============================================================ */

/*  Shared font/palette tokens (mirror of Home.aspx.css)  */
:root {
    --primary:   #434E78;
    --secondary: #607B8F;
    --accent-y:  #F7E396;
    --accent-o:  #E97F4A;
    --bg:        #f5f7fb;
    --card:      #ffffff;
    --text-dark: #1e2740;
    --text-mid:  #4a5568;
    --radius-lg: 16px;
    --shadow-md: 0 8px 25px rgba(0,0,0,.10);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.14);
    --transition: all .32s cubic-bezier(.4,0,.2,1);
    --font-display: 'Playfair Display', serif;
    --font-body:    'DM Sans', sans-serif;
}

/* ============================================================
   MINI HERO SECTION
============================================================ */
.college-hero {
    background: #105080;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 56px;
}

/* Decorative dots */
.ch-deco { position: absolute; pointer-events: none; }

.ch-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(247,227,150,.3) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    border-radius: 50%;
}
.ch-dots--tl { top: 16px; left: 18px; }
.ch-dots--tr { top: 16px; right: 18px; }

/* Floating shapes */
.ch-shape { border-radius: 50%; }

.ch-ring-gold {
    width: 48px; height: 48px;
    border: 8px solid var(--accent-y);
    opacity: .8;
}
.ch-ring-sm {
    width: 28px; height: 28px;
    border: 5px solid var(--accent-y);
    opacity: .55;
}
.ch-disc-o {
    width: 62px; height: 62px;
    background: var(--accent-o);
    opacity: .75;
}
.ch-ring-o {
    width: 50px; height: 50px;
    border: 6px solid var(--accent-o);
    opacity: .65;
}
.ch-disc-dark {
    width: 42px; height: 42px;
    background: #2d3557;
    border: 4px solid var(--accent-o);
    opacity: .85;
}

@keyframes chFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.ch-float { animation: chFloat 4s ease-in-out infinite; }

/* Hero text */
.ch-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
}

.ch-breadcrumb {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.ch-breadcrumb a {
    color: var(--accent-y);
    font-weight: 600;
    transition: var(--transition);
}
.ch-breadcrumb a:hover { color: #fff; }

.ch-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.ch-hero-sub {
    font-size: .95rem;
    color: rgba(255,255,255,.72);
    font-weight: 400;
    margin-bottom: 28px;
}

/* Stats row */
.ch-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ch-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ch-stat-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-y);
    line-height: 1;
}

.ch-stat-label {
    font-size: .7rem;
    color: rgba(255,255,255,.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: 3px;
}

.ch-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.2);
}

/* ============================================================
   SEARCH SECTION
============================================================ */
.search-section {
    background: var(--card);
    padding: 30px 24px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(67,78,120,.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-wrap {
    max-width: 660px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    padding: 6px 6px 6px 22px;
    border: 1.5px solid #dde2f0;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: var(--transition);
    margin-bottom: 14px;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 5px 24px rgba(67,78,120,.18);
}

.search-icon {
    color: var(--secondary);
    font-size: .95rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--text-dark);
    background: transparent;
    padding: 8px 0;
}

.search-input::placeholder { color: #aab0c4; }

.search-btn {
    background: var(--accent-o);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #d46a37;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(233,127,74,.35);
}

/* Filter chips */
.search-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #dde2f0;
    color: var(--text-mid);
    transition: var(--transition);
    user-select: none;
    background: #fff;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* Results count */
.results-count {
    text-align: center;
    font-size: .78rem;
    color: var(--text-mid);
    margin: 10px 0 0;
    font-weight: 500;
}

.results-count span {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================
   COLLEGES SECTION WRAPPER
============================================================ */
.colleges-section {
    padding: 50px 0 80px;
    background: var(--bg);
}

/* ============================================================
   COLLEGE CARD
============================================================ */
.college-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 15px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.college-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(67,78,120,.03));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.college-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent-o);
}

.college-card:hover::before { opacity: 1; }

/* Image wrapper */
.college-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.college-img-wrap img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform .45s ease;
}

.college-card:hover .college-img-wrap img {
    transform: scale(1.06);
}

/* Overlay arrow on hover */
.college-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(67,78,120,.65) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 12px;
    opacity: 0;
    transition: var(--transition);
    border-radius: 12px;
}

.college-img-overlay i {
    background: var(--accent-o);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
}

.college-card:hover .college-img-overlay { opacity: 1; }



.college-type-badge.arts    { background: var(--secondary); }
.college-type-badge.law     { background: #6b4c8f; }
.college-type-badge.medical { background: #3a7d6e; }
.college-type-badge.commerce{ background: #c0783a; }

/* Card body */
.college-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 14px;
    flex: 1;
    gap: 6px;
}

.college-name {
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 0;
    line-height: 1.35;
}

.college-location {
    font-size: .75rem;
    color: var(--text-mid);
    margin: 0;
    font-weight: 500;
}

.college-location i { color: var(--accent-o); }

/* Continue button */
.continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-o);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(233,127,74,.25);
}

.continue-btn:hover {
    background: #d46a37;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233,127,74,.38);
    color: #fff;
}

/* ============================================================
   NO RESULTS STATE
============================================================ */
.no-results {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-mid);
}

.no-results i {
    font-size: 3rem;
    color: #cdd2e6;
    margin-bottom: 16px;
    display: block;
}

.no-results h4 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 8px;
}

.no-results p { font-size: .9rem; }

/* ============================================================
   SCROLL FADE-UP  (mirrors Home.aspx)
============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden card state */
.college-col.hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    .college-hero { min-height: 180px; padding: 36px 16px 44px; }
    .ch-hero-title { font-size: 1.8rem; }
    .ch-hero-stats { gap: 14px; }
    .search-section { padding: 20px 16px 14px; position: static; }
    .search-btn span { display: none; }
    .colleges-section { padding: 36px 0 60px; }
}

@media (max-width: 480px) {
    .ch-hero-title { font-size: 1.55rem; }
    .search-box { padding: 5px 5px 5px 16px; }
    .search-chips { gap: 6px; }
    .chip { font-size: .7rem; padding: 4px 10px; }
}
