@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Root Page Wrapper - Breakout to full viewport width */
.os-custom-page-wrapper {
    background-color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    padding-bottom: 2rem;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    display: block !important;
}

/* Original Component Container - Restored to block width */
.os-modern-services {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Header Mock */
.os-mock-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 2rem;
}
.os-mock-header .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #064e3b;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.os-mock-header .navbar-brand i {
    color: #047857;
    font-size: 1.5rem;
}
.os-mock-header .nav-link {
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.2s;
}
.os-mock-header .nav-link:hover {
    color: #047857;
}
.os-mock-header .btn-donate {
    background-color: #047857;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}
.os-mock-header .btn-donate:hover {
    background-color: #064e3b;
}

/* Hero Section */
.os-hero-banner {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('https://images.unsplash.com/photo-1593113598332-cd288d649433?auto=format&fit=crop&w=1600&q=80') no-repeat center center;
    background-size: cover;
    padding: 6rem 2rem;
    color: #ffffff;
    text-align: center;
    border-bottom: 5px solid #047857;
}
.os-hero-badge {
    background-color: #047857;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.os-hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1rem;
}
.os-hero-title span {
    color: #f59e0b;
}
.os-hero-desc {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Filters & Search Section - Self-contained Flex layout */
.os-filters-container {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.os-filters-container .container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.os-search-input-wrapper {
    position: relative !important;
    max-width: 320px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.os-search-input-wrapper i {
    position: absolute !important;
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    z-index: 10 !important;
}
.os-search-input {
    width: 100% !important;
    padding: 0.6rem 1.25rem 0.6rem 2.75rem !important;
    border-radius: 9999px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.9rem !important;
    outline: none !important;
    transition: border-color 0.2s;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    height: 42px !important;
}
.os-search-input:focus {
    border-color: #047857 !important;
}
.os-filter-tags {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}
.os-filter-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}
.os-filter-tag {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.os-filter-tag.active,
.os-filter-tag:hover {
    background: #047857;
    border-color: #047857;
    color: #ffffff;
}

/* Core Programs Header */
.os-section-header {
    text-align: center;
    padding: 4rem 2rem 2.5rem;
}
.os-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 2.25rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.os-section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Grid & Cards Container */
.os-services-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Self-contained CSS Grid Layout (Bypasses Bootstrap dependencies) */
.os-modern-services #services.os-grid-view {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.75rem !important;
    width: 100% !important;
}
.os-modern-services #services.os-grid-view::before,
.os-modern-services #services.os-grid-view::after {
    display: none !important; /* Clear Bootstrap floats */
}
.os-modern-services #services.os-grid-view .service-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

.os-service-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.os-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}
.os-service-image {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 1rem;
    border-radius: 18px;
}
.os-service-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.os-service-card:hover .os-service-image img {
    transform: scale(1.06);
}
.os-image-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.os-service-body {
    padding: 0.5rem 1.5rem 1.5rem;
}
.os-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.os-category-dot {
    width: 6px;
    height: 6px;
    background-color: #059669;
    border-radius: 50%;
}
.os-service-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.os-service-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}
.os-service-title a:hover {
    color: #047857;
}
.os-service-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.os-metadata-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    width: 100%;
    margin-bottom: 1.25rem;
}
.os-metadata-badge i {
    color: #f59e0b;
    font-size: 0.9rem;
}
.os-discover-link {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.os-discover-link:hover {
    color: #047857;
}
.os-discover-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.os-discover-link:hover .os-discover-arrow {
    background-color: #047857;
    color: #ffffff;
}

/* Volunteer Section - Self-contained Flex layout */
.os-volunteer-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 32px;
    padding: 4rem;
    margin: 5rem auto;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.05);
}
.os-volunteer-section .row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 2.5rem !important;
}
.os-volunteer-section .col-lg-6 {
    flex: 1 1 45% !important;
    min-width: 300px !important;
    box-sizing: border-box !important;
}
.os-volunteer-badge {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #d97706;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.os-volunteer-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.os-volunteer-title span {
    color: #047857;
    font-style: italic;
}
.os-volunteer-desc {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.os-volunteer-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.os-volunteer-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.os-volunteer-feature i {
    color: #f59e0b;
}
.os-btn-volunteer {
    background-color: #047857;
    color: #ffffff;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    border: none;
    font-size: 0.95rem;
    transition: background-color 0.2s;
    display: inline-block;
    text-decoration: none;
}
.os-btn-volunteer:hover {
    background-color: #064e3b;
    color: #ffffff;
}
.os-volunteer-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    position: relative;
}
.os-volunteer-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
}
.os-volunteer-quote {
    position: absolute;
    bottom: -1.5rem;
    left: 2rem;
    right: 2rem;
    background: #1e293b;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.os-volunteer-quote p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}
.os-volunteer-quote span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b;
}

