/********** Template CSS **********/
:root {
    --bs-tertiary: #dde6d8;
}

.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;
    border-radius: 10px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 10px;
}


/*** Top Bar ***/
/*** Top Bar ***/
.top-bar {
    background-color: #1a3c34;     /* Dark green background */
    padding: 18px 0;
    min-height: 85px;
    border-radius: 0;              /* Removed border-radius for full-width look */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar .logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.top-bar .logo span {
    font-size: 28px;
    font-weight: 700;
    color: #f4c542;
    letter-spacing: -0.5px;
}

.top-bar h6 {
    letter-spacing: 0.5px;
    font-size: 15px;
    margin-bottom: 2px;
    color: #f4c542;
    font-weight: 600;
}

.top-bar a {
    color: #fff;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    color: #f4c542;
}

/* Contact Icons */
.top-bar .btn-square {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4c542 !important;
    flex-shrink: 0;
}

.top-bar .btn-square i {
    font-size: 23px;
    color: #1a3c34;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .top-bar {
        padding: 20px 0;
        min-height: auto;
    }
    
    .top-bar .logo {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .top-bar h6 {
        font-size: 14px;
    }
}

/*** Nav Bar ***/
/*** Navbar ***/
.nav-bar {
    padding: 0 90px;
    transition: .5s;
    border-radius: 5px;
    background-color: #f4c542;   /* Yellow background */
}

.navbar {
    padding: 0 !important;
}

/* Nav Links - Unchanged position and styling */
.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    outline: none;
    display: flex;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-red);
}

/* Dropdown Arrow */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* ==================== SOCIAL ICONS - REAL LIFE LOOK ==================== */
.navbar .btn-square {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    border: none;
}

.navbar .btn-square:hover {
    transform: scale(1.12);
    background-color: #d8f9f1 !important;
    color: #f4c542 !important;
}

/* Optional: Platform-specific hover colors */
.navbar .btn-square:hover i.fa-tiktok { 
    color: #000000 !important; 
}
.navbar .btn-square:hover i.fa-facebook-f { 
    color: #1877F2 !important; 
}
.navbar .btn-square:hover i.fa-youtube { 
    color: #FF0000 !important; 
}

.navbar .btn-square i {
    font-size: 21px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0 15px;
    }
    
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        border-top: 1px solid var(--bs-white);
    }
}

@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;
    }
}
/* Mobile Responsive Navbar Fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 15px 0;
    }
    
    .navbar-nav {
        margin-bottom: 15px;
    }
    
    #authButtonContainer {
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 15px;
        margin-top: 10px;
    }
    
    #authButtonContainer button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
}



/* ============================================
   GLOBAL MOBILE RESPONSIVE FIXES
   ============================================ */

