/*start home css*/

:root {
    --primary-color: #ee0308;
    --primary-dark: #b80206;
    --primary-light: #ff4458;
    --white-color: #ffffff;
    --secondary-color: #2c3e50;
    --accent-color: #ff4458;
    --light-bg: #fef5f5;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --success-color: #27ae60;
    --gradient-primary: linear-gradient(135deg, #ee0308 0%, #ff4458 100%);
    --gradient-dark: linear-gradient(135deg, #b80206 0%, #ee0308 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* TTH Foundation Home Wrapper */
.tthfoundation-home {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Header Styles */

.TTHSocietyLogo{
    max-width: 300px;
    height: auto;
}

footer .TTHSocietyLogo{
   filter: brightness(5.5);
}
.navbar {
    background-color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
    transition: all 0.3s ease;
    padding: 12px 20px;
}
.navbar .container-fluid{
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem;
    color: black !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Desktop Nav Link Styles */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        color: #ee3038 !important;
        margin: 0 15px;
        font-weight: 500;
        transition: all 0.3s;
        position: relative;
        padding: 8px 0;
    }

    .navbar-nav .nav-link:hover {
        color: black !important;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 3px;
        bottom: 0;
        left: 50%;
        background-color: var(--accent-color);
        transition: all 0.3s;
    }

    .navbar-nav .nav-link:hover::after {
        width: 80%;
        left: 10%;
    }
}

/* Mobile Toggler Icon */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ee3038' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease-in-out;
}
/* --- Mobile Off-Canvas Menu Styles --- */
@media (max-width: 991.98px) {

    /* Position the collapsing menu */
    .navbar-collapse {
        position: fixed;
        top: 60px;
        /* Position just below the navbar */
        right: 0;
        /* Align to the right */
        width: 50%;
        /* Set width to 50% */
        max-height: calc(100vh - 70px);
        /* Calculate max height */
        background-color: white;
        padding: 0PX;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        /* Shadow on the left side */
        transform: translateX(100%);
        /* Start off-screen to the right */
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
        /* Ensure it's on top of other content */
        overflow-y: auto;
        /* Allow scrolling if content is long */
    }

    /* Show the menu when the .show class is added by Bootstrap */
    .navbar-collapse.show {
        transform: translateX(0);
        /* Slide it into view */
    }

    /* Style the nav links inside the off-canvas menu */
    .navbar-nav {
        width: 100%;
        /* Make the nav take full width of the container */
    }

    .navbar-nav .nav-link {
        color: #ee3038 !important;
        font-weight: 500;
        padding: 0.75rem 1rem;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
        /* Add a separator */
        transition: background-color 0.2s;
    }

    .navbar-nav .nav-link:hover {
        color: black !important;
        background-color: #f8f9fa;
        /* Add a hover background */
    }

    /* Remove the default hover underline effect on mobile */
    .navbar-nav .nav-link::after {
        display: none;
    }

    /* --- "X" Close Icon Logic --- */

    /* The icon container when the menu is OPEN */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
        background-image: none;
        /* Hide the hamburger lines */
        position: relative;
        /* Needed for positioning the ::before and ::after elements */
    }

    /* Create the two lines of the "X" */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon::before,
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        width: 24px;
        /* Length of the X lines */
        height: 2px;
        /* Thickness of the X lines */
        background-color: #ee3038;
        /* Color of the X */
        top: 50%;
        left: 50%;
        transition: all 0.3s ease-in-out;
        /* Smooth animation for the X */
    }

    /* Position and rotate the first line of the X */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    /* Position and rotate the second line of the X */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

/* Carousel Styles - Fixed for Mobile */
.tthfoundation-home .carousel-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

.tthfoundation-home .carousel-item {
    height: 100vh;
    min-height: 500px;
    position: relative;
}

.tthfoundation-home .carousel-item img {
    height: auto;
    width: 100%;
    object-fit: cover;
    /* filter: brightness(0.9); */
}

.tthfoundation-home .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*background-color: rgba(238, 3, 8, 0.85);
            backdrop-filter: blur(5px);*/
    padding: 30px;
    border-radius: 15px;
    max-width: 90%;
    width: 800px;
    text-align: center;
}

.tthfoundation-home .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tthfoundation-home .carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.tthfoundation-home .carousel-caption .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.tthfoundation-home .carousel-caption .btn-primary {
    background-color: white;
    border: none;
    border: 1px solid #ee3038;
    color: #ee3038;
}

