/* ==========================================================================
   Lok Kalyan Samiti (LKS) - Clean Modern Responsive Stylesheet
   Brand Colors: #29af8a (Primary), #1f8a6c (Dark), #43e6b9 (Accent), #1e293b (Ink)
   ========================================================================== */

/* Base Typography & Smooth Rendering */
body {
    color: #334155;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top Header */
.header1 {
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid #eef2f6;
}
.header1 .navbar-brand {
    height: auto;
    padding: 4px 15px 4px 0;
}
.header1 .emergency-contact {
    margin-top: 10px !important;
}
.header1 .btn-primary.btn-outline {
    margin-top: 12px !important;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

/* Primary Navigation - Single Row on Desktop */
.navbar2 {
    border: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
@media (min-width: 992px) {
    .navbar2 .navbar-collapse {
        padding-left: 0;
        padding-right: 0;
    }
    .navbar2 .navbar-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        float: none !important;
        width: 100%;
    }
    .navbar2 .navbar-nav > li {
        float: none;
        flex: 0 0 auto;
    }
    .navbar2 .navbar-nav > li > a {
        padding: 15px 11px !important;
        font-size: 12px !important;
        font-weight: 600;
        letter-spacing: 0.3px;
        white-space: nowrap;
        line-height: 20px !important;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar2 .navbar-nav > li > a {
        padding: 14px 7px !important;
        font-size: 11px !important;
        letter-spacing: 0 !important;
    }
}
.navbar2 .navbar-nav > li.active > a,
.navbar2 .navbar-nav > li.active > a:hover,
.navbar2 .navbar-nav > li.active > a:focus {
    background-color: #1f8a6c !important;
    color: #fff !important;
}
.navbar2 .navbar-nav > li > a:hover,
.navbar2 .navbar-nav > li > a:focus {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: #fff !important;
}
.navbar2 .dropdown-menu {
    border: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
    padding: 6px 0;
    min-width: 220px;
}
.navbar2 .dropdown-menu > li > a {
    padding: 10px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.navbar2 .dropdown-menu > li > a:hover,
.navbar2 .dropdown-menu > li.active > a {
    background-color: #f0faf7;
    color: #1f8a6c;
}

/* Hero Slider */
.featured_events .item {
    position: relative;
    overflow: hidden;
    max-height: 62vh;
}
.featured_events .item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.15) 60%, rgba(15, 23, 42, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}
.featured_events .item > img {
    width: 100%;
    height: 55vh;
    min-height: 300px;
    max-height: 540px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.featured_events .item .caption {
    z-index: 2;
}
.featured_events .featured_event_box {
    border-radius: 12px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22) !important;
    border-top: 4px solid #29af8a;
}

/* About Banner on Home */
.lks-home-about {
    background: linear-gradient(135deg, #219675 0%, #29af8a 55%, #37c9a0 100%);
    padding: 36px 42px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(41, 175, 138, 0.2);
    margin: 0 0 36px;
}
.lks-home-about .label-default {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.lks-home-about h3 {
    color: #fff;
    margin: 14px 0 14px;
    font-weight: 700;
    font-size: 26px;
}
.lks-home-about p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.96);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Why Choose Us Cards */
.help-process_row {
    display: flex;
    flex-wrap: wrap;
}
.help-process_row > h3 {
    width: 100%;
    font-weight: 700;
    color: #1e293b;
    font-size: 24px;
}
.help-process_row .help-process {
    display: flex;
    margin-bottom: 24px;
}
.lks-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #29af8a;
    border-radius: 12px;
    padding: 28px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.lks-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.lks-feature-card .icon_box {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.lks-feature-card .icon_box img {
    max-height: 64px;
    width: auto;
}
.lks-feature-card h5 {
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 12px;
    text-align: center;
}
.lks-feature-card p {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}
.lks-feature-card a {
    display: inline-block;
    margin-top: 10px;
    color: #29af8a;
    font-weight: 700;
    text-decoration: none;
}
.lks-feature-card a:hover {
    color: #1f8a6c;
    text-decoration: underline;
}

/* Causes Cards */
.lks-cause-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}
.causes_carousel .item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    background: #fff;
}
.causes_carousel .item .cuase_title {
    min-height: 44px;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.4;
}
.fund_raises h2, .fund_raises h3 {
    font-size: 18px;
}

/* Become Volunteer Banner on Home */
.beVolunteer {
    position: relative;
}
.beVolunteer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 30, 0.72);
    z-index: 0;
}
.beVolunteer > .container {
    position: relative;
    z-index: 1;
}

/* Page Header Banner (Clean Geometric Gradient + Breadcrumbs, No Photo) */
.page-header.lks-page-header {
    position: relative;
    padding: 42px 0 38px;
    margin: 0;
    border: 0;
    background: linear-gradient(135deg, #0f2f28 0%, #1a5c4b 55%, #248a6e 100%) !important;
    background-image: linear-gradient(135deg, #0f2f28 0%, #1a5c4b 55%, #248a6e 100%) !important;
    color: #fff;
    overflow: hidden;
}
.page-header.lks-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 88% 20%, rgba(67, 230, 185, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 12% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    z-index: 1 !important;
    opacity: 1 !important;
    pointer-events: none;
}
.page-header.lks-page-header::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, 0.05);
    z-index: 1 !important;
    pointer-events: none;
}
.page-header.lks-page-header > .container {
    position: relative;
    z-index: 2 !important;
}
.lks-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}
.lks-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lks-breadcrumb li + li::before {
    content: "/";
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}
.lks-breadcrumb a {
    color: #a7f3d0;
    text-decoration: none;
    transition: color 0.15s ease;
}
.lks-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}
.lks-breadcrumb li.active span {
    color: #fff;
}
.page-header.lks-page-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff !important;
    letter-spacing: 0.6px;
}
.page-header.lks-page-header .lks-page-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14.5px;
    font-weight: 400;
}