/* Mobile viewport optimization */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Better touch targets on mobile */
@media (max-width: 768px) {
    button, 
    .btn,
    .nav-link,
    .dropdown-item,
    [onclick] {
        cursor: pointer;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve form elements on mobile */
    input, 
    select, 
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Improve card layouts on mobile */
    .card,
    .donation-item,
    .form-card {
        margin-bottom: 15px;
    }
    
    /* Better modal on mobile */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    /* Toast notifications on mobile */
    #toastContainer {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast-notification {
        width: auto;
        max-width: none;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* Landscape mode fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .admin-sidebar {
        overflow-y: auto;
    }
}

/*** Header Carousel ***/
.header-carousel {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.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: var(--bs-dark);
    background: var(--bs-green);
}

/* Page Header Carousel Styles */
.page-header {
    position: relative;
    padding: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#headerCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#headerCarousel .carousel-inner,
#headerCarousel .carousel-item {
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Transparent Overlay */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* Carousel Controls Styling */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.page-header:hover .carousel-control-prev,
.page-header:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

.carousel-indicators button {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    margin: 0 5px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 50px;
    opacity: 1;
    background: #27ae60;
}

/* Text Content Styling */
.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    font-weight: 700;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    content: "›";
    font-size: 18px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #27ae60;
}

/* Animation for carousel fade effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.6s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-prev {
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        min-height: 300px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .breadcrumb-item {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .page-header {
        min-height: 250px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .carousel-indicators button {
        width: 20px;
    }
    
    .carousel-indicators button.active {
        width: 30px;
    }
}

/*** Video ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    border-radius: 10px;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-red);
}

.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-red);
    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-red);
    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;
    border-radius: 5px;
    background-color: chocolate;
}

#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: #de2121;
    opacity: 1;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 0px;
    top: 5px;
    left: -40px;
    border-top: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 0px;
    bottom: 6px;
    left: -60px;
    border-bottom: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-img {
    position: relative;
}

.about-img::before,
.about-img::after {
    position: absolute;
    content: "";
    width: 33%;
    height: 90px;
    background: var(--bs-white);
}

.about-img::before {
    top: 0px;
    left: 0px;
}

.about-img::after {
    right: 0px;
    bottom: 0px;
}


/*** Service ***/
.service-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.service-item {
    overflow: hidden;
}

.service-item .btn-square {
    width: 65px;
    height: 65px;
}

.service-item a {
    position: relative;
    padding: 0;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    transition: .5s;
}

.service-item a::after {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    left: 100%;
    bottom: 3px;
    margin-left: 10px;
    border-bottom: 2px solid var(--bs-primary);
}


/*** Donation ***/
/*** Payment Methods ***/
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #27ae60;
    background: #f8fff9;
    transform: translateX(5px);
}

.payment-option.selected {
    border-color: #27ae60;
    background: #f0fff4;
}

.payment-option-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.payment-option-icon i {
    font-size: 1.5rem;
    color: #27ae60;
}

.payment-option-details {
    flex: 1;
}

.payment-option-details h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.payment-option-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.payment-option-radio .radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    position: relative;
}

.payment-option.selected .radio-custom::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #27ae60;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Bank Details Card */
.bank-details-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

.bank-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bank-detail-item.highlight {
    background: #fff3cd;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
}

.detail-value {
    font-family: 'Courier New', monospace;
    flex: 1;
    color: #27ae60;
    word-break: break-all;
}

.copy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #2980b9;
    transform: scale(1.02);
}

/* Provider Cards */
.provider-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.provider-card:hover {
    border-color: #27ae60;
    transform: translateY(-2px);
}

.provider-card.selected {
    border-color: #27ae60;
    background: #f0fff4;
}

.provider-card img {
    max-width: 60px;
    margin-bottom: 0.5rem;
}

.provider-card span {
    display: block;
    font-weight: 500;
}

/* Receipt Upload */
.receipt-upload {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .bank-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .detail-value {
        width: 100%;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .payment-option {
        padding: 0.75rem;
    }
}



/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.team-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.team-item .team-detail span {
    letter-spacing: 2px;
}

/* ============================================
   DONOR DASHBOARD - FULL MOBILE RESPONSIVE
   ============================================ */

/* Stats Cards Grid */
.donor-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .donor-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.donor-stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.donor-stat-card:hover {
    transform: translateY(-5px);
}

.donor-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #27ae60, #219a52);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.donor-stat-icon i {
    font-size: 28px;
    color: white;
}

.donor-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.donor-stat-label {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

/* Donor Table Responsive */
.donor-table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .donor-table-container {
        border-radius: 10px;
    }
    
    .donor-table-container table {
        min-width: 550px;
    }
    
    .donor-table-container th,
    .donor-table-container td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Filter Section Mobile */
.donor-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .donor-filters {
        flex-direction: column;
    }
    
    .donor-filters .btn {
        width: 100%;
    }
    
    .donor-filters .form-control {
        width: 100% !important;
    }
}