.tthfoundation-home .carousel-caption .btn-primary:hover {
    background-color: #ee0308;
    transform: translateY(-3px);
    color: var(--white-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tthfoundation-home .carousel-control-prev,
.tthfoundation-home .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(238, 3, 8, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.tthfoundation-home .carousel-control-prev-icon,
.tthfoundation-home .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Card Section Styles */
.tthfoundation-home .card-section {
    padding: 50px 0;
    /* background: linear-gradient(135deg, #fef5f5 0%, #fff5f5 100%); */
    position: relative;
}

.tthfoundation-home .section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.tthfoundation-home .section-title h2 {
    font-weight: bold;
    font-size: 2.5rem;
    color: black;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.tthfoundation-home .section-title h2::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 4px;
    background-color: #ee3038;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.tthfoundation-home .section-title p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0px auto 0;
}


.custom-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(238, 3, 8, 0.1); */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    transition: all 0.4s;
    height: 100%;
    background-color: white;
    position: relative;
}

 .custom-card:hover {
    transform: translateY(-15px);
    /* box-shadow: 0 20px 40px rgba(238, 3, 8, 0.2); */
}

 .custom-card .card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

 .custom-card .card-img-top {
    width: 100%;
    height: auto;
    /* object-fit: cover; */
    transition: all 0.5s;
}

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

 .custom-card .card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(238, 3, 8, 0.3) 100%); */
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

 .custom-card .card-img-overlay .card-category {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.custom-card .card-title {
    /* color: var(--primary-color); */
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

 .custom-card .card-text {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

 .custom-card .btn-primary {
    background-color: var(--white-color);
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--primary-color);
}

 .custom-card .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    color: var(--white-color);
}

/* Activity Section Styles - Fixed for Mobile */
 .activity-section {
    /* padding: 100px 0; */
    background-color: white;
    position: relative;
    margin-top: 65px;
}

/* Activity Tabs */
.activity-section .nav .btn{
    background: #fff;
    color: #ee3038;
    border: 2px solid #ee3038;
    font-weight: 500;
    padding: 10px 18px;
    transition: all 0.3s ease;
}

/* Active Tab */
.activity-section .nav .btn.active{
    background: #ee3038;
    color: #fff;
    border-color: #ee3038;
}

/* Hover Effect */
.activity-section .nav .btn:hover{
    background: #ee3038;
    color: #fff;
}

.btn-readMore{
    background: #fff;
    color: #ee3038;
    border: 2px solid #ee3038;
    font-weight: 500;
    padding: 10px 18px;
}
.btn-readMore.btn:hover{
    color: #fff;
    background: #ee3038;
    transition: all 0.3s ease; 
}


.tthfoundation-home .activity-detail {
    display: none;
    animation: fadeIn 0.5s;
}

.tthfoundation-home .activity-detail.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tthfoundation-home .activity-detail h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    position: relative;
}

.tthfoundation-home .activity-detail h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.tthfoundation-home .activity-detail img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    /* box-shadow: 0 10px 20px rgba(238, 3, 8, 0.1); */
}


.tthfoundation-home .activity-detail p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.tthfoundation-home .activity-detail ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.tthfoundation-home .activity-detail li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.tthfoundation-home .activity-detail li::marker {

    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -15px;
}



/* Stats Section */
/* Stats Section */
.tthfoundation-home .stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f5f5, #e9e9e9);
}

/* Stat Card */
.tthfoundation-home .stat-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 16px;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
}

/* Hover effect */
.tthfoundation-home .stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Icon circle */
.tthfoundation-home .stat-item i {
    font-size: 2.4rem;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ee3038, #ff5b61);
    color: #fff;
    margin-bottom: 20px;
}

/* Counter */
.tthfoundation-home .stat-item h3 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

/* Label */
.tthfoundation-home .stat-item p {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #ee3038;
    margin-bottom: 0;
}

/* Footer Styles - Redesigned */
footer {
    /* background: linear-gradient(135deg, #ff7d73 0%, #ff5a4f 100%); */
    background-color: #ee3038;
    color: white;
    position: relative;
    overflow: hidden;
    
}

/* top decorative line */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: white;
}

/* footer top section */
.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* footer bottom */
.footer-bottom {
    padding: 18px 0;
    background: #111;
}

/* logo */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2.4rem;
    margin-right: 12px;
    color: white;
}

.footer-logo h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
}

/* headings */
.footer-content h5 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* heading underline */
.footer-content h5::after {
    content: "";
    position: absolute;
    width: 45px;
    height: 3px;
    background: white;
    left: 0;
    bottom: 0;
    border-radius: 2px;
}

/* paragraph */
.footer-content p {
    line-height: 1.7;
    opacity: 0.9;
}

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

.footer-links li {
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-links li:hover {
    transform: translateX(6px);
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 15px;
}

.footer-links a:hover {
    color: #fff;
}

/* contact info */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    font-size: 15px;
}

.contact-info i {
    margin-right: 10px;
    font-size: 16px;
}

/* social icons */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    background: white;
    color: #ff5a4f;
    transform: translateY(-5px);
}

