/*
Theme Name: Sikshadwar Theme
Theme URI: http://shikshadwarfoundation.org
Author: Shikshadwar Foundation
Author URI: http://shikshadwarfoundation.org
Description: Custom WordPress theme for Sikshadwar - Gateway to Education. Features a modern design with multi-level navigation menus.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sikshadwar
Tags: education, custom-menu, custom-logo, featured-images
*/

/* ============================================
   Sikshadwar - Custom Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary-orange: #E8831A;
    --primary-orange-dark: #D6700F;
    --primary-red: #cc0000;
    --primary-dark: #990000;
    --primary-light: #ff3333;
    --accent-green: #228B22;
    --accent-brown: #8B4513;
    --bg-light: #f8f5f0;
    --bg-cream: #fffaf0;
    --text-dark: #2d2d2d;
    --text-muted: #6c757d;
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* ---- Global Styles ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
}

p, span, small, a, li, label, input, textarea, select, button, .badge {
    font-family: var(--font-primary);
}

.section-title {
    font-size: 2.5rem;
    position: relative;
}

/* ---- Primary Button ---- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), #770000);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(204, 0, 0, 0.45);
}

.btn-outline-danger {
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
}

/* ---- Donate Now Button (header & slider) ---- */
.btn-donate {
    background-color: var(--primary-dark);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 28px;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(153, 0, 0, 0.35);
}

.btn-donate:hover {
    background-color: #770000;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 0, 0, 0.45);
}

/* Great Place To Work badge in header (reference: prayatnaworld.org) */
.header-gptw-badge {
    object-fit: contain;
    height: 50px;
    width: auto;
}

/* ============ NAVBAR ============ */
.navbar {
    padding: 10px 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.active > .nav-link {
    color: var(--text-dark) !important;
}

/* Orange top border on hover for parent items */
.navbar-nav > .nav-item > .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
    border-radius: 0 0 3px 3px;
}

.navbar-nav > .nav-item > .nav-link:hover::before,
.navbar-nav > .nav-item.active > .nav-link::before,
.navbar-nav > .nav-item:hover > .nav-link::before,
.navbar-nav > .nav-item.show > .nav-link::before {
    width: 70%;
}

/* Dropdown arrow for menu items with children */
.navbar-nav .nav-item.menu-item-has-children > .nav-link::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-item.menu-item-has-children:hover > .nav-link::after {
    transform: rotate(180deg);
}

/* ============ DROPDOWN MENUS ============ */
.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 0;
    border-top: 3px solid var(--primary-orange);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 0;
    min-width: 220px;
    animation: fadeInDown 0.3s ease;
    display: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show dropdown on hover (desktop) */
@media (min-width: 992px) {
    .navbar-nav .nav-item.menu-item-has-children:hover > .dropdown-menu {
        display: block;
    }
}

.navbar-nav .dropdown-menu .dropdown-item {
    padding: 8px 25px;
    font-size: 0.9rem;
    color: #333;
    transition: var(--transition);
    font-weight: 400;
    border-left: 3px solid transparent;
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus,
.navbar-nav .dropdown-menu .dropdown-item.active {
    background-color: rgba(232, 131, 26, 0.08);
    color: var(--primary-orange);
    border-left-color: var(--primary-orange);
}

/* Current page sub-menu highlight */
.navbar-nav .dropdown-menu .dropdown-item.current-menu-item,
.navbar-nav .dropdown-menu .current-menu-item > .dropdown-item {
    color: var(--primary-orange);
    background-color: rgba(232, 131, 26, 0.08);
    border-left-color: var(--primary-orange);
}

/* ============ PAGE HEADER / BREADCRUMB ============ */
.page-header {
    padding: 120px 0 50px;
    text-align: center;
    background: #fff;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: var(--primary-orange);
}

.breadcrumb-nav .current {
    color: var(--primary-orange);
    font-weight: 500;
}

/* ============ HERO SECTION ============ */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #fff5f5 50%, #f0f8ff 100%);
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-primary);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-primary);
    line-height: 1.5;
}

.hero-logo-img {
    max-height: 450px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
}

.hero-stats {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Decorative Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-green);
    bottom: 50px;
    left: -80px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #ffc107;
    bottom: -50px;
    right: 20%;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============ ABOUT SECTION ============ */
#about {
    background: var(--bg-light);
}

