:root {
    --bs-primary: #1e3a8a;
    /* Deep Midnight Blue */
    --bs-primary-tint: rgba(30, 58, 138, 0.15);
    /* light/transparent version of primary for highlights */
    --bs-secondary: #581c87;
    /* Regal Royal Purple */
    --bs-tertiary: #94a3b8;
    /* Modern Silver Slate */
    --bs-light: #f9f6f0;
    /* Premium Velvet Cream (Subtle) */
    --bs-dark: #0f172a;
    /* Deep Slate Dark */
    --accent-silver: #cbd5e1;
    --accent-purple: #7e22ce;
    --text-main: #1e3a8a;
    --text-muted: #64748b;
    --bg-cream: #f8f2e7;
    --navbar-bg: #1e3a8a;
    --white: #ffffff;
    --navbar-text: #ffffff;
    /* Override Bootstrap variables */
    --bs-body-color: #1e3a8a;
    --bs-body-bg: #f9f6f0;
    --bs-white: #f9f6f0;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main) !important;
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Force all text to blue - overrides Bootstrap defaults */
p,
span,
li,
td,
th,
label,
a:not(.btn):not(.nav-link):not(.btn-link),
h1,
h2,
h3,
h4,
h5,
h6,
.accordion-body,
.list-group-item {
    color: var(--text-main) !important;
}

/* exceptions for components that require white text */
.service-title,
.service-title * {
    color: #ffffff !important;
}


/* override bootstrap utility that sets black text */
.text-dark {
    color: var(--text-main) !important;
}

/* convert yellow and green utility colours to purple throughout the site */
.text-warning {
    color: var(--bs-secondary) !important;
}

.text-success {
    color: var(--bs-secondary) !important;
}

/* extra specificity for FontAwesome icons so they pick up the purple color */
.fa.text-warning,
.fa.text-success {
    color: var(--bs-secondary) !important;
}

/* Preserve white text on dark/coloured backgrounds */
.bg-primary p,
.bg-primary span,
.bg-primary li,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-secondary p,
.bg-secondary span,
.bg-secondary li,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-dark p,
.bg-dark span,
.bg-dark li,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.footer p,
.footer span,
.footer li,
.footer a,
.navbar p,
.navbar span,
.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.service-title h1,
.service-title p,
.testimonial-title p,
.testimonial-title h1,
.testimonial-title h2,
.testimonial-title h3,
.testimonial-title h4 {
    color: inherit !important;
}

p {
    text-align: justify;
}

/* Overrides for utility classes to maintain intended alignment */
.text-center p,
p.text-center {
    text-align: center;
}

.footer p {
    text-align: left;
}

.text-end p,
p.text-end {
    text-align: right;
}

/* Global Background Utility Overrides for Premium Contrast */
.bg-primary {
    background: linear-gradient(135deg, var(--bs-primary), #1e40af) !important;
    color: var(--white) !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary span,
.bg-primary i {
    color: var(--white) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, var(--bs-secondary), #7e22ce) !important;
    color: var(--white) !important;
}

.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-secondary p,
.bg-secondary span,
.bg-secondary i {
    color: var(--white) !important;
}

.bg-light,
.bg-white {
    background-color: var(--bg-cream) !important;
    color: var(--text-main) !important;
}

.bg-dark {
    background-color: var(--bs-dark) !important;
    color: var(--white) !important;
}

/* Enforce White Text on Dark Backgrounds Globally */
.bg-primary *,
.bg-secondary *,
.bg-dark * {
    color: inherit;
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6,
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6 {
    color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

.text-silver {
    color: var(--bs-tertiary) !important;
}

.text-cream {
    color: var(--bs-light) !important;
}

/* High-End Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), #2563eb);
    border: none;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, var(--bs-primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--bs-secondary), #9333ea);
    border: none;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(88, 28, 135, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #9333ea, var(--bs-secondary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 28, 135, 0.3);
    color: var(--white);
}


.btn-light {
    background-color: var(--bs-light);
    border-color: var(--bs-tertiary);
    color: var(--bs-dark);
}

.btn-dark {
    background-color: var(--bs-dark);
    border-color: var(--bs-dark);
    color: #ffffff;
}

.link-matching {
    color: #1a237e !important;
    text-decoration: underline;
    font-weight: 500;
}

.link-matching:hover {
    color: #0000FF !important;
    text-decoration: none;
}


.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-normal {
    font-weight: 400 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Top Bar ***/
.top-bar {
    height: 90px;
    padding: 0 90px;
    background: var(--bs-light);
}

.top-bar h6 {
    letter-spacing: 1px;
}


/*** Nav Bar ***/
.nav-bar {
    padding: 0 90px;
    transition: .5s;
    background-color: var(--bs-primary);
}

.nav-bar.fixed-top {
    padding: 0;
}

.navbar .navbar-nav .nav-link {
    margin-right: 20px;
    padding: 16px 24px;
    /* increased height */
    border-radius: 30px;
    color: var(--navbar-text) !important;
    font-size: 17px;
    font-weight: 600;
    transition: 0.3s;
}


.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0 !important;
    }

    .top-bar {
        padding: 0 15px !important;
    }

    .navbar-collapse {
        max-height: 85vh;
        overflow-y: auto;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        border-top: 1px solid var(--bs-white);
    }

    /* Mobile Dropdown Fix */
    .navbar .nav-item .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        background-color: var(--bs-light) !important;
        border: none;
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .navbar .nav-item .dropdown-menu.show {
        display: block;
        animation: fadeIn 0.3s;
    }

    .navbar .dropdown-item {
        padding: 12px 20px;
        color: var(--bs-primary) !important;
        font-weight: 500;
        border-radius: 5px;
    }

    .navbar .dropdown-item:hover {
        background-color: var(--accent-silver);
        color: var(--bs-dark) !important;
    }

    /* active / focus state uses a tinted blue background with dark text */
    .navbar .dropdown-item.active,
    .navbar .dropdown-item:active,
    .navbar .dropdown-item:focus {
        background-color: var(--bs-primary-tint) !important;
        color: var(--bs-primary) !important;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* desktop dropdown item active state override with tint */
.navbar .dropdown-item.active,
.navbar .dropdown-item:active,
.navbar .dropdown-item:focus {
    background-color: var(--bs-primary-tint) !important;
    color: var(--bs-primary) !important;
}


/*** Header Carousel ***/
.header-carousel {
    position: relative;
    background: var(--bs-light);
}

.header-carousel .carousel-img {
    position: relative;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    background: var(--bs-primary);
    border-radius: 5px;
}

.page-header {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    /* Platinum Silver Gradient */
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-tertiary);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-primary);
}

.page-header .breadcrumb-item.active {
    color: var(--bs-secondary);
}


/*** Video ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: #000000;
    opacity: 1;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bs-primary) !important;
    background: #e2e8f0;
    /* Platinum Silver */
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 4px;
    bottom: -5px;
    left: 20px;
    background: var(--bs-secondary);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}


/*** About ***/
.about-img {
    position: relative;
}

/* Removed ::before and ::after from .about-img to uncrop image */


/*** Service ***/
.service-title {
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-dark), var(--bs-primary));
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-title h1 {
    color: #ffffff;
}


.service-item {
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 40px;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.12);
    border-color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .service-item {
        padding: 25px;
    }
}

