/* form */

.form-section {
    background-color: #f0f0f5;
    padding: 40px;
    border-radius: 8px;
    margin-top: 20px;
}

.form-control {
    margin-bottom: 20px;
}

.btn-submit {
    background-color: #f06292;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #ec407a;
}

/* read more */
.read-more {
    border: 1px solid black;
}


/* footer 2 */
footer {
    /* background-color: #161D6F; */
    background-color: #201E43;
    padding: 20px 0;
}


/* Styling for headings and links */
h5 {
    font-weight: bold;
    margin-bottom: 15px;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}


/* Dropdown button styling */
.dropdown-btn {
    background-color: transparent;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chevron icon for dropdown */
.dropdown-btn::after {
    content: "\f078";
    /* Unicode for FontAwesome chevron-down */
    font-family: "Font Awesome 5 Free";
    /* Adjust according to your icon library */
    font-weight: 900;
    margin-left: 8px;
    /* background-color: #161D6F; */
}

/* Dropdown content styling */
.dropdown-content {
    display: none;
    position: absolute;
    /* background-color: #161D6F; */
    background-color: #201E43;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Dropdown content links */
.dropdown-content a {
    color: white;
    padding: 10px 20px;
    display: block;
    text-align: left;
}

/* Dropdowns should open only on click; hover rules removed to avoid accidental opening */

/* Adjust for mobile screens */
@media (max-width: 768px) {
    .text-center {
        margin-bottom: 20px;
    }

    /* Stack columns vertically */
    .col-md-4 {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
        /* Add margin for spacing */
    }

    /* Center the dropdown button on smaller screens */
    .dropdown-btn {
        width: 100%;
        text-align: center;
    }

    /* Make sure dropdown content is positioned properly */
    .dropdown-content {
        position: relative;
        min-width: 100%;
        /* Make it full-width on small screens */
    }

    /* Adjust the alignment for mobile */
    .dropdown-content a {
        text-align: center;
        padding: 15px;
    }
}

/* Ensure equal spacing for footer sections */
@media (min-width: 576px) {
    .footer-section {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-section h5 {
        margin: 0;
    }

    .footer-section a {
        display: block;
        padding: 0 10px;
        width: 100%;
    }
}

/* Consultation form custom styles moved from index.html */
.form-section.custom-consult {
    background: #232628;
    padding: 36px;
    border-radius: 8px;
    color: #fff;
}

.form-section.custom-consult .form-control {
    border-radius: 6px;
    height: 48px;
    background: #fff;
    color: #222;
    border: 1px solid #e6e6e6;
}

.form-section.custom-consult textarea.form-control {
    min-height: 140px;
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.form-section.custom-consult .form-group {
    margin-bottom: 14px;
}

.btn-submit {
    background: #f46ea0;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    box-shadow: none;
}

.btn-submit:hover {
    background: #e45586;
    color: #fff;
}

.form-section .form-label {
    color: #ddd;
    font-weight: 600;
}

/* POSH page highlight link style */
.posh-highlight {
    color: #1976d2;
    text-decoration: underline;
}

/* Footer styles implemented from provided snippet */
.site-footer {
    background: linear-gradient(180deg, #008080 0%, #006666 50%, #004d4d 100%);
    color: #ffffff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: visible; /* allow dropdowns/lists to be visible when opened */
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1FA2A2, #008080, #1FA2A2);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-footer .footer-grid {
    row-gap: 1.5rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.site-footer .footer-section {
    padding: 0 1.5rem;
    flex: 0 0 30.333%;
    box-sizing: border-box;
    text-align: center;
}

.site-footer .footer-section h4 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-align: center;
    height: auto;
    line-height: 1.4;
}

.site-footer .footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #1FA2A2, transparent);
    border-radius: 2px;
}

.site-footer .footer-section ul {
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.site-footer .footer-grid a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    font-size: 15px;
    transition: all 0.25s ease;
    text-align: left; /* keep link text aligned under the heading */
    padding-left: 0.25rem; /* small left offset for visual alignment */
}

.site-footer .footer-grid a:hover {
    color: #E0F7F7;
    transform: translateX(5px);
    text-decoration: none;
}

.site-footer .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.site-footer .social-icons {
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.site-footer .social-icons a {
    color: #fff;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer .social-icons a:hover {
    transform: translateY(-4px);
    color: #008080;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.donate-button {
    position: fixed;
    right: 18px;
    bottom: 90px;
    z-index: 9999;
    width: 56px;
    height: 160px;
    border-radius: 40px;
    background: linear-gradient(180deg, #008080 0%, #006666 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 128, 128, 0.3);
    transition: all 0.3s ease;
}

.donate-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 128, 128, 0.4);
    color: #fff;
}

.site-footer .footer-section {
    padding-top: 0.25rem;
}

.footer-toggle {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font: inherit;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    transition: color 0.25s ease;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

.footer-toggle::after {
    content: '\25BE';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .25s ease;
    font-size: 0.85rem;
}

.footer-toggle:hover {
    color: #E0F7F7;
}

.contact:hover {
    color: #E0F7F7;
}

.footer-section.open .footer-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.site-footer .footer-section.contact h4 {
    padding-bottom: 0.75rem;
}

.site-footer .footer-section.contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #1FA2A2, transparent);
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .site-footer .footer-section {
        flex: 0 0 50%;
        padding: 0.5rem 1rem;
    }

    .site-footer {
        padding: 3rem 0 2rem;
    }

    .site-footer .footer-grid {
        row-gap: 1rem;
        flex-wrap: wrap;
    }

    .site-footer .footer-section ul {
        display: none;
    }

    .site-footer .footer-section.open ul {
        display: block;
    }
}

/* Prevent hover from opening footer dropdowns; only open on click.
   Do NOT hide content when the section is already `.open` so users can
   move the pointer into the opened list without it disappearing. */
.site-footer .footer-section:not(.open):hover ul,
.site-footer .footer-section:not(.open):hover .dropdown-content {
    display: none !important;
}

/* Hide lists by default; JS will add .open and set display:block when clicked */
.site-footer .footer-section ul {
    display: none;
}

.site-footer .footer-section.open ul {
    display: block;
}

@media (max-width: 575.98px) {
    .site-footer .footer-section {
        flex: 0 0 100%;
        padding: 0.4rem 0.6rem;
    }

    .site-footer .footer-grid {
        row-gap: 0.6rem;
    }

    .site-footer .footer-bottom {
        font-size: 0.9rem;
    }

    .site-footer .social-icons a {
        width: 40px;
        height: 40px;
    }
}

/* Ensure footer sections stack vertically (heading above list) on wider screens
   and avoid centering list items mid-column. This overrides any earlier
   rules that turned footer sections into horizontal flex rows. */
.site-footer .footer-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* align lists under headings */
    text-align: left !important;
}

.site-footer .footer-section ul {
    margin-top: 0.5rem;
    width: 100%;
}

.site-footer .footer-section h4 {
    margin-bottom: 0.5rem;
}