/* --- Fonts --- */
@font-face {
    font-family: 'aammu';
    src: url('fonts/aammu.woff2') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: 'mvtyper';
    src: url('fonts/mvtyper.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --teal: #2DAAAB;
    --green: #79B494;
    --dark: #2c3e50;
    --light-bg: #f9fbfb;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2DAAAB 0%, #79B494 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center; 
    gap: 12px;          
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.nav-logo-img {
    height: 50px;       
    width: auto;      
    display: block;
}
.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}
@media (max-width: 480px) {
    .logo span {
        font-size: 0.9rem; 
    }
    .nav-logo-img {
        height: 45px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--teal);
}

.nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 10px 25px;
    border-radius: 5px;
}

/* --- Mobile Menu Toggle (Hamburger) --- */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: var(--teal);
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('images/amin-avenue-teak.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: white;
}

.hero-content { max-width: 700px; }
.badge { background: var(--teal); padding: 5px 15px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin: 15px 0; line-height: 1.1; }
.cta-btn { padding: 18px 45px; background: var(--gradient); color: white; text-decoration: none; border-radius: 5px; font-weight: 600; display: inline-block; transition: 0.3s; }

/* --- Sections & Grids --- */
section { padding: 60px 8%; }
.section-header {max-width: 1000px;margin: 0 auto;margin-bottom: 20px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem;}
.alt-bg { background: var(--light-bg); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    gap: 30px;
    justify-content: center;   
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card:nth-child(4),
.card:nth-child(5) {
    justify-self: center;
}
.card {

    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.card:hover { transform: translateY(-10px); }
.card .icon { font-size: 2.5rem; margin-bottom: 5px; }
.card h3 { margin-bottom: 15px; color: var(--teal); }
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    font-size: 28px;
}

.card h3 {
    margin: 0;
    font-size: 18px;
}
/* Tablet */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
/* --- Contact Section --- */
#contact{
    max-width: 1500px;margin: 0 auto;margin-bottom: 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--gradient);
    color: white;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
}
/* Service Card Styling */
.service-card {
    padding: 0; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 180px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--teal); /* amin teak color variation*/
}

.card-body {
    padding: 25px;
    text-align: center;
}

.card-body h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}
footer { background: #111; color: white; padding: 40px; text-align: center; font-size: 0.8rem; }

/* --- RESPONSIVE MOBILE STYLES --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .menu-toggle {
        display: block; /* Show hamburger on mobile */
        z-index: 1001;
    }

    /* Transform Hamburger to X when active */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        top: -100%; /* Hidden above the screen */
        left: 0;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 100px 0 50px;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        top: 0; /* Slide down when active */
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.1rem;
    }

    .contact-container { grid-template-columns: 1fr; }
    

}
/* --- Dropdown Container --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Dropdown Content (Hidden by Default) --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    left: 30px; 
}

/* Links inside the dropdown */
.dropdown-content a {
    color: var(--dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-left: 0 !important; 
    font-size: 0.75rem;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--teal) !important;
}

/* Show dropdown on hover (Desktop) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

/* --- Mobile Specific Dropdown --- */
@media (max-width: 768px) {
    .dropdown {
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        display: none; 
        box-shadow: none;
        background: #fcfdfd;
        width: 100%;
        left: 0;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropbtn i {
        transition: transform 0.3s;
    }
    
    .dropdown.active .dropbtn i {
        transform: rotate(180deg);
    }
}
.view-more-notice-btn {
    padding: 15px 35px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.view-more-notice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 170, 171, 0.3);
}
.portal-notice-card {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee; 
    position: relative;
}

#notice-loader .portal-notice-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#content{
    max-width: 1500px;margin: 0 auto;margin-bottom: 20px;

}
.notice-meta {
    font-size: 0.8rem;
    color: #2daaab;
    display: block;
    margin-bottom: 10px;
}
#resident-notices{
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
    background: #f1f1f1;
    border-color:#ddd;
    border-width:2px;
    border-style:solid;
    border-radius: 20px;
    margin-top: -30px;
}

#notice-loader{
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 20px;
    border-radius:20px;
    color: #7c7a7a;

}
#resident-notices h2 {
    color: #67b2ac;
    font-size: 40px
}
#resident-notices h3{
    color: #54af9f;
}
/*accord*/
#info-accordion {
    max-width: 1000px;margin: 0 auto;margin-bottom: 20px;
    margin: 20px auto;
    padding: 0 0px;

}

