/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway';
    line-height: 1.6;
    background-color: #f4f4f4;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

#mainHeader.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#mainHeader h1 {
    font-size: 2rem;
    color: #333;
    transition: font-size 0.3s ease;
}

#mainHeader.sticky h1 {
    font-size: 1rem;
}

/* Dropdown */
.dropdown {
    text-align: center;
    margin-bottom: 20px;
}

select {
    font-size: 1rem;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 200px;
}

/* Benefit List */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    border-left: 5px solid;
    transition: background-color 0.3s ease;
}

.benefit h3 {
    font-size: 1.2rem;
    color: #333;
}

.benefit p {
    display: none;
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

/* Category Colors */
.legal { border-left-color: #17a2b8; }
.mental-health { border-left-color: #ffc107; }
.women-health { border-left-color: #28a745; }
.education { border-left-color: #fd7e14; }
.labour-rights { border-left-color: #dc3545; }
.entrepreneurship { border-left-color: #6f42c1; }
.government { border-left-color: #007bff; }
.accommodation { border-left-color: #20c997; }

/* Hover and Active Styles */
.benefit:hover {
    background-color: #f8f9fa;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.benefit.open p {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* WhatsApp Sticky Bar */
#whatsappStickyBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #25d366;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.2rem;
    z-index: 999;
}

#whatsappStickyBar button {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#whatsappStickyBar button:hover {
    background-color: #128c7e;
}

/* Adjust bottom padding of container to avoid overlap with sticky bar */
.container {
    padding-bottom: 80px; /* Adjust based on the height of the sticky bar */
}

/* Optional: If you want to ensure there's space at the bottom of the last benefit */
.benefit-list .benefit:last-child {
    margin-bottom: 80px; /* Same as sticky bar height */
}
