@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html {
    overflow-x: hidden;
    /* overflow-y: scroll; */
}

html.no-overflow-y {
    overflow-y: hidden;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: #747474;
    min-width: 320px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: 0px;
    font-style: normal;
}

a {
    text-decoration: none;
    -moz-transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

/* Header Styles */
.top-bar-bg {
    background-color: #015626;
}

.top-bar-text {
    font-size: 13px;
}

.top-bar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 8px 0;
}

.spwd-logo-wrapper {
    display: inline-block;
    padding: 2px;
    border: 1px solid #015626;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.spwd-logo-wrapper:hover {
    text-decoration: none;
    background-color: #f6fdf9;
}

.spwd-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #015626;
    border-radius: 50%;
    padding: 8px 30px;
    color: #015626 !important;
    font-weight: 700;
    font-size: 28px;
    font-family: Arial, sans-serif;
    text-decoration: none;
    line-height: 1;
    letter-spacing: -0.5px;
}

.main-navbar {
    padding-top: 12px;
    padding-bottom: 12px;
}

.main-navbar .nav-link {
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px !important;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active-link {
    color: #015626;
}

/* Dropdown override for hover on large screens */
@media (min-width: 992px) {
    .main-navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Custom Dropdown Caret icon */
.main-navbar .dropdown-toggle::after {
    display: inline-block;
    content: "\f107";
    font-family: FontAwesome;
    border: none;
    vertical-align: middle;
    margin-left: 5px;
    font-weight: 900;
}

/* Custom Dropdown Styling */
/* Dropdown Item Styling */
.main-navbar .dropdown-item {
    color: #ffffff;
    background-color: #015626;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: background-color 0.2s, color 0.2s;

}

.dropdown-menu {
    /* background-color: #015626 !important; */
    --bs-dropdown-bg: transparent !important;
}

.main-navbar .dropdown-menu li:last-child .dropdown-item {
    border-bottom: none;
}

.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
    background-color: #000000;
    color: #ffffff;
}

/* Active sub-link highlight */
.main-navbar .dropdown-item.active-sub-link {
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
}

.custom-toggler-btn {
    border: 2px solid #015626;
    background: transparent;
    border-radius: 0;
    padding: 7px 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 34px;
    width: 38px;
    cursor: pointer;
}

.custom-toggler-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #015626;
}

.mobile-search-icon {
    font-size: 18px;
    color: #cccccc;
}

/* Mobile Menu Refinement */
@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse {
        margin-top: 15px;
        background-color: #ffffff;
        border-top: 1px solid #eeeeee;
    }

    .main-navbar .navbar-nav {
        padding: 0;
    }

    .main-navbar .nav-item {
        border-bottom: 1px solid #eeeeee;
    }

    .main-navbar .nav-link {
        padding: 15px 0 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: #333333;
    }

    .main-navbar .nav-link.active-link {
        color: #015626;
    }

    .main-navbar .dropdown-toggle::after {
        margin-left: auto;
        font-size: 14px;
    }

    .main-navbar .dropdown-menu {
        background-color: #f9f9f9;
        min-width: 100%;
        padding: 0;
        box-shadow: none !important;
    }

    .main-navbar .dropdown-item {
        color: #555555;
        padding: 12px 20px;
        border-bottom: 1px solid #eeeeee;
        background-color: #f9f9f9;
    }

    .main-navbar .dropdown-item:hover,
    .main-navbar .dropdown-item.active-sub-link {
        background-color: #eeeeee;
        color: #000000;
    }
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 480px;
    background-image: url('../images/spwd-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
}

.hero-title {
    background-color: rgba(1, 86, 38, 0.75);
    display: inline-block;
    padding: 12px 25px;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 auto;
}

.hero-btn {
    background-color: #015626;
    border: 2px solid #015626;
    padding: 8px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 22px;
        padding: 10px 15px;
    }

    .back-to-top {
        display: none !important;
    }
}

/* Footer Styles */
.footer {
    background-color: #333333;
    color: #cccccc;
    font-size: 13px;
    font-family: inherit;
}

.footer-top {
    background-color: #333333;
}

.footer-heading {
    font-size: 13px;
    letter-spacing: 0px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-contact li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.footer-contact a {
    color: #cccccc;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    background-color: #222222;
    font-size: 13px;
}

.footer-bottom .footer-copyright {
    color: #cccccc;
}

.footer-social a i {
    font-size: 16px;
    transition: color 0.3s;
}

.footer-social a:hover i {
    color: #015626;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: #444444;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 22px;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #015626;
    color: #ffffff;
}

/* Featured Projects */
.project-heading {
    border-bottom: 2px solid #e0e0e0;
    font-size: 15px;
    font-weight: 500;
}

.project-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #555555;
}