/*** Testimonial ***/
.testimonial-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.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 ***/
.footer {
    color: var(--bs-tertiary, #f8f9fa);
    background: linear-gradient(rgba(5, 19, 17, .95), rgba(5, 19, 17, .95)), url(../img/bg-footer.jpg) center center no-repeat;
    background-size: cover;
    position: relative;
}

/* Footer Headings */
.footer h4 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--bs-primary, #0d6efd);
}

.footer h6 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Footer Links */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--bs-tertiary, #f8f9fa);
    font-weight: normal;
    text-transform: capitalize;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.85;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    transition: margin-right 0.3s ease;
}

.footer .btn.btn-link:hover {
    color: var(--bs-light, #ffffff);
    letter-spacing: 1px;
    box-shadow: none;
    opacity: 1;
    transform: translateX(5px);
}

.footer .btn.btn-link:hover::before {
    margin-right: 15px;
}

/* Footer Text & Contact Info */
.footer p {
    margin-bottom: 0.75rem;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer p:hover {
    opacity: 1;
}

.footer .text-light,
.footer a.text-light {
    transition: all 0.3s ease;
}

.footer a.text-light:hover {
    color: var(--bs-primary, #0d6efd) !important;
    transform: translateX(3px);
    display: inline-block;
}

/* Social Media Buttons */
.footer .btn-square {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer .btn-square.btn-primary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bs-light, #ffffff);
}

.footer .btn-square.btn-primary:hover {
    background-color: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 245, 247, 0.3);
}

/* Gallery Section */
.footer .col-lg-3.col-md-6 .row.g-2 {
    margin: 0;
}

.footer .col-lg-3.col-md-6 .row.g-2 .col-4 {
    padding: 5px;
}

.footer img {
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.footer img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Copyright Section */
.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer .copyright a {
    color: var(--bs-tertiary, #f8f9fa);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer .copyright a:hover {
    color: var(--bs-primary, #0d6efd);
}

/* Medical Aid Hours Section */
.footer .col-lg-3.col-md-6 p.mb-1 {
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .footer .row.g-5 {
        gap: 2rem !important;
    }
    
    .footer h4 {
        margin-bottom: 1.25rem;
    }
    
    .footer .copyright {
        text-align: center;
    }
    
    .footer .copyright .col-md-6:last-child {
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .footer {
        text-align: center;
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer .btn.btn-link {
        text-align: center;
    }
    
    .footer .btn.btn-link::before {
        display: none;
    }
    
    .footer .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer .btn-square {
        margin: 0 5px !important;
    }
    
    .footer .text-center.text-md-start,
    .footer .text-center.text-md-end {
        text-align: center !important;
    }
    
    .footer .copyright .row > div {
        text-align: center !important;
    }
}

/* Animation for Wow.js */
.footer.wow {
    visibility: visible;
}

/* Icon spacing for contact info */
.footer .fa,
.footer .fab,
.footer .fas {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Modal Styles (for FAQ) */
.modal-content {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, rgba(5, 19, 17, 0.95), rgba(5, 19, 17, 0.98));
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary, #0d6efd);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

/* Optional: Add a subtle gradient overlay on hover for gallery items */
.footer .col-lg-3.col-md-6 .row.g-2 .col-4 {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.footer .col-lg-3.col-md-6 .row.g-2 .col-4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}

.footer .col-lg-3.col-md-6 .row.g-2 .col-4:hover::after {
    opacity: 1;
}

/* Print styles */
@media print {
    .footer {
        background: #f8f9fa;
        color: #000;
    }
    
    .footer .btn-square {
        display: none;
    }
}

.contact-form {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-form .form-floating {
    margin-bottom: 0;
}

.contact-form .form-control {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.1);
}

.contact-form .form-control.is-invalid {
    border-color: #e74c3c;
}

.info-item {
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.info-icon {
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.1);
}

.social-links .btn {
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-5px);
}

.map-container {
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Success/Error messages */
.alert {
    border-radius: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}