/* ------------Default Styles----------- */

/* ------------ FONTS ------------ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tomorrow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pathway+Gothic+One&display=swap');
/* ------------ VARIABLES ------------ */
:root{

    /* FONT */
    --font: "Pathway Gothic One", sans-serif;
    --font-size1: 12px;
    --font-size2: 14px; 
    --font-size2-2: 16px;
    --font-size3: 18px;
    --font-size3-3: 20px;
    --font-size4: 22px; 
    --font-size5: 28px;
    --font-size6: 38px; 
    --font-size7: 64px; 
    --font-size8: 86px; 

     
    /* COLORS */
    --primary-color: black;
    --secondary-color: white;
    --accent-color: yellow;
    --accent-color1: #4f4f4f;
    /*--accent-color2: #B3B3B3;*/
    --accent-color2: #80bd55;
    --accent-color3: rgba(255, 255, 255, 0.1);
    
    --glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);

    --track-height: 250px;
    --gap: 20px;
    
    /* Speed of the scroll */
    --scroll-speed: 60s; 
    
  }

/* GLOBAL ELEMENTS */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

body {
    background-color: var(--secondary-color);
    color:  var(--primary-color);
    font-family: var(--font);
    /*font-size: var(--font-size1);*/
    padding-top: 56px;
    
    overflow-x: hidden;
}

a, a:hover {
    text-decoration: none;
    font-weight: bold;
    color: var(--primary-color);
}

p {
    font-size: var(--font-size3);
}

ul li{
    list-style: none;
}

hr.rounded {
  width: 20%;
  margin: auto;
  border-top: 5px solid var(--accent-color);
  border-radius: 7px ;
  opacity: 1;
}

hr.black {
    border-top: 4px solid var(--primary-color);
}

/* NAVIGATION */

nav {
  top: 0;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1px;
  background: var(--secondary-color);
  color:  var(--primary-color);
}

.logo {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  background-color: var(--accent-color);
  cursor: pointer;
}

.logo img {
  width: 120px;
  background-color: var(--accent-color);
}

.nav__links {
  display: flex;
  list-style: none;
}

.nav__links a{
  display: block;
  padding: 30px !important;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  font-size: var(--font-size2);
  font-weight: 700;
  text-transform: uppercase;
  transition: all ease-in-out 100ms;
}

.nav__links a:hover,
.nav__links a.active {
  background: var(--primary-color);
  color: var(--accent-color) !important;
}

.nav__links .nav__cta__button {
  padding: 30px 30px;
  margin-left: 16px;  
  color: var(--primary-color);
  background-color: var(--accent-color);
}

.nav__links .nav__cta__button:hover {
  color: var(--accent-color);
  background-color: var(--primary-color);
}

/* bootstrap nav style change */
.navbar {
    padding: 0;
}

.container-fluid{
    padding: 0;
}

.navbar-toggler{
    margin-right: 0.5rem;
}

.navbar-toggler-icon {
    color: #a58e25;
}

.navbar-collapse{
    flex-grow: 0;
}

.dropdown-item {
    height: 1rem;
}

/* GLOBAL CLASSES */

    /* Button */
    
.btn {
  padding: 1rem 2rem;
  margin-top: 0.5rem;
  width: auto;
  color: var(--primary-color);
  background-color: var(--accent-color);
  font-family: var(--font);
  text-transform: uppercase;
  font-size: var(--font-size2);
  font-weight: 700;
  cursor: pointer;
  border: none;
  border: 1px solid var(--secondary-color);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.btn__transparent {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn:hover {
    background-color: var(--accent-color2);
    color: var(--primary-color);
}

    /* Sections */

.header__bg {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.center__align {
    text-align: center;
}

.trim__pad__top {
    padding-top: 0;
}

.section__header {
  padding: 2rem 0;
  margin-bottom: 10px;
  font-size: var(--font-size6);
  font-weight: bold;
  line-height: 1.3em;
  text-align: center;
  text-transform: uppercase;
}

.section__header1{
    padding: none;
    font-size: var(--font-size6);
    font-weight: bold;
    line-height: 1.3em;
    text-align: center;
    text-transform: uppercase;
}

.section__header2{
    padding: none;
    font-size: var(--font-size4);
    font-weight: bold;
    line-height: 1.3em;
    text-align: center;
    text-transform: uppercase;
}

.section__description {
  margin-bottom: 2rem;
  font-size: var(--font-size3);
  font-weight: 400;
  text-align: left;
  line-height: 1.75rem;
}

.section__description1 {
    margin-bottom: 0;
    font-size: var(--font-size3);
    font-weight: 400;
    padding-bottom: 0;
    line-height: 1.75rem;
}

.section__description2 {
    margin-bottom: 0;
    font-size: var(--font-size5);
    font-weight: 400;
    padding-bottom: 0;
    line-height: 1.75rem;
}

.section__container {
    max-width: 100%;
    margin: auto;
    padding: 1rem 6rem 1rem 6rem;
}

.section__container1 {
    max-width: 85%;
    margin: auto;
    padding: 2rem 2rem 2rem 2rem;
}

    /* BG Colors */

.color__1 {
  background-color: var(--accent-color2);
}

.color__black {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.color__white {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* bg overlays */

#bg__sw {
    background: url('../image/bg/2/bg-yellow.jpg');
}

.bg__home {  
    width: 100%;
    height: 100%;
    object-fit: cover;
    background:linear-gradient(50deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)), url('../image/bg/2/home.jpg'); 
}

.bg__yellow {
    width: 100%;
    height: 100%;
    background: url('../image/bg/2/bg-yellow.jpg') transparent no-repeat center/cover;
    background-color: #000;
}

.bg__together__dark {  
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background:linear-gradient(50deg, rgba(0, 0, 0, 0.93), rgba(0, 0, 0, 0.93)), url('../image/bg/2/together.jpg'); 
}

.bg__together__light {  
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background:linear-gradient(50deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)), url('../image/bg/2/together.jpg'); 
}

.bg__women {  
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background:linear-gradient(50deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)), url('../image/bg/2/women.jpg'); 
}

.bg__edu {  
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background:linear-gradient(50deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)), url('../image/bg/2/education.png'); 
}

