/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #1b4b8b;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

h2 {
    font-size: 2rem;
    color: #1b4b8b;
    margin-bottom: 20px;
    font-weight: bolder;
}

.nav-toggle {
    display: none; /* Hide by default */
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    left: 20px; /* Shifted to the left */
    top: 15px;
    z-index: 1100;
}

nav {
    display: flex;
    align-items: center;
    margin-right: 20px; /* Shift navbar links to the right */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px;
    transition: 0.3s;
}

nav ul li a:hover {
    background-color: #fcf66b;
    color: #1b4b8b;
    border-radius: 5px;
}

.login {
    margin-left: auto; /* Push login to the left in full view */
    margin-right: 40px; /* Increased space from the right to avoid scrollbar issue */
}

.login a {
    background-color: #197045;
    padding: 10px 15px;
    border-radius: 5px;
}

.login a:hover {
    background-color: #fcf66b;
    color: #197045;
}

main {
    padding: 80px 20px 20px; /* Adjusted padding to prevent content from being hidden under navbar */
}

section {
    background: white;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-top: 80px;
}

.home-image {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* styles.css */

/* Target only the lists inside the #about section */
#about ul {
    list-style-type: disc; /* Standard bullets */
    margin-left: 20px; /* Add some space on the left */
    padding-left: 20px; /* Ensure bullets don't stick to the text */
    text-align: left; /* Align text to the left for a clean look */
}

#about li {
    margin-bottom: 10px; /* Adds space between list items */
}

#tips ul {
    list-style-type: disc; /* Standard bullets */
    margin-left: 20px; /* Add some space on the left */
    padding-left: 20px; /* Ensure bullets don't stick to the text */
    text-align: left; /* Align text to the left for a clean look */
}

#tips li {
    margin-bottom: 10px; /* Adds space between list items */
}
.sector-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Adjust spacing between tiles */
    justify-content: center;
}

.sector-tile {
    flex: 1 1 calc(25% - 16px); /* Each tile takes 25% width minus the gap */
    min-width: 300px; /* Ensures it doesn't shrink too much */
    padding: 20px;
    background-color: #1b4b8b;
    text-align: center;
    border-radius: 8px;
}
.sector-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.sector-tile h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.join-button {
    background-color: #fcf66b;
    color: #1b4b8b;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.join-button:hover {
    background-color: #1b4b8b;
    color: white;
}

.need-help {
    background: #f8f9fa;
    padding: 50px 20px;
    text-align: center;
}

.need-help h2 {
    color: #d9534f;
    font-size: 2rem;
    margin-bottom: 10px;
}

.need-help p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.help-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.help-info {
    max-width: 400px;
    text-align: left;
}

.help-info ul {
    list-style: none;
    padding: 0;
}

.help-info li {
    font-size: 1.2rem;
    margin: 10px 0;
}

.download-buttons {
    margin-top: 20px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #007bff;
    color: white;
    padding: 10px 15px;
    margin: 5px 0;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn img {
    width: 24px;
    margin-right: 10px;
}

.google-play {
    background: #34a853;
}

.app-store {
    background: #000;
}

.help-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

#news {
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.responsive-iframe-container {
    position: relative;
    width: 100%;
    max-width: 500px; /* Max width to keep the feed small */
    margin: 0 auto; /* Centers the iframe */
    padding-bottom: 75%; /* Aspect ratio of 4:3 (height is 75% of width) */
    height: 0;
    overflow: hidden;
}

.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#contact {
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
    max-width: 1000px;
    margin: 20px auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.contact-tile {
    background-color: #1b4b8b;
    color: white;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 calc(25% - 20px); /* Each tile takes 25% of the container width minus the gap */
    text-align: left;
    min-width: 250px; /* Ensure the tiles don't shrink too much */
}

.contact-tile h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-tile p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-tile.big-tile {
    flex: 1 1 100%; /* Big tile takes full width */
    background-color: #197045; /* Different color for the EXCo Chair */
}

.contact-tile.big-tile h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-tile.big-tile p {
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #1b4b8b;
    color: white;
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-toggle {
        display: block; /* Show in mobile view */
    }
    
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1b4b8b;
        text-align: center;
        margin-right: 0; /* Reset margin for mobile view */
    }
    
    nav.active {
        display: flex;
    }
    
    nav ul {
        flex-direction: column;
        padding-top: 10px;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .login {
        margin: 10px auto; /* Center login button in mobile view */
    }

    .sector-tile {
        flex: 1 1 100%; 
    }

    .help-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .help-info {
        max-width: 100%;
    }

    .contact-tile {
        flex: 1 1 100%; /* Make tiles stack on smaller screens */
    }

    .contact-tile.big-tile {
        flex: 1 1 100%; /* Ensure the big tile also takes full width */
    }
}
