/*
 * BestColleges Professional Theme Styles
 * Replicating the exact look and feel of BestColleges.com
 */

/* CSS Variables for BestColleges Color Scheme */
:root {
    --bc-red: #E53E3E;
    --bc-blue: #4299E1;
    --bc-orange: #ED8936;
    --bc-purple: #9F7AEA;
    --bc-teal: #38B2AC;
    --bc-pink: #ED64A6;
    --bc-navy: #2D3748;
    --bc-gray-50: #F7FAFC;
    --bc-gray-100: #EDF2F7;
    --bc-gray-200: #E2E8F0;
    --bc-gray-300: #CBD5E0;
    --bc-gray-600: #718096;
    --bc-gray-700: #4A5568;
    --bc-gray-800: #2D3748;
    --bc-gray-900: #1A202C;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--bc-navy);
    margin: 0;
    padding: 0;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bc-red) 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Styles - BestColleges Tabs */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
}

/* Colored Navigation Tabs */
.nav-menu li:nth-child(1) a { background: var(--bc-blue); }
.nav-menu li:nth-child(2) a { background: var(--bc-orange); }
.nav-menu li:nth-child(3) a { background: var(--bc-purple); }
.nav-menu li:nth-child(4) a { background: var(--bc-teal); }
.nav-menu li:nth-child(5) a { background: var(--bc-pink); }

.nav-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Search Programs Button */
.search-programs-btn {
    background: var(--bc-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.search-programs-btn:hover {
    background: #C53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bc-gray-50) 0%, #fff 100%);
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bc-red);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    color: var(--bc-gray-700);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust Signals Section */
.trust-signals {
    background: var(--bc-navy);
    color: white;
    padding: 3rem 0;
    margin: 3rem 0;
}

.trust-signals h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.trust-signals .subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--bc-gray-300);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--bc-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bc-red);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--bc-gray-300);
    margin-top: 0.5rem;
}

/* Featured Content Grid */
.featured-content {
    margin: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bc-navy);
    margin-bottom: 2rem;
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.hero-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
}

.hero-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-card-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Editor's Picks */
.editors-picks {
    background: var(--bc-gray-50);
    padding: 1.5rem;
    border-radius: 12px;
}

.editors-picks h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bc-navy);
    margin-bottom: 1rem;
}

.pick-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.pick-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: var(--bc-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.pick-image {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.pick-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pick-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--bc-navy);
}

.pick-content .category {
    font-size: 0.8rem;
    color: var(--bc-gray-600);
    background: var(--bc-gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* News Section */
.news-section {
    margin: 3rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bc-navy);
}

.news-card-date {
    font-size: 0.9rem;
    color: var(--bc-gray-600);
}

.news-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.category-academic { background: var(--bc-blue); }
.category-news { background: var(--bc-red); }
.category-career { background: var(--bc-purple); }
.category-financial { background: var(--bc-orange); }

/* QDF Widget Styling */
.mobius-qdf-wrapper {
    background: white;
    border: 2px solid var(--bc-gray-200);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mobius-qdf-wrapper h3 {
    color: var(--bc-navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

/* Editorial Links Styling */
.mobius-el-wrapper {
    background: var(--bc-gray-50);
    border-left: 4px solid var(--bc-red);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Sidebar Styling */
.sidebar {
    background: var(--bc-gray-50);
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bc-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bc-red);
}

/* Footer */
.site-footer {
    background: var(--bc-gray-900);
    color: var(--bc-gray-300);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-red { color: var(--bc-red); }
.bg-red { background: var(--bc-red); }
.font-bold { font-weight: 700; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