/* ------------------------------------------------ */
/* Yatra */

    .story-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .story-wrapper {
        display: grid;
        grid-template-columns: 450px 1fr;
        background: var(--secondary-color);
        border-radius: 32px;
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    }

    /* Sidebar Styles */
    .story-hero {
        background: #545454;
        padding: 40px;
        color: (--secondary-color);
        display: flex;
        flex-direction: column;
    }

    .image-slider {
        position: relative;
        width: 100%;
        height: 450px; /* Adjust based on your preferred height */
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .slider-track {
        width: 100%;
        height: 100%;
    }

    .slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 1s ease-in-out, transform 1.5s ease-out;
        transform: scale(1.15); /* Start slightly zoomed in */
    }

    .slide.active {
        opacity: 1;
        z-index: 1;
        transform: scale(1); /* Smoothly zoom out into focus */
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Indicators */
    .slider-nav {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }

    .dot {
        width: 12px;
        height: 6px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .dot.active {
        background: #fff;
        width: 32px; /* Active "pill" shape */
    }

    /* #--------------- */
    /* .image-frame {
        height: 400px;
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    } */

    /* Content Styles */
    .story-content {
        padding: 40px;
    }

    .eyebrow {
        color: var(--accent-color1);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    /*h1 {*/
    /*    font-size: 3rem;*/
    /*    margin: 10px 0 20px;*/
    /*    line-height: 1.1;*/
    /*}*/

    .lead-in {
        font-size: 1.25rem;
        color: var(--accent-color1);
        line-height: 1.6;
        margin-bottom: 40px;
    }

    article p {
        line-height: 1.8;
        color: var(--accent-color1);
        margin-bottom: 24px;
        font-size: 1.1rem;
    }

    .pull-quote {
        border-left: 4px solid var(--accent-color);
        padding: 20px 40px;
        margin: 40px 0;
        font-style: italic;
        font-size: 1.5rem;
        color: var(--secondary-color);
    }
    
    .aside-desc{
        border: 2px solid var(--accent-color);
        border-radius: 10px;
        padding: 20px 40px;
        margin: 40px 0;
        /* font-style: italic; */
        font-size: 1rem;
        color: var(--secondary-color);
    }  

    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.5);
            opacity: 0.5;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* Mobile Responsiveness */
    @media (max-width: 900px) {
        .story-wrapper {
            grid-template-columns: 1fr;
            text-align: justify;
        }

        .story-content {
            padding: 20px;
        }

        .story-hero{
            padding: 20px;
        }
    }
    
/* --------------------------------------------------------- */

    /* 1. The Scroll Container (Window) */
    .vibe-viewport {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding: 40px 0;
        /* Creates a Fade-out effect at the edges */
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }

    /* 2. The Moving Track */
    .vibe-track {
        display: flex;
        width: max-content;
        /* Fit all items in a line */
        gap: 30px;
        animation: scroll-left var(--scroll-speed) linear infinite;
    }

    /* Pause on hover for easier clicking */
    .vibe-viewport:hover .vibe-track {
        animation-play-state: paused;
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }

        /* Assume content is duplicated for seamless loop */
    }

    /* 3. The Items (Same Antigravity Style) */
    .vibe-link {
        text-decoration: none;
        color: inherit;
        display: block;
        flex-shrink: 0;
        width: 300px;
        /* Fixed width for the ticker items */
    }

    .vibe-card {
        background: var(--accent-color2);
        border: 1px solid var(--border-glass);
        border-radius: 24px;
        padding: 16px;
        backdrop-filter: blur(15px);
        transition: all 0.4s ease;
        cursor: pointer;

        /* Inner Floating Animation */
        animation: inner-float 6s ease-in-out infinite;
    }

    /* Vary the floating for different cards */
    .vibe-link:nth-child(odd) .vibe-card {
        animation-delay: -3s;
    }

    @keyframes inner-float {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-12px);
        }
    }

    .vibe-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 16px;
        margin-bottom: 15px;
        pointer-events: none;
    }

    .vibe-link:hover .vibe-card {
        border-color: var(--primary-color);
        background: var(--accent-color) ;
        box-shadow: 0 0 40px rgba(0, 242, 255, 0.1);
        transform: scale(1.05);
    }

    .info h3 {
        margin: 0;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .info p {
        font-size: 0.75rem;
        color: #666;
        margin-top: 5px;
        text-transform: uppercase;
    }

    /* Drag cursor */
    .vibe-track {
        cursor: grab;
    }

    .vibe-track.is-dragging {
        cursor: grabbing;
        user-select: none;
    }


    /* ── Responsive: only card size + body padding scale down ── */
    @media (max-width: 768px) {
        body {
            padding: 60px 0;
        }

        .vibe-link {
            width: 220px;
        }

        .vibe-card img {
            height: 150px;
        }
    }

    @media (max-width: 480px) {
        body {
            padding: 40px 0;
        }

        .vibe-link {
            width: 160px;
        }

        .vibe-card {
            border-radius: 16px;
            padding: 12px;
        }

        .vibe-card img {
            height: 110px;
            border-radius: 10px;
            margin-bottom: 10px;
        }
    }
    

/* ------------------------------------------------ */
/* port */

.section__list {
    list-style: none;
    width: 100%;
    margin-inline: auto;
    padding-top: 10px;
    font-size: var(--font-size2);
    font-weight: 200;
    text-align: left;
    line-height: 1.75rem;
}

.about__container {
    display: grid;
}

.list__header {
    padding: 0 1rem;
    margin-bottom: 0;
    font-size: var(--font-size3);
    font-weight: bold;
    line-height: 1.3em;
    text-align: center;
    text-transform: uppercase;
}

.list__item {
    width: 20rem;
    height: 25rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);;
    margin: 1.5rem;
}

.list__description {
    text-align: left;
    font-size: var(--font-size2);
    padding: 0 1rem;
}