/* copyright */
.copyright {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* back to top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: #ff5a4f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}
/*End home*/

/*Start About*/
/* TTH Foundation About Wrapper */
.tthfoundation-about {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Carousel Styles */
.tthfoundation-about .carousel-section {
    position: relative;
    height: 80vh;
    min-height: 450px;
    overflow: hidden;
}

.tthfoundation-about .carousel-item {
    height: 80vh;
    min-height: 450px;
    position: relative;
}

.tthfoundation-about .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* filter: brightness(0.9); */
}

.tthfoundation-about .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background-color: rgba(238, 3, 8, 0.85);
            backdrop-filter: blur(5px); */
    padding: 30px;
    border-radius: 15px;
    max-width: 90%;
    width: 800px;
    text-align: center;
}

.tthfoundation-about .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tthfoundation-about .carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.tthfoundation-about .carousel-caption .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.tthfoundation-about .carousel-caption .btn-primary {
    background-color: white;
    border: 1px solid #ee3038;
    color: #ee3038;
}

.tthfoundation-about .carousel-caption .btn-primary:hover {
    background-color: #ee3038;
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tthfoundation-about .carousel-control-prev,
.tthfoundation-about .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(238, 3, 8, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.tthfoundation-about .carousel-control-prev-icon,
.tthfoundation-about .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Section Styles */
.tthfoundation-about .section {
    padding: 25px 0;
    position: relative;
}

.tthfoundation-about .section-title {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.tthfoundation-about .section-title h2 {
    font-weight: bold;
    font-size: 2.5rem;
    color: black;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.tthfoundation-about .section-title h2::after {
    /* content: ''; */
    /* position: absolute;
    width: 220px;
    height: 4px;
    background-color: #ee3038;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px; */
}

.tthfoundation-about .section-title p {
    font-size: 1.2rem;
    color: var(--light-text);
    /* max-width: 700px; */
    margin: 0px auto 0;
}

/* About Us Section */
.tthfoundation-about .about-us {
    background-color: white;
}

.tthfoundation-about .about-content,.Disclaimer-section {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    /* margin-bottom: 30px; */
}

.tthfoundation-about .about-image {
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: 0 15px 30px rgba(238, 3, 8, 0.15); */
    height: 100%;
}

.tthfoundation-about .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tthfoundation-about .about-image:hover img {
    transform: scale(1.05);
}

.tthfoundation-about .about-features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
}

.tthfoundation-about .feature-item {
    flex: 1 1 50%;
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-right: 20px;
}

.tthfoundation-about .feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(238, 3, 8, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.tthfoundation-about .feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tthfoundation-about .feature-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tthfoundation-about .feature-text p {
    margin: 0;
    color: var(--light-text);
    line-height: 1.6;
}

/* Who We Are Section */
.tthfoundation-about .who-we-are {
    /* background-color: var(--light-bg); */
}

.tthfoundation-about .timeline {
    position: relative;
    padding: 20px 0;
}

.tthfoundation-about .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.tthfoundation-about .timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.tthfoundation-about .timeline-content {
    position: relative;
    width: 45%;
    padding: 20px 30px;
    background-color: white;
    border-radius: 10px;
    /* box-shadow: 0 10px 20px rgba(238, 3, 8, 0.1); */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
}

.tthfoundation-about .timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.tthfoundation-about .timeline-dot {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(238, 3, 8, 0.2);
    z-index: 1;
}

.tthfoundation-about .timeline-year {
    position: absolute;
    top: 25px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tthfoundation-about .timeline-item:nth-child(odd) .timeline-year {
    left: 0;
}

.tthfoundation-about .timeline-item:nth-child(even) .timeline-year {
    right: 0;
}

.tthfoundation-about .timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tthfoundation-about .timeline-content p {
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

/* Mission and Vision Section */
.tthfoundation-about .mission-vision {
    background-color: white;
}

.tthfoundation-about .mission-vision-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    /* box-shadow: 0 15px 30px rgba(238, 3, 8, 0.1); */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    height: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tthfoundation-about .mission-vision-card:hover {
    transform: translateY(-10px);
    /* box-shadow: 0 20px 40px rgba(238, 3, 8, 0.15); */
}

.tthfoundation-about .mission-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.tthfoundation-about .mission-vision-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.tthfoundation-about .mission-vision-card h3 i {
    margin-right: 15px;
    font-size: 2rem;
    color: var(--primary-color);
}

.tthfoundation-about .mission-vision-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.tthfoundation-about .mission-vision-card ul {
    padding-left: 25px;
    margin-bottom: 0;
}

.tthfoundation-about .mission-vision-card li {
    margin-bottom: 10px;
    color: var(--dark-text);
    line-height: 1.6;
}

.tthfoundation-about .mission-vision-card li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* Gallery Section */
.tthfoundation-about .gallery {
    /* background-color: var(--light-bg); */
}

.tthfoundation-about .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tthfoundation-about .gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: 0 10px 20px rgba(238, 3, 8, 0.1); */
    cursor: pointer;
    transition: all 0.3s;
    height: 250px;
}

.tthfoundation-about .gallery-item:hover {
    transform: translateY(-10px);
    /* box-shadow: 0 15px 30px rgba(238, 3, 8, 0.2); */
}

.tthfoundation-about .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tthfoundation-about .gallery-item:hover img {
    transform: scale(1.1);
}

.tthfoundation-about .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(238, 3, 8, 0.8) 100%); */
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tthfoundation-about .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.tthfoundation-about .gallery-overlay h4 {
    color: white;
    font-weight: 600;
    margin: 0;
}

/* Image Modal */
.tthfoundation-about .image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.tthfoundation-about .image-modal.active {
    display: flex;

}

.tthfoundation-about .modal-content {
    position: relative;
    max-width: 60vw;
    max-height: 90vh;
}

.tthfoundation-about .modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.tthfoundation-about .modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s;
}

.tthfoundation-about .modal-close:hover {
    color: var(--primary-color);
    /* transform: rotate(90deg); */
}

.tthfoundation-about .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background-color: rgba(238, 3, 8, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tthfoundation-about .modal-nav:hover {
    background-color: var(--primary-color);
}

.tthfoundation-about .modal-prev {
    left: 40px;
}

.tthfoundation-about .modal-next {
    right: 40px;
}

/*         
        .tthfoundation-about .modal-caption {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            text-align: center;
            color: white;
            font-size: 1.2rem;
            padding: 10px;
            background-color: rgba(0, 0, 0, 0.5);
        } */

/*End About*/

/*Start cantact*/
/* TTH Foundation Contact Wrapper */
.tthfoundation-contact {
    position: relative;
    width: 100%;
    min-height: 100vh;
}


/* Carousel Styles */
.tthfoundation-contact .carousel-section {
    position: relative;
    height: 90vh;
    min-height: 400px;
    overflow: hidden;
}

.tthfoundation-contact .carousel-item {
    height: 90vh;
    min-height: 500px;
    position: relative;
}

.tthfoundation-contact .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.tthfoundation-contact .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background-color: rgba(238, 3, 8, 0.85);
            backdrop-filter: blur(5px); */
    padding: 40px;
    border-radius: 15px;
    max-width: 90%;
    width: 800px;
    text-align: center;
}

.tthfoundation-contact .carousel-caption h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tthfoundation-contact .carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.tthfoundation-contact .carousel-control-prev,
.tthfoundation-contact .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(238, 3, 8, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.tthfoundation-contact .carousel-control-prev-icon,
.tthfoundation-contact .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Contact Form Section */
.tthfoundation-contact .contact-form-section {
    padding: 30px 0;
    background-color: white;
}

.tthfoundation-contact .section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.tthfoundation-contact .section-title h2 {
    font-weight: bold;
    font-size: 2.5rem;
    color: black;
    margin-bottom: 0px;
    position: relative;
    display: inline-block;
}

.tthfoundation-contact .section-title p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0px auto 0;
}

.tthfoundation-contact .contact-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    /* height: 70%;
    min-height: 538px; */
}

.tthfoundation-contact .contact-image img {
    width: 100%;
    height: 538px;
    object-fit: cover;
    transition: transform 0.5s;
}

.tthfoundation-contact .contact-image:hover img {
    transform: scale(1.05);
}

.tthfoundation-contact .contact-form-container {
    background-color: white;
    border-radius: 15px;
    /* box-shadow: 0 15px 30px rgba(238, 3, 8, 0.1); */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    padding: 40px;
    /* height: 100%; */
}

.tthfoundation-contact .form-group {
    margin-bottom: 7px;
}

.tthfoundation-contact .form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-text);
    display: block;
}

