/* ======= VARIABLES ======= */
:root {
    /* Pantone 2023-2024 colors */
    --primary-color: #FF6F61;
    /* Living Coral */
    --secondary-color: #5F4B8B;
    /* Ultra Violet */
    --accent-color: #0F4C81;
    /* Classic Blue */
    --highlight-color: #88B04B;
    /* Greenery */
    --light-bg: #F5F5F5;
    --dark-bg: #212529;
    --text-color: #333333;
    --light-text: #FFFFFF;
}

/* ======= TYPOGRAPHY ======= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.display-1,
.display-2,
.display-3,
.display-4 {
    font-weight: 800;
}

/* ======= HEADER STYLES ======= */
/* Top Header */
.top-header {
    background-color: #f7f7f7;
    padding: 12px 0;
    color: var(--text-color);
}

.top-header .logo {
    width: 100px;
}

/* Info box styling */
.header-info-box {
    display: flex;
    align-items: center;
}

.header-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    background-color: rgba(255, 111, 97, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 15px;
}

.header-icon i {
    color: #f05642;
    /* Orange-red color for icons */
}

.header-info-content h6 {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.header-info-content p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Decorative divider */
.header-divider {
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    position: relative;
    z-index: 1029;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Mobile Header Specific Styles */
.mobile-header {
    background-color: #f8f9fa;
    padding: 0 0 10px !important;
}

.mobile-contact-info {
    background-color: white;
    border-radius: 10px;
    padding: 12px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-contact-info .header-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    margin-right: 12px;
}

.mobile-contact-info .header-info-content h6 {
    font-size: 0.85rem;
    color: var(--accent-color);
}

.mobile-contact-info .header-info-content p {
    font-size: 0.75rem;
    color: #777;
}

/* ======= NAVBAR ======= */
.navbar {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: relative;
    top: 0;
    z-index: 1028;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link.active:after {
    width: 100%;
}

.navbar .social-links a {
    color: var(--accent-color) !important;
    transition: all 0.3s ease;
}

.navbar .social-links a:hover {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

.navbar.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ======= HERO SECTION ======= */
.hero-section {
    background: linear-gradient(to right, rgba(15, 76, 129, 0.9), rgba(95, 75, 139, 0.8)), url('/api/placeholder/1200/600') center/cover;
    color: white;
    padding: 180px 0 150px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -5vw;
    left: 0;
    width: 100%;
    height: 10vw;
    background-color: var(--light-bg);
    transform: rotate(-2deg);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ======= SECTION STYLING ======= */
section {
    padding: 100px 0;
}

.section-title {
    position: relative;
    margin-bottom: 45px;
    font-weight: 800;
    color: var(--primary-color);
}

.section-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
}

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

/* ======= CARDS & BOXES ======= */
/* General Card Styling */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

/* Service Card */
.service-card {
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 111, 97, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 25px;
}

/* Feature Box */
.feature-box {
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(95, 75, 139, 0.1);
    color: var(--secondary-color);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* News Card */
.news-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: white;
}

.news-card-img {
    height: 220px;
    overflow: hidden;
}

.news-card-img img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-card-body {
    padding: 25px;
}

.news-card-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
    display: block;
}

.news-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-card-text {
    margin-bottom: 20px;
    color: #6c757d;
}

/* Opinion Card */
.opinion-card {
    background: white;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.opinion-author {
    font-weight: bold;
    color: var(--accent-color);
}

/* Event Card */
.event-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.event-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-img img {
    transform: scale(1.05);
}

.event-date-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
}

.event-date-tag .day {
    font-size: 1.5rem;
    display: block;
}

.event-date-tag .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-status {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
}

.event-status.upcoming {
    background-color: var(--highlight-color);
    color: white;
}

.event-status.past {
    background-color: #6c757d;
    color: white;
}

.event-status.conference {
    background-color: var(--accent-color);
    color: white;
}

.event-status.training {
    background-color: var(--secondary-color);
    color: white;
}

.event-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.event-info {
    margin-bottom: 15px;
}

.event-info-item {
    display: flex;
    margin-bottom: 10px;
}

.event-info-icon {
    color: var(--accent-color);
    margin-right: 10px;
    flex-shrink: 0;
    width: 20px;
}

.event-info-text {
    font-size: 0.95rem;
}

.event-description {
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 0.95rem;
}

.event-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-registration {
    display: flex;
    align-items: center;
}

.event-registration-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(136, 176, 75, 0.1);
    color: var(--highlight-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.event-registration-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--highlight-color);
}

/* Testimonial Card */
.testimonial-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::after {
    content: '\201D';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(255, 111, 97, 0.1);
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-name {
    font-weight: 700;
    margin-bottom: 0;
}

.testimonial-location {
    color: #6c757d;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* ======= SPECIAL SECTIONS ======= */
/* Stats Counter */
.stats-container {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    color: white;
    position: relative;
}

.stats-container::before,
.stats-container::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 10vw;
    background-color: var(--light-bg);
    left: 0;
}

.stats-container::before {
    top: -5vw;
    transform: rotate(2deg);
}

.stats-container::after {
    bottom: -5vw;
    transform: rotate(-2deg);
}

.stats-content {
    position: relative;
    z-index: 10;
}

.counter-item {
    text-align: center;
    margin-bottom: 30px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-text {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Call to action section */
.cta-section {
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Donor section */
.donor-section {
    background-color: #fff;
    padding: 50px 0;
}

.donor-logo {
    max-height: 80px;
    margin: 0 auto 20px;
    display: block;
}

/* Expert opinion section */
.expert-opinion {
    padding: 60px 0;
}

/* Calendar section */
.calendar-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.calendar-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.calendar-date {
    font-weight: bold;
    color: var(--accent-color);
}

/* ======= FOOTER ======= */
footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-social {
    margin-top: 25px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact i {
    width: 30px;
    color: var(--primary-color);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 60px;
    text-align: center;
}

/* ======= BUTTONS ======= */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #e56559;
    border-color: #e56559;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 111, 97, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #4f3e74;
    border-color: #4f3e74;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(95, 75, 139, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #0b3a61;
    border-color: #0b3a61;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.3);
    color: white;
}

.btn-white {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
}

.btn-outline-white {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ======= UTILITY CLASSES ======= */
.bg-light {
    background-color: var(--light-bg) !important;
}

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

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

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

/* Animation utilities */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ======= RESPONSIVE STYLES ======= */
/* Fix viewport width issues */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 767px) {
    /* Compact header for mobile */
    .top-header {
        padding: 10px 0;
        background-color: #f8f9fa;
    }
    
    .top-header .row {
        margin: 0;
    }
    
    /* Remove the text-center alignment for mobile logo to allow new positioning */
    .mobile-header .text-center {
        text-align: right !important;
    }
    
    /* Make logo smaller on mobile and position properly */
    .top-header .logo,
    .mobile-header .logo {
        max-height: 60px;
        width: auto;
    }
    
    /* Structure for the mobile contact and logo layout */
    .mobile-contact-info {
        display: flex;
        align-items: center;
        background-color: white;
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    /* Right side (contact info) takes 70% width */
    .mobile-contact-info .contact-side {
        flex: 0 0 70%;
        max-width: 70%;
        padding-left: 10px;
    }
    
    /* Left side (logo) takes 30% width */
    .mobile-contact-info .logo-side {
        flex: 0 0 30%;
        max-width: 30%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        padding-right: 10px;
    }
    
    /* Create a more compact contact info layout */
    .header-info-box {
        margin-bottom: 8px;
        padding-left: 8px;
    }
    
    .header-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .header-info-content h6 {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .header-info-content p {
        font-size: 0.75rem;
    }
    
    /* Hide the subtitle text to save space */
    .header-info-content p.small:not(:first-of-type) {
        display: none;
    }
    
    /* Better divide between header and content */
    .header-divider {
        height: 2px;
        margin-bottom: 0;
    }
    
    /* Adjust navbar for mobile */
    .navbar {
        padding: 8px 0;
        border-top: none;
        position: relative;
        z-index: 1030;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
        font-weight: 700;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        margin-right: 5px;
        border: none;
        box-shadow: none;
        outline: none !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Make logo and brand look connected */
    .navbar>.container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Fix container padding issues */
    .container {
        padding-left: 5px;
        padding-right: 5px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container>.row {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Adjust section padding */
    section {
        padding: 70px 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Adjust hero section for mobile */
    .hero-section {
        padding: 100px 0 80px;
        margin-top: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Button adjustments for mobile */
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* Adjust padding in mobile view */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Ensure cards don't overflow on mobile */
    .card,
    .event-card,
    .service-card,
    .feature-box,
    .news-card {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}
/* For very small screens, further reduce size */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Even smaller screens need tighter padding */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Adjust card spacing for tiny screens */
    .mobile-contact-info {
        padding: 10px 8px;
    }
}

/* Fix: Force container width on very small screens */
@media (max-width: 320px) {
    .container {
        min-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Mobile Footer Adjustments */
@media (max-width: 767px) {
    /* Center all footer content on mobile */
    footer .container {
      text-align: center;
    }
    
    /* Center logo */
    footer .footer-logo {
      margin: 0 auto;
      display: block;
      text-align: center;
    }
    
    /* Center text description */
    footer p {
      text-align: center;
    }
    
    /* Center contact info */
    footer .footer-contact {
      text-align: center;
    }
    
    /* Align contact icons better */
    footer .footer-contact p {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
    }
    
    footer .footer-contact p i {
      margin-right: 10px;
    }
    
    /* Center social icons */
    footer .footer-social {
      display: flex;
      justify-content: center;
      margin: 20px auto;
    }
    
    /* Center section titles */
    footer .footer-title {
      text-align: center;
    }
    
    /* Center section title underline */
    footer .footer-title:after {
      left: 50%;
      transform: translateX(-50%);
    }
    
    /* Center footer links */
    footer .footer-links {
      text-align: center;
      padding-left: 0;
    }
    
    footer .footer-links li {
      display: block;
      text-align: center;
    }
    
    /* Center newsletter form */
    footer form {
      margin: 0 auto;
      max-width: 280px;
    }
    
    /* Footer bottom copyright text */
    footer .footer-bottom {
      text-align: center;
    }
    
    /* Fix site lists spacing */
    .footer-links a {
      padding: 5px 0;
      display: inline-block;
    }
  }

  /* Enhanced Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;  /* Larger size */
    height: 65px; /* Larger size */
    border-radius: 50%;
    background: linear-gradient(145deg, #ff6f61, #e5574d); /* Attractive gradient */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* Larger icon */
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4); /* Enhanced shadow */
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    animation: pulse 2s infinite; /* Adding subtle pulse animation */
}

/* Pulse animation for the button */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 30px rgba(255, 111, 97, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4);
        transform: scale(1);
    }
}

.back-to-top:hover {
    background: linear-gradient(145deg, #ff8277, #e6463c); /* Brighter gradient on hover */
    transform: translateY(-8px); /* More pronounced lift effect */
    box-shadow: 0 15px 30px rgba(255, 111, 97, 0.6); /* Enhanced shadow on hover */
}

/* Ensure the icon is centered and properly sized */
.back-to-top i {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Mobile optimization */
@media (max-width: 767px) {
    .back-to-top {
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
        bottom: 20px;
        right: 20px;
    }
}