.image__set .list__image {
    width: 100%;
    aspect-ratio: 12 / 9;
    object-fit: cover;
    border-radius: 0;
}

a .list__header {
    padding: 0 1rem;
    margin-bottom: 0;
    font-size: var(--font-size3);
    font-weight: bold;
    line-height: 1.3em;
    text-align: center;
    text-transform: uppercase;
}

.grid__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 0 4rem;
}

.grid__content {
    text-align: left;
    font-size: var(--font-size3);
    padding: 0 30px;
}

.image__set {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0px 20px;
    padding: 0;
}

.image__set .image__set__row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.image__set .image__set__col {
    display: flex;
    flex-direction: column;
    width: 48%;
}

.image__set img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
}

.image__set1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0px 20px;
    padding: 20px;
}

.image__set1 .image__set__row1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.image__set1 .image__set__col1 {
    display: flex;
    flex-direction: column;
    width: 48%;
}

.image__set1 .list__image {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    aspect-ratio: 12 / 9;
    object-fit: cover;
    border-radius: 0;
}

.about__image__right {
    text-align: right;
    margin: auto;
}

.about__image__left {
    text-align: left;
}

.about__image__center {
    text-align: center;
    padding: 1rem;
}

.about__img {
    max-width: 400px;
    max-height: 450px;
    border-radius: 10px;
    margin-left: 30px;
}

.about__bg-1,
.about__bg-2 {
    position: absolute;
    max-width: 150px;
    z-index: -1;
}

.about__bg-1 {
    top: 0;
    left: 0;
}

.about__bg-2 {
    right: 0;
    bottom: 0;
}

.about__content {
    text-align: center;
    padding-block: min(10vh, 1rem);
}

.about__content1 {
    text-align: center;
    padding: 0 100px;
}

/* gallery */

.portfolio__grid {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.portfolio__card {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.portfolio__card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.portfolio__card:hover img {
    transform: scale(1.1);
}

/* HOME - WHAT WE DO */

.feature-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem 2rem;
    background-color: var(--secondary-color);
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}

/* Alternate Layout: Image Left, Card Right on Desktop */
.feature-container.reverse {
    flex-direction: row-reverse;
}

/* Left Side: Card */
.content-card {
    flex: 1;
    max-width: 500px;
    background: var(--primary-color);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.content-card h2 {
    font-size: 2rem;
    color: var(--accent-color2);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/*.points-list {*/
/*    list-style: none;*/
/*    padding: 0;*/
/*    margin: 0;*/
/*}*/

/*.points-list li {*/
/*    position: relative;*/
/*    padding-left: 2rem;*/
/*    margin-bottom: 1rem;*/
/*    color: var(--text-light);*/
/*    line-height: 1.6;*/
/*}*/

/* Custom Checkmark */
/*.points-list li::before {*/
/*    content: '✓';*/
/*    position: absolute;*/
/*    left: 0;*/
/*    color: var(--primary-color);*/
/*    font-weight: bold;*/
/*    font-size: var(--font-size4);*/
/*}*/

/* Right Side: Image */
.image-wrapper {
    flex: 1;
    max-width: 600px;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive Logic */
@media (max-width: 992px) {

    /* Forces Card on top and Image on bottom for ALL sections */
    .feature-container,
    .feature-container.reverse {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .content-card,
    .image-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

/*HOME - HOW WE WORK*/

.bento-grid {
    max-width: 1100px;
    margin: 1rem auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
    color: var(--secondary-color);
}

.bento-card {
    background: var(--accent-color1);
    border: 1px solid var(--accent-color2);
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    border: 3px solid var(--primary-color);
    /* transform: translateY(-2px); */
}

/* Span Logic for Desktop */
.card-large {
    grid-column: span 8;
}

.card-tall {
    grid-column: span 4;
    grid-row: span 2;
}

.card-medium {
    grid-column: span 8;
}

.content {
    padding: 2.5rem;
    z-index: 2;
    flex: 1;
}

.bento-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--accent-color2);
}

.bento-card p {
    color: var(--secondary-color);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Bullet Styling (Block 3) */
.feature-list {
    margin-top: 1.5rem;
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.feature-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent-color2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color2);
}

/* Image Handling */
.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-top: auto;
}

.card-large .image-container {
    height: 300px;
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
}

.bento-card:hover img {
    filter: grayscale(0%);
}

/* Decorative Gradient Overlay */
.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--accent-color3) 5%, transparent 40%);
}

/* Responsive Mobile Logic */
@media (max-width: 992px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-card {
        grid-column: span 12 !important;
        grid-row: auto !important;
    }

    .content {
        padding: 2rem;
    }

    /* Ensures Text is always before Image in stack */
    .bento-card {
        flex-direction: column;
    }

    .image-container {
        order: 2;
        /* Image goes to bottom */
    }

    .content {
        order: 1;
        /* Text stays on top */
    }
}

/* Gallery Scroll */

    /* Running Image Section */
    .marquee-viewport {
        width: 100%;
        overflow: hidden;
        cursor: grab;
        padding: 20px 0;
        position: relative;
        margin: 1rem;
    }

    .marquee-track {
        display: flex;
        gap: var(--gap);
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 10px;
    }

    .marquee-track::-webkit-scrollbar {
        display: none;
    }

    .img-card {
        flex-shrink: 0;
        height: var(--track-height);
        border-radius: 18px;
        overflow: hidden;
        background: #f5f5f7;
    }

    /* Landscape Default */
    .img-card {
        /* width: 550px; */
        width: 380px;
        /* height: 250px; */
    }

    /* Portrait Exception */
    .img-card.portrait {
        /* width: 280px; */
        width: 180px;
    }

    .img-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
        transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
    }

    .img-card:hover img {
        transform: scale(1.05);
    }

    @media (max-width: 992px) {
        .content-grid {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .img-card {
            width: 280px;
            height: 180px;
        }

        .img-card.portrait {
            width: 120px;
        }
    }

/* ------------------------------------------------------- */

/* ----------- EDUCATION - Banner Cards sd ------------ */
/* * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
} */

/* body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c7bfbf;
  color: #f9fafb;
  padding: 24px;
} */

.cards-layout-sd {
  width: 100%;
  max-width: 1100px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.cards-sd {
  flex: 1 1 280px;
  max-width: 100%;
  background: #111111;
  color: #f9fafb;
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid #2f2f2f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cards-sd-white {
  flex: 1 1 280px;
  max-width: 100%;
  background: #f9fafb;
  color: #111111;
  border-radius: 18px;
  padding: 18px 18px 20px;
  margin-bottom: 1rem;
  /* border: 1px solid #2f2f2f; */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-sd {
  font-size: 1.2rem;
  /* color: #f9fafb; */
}

.description-sd {
  font-size: 0.9rem;
  color: #d1d5db; 
  line-height: 1.5;
}

.points-sd {
  list-style: none;
  display: grid;
  gap: 7px;
  margin-top: 4px;
  margin-bottom: 10px;
}

.points-sd li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  /* color: #f9fafb; */
}

.bullet-sd {
  margin-top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #facc15; /* bright yellow bullet-sd */
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.9);
  flex-shrink: 0;
}

.bullet-sd-text {
  flex: 1;
}

.footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  color: #e5e7eb;
  background: rgba(15, 15, 15, 0.9);
}