.btn-read-more {
    background-color: #015626;
    color: #ffffff;
    border-radius: 0;
    padding: 8px 25px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #000000;
    color: #ffffff;
}

/* About Section Styles */
.title-separator {
    width: 35px;
    height: 1.5px;
    background-color: #ffffff;
    opacity: 0.8;
}

/* Page Banner (Internal Pages) */
.page-banner {
    position: relative;
    width: 100%;
    min-height: 260px;
    background-image: url('../images/spwd-banner.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
}

.page-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Statutory Details Page */
.statutory-details {
    background-color: #ffffff;
}

.statutory-heading {
    color: #015626;
    font-size: 22px;
}

.statutory-table {
    width: 100%;
}

.stat-table-header {
    background-color: #015626;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.stat-table-row {
    font-size: 13.5px;
    color: #333333;
}

.stat-table-row .stat-label {
    width: 30%;
}

.stat-table-row .stat-value {
    width: 70%;
}

@media (max-width: 768px) {
    .stat-table-row {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .stat-table-row .stat-label,
    .stat-table-row .stat-value {
        width: 100%;
    }

    .stat-table-row .stat-label {
        margin-bottom: 5px;
        font-weight: 600;
    }
}

/* SPWD Team Page */
.team-table {
    width: 100%;
}

.team-table-header {
    background-color: #015626;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.team-table-row {
    font-size: 13.5px;
    color: #333333;
}

.team-table-row .team-name {
    width: 35%;
}

.team-table-row .team-role {
    width: 65%;
}

@media (max-width: 768px) {
    .team-table-row {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .team-table-row .team-name,
    .team-table-row .team-role {
        width: 100%;
    }

    .team-table-row .team-name {
        margin-bottom: 5px;
        font-weight: 600;
    }
}

/* Partners & Donors Page */
.heading-underline {
    width: 280px;
    height: 1.5px;
    background-color: #015626;
}

.partner-category-title {
    color: #015626;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.partner-subcategory-title {
    color: #015626;
    font-size: 15px;
}

.partner-item {
    color: #000000;
    font-size: 14.5px;
}

/* Contact Us Page */
.office-icon-wrapper {
    width: 65px;
    height: 65px;
    border: 1.5px solid #015626;
    border-radius: 50%;
    font-size: 24px;
    color: #015626;
}

.office-title {
    color: #015626;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.office-details {
    color: #333333;
    font-size: 13px;
    line-height: 1.8;
}

.contact-form .form-control {
    border-radius: 0;
    border: 1px solid #e0e0e0;
    font-size: 13px;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: #015626;
}

/* Reports Page Styles */
.report-card {
    text-align: center;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.report-title {
    color: #015626;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-dark-green .report-title {
    color: #015626;
}

.btn-pdf {
    background-color: #015626;
    color: white !important;
    border: none;
    padding: 8px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    margin: 0 auto;
    text-decoration: none;
}

.bg-dark-green .btn-pdf {
    background-color: #015626;
    color: #f0f0f0 !important;
}

.btn-pdf:hover {
    background-color: #01401d;
    color: white !important;
    transform: translateY(-2px);
}

.bg-dark-green .btn-pdf:hover {
    background-color: #f0f0f0;
    color: #015626 !important;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h3 {
    color: #015626;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 24px;
}

.bg-dark-green .section-header h3 {
    color: #015626;
}

.section-header .line {
    width: 80px;
    height: 2px;
    background-color: #015626;
    margin: 0 auto;
    opacity: 0.5;
}

.bg-dark-green .section-header .line {
    background-color: #015626;
    opacity: 0.8;
}

.bg-dark-green {
    background-color: #f1f1f1 !important;
}

/* Quick Links Section */
.quick-link-box {
    border-right: 1px solid #e0e0e0;
}

.quick-link-box:last-child {
    border-right: none;
}

@media (max-width: 991px) {
    .quick-link-box:nth-child(2) {
        border-right: none;
    }

    .quick-link-box:nth-child(1),
    .quick-link-box:nth-child(2) {
        border-bottom: 1px solid #e0e0e0;
    }
}

@media (max-width: 767px) {
    .quick-link-box {
        border-right: none !important;
        border-bottom: 1px solid #e0e0e0;
    }

    .quick-link-box:last-child {
        border-bottom: none;
    }
}