* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: 'Montserrat', sans-serif;

    line-height: 1.6;

    color: #333;

}



.container {

    max-width: 1300px;

    margin: 0 auto;

    padding: 0 20px;

}



/* Navigation */

/* Add these styles to your existing style.css */



/* Improved Responsive Navigation */

.navbar {

    background: white;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    position: sticky;

    top: 0;

    z-index: 1000;

}



.navbar .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px 10px;

    position: relative;

}



.logo h1 {

    color: #2c3e50;

    font-size: 24px;

    margin: 0;

}



.tagline {

    font-size: 12px;

    color: #7f8c8d;

    display: block;

}



/* Hamburger Menu - Hidden on Desktop */

.menu-toggle {

    display: none;

    flex-direction: column;

    cursor: pointer;

    padding: 10px;

    z-index: 1001;

}



.menu-toggle span {

    width: 25px;

    height: 3px;

    background: #2c3e50;

    margin: 2px 0;

    transition: 0.3s;

    border-radius: 3px;

}



.nav-menu {

    display: flex;

    list-style: none;

    gap: 15px!important;

    align-items: center;

    margin: 0;

    padding: 0;

}



/* Mobile Responsive Styles */

@media screen and (max-width: 768px) {

    .menu-toggle {

        display: flex;

    }

    

    .nav-menu {

        position: fixed;

        top: 0;

        right: -100%;

        width: 80%;

        max-width: 400px;

        height: 100vh;

        background: white;

        flex-direction: column;

        justify-content: flex-start;

        padding: 80px 20px 30px;

        gap: 15px;

        box-shadow: -2px 0 10px rgba(0,0,0,0.1);

        transition: right 0.3s ease;

        z-index: 1000;

        overflow-y: auto;

    }

    

    .nav-menu.active {

        right: 0;

    }

    

    .nav-menu li {

        width: 100%;

        text-align: left;

    }

    

    .nav-menu a {

        display: block;

        padding: 12px 15px;

        font-size: 18px;

        border-radius: 8px;

        transition: background 0.3s;

    }

    

    .nav-menu a:hover {

        background: #f8f9fa;

    }

    

    .nav-menu a.btn-login {

        margin-top: 10px;

        text-align: center;

        background: #3498db;

        color: white !important;

    }

    

    /* Hamburger Animation */

    .menu-toggle.active span:nth-child(1) {

        transform: rotate(45deg) translate(5px, 5px);

    }

    

    .menu-toggle.active span:nth-child(2) {

        opacity: 0;

    }

    

    .menu-toggle.active span:nth-child(3) {

        transform: rotate(-45deg) translate(7px, -6px);

    }

    

    /* Overlay when menu is open */

    .nav-overlay {

        display: none;

        position: fixed;

        top: 0;

        left: 0;

        width: 100%;

        height: 100%;

        background: rgba(0, 0, 0, 0.5);

        z-index: 999;

    }

    

    .nav-overlay.active {

        display: block;

    }

    

    /* Adjust logo for mobile */

    .logo h1 {

        font-size: 20px;

    }

    

    .tagline {

        font-size: 10px;

    }

}



/* Small phones */

@media screen and (max-width: 480px) {

    .navbar .container {

        padding: 10px 15px;

    }

    

    .logo h1 {

        font-size: 18px;

    }

    

    .nav-menu {

        width: 100%;

        max-width: none;

    }

}



.logo h1 {

    color: #2c3e50;

    font-size: 24px;

}



.tagline {

    font-size: 12px;

    color: #7f8c8d;

}



.nav-menu {

    display: flex;

    list-style: none;

    gap: 30px;

    align-items: center;

}



.nav-menu a {

    text-decoration: none;

    color: #2c3e50;

    font-weight: 500;

    transition: color 0.3s;

}



.nav-menu a:hover,

.nav-menu a.active {

    color: #3498db;

}



.btn-login {

    background: #3498db;

    color: white !important;

    padding: 10px 20px;

    border-radius: 5px;

    transition: background 0.3s;

}



.btn-login:hover {

    background: #2980b9;

}



/* Hero Section */

.hero {

    position: relative;

    height: 500px;

    overflow: hidden;

}



.hero-image {

    position: relative;

    height: 100%;

}



.hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.hero-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0,0,0,0.4);

    display: flex;

    align-items: center;

    text-align: center;

    color: white;

}



.hero-overlay h2 {

    font-size: 48px;

    margin-bottom: 20px;

}