.tthfoundation-contact .form-control {
    border: 2px solid #eaeaea;
    border-radius: 8px;
    padding: 5px 5px;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.tthfoundation-contact .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(238, 3, 8, 0.25);
    outline: none;
}

.tthfoundation-contact .phone-input-group {
    display: flex;
}

.tthfoundation-contact .country-code {
    width: 100px;
    margin-right: 10px;
}

.tthfoundation-contact .phone-number {
    flex: 1;
}

.tthfoundation-contact .submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 10px;
    /* box-shadow: 0 5px 15px rgba(238, 3, 8, 0.3); */
}

.tthfoundation-contact .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(238, 3, 8, 0.4);
}

/* Contact Cards Section */
.tthfoundation-contact .contact-cards-section {
    padding: 50px 0;
    /* background-color: var(--light-bg); */
}

.tthfoundation-contact .contact-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(238, 3, 8, 0.1);
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tthfoundation-contact .contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.tthfoundation-contact .contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(238, 3, 8, 0.15);
}

.tthfoundation-contact .contact-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(238, 3, 8, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.tthfoundation-contact .contact-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.tthfoundation-contact .contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tthfoundation-contact .contact-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 25px;
}

.tthfoundation-contact .contact-card a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.tthfoundation-contact .contact-card a i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.tthfoundation-contact .contact-card a:hover {
    color: var(--primary-dark);
}