.service-icon-box {
    width: 75px;
    height: 75px;
    min-width: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: var(--bs-primary);
    border-radius: 20px;
    font-size: 28px;
    transition: 0.4s;
}

.service-item:hover .service-icon-box {
    background: linear-gradient(135deg, var(--bs-primary), var(--accent-purple));
    color: var(--white);
    transform: rotate(10deg);
}

.service-content {
    flex-grow: 1;
}

.service-item h4 {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--bs-primary);
    font-size: 22px;
    margin-bottom: 15px;
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    opacity: 0.9;
    margin-bottom: 25px;
    text-align: justify;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--bs-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: 0.3s;
}

.service-link:hover {
    color: var(--bs-primary);
}

.service-link i {
    transition: margin 0.3s;
}

.service-link:hover i {
    margin-left: 10px !important;
}



/*** Donation ***/
.donation-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.donation-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.donation-item .donation-progress {
    width: 80px;
}

.donation-item .progress .progress-bar {
    height: 20px;
    overflow: visible;
    transition: 3s;
}


/*** Banner ***/
.banner .banner-inner {
    position: relative;
    background: var(--bs-light);
}

.banner .banner-inner::before,
.banner .banner-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    pointer-events: none;
    /* Prever click interference */
    z-index: 0;
}

.banner .banner-inner::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.banner .banner-inner::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}

