/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000; /* fully black page background */
    color: #f5f5f5;
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 0;
    background-color: #000000; /* fully black nav */
}

nav a {
    text-decoration: none;
    color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    background-color: #111111; /* slightly lighter on hover */
}

/* Main section with background image (PNG) */
main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 20px;
    text-align: center;
    min-height: 80vh;
    background-color: #000000;   
    background-image: url('../images/background.png'); /* PNG image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; 
    color: #ffffff;
}

/* Remove overlay for fully black behind text */
main::before {
    display: none;
}

main * {
    position: relative;
    z-index: 1;
}

main h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

main p {
    font-size: 1.3em;
    max-width: 700px;
    margin-bottom: 40px;
}

/* Sections below main */
section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 60px auto 40px auto; /* 60px gap from main */
    text-align: center;
    background-color: #000000;       /* fully black background */
    border-radius: 8px;
    color: #ffffff;
}

/* Cyan outline for "What Our Members Say" section */
section:nth-of-type(1) {
    border: 2px solid #00ffff;
}

/* Section headers */
section h2 {
    font-size: 2em;
    margin-bottom: 25px;
}

/* Member quotes styling */
section p {
    font-size: 1.1em;
    margin: 10px 0;
    background-color: #000000;       /* fully black behind each quote */
    padding: 15px;
    border-left: 4px solid #00ffff;  /* cyan accent line for quotes */
    border-radius: 6px;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #00ffff, #00bcd4); /* cyan gradient */
    color: #fff;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 12px;
    font-size: 1em;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #000000; /* fully black footer */
    margin-top: 50px;
    font-size: 0.9em;
    color: #bbb;
}

# Department Page

/* Department Cards only for Departments page */
.departments-page .department-card {
    display: flex;
    flex-direction: row;
    background-color: #000000;
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 20px;
    margin: 20px -50px;
    align-items: center;
    gap: 20px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.departments-page .department-card img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.departments-page .dept-info {
    max-width: 900px;
}

/* Responsive for Mobile */
@media (max-width: 900px) {
    .departments-page .department-card {
        flex-direction: column;
        margin: 20px 0;
    }

    .departments-page .department-card img {
        max-width: 100%;
        aspect-ratio: auto;
    }

    .departments-page .dept-info {
        max-width: 100%;
        margin-top: 15px;
    }
}

# Punishments Page
/* Punishments Page */
.punishments-page {
    padding: 60px 20px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
}

main h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #00ffff; /* cyan title */
}

main p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 0 auto 50px auto;
    padding: 20px;
    border: 2px solid cyan;
    border-radius: 12px;
    background: #0d1117;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

#searchBar {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: #000;
    color: white;
    font-size: 16px;
    outline: none;
}

#searchBar::placeholder {
    color: #aaa;
}

/* Grid Layout */
.punishment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Individual Cards */
.punishment-card {
    width: 100%;
    max-width: 300px;
    padding: 20px;
    border-radius: 10px;
    color: #ffffff;
    text-align: left;
    font-weight: 500;
}

/* Card Colors by Severity */
.punishment-card.warning {
    background: linear-gradient(135deg, #7e6603, #ffcc00);
}

.punishment-card.severe {
    background: linear-gradient(135deg, #7e0303, #ff0000);
}

.punishment-card.warning-severe {
    background: linear-gradient(135deg, #7e2f03, #ff5c00);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .punishment-grid {
        grid-template-columns: 1fr;
    }
}