﻿/* ==================================================
   BALOB TEACHERS COLLEGE RESPONSIVE STYLESHEET
   File: responsive.css
   ================================================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f4f4f4;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

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

/* LINKS */
a {
    text-decoration: none;
}

/* HEADER */
header {
    width: 100%;
    background: #003366;
    color: white;
    padding: 15px;
}

/* LOGO */
.logo {
    max-width: 120px;
    height: auto;
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #003366;
}

    .navbar ul {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
    }

        .navbar ul li {
            position: relative;
        }

            .navbar ul li a {
                display: block;
                color: white;
                padding: 15px 20px;
            }

                .navbar ul li a:hover {
                    background: #0055aa;
                }

            /* DROPDOWN MENU */
            .navbar ul li ul {
                display: none;
                position: absolute;
                background: #003366;
                min-width: 220px;
                z-index: 999;
            }

            .navbar ul li:hover ul {
                display: block;
            }

            .navbar ul li ul li {
                width: 100%;
            }

/* CONTENT */
.content {
    padding: 20px;
}

/* CARDS */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* FLEX ROW */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.column {
    flex: 1;
    min-width: 250px;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

    table th,
    table td {
        border: 1px solid #ddd;
        padding: 10px;
    }

    table th {
        background: #003366;
        color: white;
    }

/* FORMS */
input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
}

button {
    padding: 10px 20px;
    border: none;
    background: #003366;
    color: white;
    cursor: pointer;
}

    button:hover {
        background: #0055aa;
    }

/* FOOTER */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* MOBILE MENU BUTTON */
.menu-toggle {
    display: none;
    background: #003366;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* MOBILE RESPONSIVENESS */
@media screen and (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

        .navbar ul {
            display: none;
            flex-direction: column;
            width: 100%;
        }

            .navbar ul.active {
                display: flex;
            }

            .navbar ul li {
                width: 100%;
            }

                .navbar ul li a {
                    width: 100%;
                    border-top: 1px solid rgba(255,255,255,0.2);
                }

                .navbar ul li ul {
                    position: static;
                    width: 100%;
                }

                .navbar ul li:hover ul {
                    display: block;
                }

    .row {
        flex-direction: column;
    }

    .column {
        width: 100%;
    }

    .content {
        padding: 10px;
    }

    table {
        font-size: 14px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

/* SMALL PHONES */
@media screen and (max-width: 480px) {

    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    button {
        width: 100%;
    }

    input,
    select,
    textarea {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }
}
