/* style.css - Main Stylesheet */
:root {
    --primary-color: #003366; /* Deep University Blue */
    --secondary-color: #cc0000; /* Accent Red */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-color); background: var(--light-bg); }
a { text-decoration: none; color: var(--text-color); }
ul { list-style: none; }

/* Header & Nav */
header { background: var(--primary-color); color: var(--white); border-bottom: 5px solid var(--secondary-color); }
.container { width: 90%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo h1 { font-size: 1.8rem; text-transform: uppercase; letter-spacing: 1px; }
.logo span { font-size: 0.9rem; font-weight: normal; display: block; color: #ddd; }

nav { background: #002244; }
nav ul { display: flex; }
nav ul li { position: relative; }
nav ul li a { display: block; padding: 15px 20px; color: var(--white); font-weight: bold; transition: 0.3s; }
nav ul li a:hover, nav ul li a.active { background: var(--secondary-color); }

/* Hero Section */
.hero { background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), url('https://images.unsplash.com/photo-1571260899304-425eee4c7efc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); background-size: cover; background-position: center; height: 400px; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--white); }
.hero h2 { font-size: 2.5rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; }
.btn { display: inline-block; background: var(--secondary-color); color: var(--white); padding: 10px 20px; border-radius: 5px; transition: 0.3s; }
.btn:hover { background: #a00000; }

/* Main Content */
.section { padding: 40px 0; background: var(--white); margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.section h2 { color: var(--primary-color); border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; margin-bottom: 20px; display: inline-block; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* Course Cards */
.card { border: 1px solid #ddd; padding: 20px; border-radius: 5px; background: #fff; transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card h3 { color: var(--primary-color); margin-bottom: 10px; }
.card-badge { background: #eee; padding: 5px 10px; font-size: 0.8rem; border-radius: 3px; color: #555; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 5px; cursor: pointer; transition: 0.3s; }
.gallery-item img:hover { opacity: 0.8; }

/* Footer */
footer { background: var(--primary-color); color: var(--white); padding: 30px 0; text-align: center; margin-top: auto; }
footer p { margin-bottom: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; text-align: center; }
    nav ul { flex-direction: column; }
    nav ul li a { text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .grid-2 { grid-template-columns: 1fr; }
    .hero { height: 300px; }
}