/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: #fff;
    padding: 30px 0 15px;
    text-align: center;
}

header h1 {
    color: #001a57;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* Navigation */
nav {
    background-color: #001a57;
    padding: 15px 0;
    display: flex;
    align-items: center;
    min-height: 60px;
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85%;
    height: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    height: 100%;
}

nav li {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

nav a:hover {
    color: #ddd;
}

nav a.current {
    background-color: #fff;
    color: #001a57;
    padding: 5px 10px;
    border-radius: 4px;
    height: 100%;
    display: inline-flex;
    align-items: center;
}

/* Mobile Menu (Hamburger) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    margin: 0;
    padding: 0;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

#menu-toggle {
    display: none;
}

#menu-toggle:checked ~ .hamburger span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

#menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

#menu-toggle:checked ~ .hamburger span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Main Content */
main {
    padding: 25px 0;
    min-height: calc(100vh - 300px); /* Ensures footer stays at bottom */
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.welcome-section h2 {
    color: #001a57;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.welcome-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

/* News Section */
.news-section {
    margin-bottom: 30px;
}

.news-section h2 {
    color: #001a57;
    margin-bottom: 25px;
}

.instagram-preview {
    margin-top: 20px;
    max-width: 1024px;
    /*Center the preview*/
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.instagram-link {
    color: #001a57;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
}

.instagram-link:hover {
    text-decoration: underline;
}

/* Quick Info Cards */
.quick-info-home {
    margin: 30px 0;
    padding: 30px 0;
    background-color: #f8f9fa;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.info-cards-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    color: #001a57;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.info-card p {
    margin-bottom: 12px;
    color: #666;
}

.info-card a {
    color: #001a57;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: transform 0.2s;
}

.info-card a:hover {
    transform: translateX(5px);
}

/* Regular content sections */
main .container section {
    padding: 20px 0;
}

section {
    margin-bottom: 25px;
}

h2 {
    color: #001a57;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
}

/* Lists */
ul {
    margin-left: 15px;
}

li {
    margin-bottom: 10px;
}

/* Coming Soon Sections */
.coming-soon-message {
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.coming-soon-message p {
    font-size: 1.2rem;
}

/* Governance Section */
.governance {
    margin-top: 40px;
}

.bylaws-link {
    display: inline-block;
    background-color: #001a57;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.bylaws-link:hover {
    background-color: #002d8f;
    text-decoration: none;
}

/* Instagram Container */
.instagram-container {
    margin-top: 20px;
    width: 100%;
}

/* Custom Instagram Feed */
.custom-instagram-feed {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instagram-header {
    margin-bottom: 20px;
    text-align: center;
}

.instagram-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #001a57;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 16px;
    border: 2px solid #001a57;
    border-radius: 25px;
    transition: all 0.3s;
}

.instagram-profile:hover {
    background-color: #001a57;
    color: white;
    transform: translateY(-2px);
}

.instagram-icon {
    font-size: 1.2rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    min-height: 200px;
}

.instagram-post {
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.instagram-post:hover {
    transform: scale(1.05);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}

.instagram-post:hover .instagram-post-overlay {
    opacity: 1;
}

/* Placeholder styling */
.instagram-placeholder {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 2px dashed #ddd;
    text-align: center;
}

.instagram-placeholder ol {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
}

.instagram-placeholder a {
    color: #001a57;
    text-decoration: none;
    font-weight: 600;
}

.instagram-placeholder a:hover {
    text-decoration: underline;
}

/* Styles for embedded Instagram widgets */
.snapwidget-widget {
    border: none;
    overflow: hidden;
    width: 100%;
    height: 600px;
}

/* Elfsight widget container */
.elfsight-app-container {
    width: 100% !important;
}

/* Behold widget responsive */
.behold-widget {
    width: 100%;
    min-height: 400px;
}

/* Contact Page Styles */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contact-card {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    color: #001a57;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-card a {
    color: #001a57;
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.board-contact {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.board-list {
    list-style: none;
    margin: 20px 0;
}

.board-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.get-involved {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.get-involved ul {
    margin-left: 25px;
    margin-top: 20px;
}

.get-involved li {
    margin-bottom: 12px;
}

/* Meetings Page Styles */
.meetings-header {
    margin-bottom: 20px;
}

.meetings-header h2 {
    color: #001a57;
    font-size: 2.2rem;
    text-align: center;
    font-weight: 700;
}

.meeting-schedule {
    margin-bottom: 25px;
}

.meeting-details {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: center;
}

.meeting-dates {
    list-style: none;
    margin: 0;
    padding: 0;
}

.meeting-dates li {
    background-color: #f8f8f8;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #001a57;
    font-size: 1.1rem;
    font-weight: 500;
}

.meeting-minutes {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.meeting-minutes a {
    color: #001a57;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.meeting-minutes a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #001a57;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 0.8;
}

footer p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-social {
        flex-direction: row;
        gap: 30px;
        justify-content: center;
    }

    .footer-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        font-size: 0;
        position: relative;
        transition: all 0.3s;
    }

    .footer-social a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    /* Instagram icon */
    .footer-social a[href*="instagram"]:after {
        content: "";
        width: 20px;
        height: 20px;
        border: 2px solid #fff;
        border-radius: 6px;
        position: relative;
    }

    .footer-social a[href*="instagram"]:before {
        content: "";
        width: 8px;
        height: 8px;
        border: 2px solid #fff;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    /* Facebook icon */
    .footer-social a[href*="facebook"]:after {
        content: "f";
        color: #fff;
        font-family: Arial, sans-serif;
        font-size: 20px;
        font-weight: bold;
        line-height: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 20px 0 10px;
    }

    header h1 {
        font-size: 2rem;
        margin-bottom: 2px;
    }

    .subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }

    .welcome-text {
        font-size: 1.05rem;
    }

    .quick-info-home {
        padding: 20px 0;
        margin: 20px 0;
    }

    .info-cards-home {
        gap: 15px;
    }

    /* Tighter mobile spacing for all sections */
    main {
        padding: 15px 0;
    }

    main .container section {
        padding: 10px 0;
    }

    section {
        margin-bottom: 0px;
    }

    .welcome-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .news-section {
        margin-bottom: 20px;
    }

    .meetings-header {
        margin-bottom: 15px;
    }

    .meeting-schedule {
        margin-bottom: 15px;
    }

    .meeting-minutes {
        margin-top: 20px;
        padding-top: 15px;
    }

    /* Mobile Navigation */
    nav {
        position: relative;
        padding: 15px 0;
        display: block;
    }

    nav .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        width: 85%;
        padding: 0;
    }

    .hamburger {
        display: block;
        align-self: flex-start;
        position: relative;
        z-index: 2;
        margin-left: 15px;
    }

    nav .menu-items {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 15px 0 5px 0;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    #menu-toggle:checked ~ .menu-items {
        display: flex;
        animation: fadeIn 0.25s ease-in-out;
    }

    nav li {
        margin: 7px 0;
        width: 100%;
        text-align: left;
        padding-left: 0;
    }

    nav a {
        display: block;
        padding: 10px 0;
        font-size: 1.05rem;
        transition: transform 0.2s ease;
    }

    nav a:hover {
        transform: translateX(5px);
    }

    nav a.current {
        display: inline-block;
        margin-left: 0;
        padding: 8px 10px;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    nav .container {
        width: 95%;
    }

    header {
        padding: 15px 0 8px;
    }

    header h1 {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .subtitle {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .welcome-section h2 {
        font-size: 1.8rem;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .instagram-link {
        font-size: 1.1rem;
    }

    .info-card {
        padding: 20px;
    }
}