.tthfoundation-contact .contact-card a:hover i {
    transform: translateX(5px);
}

/*End Contact*/

/*Start activity*/
/* TTH Foundation Activity Wrapper */
.tthfoundation-activity {
    position: relative;
    width: 100%;
    min-height: 100vh;
}





/* Section 1: Multiple Slider */
.tthfoundation-activity .slider-section {
    padding: 50px 0;
    /* background-color: var(--light-bg); */
}

.tthfoundation-activity .section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.tthfoundation-activity .section-title h2 {
    font-weight: bold;
    font-size: 2.5rem;
    color: black;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}



.tthfoundation-activity .section-title p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0px auto 0;
}

.tthfoundation-activity .activity-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    /* box-shadow: 0 15px 30px rgba(238, 3, 8, 0.15); */
}

.tthfoundation-activity .activity-slider-item {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.tthfoundation-activity .activity-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tthfoundation-activity .activity-slider:hover .activity-slider-item img {
    transform: scale(1.05);
}

.tthfoundation-activity .slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 50px 30px 30px;
    color: white;
}

.tthfoundation-activity .slider-content h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.tthfoundation-activity .slider-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.tthfoundation-activity .slider-content .btn {
    background-color: white;
    border: 1px solid #ee3038;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.tthfoundation-activity .slider-content .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.tthfoundation-activity .carousel-control-prev,
.tthfoundation-activity .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(238, 3, 8, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.tthfoundation-activity .carousel-control-prev-icon,
.tthfoundation-activity .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.tthfoundation-activity .carousel-indicators {
    bottom: 20px;
}

.tthfoundation-activity .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.tthfoundation-activity .carousel-indicators button.active {
    background-color: var(--primary-color);
}

/* Section 2: Activity Cards */
.tthfoundation-activity .activity-cards-section {
    padding: 0px 0;
    background-color: white;
    margin-bottom: 30px;
}

.tthfoundation-activity .activity-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(238, 3, 8, 0.1); */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    transition: all 0.4s;
    height: 100%;
    background-color: white;
    position: relative;
    margin-bottom: 30px;
}

.tthfoundation-activity .activity-card:hover {
    transform: translateY(-15px);

}

.tthfoundation-activity .activity-card .card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.tthfoundation-activity .activity-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.tthfoundation-activity .activity-card:hover .card-img-top {
    transform: scale(1.1);
}

.tthfoundation-activity .activity-card .card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(238, 3, 8, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.tthfoundation-activity .activity-card .card-img-overlay .card-category {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tthfoundation-activity .activity-card .card-body {
    padding: 25px;
}

.tthfoundation-activity .activity-card .card-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.tthfoundation-activity .activity-card .card-text {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tthfoundation-activity .activity-card .card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tthfoundation-activity .activity-card .stat-item {
    text-align: center;
}

.tthfoundation-activity .activity-card .stat-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

.tthfoundation-activity .activity-card .stat-item span {
    font-size: 0.9rem;
    color: var(--light-text);
}

.tthfoundation-activity .activity-card .btn-primary {
    background-color: white;
    border: 1px solid #ee3038;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    color: #ee3038;
}

.tthfoundation-activity .activity-card .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    color: white;
}

/* Activity Detail Section */
.tthfoundation-activity .activity-detail-section {
    padding: 50px 0;
    /* background-color: var(--light-bg); */
}

.tthfoundation-activity .activity-detail-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(238, 3, 8, 0.1);
    margin-bottom: 30px;
}

.tthfoundation-activity .activity-detail-img {
    height: 300px;
    overflow: hidden;
}

.tthfoundation-activity .activity-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tthfoundation-activity .activity-detail-content {
    padding: 30px;
}

.tthfoundation-activity .activity-detail-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.tthfoundation-activity .activity-detail-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.tthfoundation-activity .activity-detail-content p {
    color: var(--dark-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tthfoundation-activity .activity-detail-content ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.tthfoundation-activity .activity-detail-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.tthfoundation-activity .activity-detail-content li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.tthfoundation-activity .activity-detail-content .progress {
    height: 10px;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.tthfoundation-activity .activity-detail-content .progress-bar {
    background-color: var(--primary-color);
}

.tthfoundation-activity .activity-detail-content .progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--light-text);
}

/*End activity*/

/*Start activity-detail*/
/* Section 1: Multiple Slider */
.activity-detail {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.activity-detail .slider-section {
    /* padding: 50px 0; */
    background-color: var(--light-bg);
}

.activity-detail .section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.activity-detail .section-title h2 {
    font-weight: bold;
    font-size: 2.5rem;
    color: black;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}


.activity-detail .section-title p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 20px auto 0;
}

.activity-detail .activity-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    /* box-shadow: 0 15px 30px rgba(238, 3, 8, 0.15); */
}

.activity-detail .activity-slider-item {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.activity-detail .activity-slider-item img {
    width: 100%;    
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.activity-detail .activity-slider:hover .activity-slider-item img {
    transform: scale(1.02);
}

.activity-detail .slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 50px 30px 30px;
    color: white;
}

.activity-detail .slider-content h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.activity-detail .slider-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.activity-detail .carousel-control-prev,
.activity-detail .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(238, 3, 8, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.activity-detail .carousel-control-prev-icon,
.activity-detail .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.activity-detail .carousel-indicators {
    bottom: 20px;
}

.activity-detail .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.activity-detail .carousel-indicators button.active {
    background-color: var(--primary-color);
}

/* Section 2: About Activity */
.activity-detail .about-section {
    padding: 10px 0;
    background-color: white;
}

.activity-detail .about-content {
    margin-bottom: 40px;
}

.activity-detail .about-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.activity-detail .about-content h3::after {
    /* content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 220px;
    height: 3px;
    background-color: var(--primary-color); */
}

.activity-detail .about-content p {
    color: var(--dark-text);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.activity-detail .about-content ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.activity-detail .about-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
    font-size: 1.1rem;
}

.activity-detail .about-content li::marker {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.activity-detail .about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.activity-detail .feature-item {
    flex: 1;
    min-width: 250px;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
}

.activity-detail .feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
}

.activity-detail .feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.activity-detail .feature-item h4 {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.activity-detail .feature-item p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Section 3: Related Activity */
.activity-detail .related-section {
    padding: 10px 0;
    /* background-color: var(--light-bg); */
}

.activity-detail .related-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(238, 3, 8, 0.1); */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    transition: all 0.4s;
    height: 100%;
    background-color: white;
    position: relative;
}

.activity-detail .related-card:hover {
    transform: translateY(-15px);
    /* box-shadow: 0 20px 40px rgba(238, 3, 8, 0.2); */
}

.activity-detail .related-card .card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.activity-detail .related-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.activity-detail .related-card:hover .card-img-top {
    transform: scale(1.1);
}

.activity-detail .related-card .card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(238, 3, 8, 0.8) 100%); */
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.activity-detail .related-card .card-img-overlay .card-category {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-detail .related-card .card-body {
    padding: 25px;
}

.activity-detail .related-card .card-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.activity-detail .related-card .card-text {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.activity-detail .related-card .btn-primary {
    background-color: white;
    border: 1px solid #ee3038;
    color: #ee3038;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

.activity-detail .related-card .btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

/* Section 4: Gallery */
.activity-detail .gallery-section {
    padding: 50px 0;
    background-color: white;
}

.activity-detail .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.activity-detail .gallery-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.activity-detail .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-detail .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.activity-detail .gallery-item:hover img {
    transform: scale(1.1);
}

.activity-detail .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.activity-detail .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.activity-detail .gallery-overlay h4 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

/* Gallery Modal - Fixed */
.activity-detail .gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.activity-detail .gallery-modal.active {
    display: flex;
}

.activity-detail .modal-content {
    position: relative;
    max-width: 60vw;
    max-height: 90vh;

    display: flex;
    align-items: center;     /* top-bottom */
    justify-content: center; /* left-right */
}

.activity-detail .modal-content img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

.activity-detail .modal-close {
    position: fixed;
    top: 80px;
    right: 40px;
    color: black;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1001;
    background-color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.activity-detail .modal-close:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.activity-detail .modal-prev,
.activity-detail .modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    background-color: rgba(238, 3, 8, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 1001;
}

.activity-detail .modal-prev:hover,
.activity-detail .modal-next:hover {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.activity-detail .modal-prev {
    left: 40px;
}

.activity-detail .modal-next {
    right: 40px;
}

/* Fixed Donate Button */
.activity-detail .donate-fixed {
    position: fixed;
    bottom: 55px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(238, 3, 8, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.activity-detail .donate-fixed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(238, 3, 8, 0.5);
}

.activity-detail .donate-fixed i {
    margin-right: 10px;
}

#allFieldsError
 {
    display: none;
    text-align: center;
    background-color: red;
    color: white;
    padding: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}
#success-message {
    display: none;
    text-align: center;
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}
.bank-card {
    max-width: 520px;
    margin: 20px auto;
    font-family: "Segoe UI", Arial, sans-serif;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.bank-card h3{
    background: #1e3a8a;
    color: #fff;
    padding: 14px 20px;
    margin: 0;
    font-size: 18px;
}

.bank-table{
    width:100%;
    border-collapse: collapse;
}

.bank-table tr{
    border-bottom:1px solid #f1f1f1;
}

.bank-table td{
    padding:12px 16px;
    font-size:15px;
}

.bank-table td:first-child{
    font-weight:600;
    color:#555;
    width:40%;
    background:#fafafa;
}
/* Responsive */


@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
     .bank-table td{
        display:block;
        width:100%;
        padding:8px 16px;
    }

    .bank-table tr{
        display:block;
        margin-bottom:10px;
        border-bottom:none;
    }

    .bank-table td:first-child{
        background:none;
        font-size:13px;
        color:#888;
        padding-bottom:2px;
    }

    .bank-table td:last-child{
        font-weight:600;
        padding-top:0;
    }
}
/*End activity-detail*/
/* Responsive Styles - Fixed for Mobile */
@media (max-width: 992px) {
     .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tthfoundation-home .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .tthfoundation-home .carousel-caption p {
        font-size: 1rem;
    }

    .tthfoundation-home .section-title h2 {
        font-size: 2rem;
    }

    .tthfoundation-home .activity-content {
        margin-top: 30px;
    }

    .tthfoundation-about .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .tthfoundation-about .carousel-caption p {
        font-size: 1rem;
    }

    .tthfoundation-about .section-title h2 {
        font-size: 2rem;
    }

    .tthfoundation-about .timeline::before {
        left: 30px;
    }

    .tthfoundation-about .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
    }

    .tthfoundation-about .timeline-dot {
        left: 30px;
    }

    .tthfoundation-about .timeline-year {
        position: relative;
        top: 0;
        left: 0 !important;
        right: 0 !important;
        margin-bottom: 10px;
    }

    .tthfoundation-contact .carousel-caption h2 {
        font-size: 2.5rem;
    }

    .tthfoundation-contact .carousel-caption p {
        font-size: 1.1rem;
    }

    .tthfoundation-contact .section-title h2 {
        font-size: 2rem;
    }

   
    .tthfoundation-activity .section-title h2 {
        font-size: 2rem;
    }

    .tthfoundation-activity .slider-content h3 {
        font-size: 1.8rem;
    }

    .tthfoundation-activity .activity-slider-item {
        height: 400px;
    }

    .activity-detail .section-title h2 {
        font-size: 2rem;
    }

    .activity-detail .slider-content h3 {
        font-size: 1.8rem;
    }

    .activity-detail .activity-slider-item {
        height: 400px;
    }
}

@media (max-width: 768px) {
     .navbar{
        padding:10px 15px;
    }
      .TTHSocietyLogo{
        max-width: 200px;
    }
    .carousel-control-prev, .carousel-control-next {
        display: none;
    }
    .tthfoundation-home .carousel-section {
        height: 70vh;
        min-height: 450px;
    }

    .tthfoundation-home .carousel-item {
        height: 70vh;
        min-height: 450px;
    }

    .tthfoundation-home .carousel-caption {
        padding: 20px;
        max-width: 95%;
    }

    .tthfoundation-home .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .tthfoundation-home .carousel-caption p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .tthfoundation-home .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .tthfoundation-home .carousel-control-prev,
    .tthfoundation-home .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .tthfoundation-home .section-title h2 {
        font-size: 1.8rem;
    }

    .tthfoundation-home .section-title p {
        font-size: 1rem;
    }

    .tthfoundation-home .activity-tabs {
        padding: 20px;
    }

    .tthfoundation-home .activity-tab {
        padding: 15px;
    }

    .tthfoundation-home .activity-tab h5 {
        font-size: 1rem;
    }

    .tthfoundation-home .activity-tab p {
        font-size: 0.85rem;
        padding-left: 25px;
    }

    .tthfoundation-home .activity-content {
        padding: 25px;
    }

    .tthfoundation-home .activity-detail h3 {
        font-size: 1.5rem;
    }

    .tthfoundation-home .activity-detail img {
        height: 200px;
    }

    .tthfoundation-home .stat-item h3 {
        font-size: 2rem;
    }

    .tthfoundation-home .stat-item i {
        font-size: 2.5rem;
    }

    .footer-top {
        padding: 40px 0 20px;
    }

    .footer-logo h3 {
        font-size: 1.5rem;
    }

    .tthfoundation-about .carousel-section {
        height: 60vh;
        min-height: 400px;
    }

    .tthfoundation-about .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .tthfoundation-about .carousel-caption {
        padding: 20px;
        max-width: 95%;
    }

    .tthfoundation-about .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .tthfoundation-about .carousel-caption p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .tthfoundation-about .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .tthfoundation-about .carousel-control-prev,
    .tthfoundation-about .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .tthfoundation-about .section-title h2 {
        font-size: 1.8rem;
    }

    .tthfoundation-about .section-title p {
        font-size: 1rem;
    }

    .tthfoundation-about .feature-item {
        flex: 1 1 100%;
    }

    .tthfoundation-about .mission-vision-card {
        margin-bottom: 30px;
    }

    .tthfoundation-about .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .tthfoundation-about .modal-prev {
        left: 20px;
    }

    .tthfoundation-about .modal-next {
        right: 20px;
    }

    .tthfoundation-about .modal-close {
        right: 20px;
    }

    .tthfoundation-contact .carousel-section {
        height: 60vh;
        min-height: 400px;
    }

    .tthfoundation-contact .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .tthfoundation-contact .carousel-caption {
        padding: 30px;
        max-width: 95%;
    }

    .tthfoundation-contact .carousel-caption h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .tthfoundation-contact .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .tthfoundation-contact .carousel-control-prev,
    .tthfoundation-contact .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .tthfoundation-contact .section-title h2 {
        font-size: 1.8rem;
    }

    .tthfoundation-contact .section-title p {
        font-size: 1rem;
    }

    .tthfoundation-contact .contact-form-container {
        margin-top: 30px;
    }

    .tthfoundation-contact .contact-card {
        margin-bottom: 30px;
    }

   

   

    .tthfoundation-activity .section-title h2 {
        font-size: 1.8rem;
    }

    .tthfoundation-activity .section-title p {
        font-size: 1rem;
    }

    .tthfoundation-activity .activity-slider-item {
        height: 300px;
    }

    .tthfoundation-activity .slider-content {
        padding: 30px 20px 20px;
    }

    .tthfoundation-activity .slider-content h3 {
        font-size: 1.5rem;
    }

    .tthfoundation-activity .slider-content p {
        font-size: 1rem;
    }

    .tthfoundation-activity .carousel-control-prev,
    .tthfoundation-activity .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .tthfoundation-activity .activity-card .card-title {
        font-size: 1.2rem;
    }

    .tthfoundation-activity .activity-detail-content h3 {
        font-size: 1.5rem;
    }

   

    .activity-detail .section-title h2 {
        font-size: 1.8rem;
    }

    .activity-detail .section-title p {
        font-size: 1rem;
    }

    .activity-detail .activity-slider-item {
        height: 300px;
    }

    .activity-detail .slider-content {
        padding: 30px 20px 20px;
    }

    .activity-detail .slider-content h3 {
        font-size: 1.5rem;
    }

    .activity-detail .slider-content p {
        font-size: 1rem;
    }

    .activity-detail .carousel-control-prev,
    .activity-detail .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .activity-detail .about-features {
        flex-direction: column;
    }

    .activity-detail .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .activity-detail .modal-prev,
    .activity-detail .modal-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .activity-detail .modal-prev {
        left: 20px;
    }

    .activity-detail .modal-next {
        right: 20px;
    }

    .activity-detail .modal-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .activity-detail .donate-fixed {
        bottom: 55px;
        right: 10px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .tthfoundation-home .carousel-caption h2 {
        font-size: 1.3rem;
    }

    .tthfoundation-home .carousel-caption p {
        font-size: 0.9rem;
    }

    .tthfoundation-home .custom-card .card-title {
        font-size: 1.2rem;
    }

    .tthfoundation-home .activity-tab h5 i {
        font-size: 1rem;
        margin-right: 10px;
    }

    .tthfoundation-about .carousel-caption h2 {
        font-size: 1.3rem;
    }

    .tthfoundation-about .carousel-caption p {
        font-size: 0.9rem;
    }

    .tthfoundation-about .gallery-grid {
        grid-template-columns: 1fr;
    }
/* Chrome, Edge, Safari */
.gallery-grid::-webkit-scrollbar {
  height: 6px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: #ee3038;
  border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: #c8232a;
}


/* Firefox */
.gallery-grid {
  scrollbar-color: #ee3038 #f1f1f1;
  scrollbar-width: thin;
}
    .tthfoundation-contact .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .tthfoundation-contact .carousel-caption p {
        font-size: 0.95rem;
    }

    .tthfoundation-contact .contact-form-container {
        padding: 30px 20px;
    }

    .tthfoundation-contact .phone-input-group {
        flex-direction: column;
    }

    .tthfoundation-contact .country-code {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

   

    .tthfoundation-activity .slider-content h3 {
        font-size: 1.3rem;
    }

    .tthfoundation-activity .activity-card .card-title {
        font-size: 1.1rem;
    }

    .tthfoundation-activity .activity-detail-img {
        height: 200px;
    }

    .activity-detail .slider-content h3 {
        font-size: 1.3rem;
    }

    .activity-detail .gallery-grid {
        grid-template-columns: 1fr;
    }

    .activity-detail .donate-fixed {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .activity-detail .donate-fixed i {
        margin-right: 5px;
    }
}

/*End home css*/