/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

h1, h2 {
    color: black;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 2px;
}

header p {
    font-size: 1.2em;
    margin-top: 5px;
}

header .logo {
    margin: 20px auto;
    width: 100px;
    height: auto;
    display: block;
}

/* Navigation */
nav {
    background: #2c3e50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background: #3498db;
    color: white;
    border-radius: 5px;
}

.carousel-inner img {
    height: auto;
    max-height: 400px; /* Limit height on mobile */
    object-fit: cover; /* Crop the image without distorting */
}

@media (min-width: 768px) {
    .carousel-inner img {
        max-height: 600px; /* Larger height for tablets and desktops */
    }
}

.carousel-caption h5 {
    font-size: 1.5rem;
}

.carousel-caption p {
    font-size: 1rem;
}


.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
}


/* About Us Section */
.about-section {
    padding: 50px 20px;
    background: #f9f9f9;
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.about-section p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Our Team Section */
.team-section {
    padding: 50px 20px;
    background: #fff;
}

.team-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #ddd;
}

.team-member h3 {
    font-size: 20px;
    color: #333;
    margin: 10px 0;
}

.team-member p {
    font-size: 16px;
    color: #777;
}


/* Adjust font sizes for smaller screens */
@media (max-width: 768px) {
    .about-section h2,
    .team-section h2 {
        font-size: 28px;
    }

    .about-section p,
    .team-member p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .team-member img {
        width: 120px;
        height: 120px;
    }
}


/* Main Section */
section {
    padding: 40px 20px;
    text-align: center;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

#news {
    padding: 50px;
    background-color: #f9f9f9;
    text-align: center;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.news-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.news-item h3 {
    margin: 15px 10px;
    font-size: 18px;
}

.news-item p {
    margin: 10px;
    color: #555;
    font-size: 14px;
}

.read-more {
    display: block;
    padding: 10px;
    background: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
}

.read-more:hover {
    background: #45a049;
}


/* Form Styles */
form {
    background: white;
    background-image: url('images/slide.jpg');
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

form input, form select, form textarea, form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

form input:focus, form select:focus, form textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

form button {
    background: #3498db;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #2c3e50;
}

.footer {
    background-color: #343a40; /* Dark background */
    color: #fff; /* White text */
    padding: 20px 0;
}

.footer h5 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer p,
.footer a {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    color: #fff; /* Highlight on hover */
    text-decoration: underline;
}

.footer .list-unstyled {
    padding: 0;
    list-style: none;
}

.footer .list-unstyled li {
    margin-bottom: 10px;
}

.footer .list-unstyled li a {
    color: #ddd;
}

.footer .list-unstyled li a:hover {
    color: #fff;
}

@media (max-width: 576px) {
    .footer h5 {
        font-size: 16px;
    }

    .footer p,
    .footer a {
        font-size: 14px;
    }
}


/* Quiz Styles */
/* General Styles */
/* Header */
.quiz-header {
    text-align: center;
    padding: 30px;
    background: #4caf50;
    color: #fff;
    margin-bottom: 20px;
}

.quiz-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.quiz-header p {
    margin: 10px 0 0;
    font-size: 1.2rem;
}

/* Quiz Container */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Question */
.quiz-question {
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.quiz-question:last-child {
    border-bottom: none;
}

/* Buttons */
.quiz-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 20px 0;
    background: #4caf50;
    color: #fff;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.quiz-btn:hover {
    background: #45a049;
}

/* Result */
.quiz-result {
    display: none;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.quiz-result-visible {
    display: block;
}

.quiz-result h2 {
    font-size: 2rem;
    color: #4caf50;
}

.quiz-result p {
    font-size: 1.2rem;
}


/* Resource Styles */
.resource-section {
    margin: 20px auto;
    text-align: center;
}

.resource-item {
    margin: 20px auto;
    text-align: center;
}

.resource-item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.resource-item a {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #007bffef;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.resource-item a:hover {
    background: #0056b3;
}


/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 5px 0;
    }

    form {
        padding: 15px;
    }

    section h2 {
        font-size: 1.5em;
    }
}



/* General Styles */
body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}
/*
header {
    text-align: center;
    padding: 30px;
    background: #4caf50;
    color: white;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 10px 0 0;
    font-size: 1.2rem;
}

/* News Section */
.news-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.news-item h2 {
    margin: 0 0 10px;
}

.news-item p {
    margin: 0 0 10px;
}

.btn-read-more {
    color: #4caf50;
    text-decoration: none;
}

.btn-read-more:hover {
    text-decoration: underline;
}

/* Gallery Section */
.gallery-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-grid img,
.gallery-grid video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Medium screens (tablets) */
@media (min-width: 601px) and (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    header {
        font-size: 24px;
    }

    nav ul {
        justify-content: space-evenly;
    }
}

/* Large screens (desktops) */
@media (min-width: 1025px) {
    header {
        font-size: 32px;
    }

    nav ul {
        justify-content: flex-end;
    }

    .container {
        padding: 40px;
    }
}

/* Make the form fields stack vertically on small screens */
@media (max-width: 600px) {
    form {
        display: flex;
        flex-direction: column;
    }

    form input, form textarea, form button {
        width: 100%; /* Full-width for inputs */
        margin-bottom: 10px;
    }
}


@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li ul {
        position: relative;
    }
}