.about-image-wrapper {
    position: relative;
}

.about-card {
    position: relative;
    z-index: 2;
    margin-bottom: -30px;
    margin-left: 40px;
    max-width: 350px;
    border-left: 4px solid var(--primary-red);
}

.about-decoration {
    position: relative;
    z-index: 1;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5, #f0fff0);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ COURSES SECTION ============ */
.course-card {
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.course-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary-red);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.course-img-placeholder {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.course-img-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
}

.bg-gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.bg-gradient-2 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.bg-gradient-3 { background: linear-gradient(135deg, #fc5c7d, #6a82fb); }
.bg-gradient-4 { background: linear-gradient(135deg, #00b4db, #0083b0); }
.bg-gradient-5 { background: linear-gradient(135deg, #f12711, #f5af19); }
.bg-gradient-6 { background: linear-gradient(135deg, #654ea3, #eaafc8); }

/* ============ FEATURES SECTION ============ */
.feature-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.stats-bar {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.stats-bar::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -80px;
    left: -30px;
}

/* ============ TESTIMONIALS ============ */
.testimonial-card {
    transition: var(--transition);
    border-left: 4px solid transparent;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: rgba(204, 0, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 50%, #660000 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============ CONTACT SECTION ============ */
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(204, 0, 0, 0.15);
}

.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(180deg, #1a1a2e, #16213e) !important;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateY(-3px);
}

/* ============ BACK TO TOP ============ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: none;
    z-index: 1040;
    border: none;
    font-size: 1.2rem;
    transition: var(--transition);
    background: var(--primary-red);
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.4);
}

#backToTop.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ PAGE CONTENT AREA ============ */
.page-content {
    padding: 60px 0;
    min-height: 50vh;
}

.page-content .entry-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-content .entry-content p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.page-content .entry-content h2 {
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.page-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Media Reports: two-column (image + text) layout, stack on small screens */
.sikshadwar-media-report-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
@media (max-width: 768px) {
    .sikshadwar-media-report-row {
        grid-template-columns: 1fr;
    }
}

/* ============ BLOG / ARCHIVE ============ */
.blog-card {
    transition: var(--transition);
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .entry-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Blog pagination (page-blog-page.php paginate_links) */
.page-content .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}
.page-content .page-numbers li a,
.page-content .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: var(--text-muted, #666);
    border: 1px solid #dee2e6;
    transition: var(--transition, 0.2s ease);
}
.page-content .page-numbers li a:hover {
    background: var(--primary, #E8831A);
    color: #fff;
    border-color: var(--primary, #E8831A);
}
.page-content .page-numbers li span.current {
    background: var(--primary, #E8831A);
    color: #fff;
    border-color: var(--primary, #E8831A);
}

/* ============ RESPONSIVE STYLES ============ */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.3rem !important;
    }
    
    .hero-logo-img {
        max-height: 300px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    /* Mobile dropdown styles */
    .navbar-nav .nav-item.menu-item-has-children > .nav-link::before {
        display: none;
    }

    .navbar-nav .dropdown-menu {
        border-top: none;
        box-shadow: none;
        padding-left: 15px;
        animation: none;
        display: none;
        background: #f8f9fa;
        border-radius: 8px;
        margin: 5px 0;
    }

    .navbar-nav .dropdown-menu.show {
        display: block;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 6px 20px;
        font-size: 0.9rem;
        border-left: none;
    }

    .about-card {
        margin-left: 0;
        max-width: 100%;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-logo-img {
        max-height: 250px;
    }
    
    .hero-stats h3 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    .cta-section h2 {
        font-size: 1.8rem !important;
    }

    .stats-bar h2 {
        font-size: 1.5rem;
    }

    .course-img-placeholder {
        height: 150px;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .page-header {
        padding: 100px 0 30px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
    
    .hero-stats .vr {
        display: none;
    }
    
    .hero-stats > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .d-flex.flex-wrap.gap-3 .btn {
        width: 100%;
    }

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

    .contact-form {
        padding: 20px !important;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ============ UTILITY CLASSES ============ */
.text-danger {
    color: var(--primary-red) !important;
}

.bg-danger-subtle {
    background-color: rgba(204, 0, 0, 0.1) !important;
}

/* ============ SELECTION COLOR ============ */
::selection {
    background: var(--primary-red);
    color: #fff;
}

::-moz-selection {
    background: var(--primary-red);
    color: #fff;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============ LOADING ANIMATION ============ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ ABOUT US PAGE (Reference: prayatnaworld.org/about-us) ============ */
.about-us-page {
    padding-bottom: 60px;
}

.about-hero {
    padding: 140px 0 40px;
    text-align: center;
    background: #fff;
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-brown, #5c4033);
    margin-bottom: 10px;
}

.about-hero-breadcrumb {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.about-hero-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.about-hero-breadcrumb a:hover {
    color: var(--primary-orange);
}

.about-hero-breadcrumb .current {
    color: var(--accent-brown, #5c4033);
    font-weight: 500;
}

/* ============ ABOUT SUB-PAGES (Annual Reports, Statutory Documents) ============ */
.about-sub-page {
    padding-bottom: 60px;
}

.about-sub-content {
    padding: 50px 0 60px;
    background: #faf8f5;
}

.about-docs-section {
    margin-bottom: 48px;
}

.about-docs-section:last-child {
    margin-bottom: 0;
}

.about-docs-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.about-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.about-doc-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.about-doc-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.about-doc-card--audit {
    border-left-color: #28a745;
}

.about-doc-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.about-doc-link {
    color: var(--primary-orange);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.about-doc-link:hover {
    text-decoration: underline;
    color: var(--primary-orange-dark);
}

.about-doc-card--audit .about-doc-link {
    color: #28a745;
}

.about-doc-card--audit .about-doc-link:hover {
    color: #218838;
}

@media (max-width: 768px) {
    .about-docs-grid {
        grid-template-columns: 1fr;
    }
}

.about-intro-section {
    padding: 50px 0 60px;
    background: #faf8f5;
}

/* Leadership-style layout: image + caption float left; copy wraps beside, then full width below. */
.about-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro-inner::after {
    content: "";
    display: table;
    clear: both;
}

.about-intro-media {
    float: left;
    width: 38%;
    max-width: 380px;
    margin-right: clamp(24px, 3.5vw, 40px);
    margin-bottom: 4px;
}

.about-intro-visual {
    position: relative;
    margin-bottom: 16px;
}

.about-intro-visual .about-intro-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    max-height: min(85vh, 520px);
    object-position: center center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.about-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.45;
}

.about-tagline em {
    font-style: normal;
}

.about-intro-inner .about-headline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-brown, #5c4033);
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-headline-accent {
    position: relative;
}

.about-headline-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 8px;
    background: rgba(232, 131, 26, 0.4);
    z-index: -1;
}

.about-intro-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.about-lives-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #fff;
}

.about-section-headline {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
    text-transform: none;
}

.about-section-headline--dark {
    color: var(--text-dark);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.about-stat-item {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    font-size: 1.75rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.about-stat-label {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
}

.about-mission-section {
    padding: 60px 0;
    background: #fff;
}

.about-mission-section .about-section-headline--dark {
    margin-bottom: 16px;
}

.about-grassroot-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.about-grassroot-desc {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 36px;
}

.about-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-mission-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
}

.about-mission-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 12px;
}

.about-mission-card p {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.about-certificates-section {
    padding: 60px 0;
    background: #faf8f5;
}

.about-cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.about-cert-item {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.about-cert-image-wrap {
    margin-bottom: 20px;
    text-align: center;
}

.about-cert-image-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.about-cert-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.about-cert-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.about-cert-item a {
    color: var(--primary-orange);
}

.about-board-section,
.about-team-section {
    padding: 60px 0;
    background: #fff;
}

.about-advisory-section {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.about-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 28px;
}

.about-people-grid--board {
    max-width: 1100px;
    margin: 0 auto;
}

.about-people-grid--team {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.about-person-card {
    text-align: center;
}

.about-person-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #eee;
}

.about-person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-person-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.about-person-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.about-advisory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-advisory-item {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .about-intro-media {
        float: none;
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
    }
    .about-intro-visual .about-intro-img {
        max-height: min(70vh, 480px);
    }
    .about-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .about-mission-grid {
        grid-template-columns: 1fr;
    }
    .about-cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 120px 0 30px;
    }
    .about-hero-title {
        font-size: 2rem;
    }
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .about-cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-stat-number {
        font-size: 2rem;
    }
    .about-people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-people-grid--team {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============ JOIN US PAGE (Reference: prayatnaworld.org/join-us) ============ */
.join-us-page {
    padding-bottom: 60px;
    min-height: 100vh;
}

/* Ensure all sections are visible (override any conflicting rules) */
.join-us-page .join-us-hero,
.join-us-page .join-us-cards-section,
.join-us-page .join-us-voice-section,
.join-us-page .join-us-form-section {
    display: block !important;
    visibility: visible !important;
}

.join-us-hero {
    padding: 140px 0 50px;
    text-align: center;
    background: #fff;
    min-height: 200px;
}

.join-us-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.join-us-breadcrumb {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.join-us-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.join-us-breadcrumb a:hover {
    color: var(--primary-orange);
}

.join-us-breadcrumb .current {
    color: var(--accent-brown, #5c4033);
    font-weight: 500;
}

.join-us-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-brown, #5c4033);
    margin-bottom: 8px;
}

.join-us-tagline {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.join-us-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 0;
}

.join-us-cards-section {
    padding: 40px 0 50px;
    background: #f8f9fa;
}

.join-us-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.join-us-card {
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    border-top: 4px solid var(--primary-orange);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.join-us-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.join-us-card-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 1rem;
}

.join-us-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(180deg, var(--primary-red), var(--primary-dark));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: lowercase;
    border: none;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(153, 0, 0, 0.35);
}

.join-us-btn:hover {
    background: linear-gradient(180deg, var(--primary-dark), #770000);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 0, 0, 0.45);
}

.join-us-voice-section {
    padding: 30px 0 40px;
    background: #fff;
}

.join-us-voice-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #fff;
    padding: 36px 40px;
    border-radius: 10px;
    text-align: center;
}

.join-us-voice-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.join-us-voice-text {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

.join-us-form-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
}

.join-us-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    box-sizing: border-box;
    overflow: hidden;
}

.join-us-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    min-width: 0;
}

.join-us-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.join-us-form-group.join-us-form-full {
    grid-column: 1 / -1;
}

.join-us-form-group label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.join-us-form-group .required {
    color: #c00;
}

.join-us-form-group input,
.join-us-form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.join-us-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.join-us-form-group input:focus,
.join-us-form-group textarea:focus {
    border-color: var(--primary-orange);
    outline: none;
}

.join-us-form-actions {
    margin-top: 28px;
    grid-column: 1 / -1;
}

.join-us-btn-submit {
    border: none;
    cursor: pointer;
    padding: 14px 40px;
    font-size: 1rem;
    min-width: 140px;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .join-us-hero {
        padding: 120px 0 36px;
    }
    .join-us-hero-title {
        font-size: 2rem;
    }
    .join-us-tagline {
        font-size: 1.5rem;
    }
    .join-us-subtitle {
        font-size: 1.25rem;
    }
    .join-us-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .join-us-form-grid {
        grid-template-columns: 1fr;
    }
    .join-us-form {
        padding: 24px 20px;
    }
}

/* ============ CONTACT US PAGE ============ */
.contact-page {
    padding-bottom: 80px;
    min-height: 100vh;
    background: #fff;
}

.contact-page-hero {
    padding: 140px 0 40px;
    text-align: center;
    background: #fff;
}

.contact-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #155d5d;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-page-title-accent {
    position: relative;
    display: inline-block;
}

.contact-page-title-accent::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 4px;
    height: 5px;
    background: var(--primary-orange);
    border-radius: 3px;
    opacity: 0.95;
}

.contact-page-lead {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

.contact-page-lead em {
    font-style: italic;
    color: #444;
}

.contact-page-main {
    padding: 20px 0 60px;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.contact-info-item {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.contact-info-item--last {
    border-bottom: none;
}

.contact-info-icon {
    color: var(--primary-orange);
    font-size: 1.4rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.contact-info-text {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 0.98rem;
}

.contact-info-text a {
    color: #555;
    text-decoration: none;
}

.contact-info-text a:hover {
    color: var(--primary-orange);
}

.contact-form-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.25;
}

.contact-form-hint {
    font-size: 0.8125rem;
    color: #777;
    margin-bottom: 16px;
    line-height: 1.45;
}

.contact-form-hint .required {
    color: var(--primary-orange);
    font-weight: 600;
}

.contact-page-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
}

.contact-page-form-group {
    margin: 0;
}

.contact-page-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.contact-page-form-group .optional {
    font-weight: 400;
    color: #888;
    font-size: 0.8125rem;
}

.contact-page-form-group input,
.contact-page-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    font-size: 0.9375rem;
    line-height: 1.45;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.contact-page-form-group textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

.contact-page-form-group input:focus,
.contact-page-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px rgba(232, 131, 26, 0.12);
}

.contact-page-form-actions {
    margin-top: 4px;
    padding-top: 2px;
}

.contact-page-submit {
    background: #5c3317;
    color: #fff;
    border: none;
    padding: 11px 28px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(92, 51, 23, 0.2);
}

.contact-page-submit:hover {
    background: #4a2a12;
    color: #fff;
    box-shadow: 0 3px 10px rgba(92, 51, 23, 0.28);
}

.contact-page-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.contact-page-form .is-invalid {
    border-color: #dc3545 !important;
}

@media (min-width: 992px) {
    .contact-page-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .contact-page-form-wrap {
        border-left: 1px solid #e8e8e8;
        padding-left: 48px;
        margin-left: 8px;
    }

    .contact-page-info {
        padding-right: 32px;
    }
}

@media (max-width: 991px) {
    .contact-page-title {
        font-size: 2rem;
    }

    .contact-page-form-wrap {
        border-top: 1px solid #eee;
        margin-top: 16px;
        padding-top: 32px;
    }
}

@media (max-width: 575px) {
    .contact-page-form {
        padding: 14px 14px;
        gap: 10px;
    }
}

/* ============ EDUCATION PAGE (Reference: prayatnaworld.org/education) ============ */
.education-page {
    padding-bottom: 60px;
}

.education-hero {
    padding: 140px 0 40px;
    text-align: center;
    background: #fff;
}

.education-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.education-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-brown, #5c4033);
    margin-bottom: 10px;
}

.education-hero-breadcrumb {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.education-hero-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.education-hero-breadcrumb a:hover {
    color: var(--primary-orange);
}

.education-hero-breadcrumb .current {
    color: var(--accent-brown, #5c4033);
    font-weight: 500;
}

.education-intro-section {
    padding: 50px 0 40px;
    background: #fff;
}

.education-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.education-intro-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.education-intro-content p:last-child {
    margin-bottom: 0;
}

.education-programmes-section {
    padding: 50px 0 60px;
    background: #faf8f5;
}

.education-programmes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.education-programme-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.education-programme-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.education-programme-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.education-programme-link {
    color: var(--primary-orange);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.education-programme-link:hover {
    text-decoration: underline;
    color: var(--primary-orange-dark);
}

.education-past-programmes {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 28px 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.education-past-programmes .education-programme-title {
    margin-bottom: 12px;
}

.education-gallery-section {
    padding: 30px 0;
    background: #faf8f5;
}

.education-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.education-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .education-hero {
        padding: 120px 0 30px;
    }
    .education-hero-title {
        font-size: 2rem;
    }
    .education-programmes-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ WHAT WE DO PAGES (Emergency Relief, Healthcare, Livelihood, Sustainable Development, Youth Development) ============ */
.whatwedo-page {
    padding-bottom: 60px;
}

.whatwedo-hero {
    padding: 140px 0 40px;
    text-align: center;
    background: #fff;
}

.whatwedo-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.whatwedo-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-brown, #5c4033);
    margin-bottom: 10px;
}

.whatwedo-hero-breadcrumb {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.whatwedo-hero-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.whatwedo-hero-breadcrumb a:hover {
    color: var(--primary-orange);
}

.whatwedo-hero-breadcrumb .current {
    color: var(--accent-brown, #5c4033);
    font-weight: 500;
}

.whatwedo-intro-section {
    padding: 50px 0 40px;
    background: #fff;
}

.whatwedo-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.whatwedo-intro-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.whatwedo-intro-content p:last-child {
    margin-bottom: 0;
}

.whatwedo-intro-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.whatwedo-subheading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.whatwedo-sdg-list {
    margin: 1rem 0 1.5rem 1.5rem;
    padding: 0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

.whatwedo-programmes-section {
    padding: 50px 0 60px;
    background: #faf8f5;
}

.whatwedo-programmes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.whatwedo-programme-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.whatwedo-programme-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.whatwedo-programme-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.whatwedo-programme-link {
    color: var(--primary-orange);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.whatwedo-programme-link:hover {
    text-decoration: underline;
    color: var(--primary-orange-dark);
}

.whatwedo-past-programmes {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 28px 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.whatwedo-past-programmes .whatwedo-programme-title {
    margin-bottom: 12px;
}

.whatwedo-hero-image-section {
    padding: 0 0 30px;
    background: #fff;
}

.whatwedo-hero-single-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.whatwedo-hero-images {
    padding: 0 0 30px;
    background: #faf8f5;
}

.whatwedo-hero-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.whatwedo-hero-image-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .whatwedo-hero {
        padding: 120px 0 30px;
    }
    .whatwedo-hero-title {
        font-size: 2rem;
    }
    .whatwedo-programmes-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ GALLERY PAGE (Reference: prayatnaworld.org/gallery) ============ */
.gallery-page {
    padding-bottom: 60px;
}

.gallery-hero {
    padding: 140px 0 40px;
    text-align: center;
    background: #fff;
}

.gallery-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-brown, #5c4033);
    margin-bottom: 10px;
}

.gallery-hero-breadcrumb {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.gallery-hero-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.gallery-hero-breadcrumb a:hover {
    color: var(--primary-orange);
}

.gallery-hero-breadcrumb .current {
    color: var(--accent-brown, #5c4033);
    font-weight: 500;
}

.gallery-tabs-section {
    padding: 0 0 30px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-tab {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-tab:hover {
    background: #f5f5f5;
    border-color: var(--accent-brown, #5c4033);
    color: var(--accent-brown, #5c4033);
}

.gallery-tab.gallery-tab--active {
    background: var(--accent-brown, #5c4033);
    border-color: var(--accent-brown, #5c4033);
    color: #fff;
}

.gallery-grid-section {
    padding: 40px 0 60px;
    background: #faf8f5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

.gallery-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.gallery-item-inner {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-empty {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 120px 0 30px;
    }
    .gallery-hero-title {
        font-size: 2rem;
    }
    .gallery-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .gallery-tab {
        flex-shrink: 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ============ PRAYATNA-STYLE FRONT PAGE (Sikshadwar colours) ============ */

/* Hero Slider */
.hero-slider-section {
    position: relative;
    min-height: 100vh;
    padding-top: 0;
    overflow: hidden;
}

.hero-slider-section .carousel,
.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
    min-height: 100vh;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Focal points for mixed-aspect photos in full-viewport cover */
.hero-slide-bg--upper {
    background-position: center 24%;
}

.hero-slide-bg--mid {
    background-position: center 38%;
}

.hero-slide-bg--portrait {
    background-position: center 32%;
}

.hero-slide-caption {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 96px;
    color: #fff;
    text-align: left;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .hero-slide-caption {
        justify-content: flex-start;
        padding-top: clamp(116px, 20vh, 248px);
        padding-bottom: 100px;
    }
}

.hero-slide-caption > .hero-slide-title,
.hero-slide-caption > .hero-slide-subtitle {
    max-width: 42rem;
}

.hero-slide-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-slide-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.btn-hero-donate {
    background-color: var(--primary-dark);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 36px;
    align-self: flex-start;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(153, 0, 0, 0.4);
}

.btn-hero-donate:hover {
    background-color: #770000;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(153, 0, 0, 0.5);
}

.hero-slide-tag {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    padding: 10px 22px;
    display: inline-block;
    max-width: min(42rem, 100%);
}

.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    z-index: 4;
}

.hero-slider-section .carousel-control-prev { left: clamp(10px, 2.5vw, 28px); }
.hero-slider-section .carousel-control-next { right: clamp(10px, 2.5vw, 28px); }

.hero-shape-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 3;
}

.hero-shape-bottom svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Welcome section */
.welcome-section {
    background: #fff;
}

.welcome-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.welcome-heading-brand {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.welcome-heading-brand::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
    border-radius: 2px;
}

.welcome-subheading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Framed portrait: border hugs image, no inner gap or letterboxing */
.welcome-section .welcome-row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

@media (min-width: 992px) {
    .welcome-section .welcome-row {
        --bs-gutter-x: 0.75rem; /* ~12px between image frame and text */
    }
}

.welcome-img-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    border: 1px solid #1f2937;
    border-radius: 20px;
    box-sizing: border-box;
    overflow: hidden;
    /* Match source dimensions so cover fills frame without empty bands */
    aspect-ratio: 807 / 1600;
    max-height: min(360px, 65vh);
}

@media (min-width: 992px) {
    .welcome-img-wrap {
        margin-left: 0;
        margin-right: 0;
        max-height: min(420px, 75vh);
    }
}

.welcome-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.btn-sikshadwar-outline {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    font-weight: 600;
    padding: 10px 28px;
    transition: var(--transition);
}

.btn-sikshadwar-outline:hover {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

.btn-sikshadwar-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    transition: var(--transition);
}

.btn-sikshadwar-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #770000);
    color: #fff;
    transform: translateY(-2px);
}

/* Section headings (Prayatna style) */
.section-heading-prayatna {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.section-subheading-prayatna {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.section-underline {
    width: 100px;
    height: 4px;
    background: var(--primary-orange);
    margin-bottom: 1rem;
}

/* What We Provide cards */
.provide-icon {
    font-size: 2rem;
}

.provide-link {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.provide-link:hover {
    color: var(--primary-dark);
}

/* Our Work cards */
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
    border-left: 4px solid var(--primary-red) !important;
}

.work-card .card-body {
    border-left: 4px solid transparent;
    transition: var(--transition);
}

/* Campaign cards */
.campaign-card {
    transition: var(--transition);
}

.campaign-card:hover {
    transform: translateY(-5px);
}

/* Accordion Prayatna */
.accordion-prayatna .accordion-button {
    background: #fff;
    color: var(--text-dark);
}

.accordion-prayatna .accordion-button:not(.collapsed) {
    background: rgba(204, 0, 0, 0.08);
    color: var(--primary-red);
    box-shadow: none;
}

.accordion-prayatna .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(204, 0, 0, 0.2);
}

/* Volunteer CTA section */
.volunteer-cta-section {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.volunteer-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.volunteer-cta-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1rem;
}

.btn-volunteer {
    background: var(--primary-orange);
    color: #fff !important;
    border: 3px solid var(--primary-orange);
    font-weight: 700;
    letter-spacing: 2px;
    padding: 14px 32px;
    transition: var(--transition);
}

.btn-volunteer:hover {
    background: var(--primary-orange-dark);
    border-color: var(--primary-orange-dark);
    color: #fff !important;
    transform: translateY(-2px);
}

.volunteer-count {
    display: inline-block;
    text-align: center;
    padding: 2rem 3rem;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
}

.volunteer-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.volunteer-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* Testimonials Prayatna style */
.testimonial-card-prayatna {
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.testimonial-card-prayatna:hover {
    border-left-color: var(--primary-red);
    transform: translateY(-3px);
}

/* Donate CTA section */
.donate-cta-section {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
}

/* Newsletter section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(232, 131, 26, 0.25);
}

/* Footer CTA cards */
.footer-cta-card {
    transition: var(--transition);
}

.footer-cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
    border-left: 4px solid var(--primary-red) !important;
}

.footer-cta-card .card-body {
    border-left: 4px solid transparent;
}

/* Cert cards */
.cert-card {
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-3px);
}

/* ============ PARTNERS SECTION (Prayatna-style) ============ */
.partners-section {
    background: #fff;
}

.partners-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.partners-underline {
    width: 120px;
    height: 6px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #0693e3 0%, #0693e3 50%, var(--primary-orange) 50%, var(--primary-orange) 100%);
    border-radius: 3px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: #fff;
    border-radius: 8px;
    transition: var(--transition);
    color: inherit;
}

a.partner-logo-item {
    cursor: pointer;
}

a.partner-logo-item:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 3px;
}

.partner-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.partner-logo-item img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo-item--accentors {
    max-width: min(420px, 100%);
}

.partner-logo-item--accentors img {
    max-height: 140px;
}

.partner-logo-item--vidyanjali {
    max-width: min(420px, 100%);
}

.partner-logo-item--vidyanjali img {
    max-height: 140px;
}

@media (max-width: 576px) {
    .partner-logo-item--accentors img,
    .partner-logo-item--vidyanjali img {
        max-height: 100px;
    }
}

@media (max-width: 768px) {
    .hero-slide-caption {
        text-align: center;
        align-items: center;
        margin: 0 auto;
    }
    .btn-hero-donate {
        align-self: center;
    }
}
