/* general style */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: url('tommy2-2.png') no-repeat center center fixed;
    background-size: cover;
}

header {
    background: rgba(76, 175, 80, 0.66);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #d4d4d4;
}

/* section style */
.section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
    background: rgba(255, 255, 255, 0.33);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section h2 {
    margin-top: 0;
    color: #4CAF50;
}

.section p {
    margin: 0.5rem 0;
}

/* subject grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.subjects-item {
    background: rgba(76, 175, 79, 0.66);
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
}

.subjects-item a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.subjects-item:hover {
    transform: translateY(-5px);
    background: #45a049;
}

/* form style */
form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

form input, form textarea, form button {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form input, form textarea {
    width: 98.5%;
}

form button {
    background: rgba(76, 175, 79, 0.66);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: background-color 0.3s;
}

form button:hover {
    background: #45a049;
}

/* footer style */
footer {
    text-align: center;
    background: #333;
    color: #fff;
    padding: 1rem 0;
    margin-top: 1.5rem;
}
