/* styles.css - Hormuud Ultimate Theme */

/* RESET */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0fdf6;
    color: #2c3e50;
    line-height: 1.7;
}

/* FLEX CONTAINER ADDED */
.flex-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2em;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #007a33, #00c46f);
    color: white;
    text-align: center;
    padding: 2em 1em 1em;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
}
.logo {
    max-height: 80px;
    display: block;
    margin: 0 auto 0.75em;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 2em;
    list-style: none;
    margin-top: 1.5em;
    flex-wrap: wrap;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.4s ease-in-out;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}
.nav-links a:hover::after {
    width: 100%;
}

/* BANNER */
.banner {
    position: relative;
    text-align: center;
}
.banner-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: brightness(70%) contrast(1.1);
    border-bottom: 5px solid #007a33;
}
.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.65);
    padding: 2em 3em;
    color: white;
    font-size: 1.7em;
    font-weight: 600;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    max-width: 85%;
    text-shadow: 1px 1px 2px black;
}

/* CONTAINERS */
.content, .form-section, .about-section, .team-section {
    background-color: white;
    margin: 3em auto;
    padding: 2.5em;
    max-width: 1100px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease-in-out;
}
.content:hover, .form-section:hover, .about-section:hover, .team-section:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* TABLE */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
}
.table th, .table td {
    padding: 1em;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 1em;
}
.table th {
    background-color: #007a33;
    color: white;
    text-transform: uppercase;
}

/* FORM */
.form label {
    display: block;
    margin-top: 1.2em;
    font-weight: 600;
    font-size: 1em;
}
.form input, .form select, .form textarea {
    width: 100%;
    padding: 0.9em;
    margin-top: 0.4em;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: border 0.3s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
    border-color: #007a33;
    outline: none;
}
.form button {
    display: inline-block;
    margin-top: 2em;
    padding: 0.9em 2.5em;
    background-color: #007a33;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}
.form button:hover {
    background-color: #005a25;
    transform: translateY(-2px);
}

/* TEAM */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em;
    justify-content: center;
    margin-top: 2em;
}
.team-member {
    text-align: center;
    max-width: 180px;
    transition: transform 0.3s ease-in-out;
}
.team-member:hover {
    transform: scale(1.05);
}
.team-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #007a33;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #007a33, #00c46f);
    color: white;
    text-align: center;
    padding: 2em;
    font-size: 1em;
    margin-top: 4em;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1em;
    }
    .banner-text {
        font-size: 1.2em;
        padding: 1.5em;
    }
    .form-section, .content, .about-section, .team-section {
        padding: 1.5em;
    }
    .team-photo {
        width: 120px;
        height: 120px;
    }
}