/* Value Columns Section - Self-contained Flex layout */
.os-value-indicators {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}
.os-value-indicators .row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
}
.os-value-indicators .col-6.col-md-3 {
    flex: 1 1 20% !important;
    min-width: 150px !important;
    box-sizing: border-box !important;
}
.os-value-col {
    text-align: center;
}
.os-value-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ecfdf5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.25rem;
}
.os-value-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.os-value-desc {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Custom Footer */
.os-custom-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 5rem 2rem 2rem;
}
.os-footer-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 1.25rem;
}
.os-footer-desc {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.os-subscribe-form {
    display: flex;
    gap: 0.5rem;
}
.os-subscribe-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    outline: none;
}
.os-subscribe-btn {
    background-color: #047857;
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}
.os-subscribe-btn:hover {
    background-color: #064e3b;
}
.os-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.os-footer-links li {
    margin-bottom: 0.75rem;
}
.os-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.os-footer-links a:hover {
    color: #047857;
}
.os-footer-socials {
    display: flex;
    gap: 1rem;
}
.os-footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.os-footer-socials a:hover {
    background-color: #047857;
    border-color: #047857;
    color: #ffffff;
}
.os-footer-bottom {
    border-top: 1px solid #e2e8f0;
    margin-top: 4rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.os-footer-copy {
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0;
}
.os-footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.os-footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.os-footer-bottom-links a:hover {
    color: #047857;
}
.os-made-with {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #94a3b8;
}
.os-made-with span {
    font-weight: 700;
    color: #6366f1;
}

/* View Toggle (Hidden or styled cleanly in filters wrapper) */
.os-view-toggle {
    margin-left: auto;
}

/* List view styling */
.os-list-view .service-item {
    width: 100%;
}
.os-list-view .os-service-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.os-list-view .os-service-image {
    flex: 0 0 320px;
    margin: 1rem;
}
.os-list-view .os-service-image img {
    width: 320px;
    height: 100%;
    min-height: 220px;
}
.os-list-view .os-service-body {
    flex: 1;
    padding: 1.5rem 1.5rem 1.5rem 0.5rem;
}

@media (max-width: 991px) {
    .os-volunteer-section {
        padding: 2.5rem;
    }
    .os-volunteer-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .os-hero-title {
        font-size: 2.25rem;
    }
    .os-filters-container {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    .os-search-input-wrapper {
        max-width: 100%;
    }
    .os-volunteer-section {
        padding: 2rem 1.5rem;
        margin: 3rem auto;
    }
    .os-volunteer-title {
        font-size: 1.75rem;
    }
    .os-list-view .os-service-card {
        flex-direction: column;
    }
    .os-list-view .os-service-image {
        width: calc(100% - 2rem);
        flex-basis: auto;
    }
    .os-list-view .os-service-image img {
        width: 100%;
        height: 220px;
    }
    .os-list-view .os-service-body {
        padding: 0.5rem 1.5rem 1.5rem;
    }
}

/* Custom CSS Grid Rules to force 3-column layout */
.os-modern-services #services.os-grid-view {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.75rem !important;
    width: 100% !important;
}
.os-modern-services #services.os-grid-view::before,
.os-modern-services #services.os-grid-view::after {
    display: none !important;
}
.os-modern-services #services.os-grid-view .service-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

@media (max-width: 991px) {
    .os-modern-services #services.os-grid-view {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 600px) {
    .os-modern-services #services.os-grid-view {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}