/* --- Global Styles --- */
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    background:url("../images/background.webp");
}

/* --- Page Wrapper (5% margins on each side) --- */
.wrapper {
    width: 90%;           /* 100% - 5% left - 5% right */
    margin: 0 auto;       /* center horizontally */
    box-sizing: border-box;
}

/* --- Banner / Header --- */
header img, .top-banner {
    display: block;
    width: 100%;          /* fills wrapper width */
    margin: 2rem 0 1rem 0;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* --- Navigation Bar --- */
nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    background: #0868a8;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

nav a {
    display: block;
    text-align: center;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

nav a:hover {
    background: #065a92;
    transform: translateY(-2px);
}

/* Register / Login standout */
nav a.register {
    background: #f5c542;
    color: #222;
}
nav a.register:hover {
    background: #e0b634;
}
nav a.login {
    background: #4caf50;
    color: white;
}
nav a.login:hover {
    background: #3e9140;
}

/* --- Sections / Content --- */
section {
    width: 100%;          /* fills wrapper width */
    margin: 0 auto 2rem auto;
    padding: 0;
    box-sizing: border-box;
}

/* --- Content Cards --- */
.borders, .table-borders, table.login {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* --- Headings & Text --- */
h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #0868a8;
    text-align: center;
}

p {
    margin: 1rem 0;
    font-size: 1rem;
    text-align: left; /* body text left-aligned for readability */
}

/* --- Buttons --- */
button, .goldenbutton {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button {
    background: #0868a8;
    color: white;
}

button:hover {
    background: #065a92;
}

.goldenbutton {
    background: #f5c542;
    color: #222;
}

.goldenbutton:hover {
    background: #e0b634;
}

/* --- Images --- */
.img-center {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    border-radius: 10px;
}

.avatar {
    border-radius: 50%;
}

/* Gallery hover effect */
.imggall {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.imggall:hover {
    opacity: 1;
}

/* --- Footer --- */
footer {
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    nav {
        grid-template-columns: 1fr 1fr;
    }
    .borders, .table-borders, table.login {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    button, .goldenbutton {
        width: 100%;
    }
}