.hero-overlay p {

    font-size: 20px;

}



/* Cards Grid */

.features {

    padding: 80px 0;

    background: #f8f9fa;

}



.cards-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 30px;

}



.card {

    background: white;

    padding: 30px;

    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);

    transition: transform 0.3s;

    text-align: center;

}



.card:hover {

    transform: translateY(-5px);

}



.card-icon {

    font-size: 48px;

    margin-bottom: 20px;

}



.card h3 {

    margin-bottom: 15px;

    color: #2c3e50;

}



.card p {

    color: #7f8c8d;

    margin-bottom: 20px;

}



.card-link {

    text-decoration: none;

    color: #3498db;

    font-weight: 600;

}



/* Content Sections */

.content-section {

    padding: 80px 0;

}



.bg-light {

    background: #f8f9fa;

}



.content-section h2 {

    text-align: center;

    margin-bottom: 50px;

    font-size: 36px;

    color: #2c3e50;

}



/* Events Grid */

.events-grid {

    max-width: 800px;

    margin: 0 auto;

}



.event-item {

    display: flex;

    gap: 20px;

    padding: 20px;

    background: white;

    border-radius: 10px;

    margin-bottom: 15px;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}



.event-date {

    background: #3498db;

    color: white;

    padding: 15px;

    border-radius: 10px;

    text-align: center;

    min-width: 80px;

    font-weight: 700;

}



.event-details h3 {

    margin-bottom: 10px;

    color: #2c3e50;

}



.event-meta {

    color: #7f8c8d;

    margin-top: 10px;

}



/* Documents Grid */

.documents-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 20px;

}



.document-card {

    background: white;

    padding: 30px;

    border-radius: 10px;

    text-align: center;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}



.doc-icon {

    font-size: 40px;

    margin-bottom: 15px;

}



.document-card h4 {

    margin-bottom: 15px;

    color: #2c3e50;

}



.btn-small {

    display: inline-block;

    padding: 8px 15px;

    background: #3498db;

    color: white;

    text-decoration: none;

    border-radius: 5px;

    font-size: 14px;

    transition: background 0.3s;

}



.btn-small:hover {

    background: #2980b9;

}



/* Financials List */

.financials-list {

    max-width: 600px;

    margin: 0 auto;

}



.financial-item {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 20px;

    background: white;

    border-radius: 10px;

    margin-bottom: 15px;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}



.financial-icon {

    font-size: 30px;

}



.financial-details {

    flex: 1;

}



.financial-details h4 {

    margin-bottom: 5px;

    color: #2c3e50;

}



/* Residents Grid */

.residents-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 20px;

    margin-bottom: 30px;

}



.resident-card {

    background: white;

    padding: 20px;

    border-radius: 10px;

    text-align: center;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}



.resident-avatar {

    font-size: 40px;

    margin-bottom: 10px;

}



.resident-card h4 {

    margin-bottom: 5px;

    color: #2c3e50;

}



.resident-card p {

    color: #7f8c8d;

    font-size: 14px;

}



.text-center {

    text-align: center;

}



.btn-primary {

    display: inline-block;

    padding: 12px 30px;

    background: #3498db;

    color: white;

    text-decoration: none;

    border-radius: 5px;

    font-weight: 600;

    transition: background 0.3s;

}



.btn-primary:hover {

    background: #2980b9;

}



.btn-block {

    display: block;

    width: 100%;

}



/* Footer */

footer {

    background: #2c3e50;

    color: white;

    padding: 60px 0 20px;

}



.footer-content {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 40px;

    margin-bottom: 40px;

}



.footer-info h3 {

    margin-bottom: 10px;

}



.footer-links ul {

    list-style: none;

}



.footer-links a {

    color: #ecf0f1;

    text-decoration: none;

    line-height: 2;

}



.footer-links a:hover {

    color: #3498db;

}



.footer-bottom {

    text-align: center;

    padding-top: 20px;

    border-top: 1px solid #34495e;

}



/* Login Page */

.login-container {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    padding: 20px;

}



.login-box {

    background: white;

    padding: 40px;

    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    width: 100%;

    max-width: 400px;

}



.login-box h1 {

    margin-bottom: 10px;

    color: #2c3e50;

}



.login-box p {

    color: #7f8c8d;

    margin-bottom: 30px;

}



.form-group {

    margin-bottom: 20px;

}



.form-group label {

    display: block;

    margin-bottom: 5px;

    color: #2c3e50;

    font-weight: 500;

}



