/* Responsive Design */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
        overflow-y: scroll !important;
        height: 100vh;
    }

    section.third-section, section.resources, section.instagram-section, section.second-section, section.card-section, section.bucket-second-section, section.bucket-third-section, section.bucket-fourth-seciton, section.bucket-read-next-section, section.article-list, section.videos-list, section.infographics, section.listicles, section.booklet-section, section.policy-section, section.inner-articles, section.video-list-item, section.details {
        padding-top: 5em;
        padding-bottom: 5em;
        width: 100%;
    }

    /*.header {
        padding: 10px 0;
    }*/

    p.p_dosktop {
        /*display: none;*/
        display: block;
        /*text-align: justify;*/
        /*padding-bottom: 40px;*/
    }

    p.p.mobile {
        display: block !important;
    }

    .three-dimensional {
        letter-spacing: 0px;
    }

    section.details.bucket-second-section img {
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    #d-nav-menu {
        display: none;
    }

    button.moving-btn.d-none {
        display: none;
    }

    img.logo {
        /*max-width: 35%;*/
        max-width: 60%;
        height: auto;
    }

    a.nav-link {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 10px;
    }

    #nav-menu {
        /* display: none; */
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease-in-out;
        z-index: 1000;
    }

        #nav-menu.open {
            display: flex;
            transition: all 0.3s ease-in-out;
            padding-bottom: 20px;
        }

    .nav-list {
        display: flex;
        gap: 0.4em;
        font-size: 12px;
        font-weight: 500;
        color: #11172b;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .nav-link {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.5em;
    }
    /* Hamburger Button */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        cursor: pointer;
        z-index: 1001;
    }

    .sub-nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        flex-direction: column;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        border-radius: 4px;
        z-index: 1000;
    }

        .sub-nav-list li a {
            display: block;
            padding: 10px 20px;
            color: #11172b;
            font-size: 13px;
            font-weight: 400;
            transition: color 0.3s;
            font-weight: 500;
        }

    .nav-list > li:hover .sub-nav-list {
        display: flex;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #11172b;
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #nav-menu {
        transition: transform 0.3s ease-in-out;
    }

    .nav-list > li {
        position: relative;
    }

        .nav-list > li > a, .sub-menu-item, .sub-menu-item {
            color: #333;
            transition: color 0.3s;
            padding: 10px;
            font-size: 13px;
            font-weight: 500;
        }

            .nav-list > li > a:hover {
                color: #0d111f;
            }

    .inv-right-side {
        margin-top: 1em;
    }

    h1.title {
        font-size: 26px;
    }

    img.img-men-1 {
        height: 20em;
    }

    .third-section-container {
        row-gap: 8em;
    }

    .left-section::after {
        left: 2%;
    }

    .third-right-section {
        row-gap: 0em;
        margin-top: 1em;
    }

    p.excerpt {
        font-size: 13px;
    }

    .container.third-section-container .row:nth-child(even) {
        flex-direction: column-reverse;
    }

    img.moving-element {
        max-width: 10em;
    }

    .swiper-button-prev {
        left: 35%;
    }

    .swiper-button-next {
        left: 51%;
    }

    h1.insta-heading {
        font-size: 26px;
        margin-bottom: 0.5em;
    }

    .resource-items {
        height: auto;
    }

    .footer-logo .logo {
        max-width: 15em;
    }

    .footer-description {
        max-width: 100%;
        width: 100%;
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-list a {
        font-size: 13px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-socials {
        gap: 0.1em;
    }

    h1.res-title {
        font-size: 26px;
        font-weight: 600;
        margin-bottom: 0;
    }

    .resource-img {
        width: 100%;
        height: 15em;
        overflow: hidden;
        object-fit: cover;
    }

    h1.inv-title {
        font-size: 16px;
        padding-left: 15px;
    }

    .inv-card {
        flex-direction: column-reverse;
        gap: 1em;
        padding: 10px;
        min-height: 26em;
        justify-content: flex-end;
        color: #212529 !important;
    }

    img.inv-img {
        width: 100%;
        height: 12em;
        object-fit: cover;
    }

    .inv-card::before, .read-next-card::before {
        background: url("../image/mob-Subtract.svg") no-repeat center/contain;
    }

    .button-box {
        /*left: 59%;*/
        bottom: 0%;
        margin-bottom: 10px;
    }

    button.third-section-btn {
        padding: 10px 10px;
    }

    .inv-card:hover::before {
        background: url("../image/mob-Subtract.svg") no-repeat center/cover;
        background-size: 100%;
    }

    .read-next-card::before {
        background: url("../image/Subtract-bg.svg") no-repeat center/cover;
        background-size: 100%;
    }

    .inv-card:hover h1.inv-title {
        color: #283667;
    }

    h2.breadcrumb-title a {
        font-size: 12px;
        padding-left: 10px;
    }

    img.investment-img {
        max-width: 7em;
    }

    .investment-title {
        font-size: 19px;
    }

        .investment-title.invest-page {
            font-size: 19px;
        }

    .icon-box, img.invest-quote-left, img.invest-quote-right, img.hanging-box {
        display: none;
    }

    section.hero {
        min-height: 60vh;
        padding-top: 6em;
        padding-bottom: 6em;
    }

    .breadcrumb {
        top: 5em;
    }

    h2.second-sec-title {
        font-size: 19px;
        padding-top: 2vh;
    }

    p.second-sec-excerpt {
        font-size: 13px;
    }

    section.bucket-second-section {
        padding-top: 5vh;
    }

    img.quotes {
        max-width: 15px;
        height: 100%;
    }

    .quotes-box {
        left: 4%;
        padding: 3px;
        top: 0;
    }

    @keyframes moveTopBottomElement {
        0% {
            top: 10%;
        }

        100% {
            top: 15%; /* Adjust to move it down */
        }
    }

    h2.bucket-section-img-title {
        left: 5%;
        top: 17%;
        font-size: 14px;
    }

    h2.hover-box-main-title {
        font-size: 26px;
    }

    .hover-animation-box {
        width: 100%;
        height: 100%;
        min-height: 30vh;
        max-height: 30vh;
    }

    .hover-boxes {
        overflow-x: scroll;
    }

    h2.hover-box-title {
        display: none;
    }

    img.play-button-bg {
        width: 60px;
    }

    img.play-arrow {
        width: 20px !important;
    }

    .hover-animation-box {
        min-width: 70% !important;
    }

        .hover-animation-box h2 {
            opacity: 1 !important;
        }

    h2.read-next-title {
        font-size: 26px;
    }

    .rnc-title {
        font-size: 14px;
    }

    .read-next-card {
        max-height: 51vh;
        min-height: 51vh;
        display: flex;
        justify-content: flex-end;
        padding: 10px;
        padding-top: 2em;
        position: relative;
        flex-direction: column-reverse;
    }

    button.third-section-btn {
        background: #f7f5f4;
        /* width: 9em; */
    }

    .read-next-card .button-box {
        left: 53%;
        bottom: 0%;
    }

    img.resource-quote-right {
        display: none;
    }

    img.resource-quote-left {
        display: none;
    }

    .articles-box {
        grid-template-columns: repeat(1, 1fr);
    }

    h2.article-title {
        font-size: 19px;
    }

    .shashank-hover-box {
        padding: 20px;
    }

    h2.read-more {
        font-size: 19px;
        gap: 1em;
    }

    img.arrow_right {
        max-width: 50px;
    }

    .video-list-cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 1em;
    }

    .video-card {
        max-height: 18em;
        min-height: 18em;
    }

    img.playbtn {
        width: 60px;
    }

    .svg-box svg {
        width: 50px;
    }

    img.share-btn {
        max-width: 25px;
    }

    h2.video-card-title {
        font-size: 13px;
    }

    .infor-img-parent {
        display: none;
    }

    a.infor-hover-card.shashank-hover-box {
        min-width: 100%;
    }

    a.infor-hover-card.shashank-hover-box {
        min-width: 100%;
        min-height: 12em;
    }

    .listicles-card-parent {
        flex-direction: column;
    }

    h2.listicles-title, .small-card h2.listicles-title {
        font-size: 18px;
    }

    p.listicle-author, p.listicle-date {
        font-size: 12px;
    }

    .small-card {
        flex-direction: column;
    }

    img.listicle-small-card-img {
        width: 100%;
        max-height: 12em;
    }

    .booklet-area {
        flex-direction: column;
    }

    .booklet-img-area {
        width: 100%;
    }

    .booklet-upload-area {
        width: 100%;
        padding: 10px 0;
        flex-direction: row;
    }

    h2.download {
        font-size: 14px;
    }

    img.download-icon {
        max-width: 25px;
    }

    .policy-card-area {
        flex-direction: column;
    }

    h2.policy-title {
        font-size: 13px;
    }

    h2.breadcrumb-title a {
        font-size: 12px;
    }

    .investment-title.invest-page {
        font-size: 19px;
    }

    h2.previous, h2.next {
        font-size: 12px;
    }

    span.active-page {
        padding: 3px 10px;
    }

    p.details-paragraph {
        font-size: 14px;
    }

    .dsk-none {
        display: none;
    }

    p.box-excerpt {
        font-size: 10px;
    }

    @media (max-width: 391px) {
        .button-box {
            /*left: 59%;*/
            /*left: 55%;*/
            /*bottom: 2%;*/
            bottom: 8%;
        }

        .read-next-card .button-box {
            left: 53%;
            bottom: 0%;
        }

        .read-next-card {
            padding-top: 1em;
        }
    }

    #nav-menu .col-12.open {
        display: block;
    }

    #nav-menu .col-12 {
        display: none;
        transition: all 0.3s ease-in-out;
    }

    #d-nav-menu {
        display: none;
    }

    .mob-show {
        display: block;
    }
    /* Initially hide the dropdown menu */
    .sub-menu {
        display: none;
        flex-direction: column;
        list-style: none;
        padding-left: 10px;
        gap: 10px;
    }

    .sub-menu-item:hover {
        color: #0d111f;
        background-color: #f0f0f0;
    }
    /* Rotate the dropdown icon when menu is open */
    .nav-item.open .dropdown-icon {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .nav-item.open .sub-menu {
        display: flex;
    }

    img.box-img {
        min-width: 20vw;
    }

    button#next-button {
        position: absolute;
        right: 2%;
        bottom: 30%;
        z-index: 99;
    }

        button#next-button img, button#prev-button img {
            max-width: 60%;
        }

    button#prev-button {
        /*z-index: 9999;*/
        position: absolute;
        left: 10%;
        bottom: 31%;
    }

    section.hero {
        padding-bottom: 0;
    }

        section.hero.investing-banner.d-flex.align-items-center {
            min-height: auto;
        }

    .read-next-card .button-box {
        left: 53% bottom: 0%;
        top: 82%;
    }

    section.hero.investing-banner {
        padding-top: 16vh;
    }

    section.hero {
        padding-bottom: 2em;
    }
}

