/* ==========================================================================
   College Scholarships Manager - Full CSS (Organized & Updated 2026)
   Version: Fixed single profile not applying + better responsive structure
========================================================================== */

/* ────────────────────────────────────────────────
   GLOBAL / SHARED STYLES
───────────────────────────────────────────────── */
:root {
    --primary-blue: #003366;
    --accent-red: #B3171C;
    --link-blue: #333366;
    --text-dark: #222;
    --text-muted: #555;
    --border-light: #e0e0e0;
    --bg-light: #f9f9f9;
}

/* Reset & Container */
.scholarships-grid,
.profiles-grid-container,
.single-college-profile,
.single-scholarship-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

a:hover, a:active{
    color:white;
}

/* ────────────────────────────────────────────────
   COLLEGE SCHOLARSHIPS GRID (2-column desktop, 1 mobile)
───────────────────────────────────────────────── */

.scholarships-header {
    background: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    border-radius: 6px 6px 0 0;
}

.scholarships-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-top: none;
}

.scholarship-row {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    box-sizing: border-box;
}

.scholarship-row:nth-child(2n) {
    border-right: none;
}

.scholarship-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.scholarship-row h3 {
    color: var(--primary-blue);
    font-size: 1.35rem;
    margin: 0 0 8px;
    font-weight: bold;
}

.scholarship-funds {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 6px 0 10px;
}

.scholarship-deadline {
    font-size: 0.95rem;
    color: #444;
    text-transform: uppercase;
    font-weight: 600;
    margin: 4px 0 12px;
}

.scholarship-eligibility a {
    color: var(--link-blue);
    font-weight: bold;
    text-decoration: none;
}

.scholarship-eligibility a:after {
    content: " →";
    font-weight: bold;
}

/* ────────────────────────────────────────────────
   SINGLE SCHOLARSHIP PAGE
───────────────────────────────────────────────── */

.single-scholarship-container {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.single-main-content {
    flex: 3;
    min-width: 0;
}

.single-title {
    font-size: 2.4rem;
    color: var(--primary-blue);
    margin: 0 0 25px;
    font-weight: 700;
    line-height: 1.2;
}

.scholarship-meta-box {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    flex: 1;
    min-width: 200px;
}

.meta-label {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.meta-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.single-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.apply-button {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s;
}

.apply-button:hover {
    background: #8f1216;
}

.single-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    font-size: 1.05rem;
}

.single-navigation a {
    color: var(--link-blue);
    font-weight: 600;
    text-decoration: none;
}

.nav-prev:before { content: "◄ "; }
.nav-next:after  { content: " ►"; }

/* Sidebar - Recent Scholarships */
.single-sidebar {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 25px;
    align-self: start;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue);
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.recent-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-title {
    display: block;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 6px;
    text-decoration: none;
}

.recent-title:hover {
    text-decoration: underline;
}

.recent-meta {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-blue);
}

/* ────────────────────────────────────────────────
   COLLEGE PROFILES GRID
───────────────────────────────────────────────── */

.profiles-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.profiles-header {
    background: var(--accent-red);
    color: white;
    padding: 15px 20px;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    border-radius: 6px 6px 0 0;
}

.profiles-list {
    background: white;
    border: 1px solid #ddd;
    border-top: none;
}

.profile-row {
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between;
    align-content: center;
    padding: 20px 25px;
    border-bottom: 1px solid #ddd;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-item {
    flex: 1 1 50%;
    padding: 20px;
    box-sizing: border-box;
}
.profile-name{
    margin-top:0;
}

.profile-name a {
    color: var(--link-blue);
    font-size: 1.35rem;
    margin: 0 0 8px;
    font-weight: bold;
    text-decoration: none;
}

.profile-name a:hover {
    text-decoration: underline;
}

.profile-location {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.profile-students {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 10px;
}

.profile-tuition {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-red);
    margin-top: 12px;
}

.profile-right {
    text-align: right;
    padding-left: 20px;
}

.exam-scores-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-scores {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 16px;
}

.see-full-profile {
    color: var(--accent-red);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.05rem;
}

.see-full-profile:hover {
    text-decoration: underline;
}

/* ────────────────────────────────────────────────
   SINGLE COLLEGE PROFILE PAGE
───────────────────────────────────────────────── */

.single-college-profile {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Top Blue Bar */
.profile-top-bar {
    background: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 40px;
}

.breadcrumbs a,
.profile-nav a {
    color: #b3d4ff;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover,
.profile-nav a:hover {
    text-decoration: underline;
}

/* Main Layout */
.profile-main {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.profile-content {
    flex: 3;
    min-width: 0;
}

.profile-title {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin: 0 0 30px;
    font-weight: 700;
    line-height: 1.15;
}

.profile-image img.profile-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    margin-bottom: 35px;
}

.profile-description {
    font-size: 1.18rem;
    line-height: 1.9;
    color: #222;
}

/* Sidebar */
.profile-sidebar {
    flex: 1;
    min-width: 320px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    align-self: start;
}

.profile-actions .btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.btn.primary {
    background: var(--primary-blue);
    color: white;
}

.btn.primary:hover {
    background: #004080;
}

.btn.secondary {
    background: var(--accent-red);
    color: white;
}

.btn.secondary:hover {
    background: #9a1317;
}

/* Stats Bars */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 60px 0 80px;
}

.stat-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar {
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.stat-bar.blue    { background: #0066cc; color: white; }
.stat-bar.orange  { background: #ff6200; color: white; }
.stat-bar.yellow  { background: #ffcc00; color: #1a1a1a; }
.stat-bar.red     { background: var(--accent-red); color: white; }

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
}

/* Costs Section */
.costs-section {
    margin-top: 50px;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

.costs-section h3 {
    font-size: 1.7rem;
    color: var(--primary-blue);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.expand-icon {
    font-size: 2rem;
    color: var(--accent-red);
    cursor: pointer;
    font-weight: bold;
}

/* ────────────────────────────────────────────────
   RESPONSIVE RULES (Shared)
───────────────────────────────────────────────── */

@media (max-width: 992px) {
    .scholarships-list,
    .profiles-list .profile-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .scholarship-row,
    .profile-item {
        border-right: none !important;
        border-bottom: 1px solid #ddd;
    }

    .single-scholarship-container,
    .profile-main {
        flex-direction: column;
        gap: 30px;
    }

    .single-sidebar,
    .profile-sidebar {
        order: 2;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .scholarships-header,
    .profiles-header {
        font-size: 1.5rem;
    }

    .scholarship-funds,
    .profile-tuition {
        font-size: 1.5rem;
    }

    .scholarship-row,
    .profile-item {
        padding: 15px 20px;
    }

    .profile-title,
    .single-title {
        font-size: 2.2rem;
    }

    .profile-stats,
    .scholarship-meta-box {
        grid-template-columns: 1fr;
    }

    .stat-bar {
        height: 140px;
        padding: 15px;
    }

    .stat-value,
    .meta-value {
        font-size: 1.5rem;
    }

    .profile-top-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
}