/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f5f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    text-align: center;
    margin-bottom: 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    color: #e74c3c;
    transition: color 0.3s ease;
}

#menu-toggle {
    display: none; /* Hide by default */
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    #menu-toggle {
        display: block; /* Show on mobile */
    }

    nav ul {
        display: none; /* Hide nav by default on mobile */
        flex-direction: column;
        align-items: center;
    }

    nav ul.active {
        display: flex; /* Show nav when active */
    }
}

/* Hero Section */
#hero {
    background-image: url('hero-img.jpg');
    background-size: cover;
    background-position: center;
    color: #e74c3c;
    padding: 100px 0;
    text-align: center;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px; 
    color: #FFFFFF; /* White text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Adds depth for readability */
}

#hero .btn {
    padding: 10px 20px;
    text-decoration: none;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#hero .btn:hover {
    background-color: #c0392b;
}

/* Blog Section */
#blog {
    padding: 50px 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #666;
}

/* Latest News Section */
#latest-news {
    background: #f8f9fa;
    padding: 50px 0;
    overflow: hidden; /* Hide overflow to create a seamless scroll effect */
    position: relative;
}

.news-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

.news-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.news-item {
    background: #2c3e50;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    flex: 0 0 auto;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-item p {
    color: #fff;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* .news-container */
.news-container {
    position: relative;
    overflow: hidden;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: #2c3e50;
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Animation for scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Consultation Section */
#consultation {
    background-image: url('consultation-img.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

#consultation p {
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Adds depth for readability */
}

#consultation h2 {
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Adds depth for readability */
}

#consultation .btn {
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#consultation .btn:hover {
    background: #c0392b;
}

/* Contact Section */
#contact {
    padding: 50px 0;
    text-align: center;
}

#contact input,
#contact textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contact .btn {
    background: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact .btn:hover {
    background: #1a252f;
}

#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #e74c3c;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
} 

footer ul {
    list-style: none; /* Removes bullet points */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

footer p {
    color: white;
}

footer ul li {
    display: inline-block; /* Ensures list items are displayed inline */
    margin: 0 10px; /* Adds spacing between icons */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}


h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

p {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Checklist Styles */
form {
    display: flex;
    flex-direction: column;
}

.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checklist-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
}

.checklist-item input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.checklist-item input[type="checkbox"]:checked::after {
    content: '\2713';
    color: #fff;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checklist-item label {
    cursor: pointer;
    color: #333;
}

/* Button Styles */
.btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn:hover {
    background-color: #0056b3;
}

/* Feedback Styles */
#quizResult {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

#quizResult p {
    margin: 0;
}

#quizResult.success {
    background-color: #d4edda;
    color: #155724;
}

#quizResult.warning {
    background-color: #fff3cd;
    color: #856404;
}

#quizResult.danger {
    background-color: #f8d7da;
    color: #721c24;
}