.meta {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cards-layout-sd {
    max-width: 640px;
  }
}

@media (max-width: 540px) {
  body {
    padding: 16px;
  }
  .cards-sd {
    max-width: 100%;
  }
}

/* ------------------------------------------------------- */

/* ----------- SLIDER ------------ */

.index .swiper {
    margin: 20px 0;
    width: 80%;
}

.swiper__container {
    max-width: 100%;
    margin: auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.swiper-wrapper {
    width: 100%;
    height: 35em;
    display: flex;
    align-items: center;
}

.swiper-wrapper .card {
    width: 26em;
    height: 100%;
    background-color: var(--secondary-color);
    box-shadow: 0 0 2em rgba(0, 0, 0, .2);
    padding: 1em 1em;
    display: flex;
    align-items: left;
    flex-direction: column;
    margin: 0 2em;
}

/* .swiper-slide:not(.swiper-slide-active) {
    filter: blur(1px);
    cursor: pointer;
} */

.card__image {
    width: 100%;
    height: 16em;
    border-radius: 10%;
    padding: 3px;
    margin-bottom: 1em;
}

.card__image img {
    width: 100%;
    height: 100%;
    padding-top: 0.5em;
    object-fit: cover;
}

.card__content {
    display: flex;
    align-items: left;
    flex-direction: column;
    color: var(--primary-color);
}

.card__title {
    font-size: var(--font-size3);
    font-weight: 500;
    position: relative;
    top: .2em;
}

.card__name {
    font-weight: bold;
    font-size: var(--font-size2);
}

.card__text {
    text-align: left;
    font-size: var(--font-size2);
    margin: 0.5rem 0 0.5rem 0;
}

.card__btn {
    width: 9em;
} 

/* ---------------------------What we do----------------------------------------------- */

.header__banner { 
    height: 400px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.header__banner .bg__overlay {
    position: absolute;
    top: 25%;
    left: 5%;
    width: 60%;
    height: 25%;
    display: flex;
    align-items: center;
    justify-content: left;
}

.header__banner .topic{
    font-size: var(--font-size7);
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1em;
    padding: 1rem;
    color: var(--accent-color2); 
    background: rgba(0, 0, 0, 0.70);
}

.header__banner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

 /* Swiper in What we do and Our impact */

.slide .swiper {
    width: 100%;
}

.card-wrapper {
    width: 95%;
    height: 20rem;
    margin: 1rem 2rem;
    padding: 20px 10px;
    overflow: hidden;
}

.swiper-wrapper .card-item {
    display: block;
    height: 20em;
    background: var(--primary-color);
    padding: 10px;
    margin-top: 1rem;
    user-select: none;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}

.card-list .card-link .card-image {
    width: 100%;
    max-height: 100%;
    aspect-ratio: 1/1;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
}

.card-wrapper .card-list{
    height: 12rem;
}
.card-wrapper .swiper-pagination-bullet {
    height: 15px;
    width: 15px;
    opacity: 0.5;
    background: var(--primary-color);
}
.card-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
}
.card-wrapper .swiper-slide-button {
    color: var(--primary-color);
    margin-top: -50px;
}

/* Our Impact Gallery */

.hidden {
    display: none;
}

/* -------------------------------------------------------- */

/* carousel */
.carousel{
    height: 75vh;
    width: 100%;
    overflow: hidden;
    position: relative;    
}

.carousel .bg__overlay{
    position: absolute;
    width: 50%;
    padding: 2rem;
    height: 85%;
    background: rgba(0, 0, 0, 0.5);
}

.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .list .item .carousel__content{
    position: absolute;
    top: 10%;
    width: 1140px;
    max-width: 80%;
    left: 45%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: var(--secondary-color);
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: var(--font-size7);
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: var(--accent-color);
}
.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons a:nth-child(2){
    border: none;
    background-color: var(--accent-color);
    color: var(--primary-color);
    letter-spacing: 3px;
    font-weight: 500;
}
.carousel .list .item .buttons a{
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--accent-color2);
    text-align: center;
    align-content: center;
}
/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 30px;
    left: 65%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .carousel__content{
    color: var(--secondary-color);
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .carousel__content .title{
    font-weight: 500;
    background: var(--primary-color);
    padding: 0 5px;
}
.thumbnail .item .carousel__content .thumbnail__description{
    font-weight: 300;
    background: var(--primary-color);
    padding: 0 5px;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    justify-content: right;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .carousel__content .author,
.carousel .list .item:nth-child(1) .carousel__content .title,
.carousel .list .item:nth-child(1) .carousel__content .topic,
.carousel .list .item:nth-child(1) .carousel__content .des,
.carousel .list .item:nth-child(1) .carousel__content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .carousel__content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .carousel__content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .carousel__content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .carousel__content .buttons{
    animation-delay: 1.8s!important;
}

/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .carousel__content .author,
.carousel.prev .list .item:nth-child(2) .carousel__content .title,
.carousel.prev .list .item:nth-child(2) .carousel__content .topic,
.carousel.prev .list .item:nth-child(2) .carousel__content .des,
.carousel.prev .list .item:nth-child(2) .carousel__content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}


/* ----------Our Project -------------------- */

.new-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Main Content */
.content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* Heading & Description */
h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* Layout: Ensures Everything Fits */
.layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: repeat(1, 1fr) auto;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    margin-bottom: 20px;
}

