/********** Template CSS **********/
:root {
    --primary: #1E73BE;    /* Primary Blue - headers, logo accents, main buttons */
    --secondary: #FFF9F0;  /* Warm Cream - backgrounds */
    --light: #FFF9F0;      /* Warm Cream - backgrounds */
    --dark: #333333;       /* Dark Gray - text */
    --accent: #4CAF50;     /* Healing Green - highlights, buttons, icons */
    --cta: #FFEB3B;        /* Soft Yellow - call-to-action buttons, accents */
}

/* Body base styles */
body {
    background-color: #FFF9F0;
    color: #333333;
}

/* Additional color classes */
.text-primary { color: #1E73BE !important; }
.text-accent { color: #4CAF50 !important; }
.text-cta { color: #FFEB3B !important; }
.text-dark-gray { color: #333333 !important; }

.bg-primary { background-color: #1E73BE !important; }
.bg-accent { background-color: #4CAF50 !important; }
.bg-cream { background-color: #FFF9F0 !important; }
.bg-cta { background-color: #FFEB3B !important; }

.btn-primary {
    background-color: #1E73BE;
    border-color: #1E73BE;
}

.btn-primary:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.btn-accent {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #FFFFFF;
}

.btn-accent:hover {
    background-color: #1E73BE;
    border-color: #1E73BE;
    color: #FFFFFF;
}

.btn-cta {
    background-color: #FFEB3B;
    border-color: #FFEB3B;
    color: #333333;
}

.btn-cta:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #FFFFFF;
}

body {
    background-color: #FFF9F0;
    color: #333333;
}

/* Override Bootstrap primary colors */
.bg-primary {
    background-color: #1E73BE !important;
}

.bg-secondary {
    background-color: #FFF9F0 !important;
    color: #333333 !important;
}

.text-primary {
    color: #1E73BE !important;
}

.text-secondary {
    color: #FFF9F0 !important;
}

.text-dark {
    color: #333333 !important;
}

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


/*** 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-primary {
    background-color: #1E73BE !important;
   border: 1px solid #ffffff !important;
}

.btn-primary:hover {
    background-color: #4CAF50 !important;
    border: 1px solid #ffffff !important;
	color:#ffffff;
}

.btn {
    font-weight: 500;
    transition: .5s;
	
	}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    color: var(--primary);
    background: transparent;
}

.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;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
	 border-bottom: 2px solid var(--accent);
	 
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
	 background:#1ba8f8;
	 color:#ffffff;
	 
}

/* Custom navbar with logo colors - Blue and Green */
.navbar {
    background: #ffffff !important;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #1ba8f8 !important;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #00FF00 !important;
	font-weight:700;
}

.navbar .dropdown-menu {
    background: #1E73BE;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.navbar .dropdown-item {
    color: #FFFFFF !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
    background: #4CAF50;
    color: #FFFFFF !important;
}

.navbar .btn-outline-light {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.navbar .btn-outline-light:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #FFFFFF;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .2);
        background: #1E73BE;
        padding: 10px;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
        color: #FFFFFF !important;
    }

    .navbar .dropdown-menu {
        background: rgba(30, 115, 190, 0.9);
    }

    .navbar .dropdown-item {
        color: #FFFFFF !important;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /**background: rgba(30, 115, 190, 0.18);***/
    z-index: 1;
    padding: 0;
}

.carousel-caption > * {
    position: relative;
    z-index: 2;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.page-header {
    padding-top: 15rem;
    padding-bottom: 3rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
            url('../img/pry.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
     opacity: 0.3;
}

.page-header .display-3 {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #ffffff;
}

.page-header .breadcrumb-item a:hover {
    color: #2E7D32 !important;
}

.page-header .btn {
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.page-header .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Primary Button - Blue */
.btn-primary {
    background-color: #2F80ED;
    border-color: #2F80ED;
}

.btn-primary:hover {
    background-color: #1E73BE;
    border-color: #1E73BE;
}

/* Secondary Elements - Green */
.text-primary {
    color: #2F80ED !important;
}

.bg-primary {
    background-color: #2F80ED !important;
}

.border-primary {
    border-color: #2F80ED !important;
}

/* Green for icons and highlights */
.bi-heart-pulse-fill,
.bi-book-fill,
.bi-tools,
.bi-graph-up-arrow,
.bi-people,
.bi-house-heart-fill,
.bi-heart-fill,
.bi-people-fill,
.bi-lightbulb-fill,
.bi-award-fill,
.bi-star-fill {
    color: #2E7D32;
}

/* Yellow Accent */
.btn-warning {
    background-color: #F2C94C;
    border-color: #F2C94C;
    color: #333;
}

.btn-warning:hover {
    background-color: #e6b845;
    border-color: #e6b845;
    color: #333;
}

/* Hover effects */
.btn-outline-primary {
    color: #2F80ED;
    border-color: #2F80ED;
}

.btn-outline-primary:hover {
    background-color: #2F80ED;
    border-color: #2F80ED;
}

/* Mission Vision Icon Styling */
.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.icon-wrapper i {
    color: white;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}

/*** Custom Styles ***/
/* Custom spacing classes */
.mb-custom-2 {
    margin-bottom: 0 !important;
    position: relative;
    padding-bottom: 10px !important;
}

.causes-item div.text-center.p-4.pt-0 {
    margin-bottom: 0 !important;
    padding-bottom: 2px !important;
    position: relative;
}

/* Fix gaps in causes items */
.causes-item {
    display: flex;
    flex-direction: column;
}

.causes-item > div {
    margin-bottom: 0 !important;
}

/* Assignments Table Styling */
.table-bordered {
    border: 1px solid rgba(0, 29, 35, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 29, 35, 0.05);
}

.table-striped tbody tr:hover {
    background-color: rgba(0, 29, 35, 0.1);
}

.table th {
    font-weight: 600;
    vertical-align: middle;
}

.table-responsive {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

/*** Causes ***/
.causes-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #FFFFFF;
}

.causes-item .position-relative {
    margin-top: 0 !important;
}

.causes-item .position-relative img {
    object-fit: cover;
    height: 250px;
    width: 100%;
    display: block;
    margin-top: -1px; /* Eliminate any sub-pixel gaps */
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}


/*** Donate ***/
.donate {
    background: rgba(0, 29, 35, .8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer {
    background-color: #1E73BE;
    color: #FFF9F0;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

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

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.5);
}

.footer .btn.btn-square:hover {
    color: var(--secondary);
    border-color: var(--light);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/* Button Container Styling */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    user-select: none;
  
}

.primary-btn {
    background-color: #2F6DAE;
    color: white;
    border: 2px solid #2F6DAE;
}

.primary-btn:hover {
    background-color: #1E4A7A;
    border-color: #1E4A7A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 109, 174, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(47, 109, 174, 0.2);
}

.primary-btn:focus {
    outline: 2px solid rgba(47, 109, 174, 0.5);
    outline-offset: 2px;
}

.secondary-btn {
    border: 2px solid #2F6DAE;
    color: #2F6DAE;
    background-color: transparent;
}

.secondary-btn:hover {
    background-color: #2F6DAE;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 109, 174, 0.3);
}

.secondary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(47, 109, 174, 0.2);
}

.secondary-btn:focus {
    outline: 2px solid rgba(47, 109, 174, 0.5);
    outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .button-container {
        width: 100%;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