/* Topic / Section Blocks inside Formatted Inner Pages */
.lks-topic-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #29af8a;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.lks-topic-block h3 {
    margin-top: 0 !important;
    color: #1e293b !important;
    font-size: 19px !important;
}
.lks-topic-block h4 {
    margin-top: 16px !important;
    margin-bottom: 8px !important;
    color: #1f6f58 !important;
    font-size: 15.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.lks-topic-block > *:last-child {
    margin-bottom: 0;
}

/* CMS & Content Pages */
.lks-page-section {
    padding: 48px 0 70px;
    background: #f4f7f9;
}
.lks-cms-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 38px 42px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}
.lks-cms-card .team_page_title {
    color: #1e293b;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #eef2f6;
}
.lks-cms-content {
    font-size: 15.5px;
    line-height: 1.8;
    color: #334155;
}
.lks-cms-content h1,
.lks-cms-content h2,
.lks-cms-content h3,
.lks-cms-content h4 {
    color: #1e293b;
    font-weight: 700;
    margin-top: 26px;
    margin-bottom: 12px;
    font-size: 20px;
}
.lks-cms-content h1 {
    font-size: 22px;
}
.lks-cms-content p {
    margin-bottom: 14px;
}
.lks-cms-content ul,
.lks-cms-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}
.lks-cms-content li {
    margin-bottom: 8px;
}
.lks-cms-content a {
    color: #1f8a6c;
    font-weight: 600;
    text-decoration: underline;
}
.lks-cms-content a:hover {
    color: #15634d;
}
.lks-cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Action Cards & Buttons inside CMS Pages */
.lks-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 22px 0;
}
.lks-action-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #29af8a;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lks-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    background: #fff;
}
.lks-action-card h4 {
    margin: 0 0 10px !important;
    font-size: 18px !important;
    color: #1e293b !important;
}
.lks-action-card p {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 18px;
}
.lks-action-card .lks-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #e6f7f2;
    color: #1f8a6c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.lks-btn {
    display: inline-block;
    background: #29af8a;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 22px;
    border-radius: 6px;
    border: 2px solid #29af8a;
    transition: all 0.2s ease;
    text-align: center;
    align-self: flex-start;
}
.lks-btn:hover,
.lks-btn:focus {
    background: #1f8a6c;
    border-color: #1f8a6c;
    color: #fff !important;
    text-decoration: none !important;
}
.lks-btn-outline {
    background: transparent;
    color: #1f8a6c !important;
}
.lks-btn-outline:hover {
    background: #29af8a;
    color: #fff !important;
}

.lks-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.lks-cms-content table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}
.lks-cms-content th,
.lks-cms-content td {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.6;
}
.lks-cms-content th {
    background: #f0faf7;
    color: #1f6f58;
    font-weight: 700;
}
.lks-cms-content tr:nth-child(even) td {
    background: #fafcfc;
}

/* Callout Box */
.lks-callout {
    background: #f0faf7;
    border-left: 4px solid #29af8a;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 26px 0 0;
}
.lks-callout h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1f6f58;
    font-weight: 700;
}

/* About Us Page Overrides */
.who_we_are .label-default.about_var {
    display: inline-block;
    background: #e6f7f2 !important;
    color: #1f8a6c !important;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.who_we_are .team_page_para.about_var {
    color: #334155 !important;
    font-size: 16px !important;
    line-height: 1.85 !important;
    font-family: inherit !important;
}
.lks-mission-grid {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
}
.lks-mission-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 24px;
}
.lks-mission-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #29af8a;
    border-radius: 10px;
    padding: 28px 24px;
    width: 100%;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.lks-mission-card i.fa {
    font-size: 30px;
    color: #29af8a;
    margin-bottom: 14px;
    display: block;
}
.lks-mission-card h5 {
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 12px;
}
.lks-mission-card p {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
}

/* Volunteer / Contact Split Layout & Form */
.lks-contact-info-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
}
.lks-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f3f5;
}
.lks-contact-item:last-child {
    border-bottom: 0;
}
.lks-contact-item .lks-ci-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f0faf7;
    color: #29af8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.lks-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}
.lks-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.lks-captcha-img {
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    height: 46px;
    width: auto;
    background: #f8fafc;
}
.lks-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* Gallery Grid */
.gallery-item .image_row img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .header1 .emergency-contact {
        margin-top: 10px !important;
    }
    .lks-cms-card {
        padding: 26px 24px;
    }
    .help-process_row {
        display: block;
    }
    .help-process_row .help-process {
        display: block;
    }
    .lks-mission-grid {
        display: block;
    }
    .lks-mission-grid > [class*="col-"] {
        display: block;
    }
}
@media (max-width: 767px) {
    .header1 .logo {
        float: none !important;
        text-align: center;
    }
    .header1 .navbar-brand {
        float: none;
        display: inline-block;
        padding: 5px 0;
    }
    .header1 .emergency-contact {
        display: none;
    }
    .featured_events .item > img {
        height: 280px;
        min-height: 220px;
    }
    .lks-home-about {
        padding: 24px 18px;
    }
    .lks-home-about p {
        text-align: left;
        font-size: 15px;
    }
    .lks-cms-card,
    .lks-form-card,
    .lks-contact-info-box {
        padding: 22px 18px;
    }
    .page-header.lks-page-header {
        padding: 36px 0;
    }
    .page-header.lks-page-header h1 {
        font-size: 24px;
    }
}
