/* Project: Shri Doshi College Portal 
    Version: 2.0 (Mobile Optimized + Hamburger Menu)
*/

:root {
    --primary: #03a1fc;
    --secondary: #03a1fc;
    --accent: #3498db;
    --success: #27ae60;
    --light: #f4f7f6;
    --white: #ffffff;
    --text: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* --- Global Container (Fixes "Too Wide" Issue) --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Navigation & Hamburger Menu --- */
nav {
    background: var(--primary);
    color: white;
    padding: 0px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hamburger Icon Styles */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* --- Hero & Section Headers --- */
header {
    text-align: center;
    padding: 0px 0;
}

h1 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* --- Notice Board (Blog Style) --- */
.notice-card {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.notice-text {
    flex: 2;
}

.notice-img {
    flex: 1;
}

.notice-img img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #ddd;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-download {
    background: var(--success);
    margin-top: 15px;
}

/* --- Forms & Tables --- */
input,
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

th,
td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background: var(--primary);
    color: white;
}

/* --- Footer --- */
footer {
    background: #FFFDF5;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}
footer p{
    color: black;
}
/* --- MOBILE RESPONSIVE (Hamburger Logic) --- */
@media (max-width: 850px) {
    .menu-icon {
        display: flex;
        /* Show hamburger on mobile */
    }

    .nav-links {
        display: none;
        /* Hide links by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        padding: 20px;
        text-align: center;
        border-top: 1px solid #34495e;
    }

    .nav-links.active {
        display: flex;
        /* Show when toggled */
    }

    .nav-links a {
        margin: 12px 0;
        font-size: 1.1rem;
    }

    .notice-card {
        flex-direction: column;
        /* Stacks text and image on mobile */
    }

    .notice-img {
        width: 100%;
        order: -1;
        /* Image moves to top */
    }
}
