body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb); /* Gradient background */
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background: linear-gradient(135deg, #2c3e50, #34495e); /* Darker gradient for dark mode */
    color: #f7f8fc;
}

.navbar {
    background-color: #343a40;
    padding: 1rem 2rem; /* Increased padding for larger navbar */
}

.navbar-brand img {
    width: 150px;
    height: 60px;
}

.navbar-nav .nav-link {
    color: #f8f9fa !important;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    color: #f39c12 !important;
    text-decoration: underline;
}

/* Dark Mode Text Fix */
body.dark-mode .info p,
body.dark-mode .info h2,
body.dark-mode .info h3,
body.dark-mode .info ul li {
    color: #f7f8fc;
}

/* Sun/Moon Toggle Styling */
.navbar .dark-mode-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 8px;
    margin-left: 2px;
}

.dark-mode-switch i {
    color: #f39c12;
    font-size: 1.6rem;
}

/* Content Styling */
.content-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 850px;
    margin: 3rem auto;
    padding: 2rem;
    gap: 3rem;
    flex-direction: row;
    overflow: visible;
}

.info {
    flex: 3;
    text-align: justify;
    font-family: 'Lora', serif;
    line-height: 1.6;
    margin-left: -100px;
}

.info h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.info ul {
    list-style: none;
}

.info ul li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    padding-left: 20px;
    position: relative;
}

.info ul li::before {
    content: "•";
    color: #f39c12;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 20px;
    margin-top: 2rem;

    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;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo-container img {
    width: 120px;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 30px;
        max-width: 100%;
    }

    .info {
        max-width: 100%;
        text-align: left;
        margin-left: 0;
    }

    .journal-images {
        margin-left: 1rem;
        justify-content: center;
    }
}

/* Custom styles for the journal images fan arrangement */
.journal-images {
    display: flex;
    justify-content: center;
    position: center;
    width: 100%;
    height: 200px;
    margin-bottom: 45px;
    margin-top: -40px;
    margin-left: 2rem;
}

.journal-images img {
    position: absolute;
    transition: transform 0.5s ease-in-out;
    width: 150px;
    height: 140px;
}

.journal-images img:nth-child(1) {
    transform: rotate(-60deg) translateX(-160px);
}

.journal-images img:nth-child(2) {
    transform: rotate(-45deg) translateX(-120px);
}

.journal-images img:nth-child(3) {
    transform: rotate(-30deg) translateX(-80px);
}

.journal-images img:nth-child(4) {
    transform: rotate(0deg) translateX(0);
}

.journal-images img:nth-child(5) {
    transform: rotate(30deg) translateX(80px);
}

.journal-images img:nth-child(6) {
    transform: rotate(45deg) translateX(120px);
}

.journal-images img:nth-child(7) {
    transform: rotate(60deg) translateX(160px);
}

.journal-images:hover img {
    transform: scale(1.1);
}