:root {
    --primary-color: #088395;
    --secondary-accent: #056674;
    --text-dark: #1a1a1a;
    --text-muted: #636e72;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --footer-bg: #2d3436;
    --card-hover: #f0f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafa;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling */
header {
    background-color: var(--primary-color);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 1001; /* Stay above menu */
}

/* Nav Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: 0.3s;
    border-radius: 5px;
}

nav a:hover { background-color: rgba(255, 255, 255, 0.2); }

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Description Section */
.hero-description {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.about-card {
    background: #ffffff;
    border-left: 6px solid var(--primary-color);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.about-card h2 { color: var(--primary-color); margin-bottom: 15px; }
.about-card p { line-height: 1.8; color: #444; margin-bottom: 15px; }

/* Main Portal Area */
main {
    flex: 1;
    background-color: var(--bg-white);
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}

.portal-header { text-align: center; margin-bottom: 50px; }
.portal-header h1 { color: var(--primary-color); font-size: 2.2rem; }

.section-main-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-main-title::before {
    content: ''; width: 15px; height: 15px; background: var(--primary-color); border-radius: 50%;
}

.compulsory-section { background-color: #fdfdfd; border: 2px solid #eee; padding: 30px; border-radius: 12px; margin-bottom: 50px; }
.compulsory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.subject-btn {
    display: block; text-decoration: none; background: #fff; border: 1px solid #e0e0e0;
    padding: 18px 25px; border-radius: 8px; color: var(--text-dark); transition: 0.3s;
}

.compulsory-btn { border-left: 5px solid var(--primary-color); font-weight: 600; }
.subject-btn:hover { background-color: var(--card-hover); transform: translateY(-4px); border-color: var(--primary-color); }

.group-title { font-size: 1.1rem; font-weight: 600; color: var(--secondary-accent); border-bottom: 1px solid #eee; padding-bottom: 10px; margin: 40px 0 20px; display: flex; justify-content: space-between; }
.optional-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }

footer { background-color: var(--footer-bg); color: var(--text-light); text-align: center; padding: 40px; margin-top: auto; }

/* MOBILE RESPONSIVE JAVASCRIPT LOGIC CSS */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    nav ul {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex; /* Shown when JS toggles 'active' class */
    }

    main { padding: 25px; margin: 15px; }
    .compulsory-grid, .optional-grid { grid-template-columns: 1fr; }
}