/* General Page Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 60px; /* To ensure content is not hidden behind the fixed navbar */
}

.container {
    padding: 20px;
}

/* Hero Section */
.hero {
    background-image: url('/images/i3.jpg');
    background-size: cover;
    background-position: center;
    color: rgb(62, 61, 61);
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 2s ease-in;
}

.hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(240, 225, 225, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.hero h1, .hero p, .hero h2 {
    margin: 10px 0;
    animation: slideIn 1.5s ease-in-out;
}

section {
    padding: 50px 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(154, 153, 153, 0.1);
    margin: 20px;
    border-radius: 10px;
}

/* Application Form */
.application-form {
    position: relative;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333;
}

.application-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/i4.avif') no-repeat center center/cover; /* Background image */
    opacity: 0.5; /* Set the opacity for fading effect */
    z-index: -1; /* Ensure the pseudo-element is behind the content */
}

.application-form form {
    display: flex;
    flex-direction: column;
}

.application-form form label {
    margin: 15px 0 5px;
    font-weight: bold;
    color: #555;
}

.application-form form input, 
.application-form form textarea, 
.application-form form button {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 16px;
}

.application-form form input:focus,
.application-form form textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.application-form form input[type="file"] {
    border: none;
}

.application-form form button {
    background-color: #007BFF;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.application-form form button:hover {
    background-color: #030303;
    transform: translateY(-2px);
}

/* Form Message Styling */
.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Leadership Team Section */
.leadership-team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}

.team-member {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member img {
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.team-member img.img1 {
    height: 300px; /* First image */
}

.team-member img.img2 {
    height: 350px; /* Second image */
}

.team-member img.img3 {
    height: 400px; /* Third image */
}

.team-member img.img4 {
    height: 450px; /* Fourth image */
}

.team-member h2 {
    font-size: 1.5em;
    margin: 0.5em 1em 0.2em; /* Added horizontal margin for left alignment */
}

.team-member h3 {
    font-size: 1.2em;
    color: #777;
    margin: 0.2em 1em 1em; /* Added horizontal margin for left alignment */
}

.team-member p {
    padding: 0 1em 1em;
    font-size: 1em;
    color: #555;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

form input, form textarea, form button {
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.h1class {
    color: rgb(15, 15, 15);
    font-size: 50px;
}

.hr {
    color: #030303;
    font-size: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 50px 10px;
    }

    .hero .hero-content {
        padding: 10px;
    }

    .application-form {
        padding: 30px 20px;
    }

    .container, section {
        padding: 20px 10px;
        margin: 10px;
    }

    .leadership-team {
        flex-direction: column;
        padding: 10px;
    }

    .team-member {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .team-member h2, .team-member h3, .team-member p {
        margin: 10px 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 10px;
    }

    .hero .hero-content {
        padding: 10px;
    }

    .application-form {
        padding: 20px 10px;
    }

    .container, section {
        padding: 10px 5px;
        margin: 5px;
    }

    .leadership-team {
        flex-direction: column;
        padding: 5px;
    }

    .team-member {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .team-member h2, .team-member h3, .team-member p {
        margin: 5px 5px;
    }
}
