:root {
    --primary-color: #003366;
    --secondary-color: #f0f8ff;
    --accent-color: #007bff;
    --text-color: #333;
    --bg-white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; background-color: var(--secondary-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.py-5 { padding: 50px 0; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 40px; }

/* Header & Nav */
header { background: var(--bg-white); box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 60px; margin-right: 15px; }
.college-name h1 { font-size: 1.2rem; color: var(--primary-color); margin: 0; }
.college-name p { font-size: 0.8rem; color: #666; margin: 0; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--primary-color); font-weight: 600; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

/* Hero Section */
.hero { background: linear-gradient(rgba(0,51,102,0.7), rgba(0,51,102,0.7)), url('https://images.unsplash.com/photo-1541339907198-e08756ebafe3?auto=format&fit=crop&w=1350&q=80'); background-size: cover; background-position: center; height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero-content h1 { font-size: 3rem; margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 20px; }

/* Grid Layouts */
.quick-links, .course-grid, .faculty-grid, .gallery-grid, .contact-grid, .dept-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.quick-links { margin-top: -50px; margin-bottom: 50px; }

.card { background: white; padding: 30px; border-radius: 10px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.card i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.card h3 { margin-bottom: 10px; color: var(--primary-color); }
.card a { display: inline-block; margin-top: 15px; color: var(--accent-color); text-decoration: none; font-weight: bold; }

.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; }

/* Forms */
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
.btn { display: inline-block; padding: 10px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; margin: 5px; cursor: pointer; border: none; }
.btn-primary { background: var(--accent-color); color: white; }
.btn-secondary { background: transparent; color: white; border: 2px solid white; }

/* Footer */
footer { background: var(--primary-color); color: white; padding: 40px 0 20px; margin-top: 50px; }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-copy { margin-top: 30px; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; width: 100%; }

/* Mobile Nav */
.burger { cursor: pointer; display: none; }
.burger div { width: 25px; height: 3px; background-color: var(--primary-color); margin: 5px; transition: all 0.3s ease; }

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 80px; right: 0; background: white; width: 100%; text-align: center; box-shadow: 0 5px 10px rgba(0,0,0,0.1); padding: 20px 0; }
    .nav-links.nav-active { display: flex; }
    .nav-links li { margin: 10px 0; }
    .burger { display: block; }
    .hero-content h1 { font-size: 2rem; }
}