@media (max-width: 576px) {
    .banner .banner-inner::before {
        border-top-width: 80px;
        border-right-width: 80px;
    }

    .banner .banner-inner::after {
        border-bottom-width: 80px;
        border-left-width: 80px;
    }
}


/*** Event ***/
.event-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.event-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}


/*** Donate ***/
.donate .donate-text {
    position: relative;
    background: var(--bs-light);
}

.donate .donate-text::before,
.donate .donate-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    pointer-events: none;
    /* Prevent click interference */
    z-index: 0;
}

.donate .donate-text::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.donate .donate-text::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}

@media (max-width: 576px) {
    .donate .donate-text::before {
        border-top-width: 80px;
        border-right-width: 80px;
    }

    .donate .donate-text::after {
        border-bottom-width: 80px;
        border-left-width: 80px;
    }
}

.donate .donate-form .form-control {
    border: none;
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group {
    display: flex;
}

.donate .donate-form .btn-group .btn {
    margin: 0;
    padding: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--bs-tertiary);
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group .btn-check:checked+.btn {
    border: none;
    background: var(--bs-white);
}



/*** Team ***/
.team-item {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, .02);
}

.team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .1);
}

.team-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.team-item .team-detail h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 1.5rem;
    color: var(--bs-primary);
}

.team-item .team-detail span {
    letter-spacing: 2px;
    font-size: 14px;
    color: var(--bs-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.team-social {
    margin-top: auto;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background: #f8fafc !important;
}



/*** Testimonial ***/
.testimonial-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    color: #ffffff;
}

.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .owl-prev,
.testimonial-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bs-white);
    background: var(--bs-secondary);
    transition: .5s;
}

.testimonial-carousel .owl-prev:hover,
.testimonial-carousel .owl-next:hover {
    color: var(--bs-secondary);
    background: var(--bs-white);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-nav {
        top: 6.3rem;
    }
}



/*** Footer ***/
.footer {
    color: #FFFFFF;
    background-color: #1F3864;
    background-image: none; /* override previous gradient */
    padding-top: 5rem;
    font-size: 15px;
}

/* ensure all footer text is white */
.footer,
.footer p,
.footer span,
.footer li,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
    color: #FFFFFF !important;
}

