/* General Body Styles */
body {
    font-family: 'Lora', sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #f7f8fc; /* Ensure all text becomes white in dark mode */
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode p, 
body.dark-mode .box h3, 
body.dark-mode .box p, 
body.dark-mode .accordion-body {
    color: #f7f8fc; /* Apply white text color across all text in dark mode */
}

/* Navbar */
.navbar {
    background-color: #343a40;
    padding: 1rem 2rem;
    font-family: 'roboto', sans-serif;
}

.navbar-nav .nav-link {
    color: #f8f9fa !important;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    color: #f39c12 !important;
    text-decoration: underline;
}

.navbar .dark-mode-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 2px;
    margin-top: 8px;
}

.dark-mode-switch i {
    color: #f39c12;
    font-size: 1.6rem;
}

/* Page Content */
h1 {
    font-size: 2.5rem;
    text-align: center;
    font-family: 'Lora', serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 1.5rem;
    font-weight: 550;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #252525;
    text-align: left;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #d54e0a;
    font-weight: bold;
}

.box {
    margin-bottom: 2rem;
}

.box h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 500;
}

.box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #252525;
    margin-bottom: 1rem;
}

/* Accordion Styles */
.accordion-button {
    background-color: transparent; /* Make accordion buttons transparent */
    color: #333;
}

.accordion-button:not(.collapsed) {
    background-color: #ee8754;
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-item {
    margin-bottom: 1rem;
}

.accordion-header {
    background-color: transparent; /* Ensure the header background is transparent */
}

.accordion-body {
    padding: 1.5rem;
    background-color: #e3f2fd; /* Light color for light mode */
    color: #252525; /* Default text color */
}

/* Ensure that accordion text is readable in dark mode */
body.dark-mode .accordion-body {
    background-color: #34495e; /* Dark color for dark mode */
    color: #f7f8fc; /* White text for dark mode */
}

body.dark-mode .accordion-header {
    background-color: #2c3e50; /* Dark background for accordion header in dark mode */
}

/* To fix visibility of the text even in collapsed state */
body.dark-mode .accordion-button {
    color: #f7f8fc; /* Make button text white in dark mode */
}

.accordion-body img {
    margin-top: 1rem;
    border-radius: 10px;
    width: 30%;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    padding: 20px;
    margin-top: 2rem;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center; /* Ensures center alignment in the middle section */
    flex-wrap: wrap; /* Allows stacking on small screens */
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer p {
    margin: 0;
    text-align: center;  /* Ensure the paragraph text is centered */
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo-container img {
    width: 120px;
    height: auto;
}

/* Make the layout responsive: Stack sections vertically on smaller screens */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .accordion-body {
        padding: 1rem;
    }
}

.footer p {
    color: white !important;
}