@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #ea580c;
    /* Warm Orange/Amber */
    --primary-hover: #c2410c;
    --secondary: #0f172a;
    /* Slate Dark Blue */
    --secondary-light: #1e293b;
    --accent: #059669;
    /* Emerald Green for donations/success */
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --white: #ffffff;
    --border: #e2e8f0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-bg-gray {
    background-color: #f1f5f9;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(234, 88, 12, 0.6);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(15, 23, 42, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Top Bar Info */
.top-bar {
    background-color: var(--secondary);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--secondary-light);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-info a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-info a:hover {
    color: var(--white);
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: var(--text-light);
}

.top-bar-social a:hover {
    color: var(--white);
}

/* Navbar */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid var(--primary); */
}

.logo-text h1 {
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-donate-btn {
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.nav-donate-btn:hover {
    background-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5, 150, 105, 0.5);
}

.nav-donate-btn::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* Slider Section */
.slider-container {
    position: relative;
    height: 70vh;
    min-height: 480px;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.4));
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    margin-left: 10%;
}

.slide-content h2 {
    font-size: 3.5rem;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Quick Donate Sticky Strip */
.quick-donate-strip {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    padding: 25px 0;
    border-bottom: 4px solid var(--primary);
}

.quick-donate-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.quick-donate-text h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.quick-donate-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Service Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card-img-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.service-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-img {
    transform: scale(1.08);
}

.service-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

/* About Block */
.about-block {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

/* Forms & Cards Styling */
.form-card {
    background-color: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: #f8fafc;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Validation styling */
.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 500;
}

.is-invalid .form-control {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.is-invalid .invalid-feedback {
    display: block;
}

/* Payment Gateway Selector */
.gateway-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.gateway-option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gateway-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.gateway-option:hover {
    border-color: var(--primary);
    background-color: #fffaf8;
}

.gateway-option.selected {
    border-color: var(--primary);
    background-color: #fffaf8;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.gateway-option img {
    height: 30px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px auto;
}

.gateway-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Admin Dashboard CSS */
.admin-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.gateway-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider-switch {
    background-color: var(--accent);
}

input:focus+.slider-switch {
    box-shadow: 0 0 1px var(--accent);
}

input:checked+.slider-switch:before {
    transform: translateX(26px);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.contact-info-card h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-detail-item i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 4px;
}

.contact-detail-item h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.contact-detail-item p,
.contact-detail-item a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-detail-item a:hover {
    color: var(--white);
}

/* Map frame */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Footer styling */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 30px 0;
    border-top: 5px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-col p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-contact a {
    color: var(--text-light);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--secondary-light);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Alert Notification styles */
.alert-notif {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-notif-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-notif-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Gallery styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Lightbox Modal styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Mobile responsive adjustments mimicking references */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .slide-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        justify-content: center;
        gap: 15px;
    }

    .top-bar-info {
        justify-content: center;
    }

    .top-bar-social {
        justify-content: center;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Responsive header layout matching bklss.org style */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 0 35px 0;
        gap: 0;
        transition: var(--transition);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        list-style: none;
    }

    .nav-link {
        font-size: 1.05rem;
        display: block;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f1f5f9;
        font-weight: 600;
        color: var(--text-dark);
    }

    .nav-link::after {
        display: none;
    }

    .nav-menu li:nth-last-child(2) .nav-link {
        border-bottom: none;
    }

    .nav-donate-btn {
        display: inline-block !important;
        width: 80% !important;
        margin: 20px auto 0 auto !important;
        padding: 12px 0 !important;
        border-radius: 12px !important;
        text-align: center;
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
    }

    .slider-container {
        height: 50vh;
        min-height: 350px;
    }

    .slide-content {
        margin-left: 5%;
        margin-right: 5%;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .quick-donate-strip {
        padding: 20px 0;
    }

    .quick-donate-strip .container {
        flex-direction: column;
        text-align: center;
    }

    .about-block {
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: block;
        font-size: 0.8rem;
        padding: 8px 0;
    }
    .top-bar-info {
        justify-content: center;
        gap: 8px 15px;
    }

    .logo-text h1 {
        font-size: 1.15rem;
    }

    .logo-text p {
        font-size: 0.65rem;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}