.footer a:not(.btn-link):not(.btn-square),
.footer p a {
    color: #FFFFFF !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.footer a:not(.btn-link):not(.btn-square):hover,
.footer p a:hover {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

/* Registered number fix for mobile */

.registered-number {
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .registered-number {
        font-size: 13px;
        padding-right: 10px;
    }
}

.footer h4 {
    color: #FFFFFF !important;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.footer h4::after {
    position: absolute;
    content: "";
    width: 40px;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #FFFFFF;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: #FFFFFF !important;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF !important;
    letter-spacing: 1px;
    text-decoration: underline;
    box-shadow: none;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, .2);
}

/* Purple gradient social icon buttons in footer */
.footer .btn-square {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
    transition: all 0.3s ease;
}

.footer .btn-square:hover {
    background: linear-gradient(135deg, #9333ea, #c084fc) !important;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    color: #ffffff !important;
}

/* Copyright link visible in footer */
.footer .copyright a,
.footer .copyright a:link,
.footer .copyright a:visited {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer .copyright a:hover,
.footer .copyright a:active {
    color: #ffffff !important;
    text-decoration: underline;
}


/*** Service Page Enhancements ***/
.fee-card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    border-left: 5px solid var(--bs-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

@media (max-width: 576px) {
    .fee-card {
        padding: 20px 15px;
    }

    .fee-card span,
    .fee-card strong {
        font-size: 14px !important;
    }

    .fee-card .h4,
    .fee-card .h5 {
        font-size: 16px !important;
        white-space: nowrap;
        /* Force price on one line */
    }
}

.fee-card:hover {
    transform: translateX(10px);
    border-left-color: var(--bs-secondary);
    box-shadow: 0 8px 25px rgba(88, 28, 135, 0.1);
}

.fee-card.featured {
    border-left-color: var(--bs-secondary);
    background: linear-gradient(to right, #ffffff, #faf5ff);
}

.framework-box {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    border-top: 4px solid var(--bs-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.deliverable-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--white);
    border-radius: 15px;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

.accordion-button:not(.collapsed) {
    background-color: #f1f5f9;
    color: var(--bs-primary);
    box-shadow: none;
}

.accordion-item {
    border-radius: 15px !important;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/*** Approach Item ***/
.approach-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--bs-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.approach-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.approach-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    color: var(--bs-primary);
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.approach-item:hover .approach-icon {
    background: var(--bs-primary);
    color: #ffffff;
    transform: rotateY(360deg);
}

.approach-item h5 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.approach-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: justify;
}

/*** Approach Box Small (Index Page) ***/
.approach-box-small {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 3px solid var(--bs-primary);
}

.approach-box-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: var(--bs-light);
}

.approach-box-small:hover h6 {
    color: var(--bs-primary);
}

.approach-box-small h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.4;
    transition: all 0.3s ease;
}

/*** Feature Card (Index) ***/
.feature-card {
    border-radius: 12px;
    padding: 30px 20px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #fff !important;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    transition: all 0.4s ease;
    opacity: 0.9;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card h5 {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    margin-top: 15px;
}

/* Custom Silver Section */
.bg-silver {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1) !important;
}

/* Make all headings purple */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bs-secondary) !important;
}

/* Ensure headings with text-primary are also purple */
h1.text-primary,
h2.text-primary,
h3.text-primary,
h4.text-primary,
h5.text-primary,
h6.text-primary {
    color: var(--bs-secondary) !important;
}

/* Ensure headings with text-white are also purple */
h1.text-white,
h2.text-white,
h3.text-white,
h4.text-white,
h5.text-white,
h6.text-white {
    color: var(--bs-secondary) !important;
}

/* Reduce vertical spacing for 'What We Do For Serious Investors?' section */
.serious-investors-section {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.serious-investors-section h3 {
    margin-bottom: 0.5rem;
}

.serious-investors-section p {
    margin-bottom: 0.25rem !important;
}

/* Regulatory Disclaimer Block in Footer */
.regulatory-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
}

.footer .regulatory-disclaimer p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85) !important;
    text-align: justify !important;
}

.regulatory-disclaimer p strong {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .regulatory-disclaimer p {
        font-size: 0.78rem;
    }
}

/* WCAG Contrast Fixes for Inputs/Forms */
input, textarea, .form-control {
    color: #000000 !important;
    border: 1px solid #767676 !important;
    background-color: #FFFFFF !important;
}

::placeholder, .form-control::placeholder {
    color: #595959 !important;
    opacity: 1 !important;
}

/* Ensure transparent/dark input on some components retains legibility with 4.5:1 ratio */
.callback-input {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 1px solid #767676 !important;
}
.callback-input::placeholder {
    color: #595959 !important;
}

/* WCAG Focus Visible Requirements */
a:focus, button:focus, input:focus, select:focus, textarea:focus, .accordion-button:focus, [tabindex="0"]:focus {
    outline: 3px solid #005FCC !important;
    outline-offset: 2px !important;
    /* Ensure the outline isn't hidden by overflow or z-index issues */
    z-index: 1000;
}

/* Fix bootstrap accordion button focus shadow overriding outline */
.accordion-button:focus {
    box-shadow: none !important;
}

/* Visually Hidden Utility for Screen Readers (Issue 15) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}