@media (max-width: 768px) {
    .main-heading {
        font-size: 19px;
    }

    .sub-heading {
        font-size: 13px;
    }

    span.btn-text {
        font-size: 13px;
    }

    .start-btn {
        padding: 0.7em 0.8em;
        width: 203px;
    }

    .hero-last-section {
        margin-top: 4rem;
    }

        .hero-last-section > img {
            max-width: 125px;
        }

    img.user-bg {
        left: 32%;
        max-width: 50%;
    }

    .right-hero-section {
        width: 45%;
    }

    img.user-avatar {
        bottom: -4px;
        left: 30%;
        max-width: 50%;
    }

    img.happy-btn {
        left: 25%;
        top: 5%;
        max-width: 50%;
    }

    img.quote {
        display: none;
    }

    .start-btn:hover::after {
        font-size: 13px;
    }

    h1.sec-title {
        font-size: 22px;
    }

    .boxes {
        column-gap: 2em;
    }

    .box {
        min-width: 50%;
    }

    .boxes {
        flex-direction: row; /* Stack vertically for mobile */
    }

    .box {
        width: 100%;
        height: auto;
        margin-right: 0;
    }

    h1.box-title {
        font-size: 14px;
    }

    .avatar-bg::after {
        border-radius: 30px;
    }

    .insta-wrapper img.playbtn {
        width: 100%;
    }

    section.instagram-section {
        padding-top: 2em;
    }

    .insta-wrapper .swiper-button-prev {
        left: -5%;
    }

    .insta-wrapper .swiper-button-next {
        left: 92%;
    }

    img.moving-element-right {
        top: -27%;
    }

    .saarthi-popup-content {
        background-color: #fefefe;
        width: 94%;
    }

    .saarthi-close {
        right: 0;
        top: 0;
        line-height: 1;
    }

    .resources-swiper {
        padding: 2em 0 6em 0;
    }

    .saarthi-news-app-promo img {
        width: 150px;
        max-width: 150px;
    }

    span.three-dimensional {
        font-size: 22px;
    }

    table {
        caption-side: bottom;
        border-collapse: collapse;
        display: flex;
        overflow-x: scroll;
    }

    .shareSocial {
        z-index: 999;
    }

    inv-card:hover p.p_mobile {
        color: #000;
    }

    .inv-card:hover p {
        color: #000;
    }

    padding-bottom: 3em section.hero.investing-banner {
        padding-bottom: 0;
    }

    section.bucket-second-section {
        padding-top: 3vh;
        padding-bottom: 2em;
    }

    .investment-title.invest-page br {
        display: none;
    }

    section.hero.resources-inner-banner.d-flex.align-items-center .investment-title.invest-page span {
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    /*  .inv-right-side {
    margin-top: 2.2em;
  }*/
    span.btn-text {
        font-size: 12px;
    }

    .main-heading {
        font-size: 16px;
    }

    .sub-heading {
        font-size: 12px;
    }
}

@media (max-width: 240px) {
    .inv-right-side {
        margin-top: 2.5em;
    }
}