/* Side Blocks (2 rows per column) */
.left, .right{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Bottom Block (Same Styling as Others) */
.bottom {
    grid-column: 2;
    width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Blocks Styling */
.block {
    color: rgb(0, 0, 0);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Hover Effect */
.block:hover {
    transform: scale(1.05);
}

/* Center Image */
.center-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 350px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.life__image {
    text-align: center;
    margin: auto;
}
.life__img {
    margin-left: 30px;
    border-radius: 100px;
    height: 80%;
    width: auto;
    max-width: 80%;
    object-fit: cover;
}

/* ------------Life New---------------- */

.life__left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
}

.life__left img {
    height: 80%;
    width: auto;
    max-width: 90%;
    object-fit: cover;
    border-radius: 10px;
}

.life__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 20px 10px;
    box-sizing: border-box;
}

h2 {
    margin-bottom: 10px;
    text-transform: uppercase;
}

.life__block {
    text-align: left; 
    padding: 20px;
    color: var(--primary-color);
}

/* -----------Donate-------------- */

.header__banner__d { 
    height: calc(100vh - 60px);
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header__banner__d .bg__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 1rem;
    margin-top: 1rem;
    gap: 2rem;  
}

.header__banner__d .topic{
    font-size: var(--font-size7);
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1em;
    padding: 1rem;
    color: var(--accent-color); 
    background: rgba(0, 0, 0, 0.85);
}

.header__banner__d img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header__banner__doc { 
    height: 25vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header__banner__doc .bg__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 1rem;
    margin-top: 1rem;
    gap: 2rem;  
}

.header__banner__doc .topic{
    font-size: var(--font-size7);
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1em;
    padding: 1rem;
    color: var(--accent-color); 
    background: rgba(0, 0, 0, 0.85);
}

/* Donate Card Styling */
.card__d {
    background: var(--secondary-color);
    padding: 20px;
    width: 30%;
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card__d__container {
    border: 2px solid var(--accent-color2);
    padding: 5px;
    margin-bottom: 0;
    position: relative;
}

/* Tabs */
.tabs__d {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-right: 20px;
    /*margin-bottom: 1rem;*/
}

.donate__tab {
    padding: 8px 30px;
    width: 30%;
    flex-grow: 1;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    font-size: var(--font-size4);
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    /* position: relative; */
    /* z-index: 1; */
    margin-right: -20px; /* Negative margin causes overlap */
}

/* Add hover or active state for visibility */
.donate__tab.active {
    background-color: var(--accent-color2);
    color: var(--primary-color);
}

.payment__sections{
    display: none;
}

.payment__sections.active{
    display: block;
}

.tab {
    padding: 8px 30px;
    width: 30%;
    flex-grow: 1;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 50%,
        calc(100% - 20px) 100%,
        0 100%
    );
    margin-right: -20px; /* Negative margin causes overlap */
}

/* Make sure the leftmost tab is fully visible */
.tab:first-child {
    z-index: 5; /* Higher z-index to sit on top */
}

/* Each tab overlaps the next one */
.tab:nth-child(2) { z-index: 4; }
.tab:nth-child(3) { z-index: 3; }
.tab:nth-child(4) { z-index: 2; }
.tab:nth-child(5) { z-index: 1; }

/* Add hover or active state for visibility */
.tab.active {
    background-color: var(--accent-color2);
    color: var(--primary-color);
}

/* Tab Content */
.steps {
    display: none;
    padding: 0 10px; 
}

.steps.active {
    display: block;
}

.steps__head {
    font-size: var(--font-size3);
    text-align: center;
}

.steps__desc {
    font-size: var(--font-size3);
    font-weight: bold;
}

.steps__content{
    min-height: 40vh;
}

/* Number Buttons - Grid Layout */
.button__group {
    display: flex; 
    justify-content: space-between; 
    gap: 10px; 
    margin-bottom: 15px;
}

.num__btn {
    padding: 10px;  
    width: 100%;    
    font-size: var(--font-size3);
    border: none;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.num__btn:hover {
    background: var(--primary-color);
    color: var(--accent-color);
}

/* Number Field */
.number__field {
    width: 75%;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: var(--font-size2-2);
    outline: none;
}

/* Text Fields */
.text__field {
    width: 100%;
    padding: 12px 0;
    margin-bottom: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    outline: none;
}

/* Submit Button */
.submit__btn {
    width: 100%;
    padding: 10px;
    font-size: var(--font-size2-2);
    background: #28a745;
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.submit__btn:hover {
    background: #218838;
}

/* Next Button */
.next__btn {
    width: 50%;
    padding: 10px;
    font-size: var(--font-size2-2);
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.next__btn:hover {
    background: var(--accent-color2);
    color: var(--primary-color);
}

/* Back Button */
.back__btn {
    width: 50%;
    padding: 10px;
    font-size: var(--font-size2-2);
    background: var(--accent-color1);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.back__btn:hover {
    background: var(--accent-color2);
    color: var(--primary-color);
}



/* Error Message */
.error__msg {
    color: red;
    font-size: var(--font-size1);
    margin: 5px 0;
}

.radio__group {
    display: flex;
    gap: 10px;
}

/* Base styles for radio buttons */
.radio__group input[type="radio"] { 
    appearance: none;
    width: 1.5rem; /* Responsive size */
    height: 1.5rem;
    border: 2px solid var(--primary-color); /* Outer circle color */
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease-in-out;
}

/* Inner filled circle when selected */
.radio__group input[type="radio"]::before {
    content: "";
    width: 60%;
    height: 60%;
    background-color: var(--primary-color); /* Change color when selected */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease-in-out;
}

/* Checked state */
.radio__group input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Hide section initially */
.qr__content {
    display: flex;
    height: 60vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--accent-color2);
    flex-direction: column;
}

/* Style for the image */
.qr__content img {
    margin: 10px 0;
    height: 200px;
}


/* -----------------------Social Icons Fixed--------------------------- */

.social__icons__fixed {
    position: fixed;
    right: 20px;  /* Adjust distance from the right */
    top: 30%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;  /* Space between icons */
    z-index: 1000;
}

.social__icons__fixed a {
    display: block;
    width: 3rem;
    height: 3rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.social__icons__fixed a i {
    font-size: 1.5rem;
}

.social__icons__fixed a:hover {
    background-color: var(--accent-color2)
}


/* -----------------------Contact--------------------------- */

/* Contact Section */
.contact__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    flex-wrap: wrap;
}

/* Contact Info */
.contact__info {
    flex: 1;
    padding: 20px;
    max-width: 400px;
}

.contact__info h2 {
    color: #333;
}

.contact__info p {
    margin: 10px 0;
    color: #555;
}

/* Social Media */
.social__links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social__links a {
    font-size: var(--font-size3);
}

.social__links a:hover {
    transform: scale(1.1);
}

.social__links a i {
    width: 1rem;
    margin: 0 5px;
    transition: transform 0.3s;
}

/* Contact Form */
.contact__form {
    flex: 1;
    padding: 20px;
    max-width: 500px;
}

.contact__form form {
    display: flex;
    flex-direction: column;
}

.contact__form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.contact__form input, 
.contact__form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact__form textarea {
    height: 120px;
}

.contact__form button:hover {
    background: var(--accent-color2);
}


/* -----------------------Footer--------------------------- */

.site-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-family: var(--font);
    padding: 3rem 1rem;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-logo h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.footer-logo p {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--accent-color2);
    font-size: var(--font-size3);
}

.footer-logo .logo {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    cursor: pointer;
}  

.footer-logo a img {
    width: 11rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.link-column h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
}

.link-column p {
    font-size: var(--font-size1);
}

.link-column a {
    display: block;
    text-decoration: none;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.link-column a:hover {
    color: var(--accent-color2); 
    text-decoration: underline; 
}

.footer-social h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--accent-color);
}

.social-icons a {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color2);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
    font-size: 0.875rem;
    color: #bbb;
}

/* Existing media queries */

/* Port */

@media (width > 576px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width > 768px) { */
    
    .header__container {
        padding-top: 5rem;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
    }

    .header__image {
        grid-area: 1/3/2/5;
    }

    .header__image img {
        margin-inline-start: unset;
    }

    .header__content {
        grid-area: 1/1/2/4;
        text-align: left;
    }

    .header__content h1 {
        font-size: var(--font-size8);
        line-height: 6rem;
        text-align: left;
    }

    .header__content .section__description {
        text-align: left;
        margin-inline-start: unset;
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .about__content,
    .about__content :is(.section__header, .section__description) {
        text-align: left;
    }

    .service__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio__container :is(.section__header, .section__description) {
        text-align: left;
        margin-inline-start: unset;
    }

    .portfolio__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio__banner {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Swiper */

/* Responsive media query code for small screens */
@media (max-width: 768px) {
    .card-wrapper {
      margin: 0 10px 25px;
    }
    .card-wrapper .swiper-slide-button {
      display: none;
    }
}

/* Carousel */

@media screen and (max-width: 678px) {
/* @media screen and (max-width: 768px) { */
    .carousel .list .item .carousel__content{
        padding-right: 0;
    }
    .carousel .list .item .carousel__content .title{
        font-size: var(--font-size5);
    }
    .carousel .list .item .buttons{
        grid-template-columns: repeat(2, 90px);
        grid-template-rows: 35px;
    }
    .carousel .thumbnail{
        display: none;
    }
}


/* ========== Responsive Design ========== */

/* Portrait tablets and landscape phones - max 768px */

@media screen and (max-width: 768px) {
    
    /* ---------------NavBar-------------- */
    .logo img {
        width: 60px;
    }
    .custom__navbar__collapse {
        width: 60%;
        margin: 0 auto;
        background-color: white; /* Optional */
        border: 1px solid #ccc; /* Optional: subtle border */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional */
        position: absolute;
        top: 100%; /* Position right below the navbar */
        right: 0;
        z-index: 1000; /* Above other content */
        padding: 0; /* No extra space */
    }
    .custom__navbar__collapse.show {
        transform: translateX(0); /* Slide into view */
    }

    .custom__navbar__collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .custom-navbar-collapse .nav-item {
        width: 100%;
    }

    .custom__navbar__collapse a .nav-link {
        padding: 0;
        font-size: 1rem;
        border-bottom: 2px solid #eee; /* Optional divider */
        width: 100%;
    }
    .custom-navbar-collapse .nav-link:last-child {
        border-bottom: none; /* Remove divider for last item */
    }

    .nav__links a{
        padding: 1rem !important;
    }

    .nav__links .nav__cta__button {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 10px;
    }

    /* ---------------Common---------------------------- */
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: calc(var(--font-size2) * 0.9);
        margin-top: 1.5rem;
    }
    .header__banner {
        text-align: center;
    }

    .header__banner .topic {
        font-size: calc(var(--font-size7) * 0.9); /* 90% of base size */
        padding: 0.5rem 0.75rem;
        overflow: visible;
        background: rgba(0, 0, 0, 0.85);
    }

    .header__banner .bg__overlay {
        top: 20%;
        left: 5%;
        width: 80%; /* Increase width for smaller screens */
        height: 20%;
    }

    .section__container  {
      padding: 2rem 3rem 1.5rem 3rem;
      text-align: center;
    }
    .section__container1  {
        max-width: 100%;
        padding: 1rem 1rem 1rem 1rem;
        text-align: center;
        margin: 0;
    }
    .about__container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto; /* 2 rows */
        grid-template-areas:
            "left"
            "right";
    }
    .about__content {
        grid-area: left;
        padding: 0;
    }
    .about__content1 {
        padding: 0;
    }
    .section__header {
        font-size: calc(var(--font-size6) * 0.8); 
        padding: 1.5rem 0;
        margin-bottom: 8px;
    }
    .section__header1{
        font-size: calc(var(--font-size6) * 0.8); 
    }
    .section__header2{
        font-size: calc(var(--font-size4) * 0.8); 
    }
    .section__description {
        font-size: calc(var(--font-size3) * 0.9);
        line-height: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .section__description1 {
        font-size: calc(var(--font-size3) * 0.9);
    }

    /* ----------image set ------------- */
    .image__set1 {
        padding: 15px;
        margin: 0px 10px;
    }

    .image__set1 .image__set__row1 {
        flex-direction: column;
        align-items: flex-start; /* Stack vertically */
        gap: 15px;
    }

    .image__set1 .image__set__col1 {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .list__item {
        width: 18rem;
        height: 22rem;
        margin: 1rem;
    }


    /* --------about__image__right---------- */

    .about__image__right {
        text-align: center;
        margin: 0;
    }
    .about__img {
        max-width: 350px;
        max-height: 400px;
        margin: 0;
    }

    /* ------------Swiper--------------- */
    .swiper__container {
        padding: 0; 
    }
    .swiper-wrapper .card {
        margin: 0;
    }

    /* ----------new-section--------------- */
    .layout {
        display: flex;
        flex-direction: column;  /* Stack vertically */
        gap: 0;
        margin-bottom: 0;
    }
    .bottom {
        width: 100%; 
        padding: 10px; 
    }
    .center-image {
        width: 300px;
        height: 300px;
    }
    
    .center-image img {
        object-fit: contain; /* Sometimes 'contain' works better on smaller screens if content is getting cut */
        max-height: 300px; 
    }
    /* --------------Life First--------------- */

    .life__container {
        gap: 20px;
    }
    
    .life__left img {
        height: 70%;
        max-width: 70%;
    }
    
    .life__right {
        padding: 15px;
    }
    

    
    /* -----------------Donate------------- */
    .header__banner__d{
        display: block;
    }

    .header__banner__d .bg__overlay {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }

    .header__banner__d .topic {
        font-size: calc(var(--font-size7) * 0.9);
        padding: 0.5rem 0.75rem;
        overflow: visible;
        background: rgba(0, 0, 0, 0.85);
    }


    .radio__group input[type="radio"] { 
        width: 1.2rem; 
        height: 1.2rem;
    }

    .card__d {
        position: static;
        width: 100%;
        display: block; /* Ensure full width */
        margin: 1rem 0; /* Space from base-container */
    }
    
    .donate__tab{
        font-size: var(--font-size2-2);
    }
    
    /* ------------------------Docs------------------------ */
    .header__banner__doc{
        display: block;
    }

    .header__banner__doc .bg__overlay {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }

    .header__banner__doc .topic {
        font-size: calc(var(--font-size7) * 0.9); 
        padding: 0.5rem 0.75rem;
        overflow: visible;
        background: rgba(0, 0, 0, 0.85);
    }
    /* -----------------------Social Icons Fixed--------------------------- */

    .social__icons__fixed {
        right: 10px;
    }

    /* ---------------Contact----------- */

    .contact__container {
        flex-direction: column;
        align-items: baseline;
    }

    .contact__info {
        max-width: 100%;
        text-align: left;
    }
    .contact__form input, 
    .contact__form textarea {
        width: 200%;
        padding: 0;
    }

    /* ---------------Footer----------- */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo .logo {
        justify-content: center;
        background-color: var(--primary-color);
        cursor: pointer;
    }  
    
    .footer-logo .logo img {
        width: 120px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .social-icons a {
        margin: 0 0.5rem;
    }
}

/* Mobile phones - max 480px */

@media screen and (max-width: 480px) {

    .logo img {
        width: 60px;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: calc(var(--font-size2) * 0.85);
        margin-top: 1.2rem;
    }

    .header__banner {
        text-align: center;
    }

    .header__banner .topic {
        font-size: calc(var(--font-size7) * 0.8); 
        padding: 0.5rem 0.5rem;
        background: rgba(0, 0, 0, 0.85);
    }
    .header__banner .bg__overlay {
        top: 15%;
        left: 5%;
        width: 90%;
        height: 20%;
        justify-content: center; /* Center content on small screens */
        padding: 0 10px; /* Add padding to avoid edge touch */
    }
    .section__container  {
      padding: 1.5rem 1.5rem 1rem 1.5rem;
      text-align: center; 
    }
    .section__container1  {
        max-width: 100%;
        padding: 1rem 1rem 1rem 1rem;
        text-align: center;
        margin: 0;
    }
    .section__header {
        font-size: calc(var(--font-size6) * 0.7);
        padding: 1.2rem 0;
        margin-bottom: 6px;
    }
    .section__header1{
        font-size: calc(var(--font-size6) * 0.7); 
    }
    .section__header2{
        font-size: calc(var(--font-size4) * 0.7); 
    }
    .section__description {
        font-size: calc(var(--font-size3) * 0.85);
        line-height: 1.4rem;
        margin-bottom: 1.2rem;
        text-align: center; 
    }
    .section__description1 {
        font-size: calc(var(--font-size3) * 0.85);
    }
    
    /* ----------image set ------------- */
    .image__set1 {
        padding: 10px;
        margin: 0px 5px;
    }

    .image__set1 .image__set__row1 {
        gap: 10px;
    }

    .image__set1 .image__set__col1 {
        width: 100%;
        padding: 10px;
    }

    .list__item {
        width: 90%; 
        max-width: 350px; /* Don't shrink too much */
        height: auto;
        padding: 1rem;
        margin: 1rem auto;
    }

    /* --------about__image__right---------- */

    .about__image__right {
        text-align: center;
        margin: auto;
    }
    .about__img {
        max-width: 100%;
        max-height: none;
        border-radius: 8px;
        margin: 0;
    }
    /* ------------Swiper--------------- */
    .swiper__container {
        padding: 0;
    }
    .swiper-wrapper .card {
        margin: 0;
    }
    /* ----------new-section--------------- */
    .layout {
        display: flex;
        flex-direction: column; 
        gap: 10px;
        margin-bottom: 10px;
    }
    .bottom {
        width: 100%; 
        align-items: stretch;
    }
    .center-image {
        width: 90%;
        height: auto;
        padding: 20px;
    }
    
    .center-image img {
        object-fit: cover;
        max-height: 250px; 
    }

    /* -----------------Donate------------- */

    .header__banner__d .bg__overlay {
        padding: 1rem 0;
    }


    .header__banner__d .topic {
        font-size: calc(var(--font-size7) * 0.8); 
        padding: 0.5rem 0.5rem;
        background: rgba(0, 0, 0, 0.85);
    }

    .radio__group input[type="radio"] { 
        width: 1rem; 
        height: 1rem;
    }
    /* ------------------------Docs------------------------ */
    .header__banner__doc .bg__overlay {
        padding: 1rem 0;
    }

    .header__banner__doc .topic {
        font-size: calc(var(--font-size7) * 0.8); 
        padding: 0.5rem 0.5rem;
        background: rgba(0, 0, 0, 0.85);
    }
    /* -----------------------Social Icons Fixed--------------------------- */

    .social__icons__fixed {
        right: 5px; 
    }

    .social__icons__fixed a {
        width: 2rem;
        height: 2rem;
    }
    
    .social__icons__fixed a i {
        font-size: 1rem;
    }

    /* ---------------Footer----------- */
    .footer-container {
        padding: 1rem;
    }

    .footer-logo .logo {
        justify-content: center;
        background-color: var(--primary-color);
        cursor: pointer;
    }  
    
    .footer-logo .logo img {
        width: 120px;
    }

    .link-column h4 {
        font-size: 1rem;
    }

    .social-icons a {
        font-size: 1rem;
    }
}

/* Very small phones */
@media screen and (max-width: 375px) {
    .logo img {
        width: 60px;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: calc(var(--font-size2) * 0.8);
        margin-top: 1rem;
    }

    .header__banner {
        text-align: center;
    }

    .header__banner .topic {
        font-size: calc(var(--font-size7) * 0.7); 
        padding: 0.5rem 0.5rem;
        background: rgba(0, 0, 0, 0.85);
    }

    .header__banner .bg__overlay {
        top: 10%;
        left: 5%;
        width: 90%;
        height: 25%;
        justify-content: center;
        padding: 0 5px;
        text-align: center;
    }

    .section__container {
        padding: 1rem; /* Minimal padding for very small devices */
        text-align: center;
    }
    .section__container1  {
        max-width: 100%;
        padding: 1rem 1rem 1rem 1rem;
        text-align: center;
        margin: 0;
    }
    .section__header {
        font-size: calc(var(--font-size6) * 0.65);
        padding: 1rem 0;
        margin-bottom: 5px;
    }
    .section__header1{
        font-size: calc(var(--font-size6) * 0.65); /* Smaller font size */
    }
    .section__header2{
        font-size: calc(var(--font-size4) * 0.65); /* Smaller font size */
    }
    .section__description {
        font-size: calc(var(--font-size3) * 0.8);
        line-height: 1.3rem;
        margin-bottom: 1rem;
        text-align: center; 
    }
    .section__description1 {
        font-size: calc(var(--font-size3) * 0.8);
    }
    
    /* ----------image set ------------- */
    .image__set1 {
        padding: 5px;
        margin: 0;
    }

    .image__set1 .image__set__row1 {
        gap: 5px;
    }

    .image__set1 .image__set__col1 {
        width: 100%;
        padding: 5px;
    }

    .list__item {
        width: 95%; /* Slightly more flexible */
        max-width: 340px;
        height: auto;
        padding: 0.75rem;
        margin: 0.5rem auto;
    }

    /* --------about__image__right---------- */

    .about__image__right {
        text-align: center;
        margin: auto;
    }
    .about__img {
        max-width: 100%;
        max-height: none;
        border-radius: 5px;
        margin: 0;
    }

    /* ------------Swiper--------------- */
    .swiper__container {
        padding: 0;
    }
    .swiper-wrapper .card {
        margin: 0;
    }
    /* ----------new-section--------------- */
    .layout {
        display: flex;
        flex-direction: column;  
        gap: 8px;
        margin-bottom: 5px;
    }
    .bottom {
        width: 100%; 
        padding: 5px; 
    }
    .center-image {
        width: 80%;
        height: auto;
        padding: 15px;
    }
    
    .center-image img {
        object-fit: cover;
        max-height: 200px;
    }

    /* -----------------Donate------------- */

    .radio__group input[type="radio"] { 
        width: 0.8rem; 
        height: 0.8rem;
    }
    
    .header__banner__d .bg__overlay {
        padding: 1rem 0;
    }

    .header__banner__d .topic {
        font-size: calc(var(--font-size7) * 0.7);
        padding: 0.5rem 0.5rem;
        background: rgba(0, 0, 0, 0.85);
    }
    /* ------------------------Docs------------------------ */
    .header__banner__doc .bg__overlay {
        padding: 1rem 0;
    }

    .header__banner__doc .topic {
        font-size: calc(var(--font-size7) * 0.7); 
        padding: 0.5rem 0.5rem;
        background: rgba(0, 0, 0, 0.85);
    }

    /* ---------------Footer----------- */
    .footer-container {
        padding: 1rem;
    }

    .footer-logo .logo {
        justify-content: center;
        background-color: var(--primary-color);
        cursor: pointer;
    }  
    
    .footer-logo .logo img {
        width: 120px;
    }

    .link-column h4 {
        font-size: 1rem;
    }

    .social-icons a {
        font-size: 1rem;
    }
}

.list__item__video {
    width: 20rem;
    height: 16rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);;
    margin: 1rem;
}

.list__item__video video {
    width: 200px;
    height: 240px;
}

.list__item__video a{
    color: var(--secondary-color);  
    text-align: center;
}