.accordion-item {
    border-bottom: 2px dotted #ddd;
    padding: 10px 30px 10px 30px;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content ul {
    padding: 10px 0 20px 0;
    margin: 0;
    list-style: none;
}

.accordion-content li {
    padding: 8px 0;
    color: #555;
}

.arrow {
    font-size: 35px;
    transition: transform 0.3s ease;
    color:#5bad9a;
}

.accordion-item.active .accordion-content {
    max-height: 100%;
}

.accordion-item.active .arrow {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center; 
        justify-content: flex-start;
        text-align: center;
        width: 100%;
    }

    .dropdown {
        width: 100%;
        position: relative;
    }

    .dropbtn {
        display: block;
        width: 100%;
        padding: 15px 0;
        margin: 0 !important;
    }

    .dropdown-content {
        display: none; /* Hidden until toggled */
        position: static; /* Push other items down */
        width: 100%;
        background-color: #f8fbfb; 
        box-shadow: none;
        padding: 10px 0;
    }


    .dropdown.active .dropdown-content {
        display: block !important;
        animation: fadeIn 0.3s ease;
    }

    .dropdown-content a {
        padding: 12px 0;
        margin: 0 !important;
        font-size: 0.95rem;
        color: var(--dark);
        border-bottom: 1px solid #eee;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }
}
/*Team members */

        /* Sub-page Hero Adjustment */
        .hero-sub {
            height: 40vh; /* Shorter than main home hero */
            background: linear-gradient(#2daaab, #79b494), url(''); 
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            padding: 0 8%;
            color: white;
        }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            padding: 20px;
            background: #fff;
            max-width: 1000px;margin: 0 auto;margin-bottom: 20px;

        }

        .team-card {
            text-align: center;
            transition: 0.3s ease;
        }

        .team-img-wrapper {
            width: 200px;
            height: 200px;
            margin: 0 auto 20px;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid var(--teal);
            padding: 5px;
        }

        .team-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .team-card h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            margin-bottom: 5px;
            color: var(--dark);
        }

        .team-card p.role {
            color: var(--teal);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 1px;
            margin-bottom: 15px;
        }

        .team-socials {
            display: flex;
            justify-content: center;
            gap: 15px;
            font-size: 1.2rem;
            color: #ccc;
        }

        .team-socials i:hover {
            color: var(--teal);
            cursor: pointer;
        }
    /*Doanloads*/
    .downloads-container { padding: 10px 8%; max-width: 1500px; margin: 0 auto; }

        /* Table Styling */
        .download-table-wrapper {
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            overflow: hidden;
            margin-top: 20px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }

        thead {
            background-color: var(--light-bg);
            border-bottom: 2px solid #eee;
        }

        th, td {
            padding: 18px 25px;
            font-size: 0.9rem;
        }

        th {
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--teal);
            font-weight: 700;
        }

        tr { border-bottom: 1px solid #f1f1f1; transition: 0.2s; }
        tr:hover { background-color: #fcfdfd; }

        .file-info { display: flex; align-items: center; gap: 15px; }
        .file-icon { font-size: 1.5rem; color: #e74c3c; } /* PDF Red */

        .doc-title { font-weight: 600; color: var(--dark); display: block; }
        .doc-size { font-size: 0.75rem; color: #999; }

        /* Download Button */
        .dl-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 18px;
            background: var(--gradient);
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-size: 0.8rem;
            font-weight: 600;
            transition: 0.3s;
        }

        .dl-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(45, 170, 171, 0.3);
            color: white;
        }

        /* Responsive Table for Mobile */
        @media (max-width: 768px) {
            table, thead, tbody, th, td, tr { display: block; }
            thead { display: none; }
            tr { padding: 20px; border-bottom: 5px solid var(--light-bg); }
            td { padding: 10px 0; border: none; }
            .dl-btn { width: 100%; justify-content: center; padding: 12px; }
        }
/* Gallery Album Layout */
.album-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.album-card {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.album-img-wrapper {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.album-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 128, 128, 0.7); /* Teal theme */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.album-card:hover .album-overlay { opacity: 1; }
.album-card:hover img { transform: scale(1.1); }

.album-info h3 { font-family: 'Playfair Display', serif; margin-top: 15px; font-size: 1.2rem; }

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.back-link { color: var(--teal); text-decoration: none; font-weight: 600; display: block; margin-bottom: 10px; }

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 5px; }

/* Container for consistent spacing */
.container-teak { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-header h2 { font-family: 'Playfair Display', serif; color: #333; }

/* Grid for Albums */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.album-card { text-decoration: none; color: inherit; transition: transform 0.3s; }
.album-card:hover { transform: translateY(-5px); }

.album-thumbnail {
    position: relative;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.album-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.album-badge {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0, 128, 128, 0.9); color: white;
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
}

.album-details h3 { margin: 15px 0 5px; font-size: 1.25rem; font-weight: 600; }
.album-details span { color: #888; font-size: 0.9rem; }

/* Photo Wall for inside the album */
.photo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.photo-item img { 
    width: 100%; height: 220px; object-fit: cover; 
    border-radius: 10px; cursor: pointer; transition: 0.3s;
}
.photo-item img:hover { opacity: 0.8; }

.back-btn { color: var(--teal); text-decoration: none; font-weight: 600; display: inline-block; margin-bottom: 15px; }

/* Lightbox overlay */
.teak-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 9999; display: none;
    align-items: center; justify-content: center;
}
.teak-lightbox img { max-width: 90%; max-height: 85%; border: 3px solid #fff; }
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 50%;
    z-index: 10001;
}
/*notice thumb*/
.notice-thumb-container {
    position: relative;
    width: 120px;
    height: 120px;
    overflow: hidden;
    cursor: pointer;
}

.notice-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-hover:hover .notice-thumb-img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.thumbnail-hover:hover .hover-icon {
    opacity: 1 !important;
}

.hover-icon {
    transition: opacity 0.3s ease;
}

.btn-teal {
    background-color: #2DAAAB;
    color: white;
    border: none;
}

.btn-teal:hover {
    background-color: #248a8b;
    color: white;
}
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}
/**/
.nav-arrow:hover { background: var(--teal); }
.prev { left: 20px; }
.next { right: 20px; }

/* Hide arrows on very small mobile screens to prevent clutter */
@media (max-width: 600px) {
    .nav-arrow { padding: 10px 15px; font-size: 1.2rem; }
}
/* Mobile Specific: 2 Columns */
@media (max-width: 600px) {
    .photo-wall {
        /* Force exactly 2 columns regardless of image width */
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px; /* Slightly tighter gap for smaller screens */
    }

    .photo-item img {
        /* Adjust height for mobile so they don't look too tall/stretched */
        height: 160px; 
    }
    .notice-thumb-container {
    position: relative;
    width: 100%;
    height: 100%;
}
}