/* ---
Modern University Style CSS
Inspired by American University Websites
--- */

/* 1. Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;700&display=swap');

/* 2. CSS Variables (Root) */
:root {
    /* Colors */
    --primary-color: #003366; /* Classic University Blue */
    --secondary-color: #007BFF; /* A brighter blue for accents */
    --accent-color: #FFC107; /* Gold/Yellow for highlights */
    --surface-color: #F8F9FA; /* Light grey for backgrounds */
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --border-color: #DEE2E6;
    --white: #FFFFFF;
    --success-color: #28a745;
    --error-color: #dc3545;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

/* 3. General & Reset Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* 4. Top Info Bar */
.top-info-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
}

.top-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info-left {
    display: flex;
    gap: var(--space-xl);
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--white);
    text-decoration: none;
}

.top-info-item:hover {
    color: var(--accent-color);
}

.top-info-item i {
    color: var(--accent-color);
}

.top-social-links {
    display: flex;
    gap: var(--space-sm);
}

.top-social-links a {
    color: var(--white);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.top-social-links a:hover {
    color: var(--accent-color);
}

/* 5. Navigation Bar */
.navbar {
    background-color: var(--white);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo .logo-img {
    height: 40px;
    margin-right: var(--space-md);
}

.nav-logo h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--space-sm) 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* 5. Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 63, 0.6); /* Dark blue overlay */
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.hero-buttons .btn {
    margin: 0 var(--space-sm);
}

/* 6. Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

/* 7. Card & Grid Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
}

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

.card h3 {
    margin-bottom: var(--space-md);
}

.program-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--space-md);
}

/* Unified Image Sizes for Campus Life and News Sections */
.campus-gallery .card img,
.news-events .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

/* 8. Section Styles */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.program-section, .featured-programs, .campus-gallery, .news-events {
    padding: var(--space-2xl) 0;
}

/* 9. Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: var(--space-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-section h3, .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section:first-child h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
}

.footer-section h3, .footer-section h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: var(--space-lg);
    word-wrap: break-word;
    hyphens: auto;
}

.footer-section:first-child h3 {
    font-size: 1.2rem;
    line-height: 1.4;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: none;
}

.social-links {
    margin-top: var(--space-md);
}

.social-links a {
    display: inline-block;
    margin-right: var(--space-md);
    font-size: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: var(--space-lg) 0;
}

/* 10. Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 11. Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: none; /* Hidden by default */
    z-index: 999;
    transition: opacity 0.3s, visibility 0.3s;
}

.scroll-to-top:hover {
    background-color: var(--primary-color);
}

/* 12. Responsive Design */
@media (max-width: 992px) {
    .top-info-left {
        gap: var(--space-md);
    }
    
    .top-info-item {
        font-size: 0.8rem;
    }
    
    .top-social-links a {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .top-info-container {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }
    
    .top-info-left {
        gap: var(--space-sm);
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 75px; /* Adjust to navbar height */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: var(--space-lg);
        padding: var(--space-xl) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
} 