/* ApnaIndia MBBS Website Styles */

:root {
    --primary-color: #0a2342;
    --primary-dark: #071a31;
    --secondary-color: #6c757d;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Navigation */
.navbar {
    padding: 1rem 0;
}

.logo-square {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.logo-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.search-box-top {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-top input {
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.9rem;
    width: 250px;
}

.search-box-top i {
    position: absolute;
    left: 12px;
    color: var(--text-light);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?w=1920');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-banner .container {
    z-index: 1;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-banner .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-search-box {
    max-width: 800px;
    margin: 0 auto;
}

.hero-search-box .input-group {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.hero-search-box .form-control,
.hero-search-box .form-select {
    border: none;
    padding: 1rem 1.5rem;
}

.hero-search-box .btn-danger {
    padding: 1rem 2rem;
    font-weight: 600;
}

.hero-cta-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Quick Links Section */
.quick-links-section {
    border-bottom: 1px solid var(--border-color);
}

.quick-link-card {
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    color: var(--text-dark);
}

.quick-link-card:hover {
    background: var(--light-bg);
    transform: translateY(-5px);
    color: var(--primary-color);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.quick-link-card:hover .quick-link-icon {
    background: var(--primary-color);
    color: var(--white);
}

.quick-link-card h6 {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Top Cities Section */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.city-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.city-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.city-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.city-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Categories Section */
.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.category-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Top Colleges Section */
.college-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    height: 100%;
}

.college-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.college-logo {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.college-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.rating-badge {
    background: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Top Exams Section */
.exam-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.exam-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.exam-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.exam-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Quick Look Section */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 1rem 2rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background: transparent;
}

.course-link-item {
    display: block;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
}

.course-link-item:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.newsletter-section h2 {
    font-size: 2rem;
    font-weight: 700;
}

.newsletter-form .form-control,
.newsletter-form .form-select {
    border-radius: 8px;
    border: none;
}

.newsletter-form .btn-danger {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.newsletter-form .btn-danger:hover {
    background: var(--light-bg);
}

/* Footer */
.footer-section {
    background: var(--dark-bg) !important;
}

.footer-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-search-box {
        margin: 0 1rem;
    }
    
    .search-box-top input {
        width: 150px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Call to Action Cards (Bottom of Hero) */
.cta-cards-section {
    padding: 3rem 0;
    background: var(--white);
}

.cta-card {
    border-radius: 12px;
    padding: 2rem;
    color: var(--white);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-card-red {
    background: linear-gradient(135deg, #0a2342, #071a31);
}

.cta-card-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.cta-card-green {
    background: linear-gradient(135deg, #28a745, #218838);
}

.cta-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}


/* Progressive Education Point brand (legacy layout pages) */
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
h1, h2, h3, .brand-text { font-family: 'Playfair Display', Georgia, serif; }
.pep-nav-logo { width: 46px; height: 46px; border-radius: 50%; background: #fff; object-fit: contain; }
.logo-square { background: #0a2342; }
.logo-square .logo-text { color: #d9ae66; }
