/* 
    Prit Shiksha - Modern Education Portal CSS
    Color Palette: Blue and White
*/

:root {
    --primary-blue: #0046ad;
    --secondary-blue: #0056d2;
    --light-blue: #e6f0ff;
    --dark-blue: #003380;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-dark: #343a40;
    --accent: #00c2ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background-color: var(--white);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Nav */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-cta {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-cta:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--primary-blue);
    background: linear-gradient(to right, var(--primary-blue), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: #556;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--light-blue);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* University Section */
.universities {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
}

.university-logo {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.university-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-blue);
}

.university-logo h3 {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

/* Stats */
.stats {
    background: var(--primary-blue);
    padding: 60px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    .hero-btns {
        justify-content: center;
    }
    .universities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .universities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Program & University Details */
.prog-detail-hero, .uni-detail-hero {
    padding: 180px 0 100px;
    background: var(--primary-blue); /* Fallback */
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white) !important;
    position: relative;
    overflow: hidden;
}

.prog-detail-hero::before, .uni-detail-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.prog-header h1, .univ-info h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: inherit;
}

.prog-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.prog-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: -60px auto 100px;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.detail-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.detail-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.sidebar-box h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    font-size: 1.4rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--gray-dark);
}

.info-val {
    color: #666;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
}

/* Custom Modal / Dialog */
.modal {
    display: none !important;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 70, 173, 0.4);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

.modal-content h2 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 2rem;
}

.modal-close {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--dark-blue);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