.form-group input {

    width: 100%;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 5px;

    font-size: 16px;

}



.form-group input:focus {

    outline: none;

    border-color: #3498db;

}



.alert {

    padding: 12px;

    border-radius: 5px;

    margin-bottom: 20px;

}



.alert.error {

    background: #f8d7da;

    color: #721c24;

    border: 1px solid #f5c6cb;

}



.alert.success {

    background: #d4edda;

    color: #155724;

    border: 1px solid #c3e6cb;

}



.login-footer {

    margin-top: 20px;

    text-align: center;

}



.login-footer a {

    color: #3498db;

    text-decoration: none;

}



/* Admin Panel */

.admin-nav {

    background: #2c3e50;

    color: white;

    padding: 15px 0;

    margin-bottom: 30px;

}



.admin-nav .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.admin-nav a {

    color: white;

    text-decoration: none;

    margin-left: 20px;

}



.admin-section {

    background: white;

    padding: 30px;

    border-radius: 10px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    margin-bottom: 30px;

}



.admin-section h2 {

    margin-bottom: 20px;

    color: #2c3e50;

}



.admin-form {

    max-width: 500px;

}



.residents-table {

    width: 100%;

    border-collapse: collapse;

}



.residents-table th,

.residents-table td {

    padding: 12px;

    text-align: left;

    border-bottom: 1px solid #ddd;

}



.residents-table th {

    background: #f8f9fa;

    font-weight: 600;

}



.residents-table tr:hover {

    background: #f8f9fa;

}



.btn-danger {

    background: #e74c3c;

}



.btn-danger:hover {

    background: #c0392b;

}



.badge {

    background: #3498db;

    color: white;

    padding: 3px 8px;

    border-radius: 3px;

    font-size: 12px;

}



/* Responsive Design */

@media (max-width: 768px) {

    .navbar .container {

        flex-direction: column;

        gap: 15px;

    }

    

    .nav-menu {

        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;

    }

    

    .hero-overlay h2 {

        font-size: 32px;

    }

    

    .hero-overlay p {

        font-size: 16px;

    }

    

    .cards-grid {

        grid-template-columns: 1fr;

    }

    

    .event-item {

        flex-direction: column;

        text-align: center;

    }

    

    .event-date {

        align-self: center;

    }

    

    .footer-content {

        grid-template-columns: 1fr;

        text-align: center;

    }

}

/* Dropdown Menu Styles */

.dropdown {

    position: relative;

}



.dropdown-toggle {

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 5px;

}



.dropdown-menu {

    position: absolute;

    top: 100%;

    left: 0;

    background: white;

    min-width: 320px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    border-radius: 8px;

    padding: 10px 0;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: all 0.3s ease;

    z-index: 1000;

    list-style: none;

    margin-top: 10px;

    border: 1px solid #e0e0e0;

}



.dropdown:hover .dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.dropdown-menu li {

    display: block;

    width: 100%;

}



.dropdown-menu a {

    display: block;

    padding: 12px 20px;

    color: #2c3e50 !important;

    font-size: 14px;

    transition: all 0.3s;

    border-left: 3px solid transparent;

    white-space: nowrap;

}



.dropdown-menu a:hover {

    background: #f8f9fa;

    border-left-color: #3498db;

    padding-left: 25px;

}



/* Arrow indicator */

.dropdown-toggle::after {

    content: '▼';

    font-size: 10px;

    margin-left: 5px;

    transition: transform 0.3s;

}



.dropdown:hover .dropdown-toggle::after {

    transform: rotate(180deg);

}



/* Mobile Responsive Dropdown */

@media screen and (max-width: 768px) {

    .dropdown {

        position: static;

    }

    

    .dropdown-menu {

        position: static;

        opacity: 1;

        visibility: visible;

        transform: none;

        box-shadow: none;

        min-width: 100%;

        margin-top: 5px;

        margin-bottom: 10px;

        display: none;

        background: #f8f9fa;

        border: 1px solid #e0e0e0;

    }

    

    .dropdown.active .dropdown-menu {

        display: block;

    }

    

    .dropdown-menu a {

        padding-left: 30px;

        white-space: normal;

        font-size: 15px;

    }

    

    .dropdown-menu a:hover {

        padding-left: 35px;

    }

    

    .dropdown-toggle::after {

        float: right;

        margin-top: 5px;

    }

}



/* Add a little icon for documents */

.dropdown-menu a::before {

    content: '📄';

    margin-right: 8px;

    font-size: 14px;

}