/* ===========================
   GENERAL PAGE STYLING
=========================== */
body {
    margin: 0;
    background: #f8f9fc;
    font-family: Arial, sans-serif;
}

main {
    margin-left: 20px;
    margin-right: 20px;
}

h1 {
    font-size: 60px;
    text-align: center;
}

p {
    font-size: 20px;
    text-align: left;
}

/* ===========================
   NAVBAR
=========================== */
.navbar ul {
    list-style-type: none;
    background-color: black;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 15px;
    display: block;
    text-align: center;
}

.navbar a:hover {
    background-color: grey;
}

.navbar li {
    float: left;
}

/* ===========================
   HEADER LOGO + TITLE
=========================== */
.div1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;         /* Reduced gap for smaller screens */
    flex-wrap: wrap;   /* Allows wrapping on smaller screens */
}

.div1 img {
    width: 160px;
    height: auto;
}

/* ===========================
   CONTENT BOXES
=========================== */
.text-box {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 700px;
    margin: 10px 0 10px 20px;  /* Left margin added */
    font-size: 18px;
    line-height: 1.6;
    color: #111;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    border-left: 6px solid #1e3a8a;
}

/* ===========================
   READ MORE BOXES
=========================== */
.readmore-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 20px;
}

.read-more-box {
    background: #d9efff;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    margin: 15px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    line-height: 1.7;
    position: relative;
}

.read-more-box input {
    display: none;
}

/* Expand animation */
.more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.read-more-box input:checked ~ .more-content {
    max-height: 700px;
}

.read-more-btn {
    display: inline-block;
    margin-top: 12px;
    background: #1e3a8a;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background: #3b82f6;
}

.read-more-box input:checked + h2 + p + .more-content + .read-more-btn {
    background: #274bb8;
}

.read-more-box input:checked + h2 + p + .more-content + .read-more-btn::after {
    content: " (Show Less)";
}

/* Read More box images */
.readmore-image {
    width: 100%;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
}
/* Footer */
.footer {
    background: #111;
    color: white;
    padding: 10px;
    margin-top: 50px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
}

.footer-section {
    width: 250px;
    margin-bottom: 20px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 10px;
    color: #3b82f6;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #bbb;
}




/* ===========================
   MOBILE RESPONSIVE FIXES
=========================== */
@media (max-width: 768px) {

    h1 {
        font-size: 38px;
    }

    p {
        font-size: 16px;
    }

    .navbar li {
        float: none;
        width: 100%;
    }

    .div1 {
        flex-direction: column;
        gap: 10px;
    }

    .div1 img {
        width: 130px;
    }

    .read-more-box {
        width: 90%;       /* Full width on mobile */
        margin: 10px auto;
    }

    .readmore-image {
        width: 100%;      /* Full width images */
    }

    .text-box {
        max-width: 90%;
        margin: 10px auto;
        font-size: 16px;
    }
    

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-section {
        width: 100%;
    }
}


