/* 
    DMSS Foundation - Light Theme Overrides 
    Tailored to ensure 100% legibility across all frontend pages.
*/

body.theme-light {
    background-color: #f8f9fc !important;
    color: #1a1a1a !important;
    animation: none !important;
}

/* Global Typography */
body.theme-light .semi-title,
body.theme-light p,
body.theme-light span,
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6 {
    color: #1a1a1a !important;
}

body.theme-light .semi-title {
    color: #cf8a17 !important;
    /* Keep branding color for semi-titles */
}

/* Navbar & Header */
body.theme-light header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e3e6f0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

body.theme-light .navbar .nav-link {
    color: #1a1a1a !important;
}

body.theme-light .navbar .nav-link:hover {
    color: #cf8a17 !important;
}

body.theme-light .brand-logo h2 {
    color: #1a1a1a !important;
}

/* Theme Toggle Button */
body.theme-light #theme-toggle {
    border-color: #1a1a1a !important;
    color: #1a1a1a !important;
}

body.theme-light #theme-toggle:hover {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Main Buttons - Ensure visibility */
body.theme-light .main-btn a,
body.theme-light .main-btn button {
    color: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

body.theme-light .main-btn a:hover,
body.theme-light .main-btn button:hover {
    color: #ffffff !important;
}

/* Handle generic white text elements */
body.theme-light .text-white:not(.btn-text) {
    color: #1a1a1a !important;
}

/* Cards & Sections */
body.theme-light .card,
body.theme-light .agency-list .slide,
body.theme-light .accordion-item,
body.theme-light .list-group-item,
body.theme-light .dropdown-menu,
body.theme-light .service .card,
body.theme-light .experts .person-details {
    background-color: #ffffff !important;
    border-color: #e3e6f0 !important;
}

body.theme-light .experts .info h5,
body.theme-light .experts .info h6 {
    color: #1a1a1a !important;
}

/* Links that become invisible */
body.theme-light .visit-link a,
body.theme-light .continue-reding a,
body.theme-light .continue-reading a,
body.theme-light .mins-read {
    color: #1a1a1a !important;
}

body.theme-light .visit-link a:hover {
    color: #cf8a17 !important;
}

/* Inner Banner / Breadcrumbs */
body.theme-light .inner-banner {
    background-color: #f1f3f9 !important;
}

body.theme-light .inner-banner .breadcrumb-item a {
    color: #6c757d !important;
}

body.theme-light .inner-banner .breadcrumb-item.active {
    color: #1a1a1a !important;
}

/* Forms */
body.theme-light input,
body.theme-light textarea,
body.theme-light select {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #1a1a1a !important;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: #6c757d !important;
}

/* Footer */
body.theme-light footer {
    background-color: #ffffff !important;
    border-top: 1px solid #e3e6f0;
}

body.theme-light footer .card-text,
body.theme-light footer .link h4,
body.theme-light footer .touch-info h4,
body.theme-light footer ul li,
body.theme-light footer ul li a {
    color: #1a1a1a !important;
}

body.theme-light footer .social-info ul li a {
    border: 1px solid #e3e6f0;
    color: #1a1a1a !important;
}

body.theme-light footer .social-info ul li a:hover {
    background-color: #cf8a17;
    color: #ffffff !important;
    border-color: #cf8a17;
}

/* Specific Section Fixes */
body.theme-light .video-part .text * {
    color: #ffffff !important;
    /* Video section overlay text should remain readable on dark cover */
}

/* --- Fix for "Growth & Giving" (Impact & Ventures) Section --- */
body.theme-light .amazing-work .item .content .title h4,
body.theme-light .amazing-work .item .content .title p,
body.theme-light .amazing-work .item .content .title a {
    color: #ffffff !important;
    /* Keep overlay text white even in light mode */
}

body.theme-light .amazing-work .arrows button {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-color: #cf8a17 !important;
}

body.theme-light .amazing-work .arrows button:hover {
    background-color: #cf8a17 !important;
    color: #ffffff !important;
}

/* General Text Gradient Fix for Light Mode */
body.theme-light .text-gradient {
    background: linear-gradient(135deg, #cf8a17 0%, #b3730e 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.theme-light .awards-and-achievements .our-awards .award #award-number {
    color: #1a1a1a !important;
}

/* Animated Circle Visuals */
body.theme-light .animated-circle {
    border-color: #cf8a17;
}

body.theme-light .animated-circle i,
body.theme-light .animated-circle span {
    color: #1a1a1a !important;
}

body.theme-light .animated-circle.footer {
    background-color: rgba(207, 138, 23, 0.1);
}

/* Progress bar fixes */
body.theme-light .award-progress .progress-bar-animated {
    background-color: #ffffff !important;
    border: 1px solid #e3e6f0 !important;
}

body.theme-light .award-progress .progress-bar-animated .title {
    color: #1a1a1a !important;
}

body.theme-light .award-progress .progress-bar-animated .rating-bar {
    background-color: #eaecf4 !important;
}

/* Navbar Toggler Fix */
body.theme-light .navbarToggler.navbar-toggler {
    background-color: transparent !important;
    border-color: #1a1a1a !important;
}

body.theme-light .navbarToggler.navbar-toggler .navbar-toggler-icon {
    filter: invert(1);
}

/* --- Fix for "Godhoods From People" (Testimonials Section) --- */

/* Default (Dark Mode) - Ensuring dark cards and visible text */
.our-testimonials .card {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    overflow: visible !important;
}

.our-testimonials .card h4 {
    color: #ffffff !important;
}

.our-testimonials .card p {
    color: #cccccc !important;
}

.our-testimonials .card .bi-star-fill,
.our-testimonials .card .bi-star-half {
    color: #cf8a17 !important;
}

.our-testimonials .section-title h2 {
    color: #ffffff !important;
}

/* Light Theme Overrides (when body has .theme-light) */
body.theme-light .our-testimonials .card {
    background-color: #ffffff !important;
    border: 1px solid #e3e6f0 !important;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .our-testimonials .card h4 {
    color: #1a1a1a !important;
}

body.theme-light .our-testimonials .card p {
    color: #4a4a4a !important;
}

body.theme-light .our-testimonials .section-title h2 {
    color: #1a1a1a !important;
}

/* --- Fix for "Investment FAQs" & "Price" Section --- */

/* Default (Dark Mode) */
.faq-page .accordion-item {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

.faq-page .accordion-button {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.faq-page .accordion-button:not(.collapsed) {
    background-color: #262626 !important;
    color: #cf8a17 !important;
    box-shadow: none !important;
}

.faq-page .accordion-button::after {
    filter: brightness(0) invert(1);
}

.faq-page .accordion-button:not(.collapsed)::after {
    filter: none;
}

.faq-page .accordion-body {
    background-color: #1a1a1a !important;
    color: #cccccc !important;
}

.price .monthly,
.price .yearly {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.price .monthly .information h3,
.price .yearly .information h3 {
    color: #ffffff !important;
}

.price .monthly .value,
.price .yearly .value {
    background-color: #cf8a17 !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 14px;
}

.price .monthly .information .time,
.price .yearly .information .time {
    color: #ffffff !important;
    font-weight: 600;
}

.price .monthly .information .rate,
.price .yearly .information .rate {
    color: #ffffff !important;
}

.price .monthly .information p,
.price .yearly .information p {
    color: #cccccc !important;
}

/* Light Theme Overrides */
body.theme-light .faq-page .accordion-item {
    background-color: #ffffff !important;
    border: 1px solid #e3e6f0 !important;
}

body.theme-light .faq-page .accordion-button {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

body.theme-light .faq-page .accordion-button:not(.collapsed) {
    background-color: #f8f9fc !important;
    color: #cf8a17 !important;
}

body.theme-light .faq-page .accordion-button::after {
    filter: none;
}

body.theme-light .faq-page .accordion-body {
    background-color: #ffffff !important;
    color: #4a4a4a !important;
}

body.theme-light .price .monthly,
body.theme-light .price .yearly {
    background-color: #ffffff !important;
    border: 1px solid #e3e6f0 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

body.theme-light .price .monthly .information h3,
body.theme-light .price .yearly .information h3 {
    color: #1a1a1a !important;
}

body.theme-light .price .monthly .information .rate,
body.theme-light .price .yearly .information .rate {
    color: #1a1a1a !important;
}

body.theme-light .price .monthly .information p,
body.theme-light .price .yearly .information p {
    color: #4a4a4a !important;
}

body.theme-light .price .monthly .check-logo,
body.theme-light .price .yearly .check-logo {
    background-color: #f8f9fc !important;
    color: #cf8a17 !important;
}

/* --- Fix for Agency List Section --- */
body.theme-light .agency-list-first {
    background-color: #f1f3f9 !important;
    border-top: 1px solid #e3e6f0;
    border-bottom: 1px solid #e3e6f0;
}

body.theme-light .agency-list-second {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e3e6f0;
}

body.theme-light .agency-list-first .slider .slide h3,
body.theme-light .agency-list-second .slider .slide h3 {
    color: #1a1a1a !important;
}

/* --- Fix for Service Cards Section --- */
body.theme-light .service .card {
    background-color: #ffffff !important;
    border: 1px solid #e3e6f0 !important;
    transition: all 0.3s ease;
}

body.theme-light .service .card:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

body.theme-light .service .card .number h3 {
    color: #cf8a17 !important;
}

body.theme-light .service .card .card-body h4 {
    color: #1a1a1a !important;
}

body.theme-light .service .card .card-body p {
    color: #4a4a4a !important;
}

/* --- Fix for Awards & Achievements Section (Service Page) --- */
body.theme-light .awards-and-achievements .single-link h5 {
    color: #1a1a1a !important;
}

body.theme-light .awards-and-achievements .single-link span {
    color: #cf8a17 !important;
}

body.theme-light .awards-and-achievements hr {
    border-color: #e3e6f0 !important;
    opacity: 1;
}

/* --- Fix for Best Organization Section --- */
body.theme-light .best-organization h4 span {
    color: #1a1a1a !important;
}

body.theme-light .best-organization .windowVideoPopupModal .content {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #cf8a17;
}

/* --- Fix for Newsletter Section --- */
body.theme-light .subscribe-updates {
    background-color: #ffffff !important;
    border-top: 1px solid #e3e6f0;
}

body.theme-light .subscribe-updates h2 {
    color: #1a1a1a !important;
}

body.theme-light .subscribe-updates .subscribe-email-field form input {
    color: #1a1a1a !important;
    border-bottom: 1px solid #ced4da !important;
}

body.theme-light .subscribe-updates .subscribe-email-field form button {
    color: #1a1a1a !important;
}

body.theme-light .subscribe-updates .police,
body.theme-light .subscribe-updates .police span,
body.theme-light .subscribe-updates .police span a {
    color: #4a4a4a !important;
}

/* --- Fix for Counters Section --- */
body.theme-light .project-award-customer-team .counting .text {
    color: #cf8a17 !important;
    -webkit-text-stroke: 0 !important;
}

body.theme-light .project-award-customer-team .counting h6 {
    color: #1a1a1a !important;
}