:root {
    --primary-pink: #ff69b4;
    --primary-pink-dark: #e05a9d;
    --accent-green: #98fb98;
    --accent-green-dark: #7bcd7b;
    --text-dark: #333;
    --text-light: #fff;
    --background-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header Styles */
header {
    background-color: #ffe8f3;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
    content: url('https://upload.wikimedia.org/wikipedia/commons/8/8e/Barangay.svg');
    object-fit: contain;
}

.barangay-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.barangay-name h1 {
    color: var(--primary-pink);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.barangay-name p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    background-color: transparent;
    border: 2px solid var(--primary-pink);
    color: var(--primary-pink);
    padding: 0.4rem 1.2rem;
    margin-left: 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background-color: var(--primary-pink);
    color: var(--text-light);
}

/* Main Content */
main {
    margin-top: 60px;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../z-images/BG_Landing.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Services Section */
.services {
    padding: 4rem 2rem;
    background-color: var(--background-light);
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-pink);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.request-btn {
    background-color: var(--primary-pink);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.request-btn:hover {
    background-color: var(--primary-pink-dark);
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background-color: var(--background-light);
}

.about h2 {
    text-align: center;
    color: var(--primary-pink);
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    content: url('../z-images/BG_Vision.png');
}

/* Footer */
footer {
    background-color: var(--primary-pink);
    color: var(--text-light);
    padding: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info i {
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.social-icon {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Add custom scrollbar styles for better appearance */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink-dark);
}

/* Ensure the close button stays visible */
.close {
    position: sticky;
    top: 0;
    right: 1.5rem;
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    z-index: 1;
    background-color: white;
    padding: 0.5rem;
    margin: -2rem -2rem 0 0;
}

.close:hover {
    color: var(--primary-pink);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.modal-header h2 {
    color: var(--primary-pink);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: #666;
}

.input-group .toggle-password {
    left: auto;
    right: 1rem;
    cursor: pointer;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-pink);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-pink);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.forgot-password:hover {
    opacity: 0.8;
}

.submit-btn {
    background-color: var(--primary-pink);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: var(--primary-pink-dark);
}

.switch-modal {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.switch-modal a {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.switch-modal a:hover {
    opacity: 0.8;
}

.timer {
    text-align: center;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-image {
        max-width: 300px;
        height: 180px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .nav-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .logo {
        height: 35px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .barangay-name h1 {
        font-size: 1rem;
    }
    
    .barangay-name p {
        font-size: 0.8rem;
    }
}

/* Officials Section */
.officials {
    padding: 4rem 2rem;
    background-color: #fff;
}

.officials h2 {
    text-align: center;
    color: var(--primary-pink);
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.section-title {
    text-align: center;
    color: var(--primary-pink);
    margin: 3rem 0 2rem;
    font-size: 1.8rem;
}

/* Top Officials Layout */
.top-officials {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.chairwoman-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    border: 2px solid var(--primary-pink);
    max-width: 350px;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.chairwoman-card:hover {
    transform: translateY(-5px);
}

.chairwoman-card .official-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-pink);
}

.chairwoman-card h3 {
    color: var(--primary-pink);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.chairwoman-card .position {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

.secretary-card,
.treasurer-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--primary-pink);
    max-width: 280px;
    margin-top: 2rem;
}

.secretary-card h3,
.treasurer-card h3 {
    font-size: 1.2rem;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

.secretary-card .position,
.treasurer-card .position {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Officials Grid Sections */
.council-grid {
    margin-bottom: 4rem;
}

.council-grid .official-card {
    background-color: white;
    border: 1px solid var(--primary-pink);
}

.council-grid .official-card h3 {
    color: var(--primary-pink);
}

.council-grid .official-card .position {
    color: var(--text-dark);
}

.staff-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.staff-grid .official-card {
    border: 1px solid var(--accent-green);
}


/* Officials Grid */
.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.official-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.official-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.official-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-pink);
}

.official-card h3 {
    color: var(--primary-pink);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.official-card .position {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive adjustments for top officials */
@media (max-width: 968px) {
    .top-officials {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .chairwoman-card {
        margin-top: 0;
    }

    .secretary-card,
    .treasurer-card {
        margin-top: 0;
        max-width: 320px;
        width: 100%;
    }
}

.password-requirements {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.password-requirements p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
    color: #666;
}

.password-requirements li i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

.password-requirements li i.fa-times {
    color: #dc3545;
}

.password-requirements li i.fa-check {
    color: #28a745;
} 