* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom-Navigation Bar */

/* First Row Styles */
.top-row {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.top-row.hidden {
    transform: translateY(-100%);
}

.top-row .social-icons {
    display: flex;
    align-items: center;
}

.top-row .social-icons a {
    color: #333;
    margin-right: 15px;
    font-size: 16px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.top-row .social-icons a:hover {
    color: #DF1331;
}

.top-row .top-buttons {
    display: flex;
    justify-content: flex-end;
}

.top-row .top-buttons a {
    margin-left: 8px;
}

.top-row .top-button {
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 11.3745px;
    line-height: 17px;
    padding: 12px 21px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

.top-row .top-button.topper {
    background: #DF1331;
    color: #FFFFFF;
}

.top-row .top-button.student {
    background: linear-gradient(5.26deg, #DF1331 -152.8%, #B80F28 172.34%);
    color: #FFFFFF;
}

.top-row .top-button.login {
    background: transparent;
    color: #818181;
    border: 1px solid #818181;
}

.top-row .top-button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Second Row Styles */
.navbar-row {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Fix container alignment */
.navbar-row .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-row .navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-row .navbar-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-row .navbar-collapse {
    flex-grow: 0;
}

.navbar-row .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.navbar-row .nav-item {
    margin: 0 8px;
}

.navbar-row .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
    font-size: 14px;
    white-space: nowrap;
    padding: 8px 12px !important;
}

.navbar-row .nav-link:hover {
    color: #DF1331;
}

.navbar-row .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #DF1331;
    transition: width 0.3s ease;
}

.navbar-row .nav-link:hover::after {
    width: 80%;
}

/* Improved Navbar Toggler Styles */
.navbar-row .custom-toggler {
    border: 2px solid #DF1331 !important;
    border-radius: 6px;
    padding: 6px;
    width: 40px;
    height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar-row .custom-toggler:focus {
    box-shadow: 0 0 0 2px rgba(223, 19, 49, 0.25) !important;
    outline: none;
}

.navbar-row .custom-toggler:hover {
    background-color: rgba(223, 19, 49, 0.1);
    transform: scale(1.05);
}

.navbar-row .custom-toggler-icon {
    background: transparent !important;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-row .menu-icon,
.navbar-row .close-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Fixed Icon States - Using collapsed class */
.navbar-row .custom-toggler.collapsed .menu-icon {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) rotate(0deg);
}

.navbar-row .custom-toggler.collapsed .close-icon {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.navbar-row .custom-toggler:not(.collapsed) .menu-icon {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) rotate(90deg);
}

.navbar-row .custom-toggler:not(.collapsed) .close-icon {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* FAQ Accordion Styles */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #DF1331;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(223, 19, 49, 0.25);
}

.accordion-body {
    padding: 1rem 1.25rem;
}

/* Centered sticky nav styles - DESKTOP ONLY */
@media (min-width: 992px) {
    .navbar-row.scrolled {
        max-width: 1100px;
        margin: 10px auto;
        border-radius: 50px;
        padding: 10px 30px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(223, 19, 49, 0.1);
        backdrop-filter: blur(20px);
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
    }

    .navbar-row.scrolled .container {
        max-width: 100%;
        padding: 0;
    }

    .navbar-row.scrolled .navbar-brand img {
        height: 32px;
    }

    .navbar-row.scrolled .nav-link {
        font-size: 13px;
        padding: 6px 10px !important;
    }

    .navbar-row.scrolled .custom-toggler {
        width: 36px;
        height: 36px;
    }

    /* Adjust body padding when nav becomes fixed */
    body.nav-scrolled {
        padding-top: 80px;
    }
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .navbar-row .navbar-collapse {
        text-align: center;
        padding: 15px 0;
        width: 100%;
    }

    .navbar-row .navbar-nav {
        margin-bottom: 15px;
        flex-direction: column;
        width: 100%;
    }

    .navbar-row .nav-item {
        margin: 5px 0;
        width: 100%;
    }

    .navbar-row .nav-link {
        margin: 0;
        font-size: 16px;
        padding: 12px !important;
        display: block;
    }

    .navbar-row .mobile-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .navbar-row .mobile-buttons a {
        margin: 5px 0;
        width: 100%;
    }

    .navbar-row .mobile-button {
        width: 100%;
        padding: 12px;
        margin: 5px 0;
        border-radius: 6px;
        border: none;
        font-family: 'Poppins';
        font-weight: 500;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .navbar-row .mobile-button.topper {
        background: #DF1331;
        color: #FFFFFF;
    }

    .navbar-row .mobile-button.student {
        background: linear-gradient(5.26deg, #DF1331 -152.8%, #B80F28 172.34%);
        color: #FFFFFF;
    }

    .navbar-row .mobile-button.login {
        background: transparent;
        color: #818181;
        border: 1px solid #818181;
    }

    .navbar-row .mobile-button:hover {
        transform: translateY(-2px);
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    }

    .top-row {
        display: none;
    }

    .navbar-row {
        padding: 10px 0;
    }
}

/* End Of Custom-Navigation Bar */

/*.socialIcon ul {*/
/*    list-style-type: none;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*}*/

/*.socialIcon ul li {*/
/*    margin-right: 15px;*/
/*}*/

/* slider css */
.carouselitem {
    background: #F5F5F5;
    padding-bottom: 56px;
}

.sliderCard {
    background: #FFFFFF;
    box-shadow: 0px 14px 44px rgba(0, 0, 0, 0.15);
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
}

.mentor-image {
    width: 100%;
    height: 291px; /* Fixed height instead of padding-bottom */
    overflow: hidden;
    flex-shrink: 0;
}

.mentor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cardcontent {
    background-color: white;
    padding: 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This distributes space evenly */
}

/* Mentor Name - Simple approach */
.cardcontent h5 {
    text-align: center;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.08em;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: #000000;
    min-height: 48px; /* Ensure 2 lines space */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Handle text overflow for h5 */
.cardcontent h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rating p {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    margin: 0;
    color: #8D8D8D;
}

.starimg {
    display: flex;
    align-items: center;
    gap: 2px;
}

.starimg img {
    width: 16px;
    height: 16px;
}

.Specialties {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    margin: 0 0 8px 0;
    color: #000000;
}

.textexam {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: #000000;
    margin: 0 0 20px 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Handle specialties text */
.textexam {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 54px;
}

.knowmore {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 10px;
}

.knowmore p {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #DF1331;
    margin: 0 8px 0 0;
}

.owl-item img {
    width: auto !important;
}

.knowmore img {
    display: block;
    height: 16px;
    width: 18px;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: rgba(223, 19, 49, 0.3);
}

.owl-theme .owl-dots .owl-dot span {
    width: 180px !important;
    height: 4px !important;
    margin: 5px 16px !important;
    display: block;
    -webkit-backface-visibility: visible;
    transition: opacity .2s ease;
    border-radius: 30px;
}

.owl-dot:active span {
    background: #DF1331 !important;
}

.slider {
    background: #F5F5F5;
    margin-left:100px;
}

.owl-theme .owl-nav.disabled+.owl-dots {
    margin-top: 30px !important;
}

/* Ensure all cards in carousel have same treatment */
.owl-carousel .owl-item {
    display: flex;
    justify-content: center;
}

.owl-carousel .sliderCard {
    width: 291px;
    height: 500px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sliderCard {
        width: 271px !important;
        height: 480px !important;
    }
    
    .mentor-image {
        height: 280px;
    }
    
    .cardcontent {
        padding: 15px 15px;
    }
    
    .cardcontent h5 {
        font-size: 18px;
        min-height: 44px;
    }
}

/* slider css end */
/* top section  */

.studytPart {
    background-color: #F5F5F5;
    height: 612px;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 121px;
}

.boyImage {
    /* width: 442px;
    height: 400px */
}

.herocontent {
    margin: 8px auto; /* Changed to auto for horizontal centering */
    max-width: 800px; /* Added max-width for better control */
    width: 100%;
}

.CategoriesList {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap:15px;
    overflow-x:auto;
}

.CategoriesList li {
    margin-left: 0;
    white-space: nowrap;
    flex-shrink: 0;
}


.PopularCategories {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #1F1F1F;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.futuretitle {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #656565;
    margin: 0;
}

.title {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 48.83px;
    line-height: 58px;
    letter-spacing: 0.016em;
    margin: 12px 0;
}

.pinImage {
    right: 22%;
    top: 14%;
}

.highlightText {
    color: #DF1331;
    margin: 0;
}

.subtitle {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #262626;
}

.search {
    display: flex;
    max-width: 631px;
    height: 57px;
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 11.5957px;
    margin: 46px auto 0;
}

/* For the popular categories section */
.d-none.d-lg-block > div {
    justify-content: center !important; /* Force center alignment */
    margin-left: 0 !important; /* Remove left margin */
}

.d-none.d-lg-block .CategoriesList {
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px; /* Add spacing between items */
}

.d-md-block.d-lg-none > div {
    justify-content: center !important;
    margin-left: 0 !important;
}

.d-md-block.d-lg-none .CategoriesList {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Container alignment */
.d-none.d-lg-block > div,
.d-md-block.d-lg-none > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 15px;
    width: 100%;
}

/* Scrollbar styling for very small screens */
.CategoriesList::-webkit-scrollbar {
    height: 4px;
}

.CategoriesList::-webkit-scrollbar-thumb {
    background: #DF1331;
    border-radius: 10px;
}


.searchinput {
    width: 100%;
    padding: 26px 21px;
    border: none;
    background: #FFFFFF;
    box-shadow: 0px 18.3599px 32.8545px -7.73047px rgba(0, 0, 0, 0.05);
    border-radius: 11.5957px;
}

.searchinput::placeholder {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    color: #7A7A7A;
    opacity: 0.2;
}

.searchbtn {
    background: linear-gradient(5.26deg, #DF1331 -152.8%, #B80F28 172.34%);
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #FFFFFF;
    border: none;
    border-radius: 10.6294px;
    padding: 12px 36px;
}

.searchbtn:hover {
    transform: translateY(-1px);
    box-shadow: 0px 3.86524px 32.8545px rgba(223, 19, 49, 0.3);
}

.bookimg {
    display: none;
}

@media (max-width:1024px) {
    .girlsImage {
        display: none;
    }
}

/* exam preparation */
.examTitle {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    margin: 44px 0 51px 0;
    color: #656565;
}

.subject {
    background: #FFFFFF;
    border: 2px solid #DCDCDC;
    border-radius: 25px;
    max-width: 400px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.exam {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    margin-bottom: 162px;
}

@media (max-width:1024px) {
    .exam {
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
    }
}


.subject:hover {
    transform: translateY(-1px);
    border: 2px solid #DF1331;
    box-shadow: 0px 24px 54px rgba(0, 0, 0, 0.15);
}

.subject p {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 59px;
    text-align: center;
    color: #A5A3A3;
    letter-spacing: 0.016em;
    margin: 0;
}

.subject:hover p {
    color: #393939;
}

/* platform */
.PlatformSection {
    background: #F5F5F5;
}

.PlatformWrapper {
    padding: 62px 0 118px 0;
}

.PlatformTitle {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 39.06px;
    line-height: 52px;
    text-align: center;
    letter-spacing: 0.016em;
    color: #000000;
}

.PlatformSubTitle {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #656565;
}

.Platformcard {
    width: 260px;
    height: 470px;
    background: #FFFFFF;
    border: 2px solid #DCDCDC;
    border-radius: 25px !important;
    padding: 64px 24px 44px 24px;
}

.Platformcard:hover {
    background-color: #DF1331;
}


.Platformcard:hover .cardTitle h5 {
    color: #FFFFFF;
}

.Platformcard:hover .CardSubtitle p {
    color: #FFFFFF;
}

/*New SVG Style Start */

.Platformimg {
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(223, 19, 49, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    z-index: 2; /* Ensure it stays above card background */
}

.Platformimg .material-symbols-outlined {
    font-size: 48px;
    color: #DF1331;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hover effects - White circle that stands out on red background */
.Platformcard:hover .Platformimg {
    background-color: #FFFFFF;
    border: 3px solid #FFFFFF; /* Thicker border for better visibility */
    transform: translateY(-5px) scale(1.05); /* Slight scale for emphasis */
    box-shadow: 
        0 10px 25px rgba(255, 255, 255, 0.5),
        inset 0 0 0 3px #DF1331; /* Inner border for extra definition */
}

.Platformcard:hover .material-symbols-outlined {
    color: #DF1331;
    transform: scale(1.15); /* Slightly larger scale */
}

.Platformcard:hover .material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
}

/*End Of New SVG Style */

.cardTitle {
    margin-bottom: 19px;
}

.cardTitle h5 {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 19px;
    line-height: 24px;
    margin: 0;
    color: #232323;
}

.CardSubtitle p {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 25px;
    margin: 0;
    color: rgba(29, 36, 69, 0.75);
}

.label {
    padding: 5px 12px;
    /*background: #FCAD4F;*/
    background: #000000;
    border-radius: 13px;
    height: 26px;
    width: 78px;
    position: absolute;
    top: 44px;
    margin: 0;
    left: -52px;
}

.label1 {
    padding: 5px 12px;
    /*background: #DF1331;*/
    background: #000000;
    border-radius: 13px;
    height: 26px;
    width: 78px;
    margin: 0;
    position: absolute;
    top: 24px;
    left: -52px;
}

.label2 {
    padding: 5px 12px;
    /*background: #FF7A96;*/
    background: #000000;
    border-radius: 13px;
    height: 26px;
    width: 78px;
    position: absolute;
    margin: 0;
    top: 22px;
    left: -52px;
}

.label3 {
    padding: 5px 12px;
    /*background: #56CFE1;*/
    background: #000000;
    border-radius: 13px;
    height: 26px;
    width: 78px;
    margin: 0;
    position: absolute;
    top: 45px;
    left: -52px;
}

.arrow {
    position: absolute;
    bottom: 64px;
    right: -34px;
}

.arrow1 {
    position: absolute;
    top: 50px;
    right: -34px;
}

.arrow2 {
    position: absolute;
    bottom: 44px;
    right: -34px;
}

.label,
.label1,
.label2,
.label3 p {
    margin: 0px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 12.72px;
    line-height: 16px;
    color: #FFFFFF;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cardWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    margin: 37px 0 0 0;
}

.Platformcard:nth-child(even) {
    margin-top: 119px !important;
}

@media (max-width:1024px) {
    .cardWrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .cardWrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.studytPart {
    background-color: #F5F5F5;
    height: 612px;
    align-items: center;
    justify-content: center;
}

.CategoriesList li a {
    text-decoration: none;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    color: #7A7A7A;
    white-space: nowrap;
}


.PopularCategories {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #1F1F1F;
    margin: 0;
}

/* ===== Why Choose Us Section - Material Icons Only ===== */

.icon-container {
    margin: 30px auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
}

.icon-container .material-symbols-outlined {
    font-size: 48px;
    color: #000000; /* Black color */
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
    transition: all 0.3s ease;
}

/* ===== Card Hover Effects (Original) ===== */
.common:hover {
    transform: translateY(-10px);
    box-shadow: 0px 24px 54px rgba(0, 0, 0, 0.15);
}

/* ===== Icon Hover Effects Only ===== */
.common:hover .icon-container .material-symbols-outlined {
    color: #DF1331; /* Brand color on hover */
    transform: scale(1.1);
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
}

/* ===== Existing Why Choose Us Styles ===== */

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 39.06px;
    line-height: 52px;
    letter-spacing: 0.016em;
    color: #000000;
}

.whychooseus {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #656565;
}

.textchooseus {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    color: rgba(29, 36, 69, 0.75);
}

.common {
    background: #FFFFFF;
    border: 1.5px solid #CCCCCC;
    border-radius: 25px;
    padding: 33px 30px 35.54px 30px;
    height: 380px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chooseuscontent {
    padding: 90px 0 0 0;
    margin-bottom: 95px;
}

.chooseus {
    margin: 95.5px 0px 100px 0px;
}

.title1 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #232323;
     /* Flexible but consistent height */
    min-height: 72px;
    max-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0 10px;
    
    /* Better text handling */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

.des {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    color: rgba(29, 36, 69, 0.75);
}

/* Responsive Design */
@media (max-width: 768px) {
    .icon-container .material-symbols-outlined {
        font-size: 42px;
    }
    
    .tagline {
        font-size: 32px;
        line-height: 42px;
    }
    
    .common {
        height: auto;
        min-height: 320px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .icon-container .material-symbols-outlined {
        font-size: 38px;
    }
    
    .tagline {
        font-size: 28px;
        line-height: 36px;
    }
    
    .common {
        padding: 25px 20px;
        min-height: 300px;
    }
}

.Flexible, .Monetizations, .Easy, .Security {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 25px;
    line-height: 30px;
    /* Force two lines */
    min-height: 64px; /* 32px line-height × 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.Flexible {
    color: #00C9B7;
}

.Monetizations {
    color: #3A0CA3;
}

.Easy {
    color: #FF5E54;
}

.Security {
    color: #FCAD4F;
}

.ToppersContent {
    margin-bottom: 37px;
}

.common1 .des{
    text-align: justify; /* Changed from center to justify */
    text-justify: inter-word;
}

/* Text Justify Support */
.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.Testimonials,
.Testimonials1 {
    padding: 28px 47px 0 47px;
}

.aboutus {
    margin-bottom: 68px;

}

.Topperbtnwrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 55px 0;
}

.Topperbtnwrapperslider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 55px 0 0 0;
}

.Topperbtn {
    background: linear-gradient(5.26deg, #DF1331 -152.8%, #B80F28 172.34%);
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #FFFFFF;
    border: none;
    border-radius: 10.6294px;
    padding: 12px 36px;
    text-align: center;

}

.Topperbtn:hover {
    transform: translateY(-1px);
    box-shadow: 0px 3.86524px 32.8545px rgba(223, 19, 49, 0.3);
}

.Benefits {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    line-height: 24px;
    color: #656565;
}

.Platform {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 39.06px;
    line-height: 52px;
    text-align: center;
    margin-bottom: 89px;
    letter-spacing: 0.016em;
    color: #000000;
        /* Ensure heading breaks into two lines */
    display: block;
    min-height: 104px; /* 52px line-height × 2 lines */
}

.Testimonialstext {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    color: #656565;
}

.Saying {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 39.06px;
    line-height: 52px;
    text-align: center;
    letter-spacing: 0.016em;
    color: #000000;
}

.title2 {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    color: #656565;
}

.preparations {
    margin: 0;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    color: #979797;
    padding: 4px 0px 7px 0px;
}

.des2,
.des3 {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    color: rgba(29, 36, 69, 0.75);
    padding-bottom: 30px;
    border-bottom: 0px solid rgba(192, 192, 192, 0.4)
}
.des2{
    text-align: justify;
    text-justify: inter-word;
}
.des3{
    text-align: center;
}

.testwrapper {
    height: fit-content;
    padding-bottom: 117px;
}

.line {
    border-color: #C0C0C0;
    border-style: solid;
    border-width: 1px 0 1px 0;
}

.faq {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    color: #656565;
}

.question {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 39.06px;
    line-height: 52px;
    margin-bottom: 110px;
    text-align: center;
    letter-spacing: 0.016em;
    color: #000000;
}

.faqquestion {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 25px;
    line-height: 30px;
    text-align: center;
    color: #232323;
}

.faqanswer {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    color: rgba(29, 36, 69, 0.75);
    max-width: 727px;
    width: 100%;
    margin: auto;
}

.accordion {
    max-width: 909px;
    width: 100%;
    display: block;
    margin: auto;
}

.accordion-button:not(.collapsed) {
    display: block !important;
    text-align: center !important;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 30px;
    color: #232323 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.accordion-item {
    border-bottom: 2px solid rgba(192, 192, 192, 0.4) !important;
    border-top: 0px solid rgba(0, 0, 0, .125) !important;
    border-left: 0px solid rgba(0, 0, 0, .125) !important;
    border-right: 0px solid rgba(0, 0, 0, .125) !important;
}

.accordion-item:last-child {
    border-bottom: 0px solid #C4C4C4 !important;
}

.accordion-button {
    font-family: 'Montserrat' !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: 25px !important;
    line-height: 30px !important;
    text-align: center !important;
    padding: 34px !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
}

.accordion-button::after {
    margin-left: 0 !important;
    position: absolute !important;
    right: 40px !important;
    background-image: url("../img/notactive.svg") !important;

}

.accordion-button:not(.collapsed)::after {
    background-image: url("../img/active.svg") !important;
}

.herosignuptopper {
    height: 498px;
    background-color: #858AE3;
    background-image: url('../img/topper.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left bottom;
}

.herosignupstudent {
    height: 498px;
    background-color: #56CFE1;
    background-image: url('../img/student.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
}

.Titleherotopper {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 39px;
    line-height: 52px;
    text-align: right;
    letter-spacing: 0.016em;
    color: #FFFFFF;
}

.Titleherostudent {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 39px;
    line-height: 52px;
    text-align: left;
    letter-spacing: 0.016em;
    color: #FFFFFF;
}

.pherotopper, .pherostudent {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
}

.pherotopper {
    text-align: right;
}

.pherostudent {
    text-align: left;
}

.ulherotopper, .ulherostudent {
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ulherotopper li, .ulherostudent li{
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.75);
    list-style-type: none;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.ulherotopper li{
    margin-left: 100px;
}

.ulherotopper li::before, .ulherostudent li::before{
    content: "•";
    color: rgba(255, 255, 255, 0.75);
    font-size: 20px;
    margin-right: 10px;
    font-weight: bold;
}

.buttonherotopper {
    padding: 14px 35px 15px 35px;
    background: #FFFFFF;
    border-radius: 11px;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    text-align: end;
    color: #000000;
}

.buttonherostudent {
    padding: 14px 35px 15px 35px;
    background: #FFFFFF;
    border-radius: 11px;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    text-align: start;
    color: #000000;
}

.buttonherotopper:hover {
    box-shadow: 0px 14px 44px rgba(0, 0, 0, 0.25);
}

.buttonherostudent:hover {
    box-shadow: 0px 14px 44px rgba(0, 0, 0, 0.25);
}

.TestimonialsWrapper {
    padding-top: 60px;
}

.TutorBenefits {
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    width: 50%;
    margin-left: auto;
}

.StudyBenefits {
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    width: 50%;
    margin-right: auto;
}

.faqs {
    padding-top: 62px;
}

.faqsWrapper {
    margin-bottom: 192px;
}

.ToppersContentcard {
    border-right: 1px solid rgba(192, 192, 192, 0.4);
}

.ToppersContentcard:last-child {
    border-right: 0px solid rgba(192, 192, 192, 0.4);
}

.Testimonials {
    border-left: 1px solid rgba(192, 192, 192, 0.4);
}

.carddetail {
    padding: 24px;
    background: #FFFFFF;
    box-shadow: 0px 14px 44px rgba(0, 0, 0, 0.15);
}

.greenimage {
    width: 24px !important;
}

.readmore button {
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 16.9786px;
    line-height: 34px;
    color: #DF1331;
    text-align: center;
    justify-content: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.BenefitsWrapper {
    margin-top: 68px;
}

.Specialties {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 15.0499px;
    line-height: 27px;
    text-align: center;

    color: #000000;
}

.TestimonialsSection {
    background: #F5F5F5;
}

.community{
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 39.06px;
    line-height: 52px;
    text-align: center;
    letter-spacing: 0.016em;
    color: #000000;
}

.footer {
    background: #FAFAFA;
    color: #000000;
    padding: 70px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DF1331, #FF6B6B, #DF1331);
}

/* Logo Styling */
.footer-brand {
    text-align: left;
}

.footer-brand .footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.footer-description {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
    /* font-style: italic; */
    padding-left: 20px;
    border-left: 3px solid #DF1331;
    background: rgba(223, 19, 49, 0.05);
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

/* Contact Information Section */
.footer-contact {
    background: linear-gradient(135deg, #DF1331, #FF6B6B);
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
    color: white;
    box-shadow: 0 5px 15px rgba(223, 19, 49, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 18px;
    margin-right: 12px;
    margin-top: 3px;
    color: white;
    min-width: 20px;
    text-align: center;
}

.contact-text {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: white;
    flex: 1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 2px 0;
}


/* Responsive adjustments for contact section */
@media (max-width: 768px) {
    .footer-contact {
        margin: 20px 0 0 0; /* Left aligned, no auto margin */
        max-width: 100%;
        padding: 20px 15px;
        text-align: left; /* Left align content on mobile */
    }
    
    .contact-text {
        font-size: 14px;
        text-align: left; /* Ensure text is left aligned */
    }
    
    .contact-item {
        text-align: left; /* Left align items */
        justify-content: flex-start; /* Align to left */
    }
}

@media (max-width: 576px) {
    .footer-contact {
        padding: 15px 12px;
        margin-top: 15px;
    }
    
    .contact-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .contact-icon {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .contact-item {
        padding: 10px 0;
    }
}

/* Ensure text decoration doesn't show up on links */
.contact-text:focus,
.contact-text:active,
.contact-text:hover {
    outline: none;
    text-decoration: none;
}


.footer-links h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #000000;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #DF1331, #FF6B6B);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.footer-links ul li::before {
    content: '▸';
    color: #DF1331;
    font-weight: bold;
    position: absolute;
    left: -20px;
    top: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links ul li:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-links ul li a {
    font-family: 'Roboto', sans-serif;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links ul li a:hover {
    color: #DF1331;
    transform: translateX(8px);
}

/* Extended Subscription Section */
.footer-subscription {
    background: linear-gradient(135deg, rgba(223, 19, 49, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
    padding: 35px;
    border-radius: 20px;
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    border: 1px solid rgba(223, 19, 49, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.footer-subscription::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DF1331, #FF6B6B);
}

.footer-subscription h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    margin-bottom: 12px;
}

.subscription-desc {
    font-family: 'Roboto', sans-serif;
    color: #000000;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.subscription-form {
    margin: 25px 0;
}

/* TWO-ROW FORM LAYOUT FOR ALL DEVICES - FIXED WIDTH */
.input-group {
    display: flex;
    flex-direction: column; /* Always column layout */
    gap: 15px;
    width: 100%;
}

.form-control {
    width: 100% !important; /* Force 100% width */
    padding: 18px 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    background: #ffffff;
    color: #000000;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    min-height: 56px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Include padding in width calculation */
    display: block; /* Ensure block-level display */
}

.form-control::placeholder {
    color: #666666;
    font-size: 15px;
}

.form-control:focus {
    outline: none;
    border-color: #DF1331;
    box-shadow: 0 0 0 3px rgba(223, 19, 49, 0.2);
    transform: scale(1.02);
}

.btn-subscribe {
    width: 100% !important; /* Force 100% width */
    background: linear-gradient(135deg, #DF1331, #FF6B6B);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 32px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    box-sizing: border-box; /* Include padding in width calculation */
    display: block; /* Ensure block-level display */
}

.btn-subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-subscribe:hover::before {
    left: 100%;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(223, 19, 49, 0.4);
}

.arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.btn-subscribe:hover .arrow {
    transform: translateX(5px);
}

/* ========== UPDATED: Footer Social Links (Changed from social-links) ========== */
.footer-social-links {
    margin-top: 30px;
}

.footer-social-links p {
    margin-bottom: 18px;
    color: #000000;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.footer-social-icons {
    display: flex;
    gap: 18px;
}

.footer-social-icons a {
    color: #000000;
    font-size: 22px;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.footer-social-icons a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #DF1331, #FF6B6B);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(223, 19, 49, 0.3);
    border-color: transparent;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    font-family: 'Roboto', sans-serif;
    color: #000000;
    margin: 0;
    font-size: 14px;
}

.footer-bottom a {
    font-family: 'Roboto', sans-serif;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF6B6B;
    transition: width 0.3s ease;
}

.footer-bottom a:hover {
    color: #DF1331;
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* MOBILE VIEW STYLES */
@media (max-width: 768px) {
    /* Center logo on mobile */
    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .footer-brand .footer-logo {
        max-width: 250px;
    }
    
    .footer-description {
        text-align: center;
        padding: 15px;
        font-size: 15px;
        margin: 0 auto;
        max-width: 400px;
    }
    
    .footer-subscription {
        margin: 25px 0;
        width: 100%;
        padding: 25px;
    }
    
    .input-group {
        gap: 15px;
    }
    
    /* Ensure 100% width on mobile */
    .form-control {
        width: 100% !important;
    }
    
    .btn-subscribe {
        width: 100% !important;
    }
    
    /* Quick Links and Our Courses side by side in mobile */
    .row .col-lg-2.col-md-6 {
        display: inline-block;
        width: 50%;
        float: left;
        margin-bottom: 30px;
    }
    
    .footer-links {
        text-align: center;
        padding: 0 15px;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul li a:hover {
        transform: translateX(0);
    }
    
    /* Footer bottom mobile layout - Links first, then copyright, both centered */
    .footer-bottom .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom .col-md-6 {
        width: 100%;
        text-align: center !important;
    }
    
    .footer-bottom .col-md-6:first-child {
        order: 2; /* Copyright comes second */
    }
    
    .footer-bottom .col-md-6:last-child {
        order: 1; /* Links come first */
        margin-bottom: 10px;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    /* Mobile-specific form improvements */
    .form-control::placeholder {
        color: #666666;
        font-size: 16px;
    }
    
    .form-control {
        font-size: 16px;
        padding: 18px 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-subscription {
        padding: 20px;
    }
    
    .footer-brand .footer-logo {
        max-width: 250px;
    }
    
    .footer-description {
        padding: 15px;
        font-size: 14px;
    }
    
    /* Extra mobile optimizations */
    .form-control::placeholder {
        color: #666666;
        font-size: 16px;
    }
    
    .form-control {
        padding: 20px 25px;
        width: 100% !important;
    }
    
    .btn-subscribe {
        padding: 20px 32px;
        width: 100% !important;
    }
    
    /* Footer bottom spacing for very small screens */
    .footer-bottom {
        margin-top: 40px;
    }
    
    .footer-bottom .col-md-6:last-child {
        margin-bottom: 15px;
    }
    
    /* Adjust two-column layout for very small screens */
    .row .col-lg-2.col-md-6 {
        width: 50%;
        padding: 0 10px;
    }
}

/* Clear float for the row containing Quick Links and Our Courses */
.row::after {
    content: "";
    display: table;
    clear: both;
}

/* Animation for social icons on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-social-icons a {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-social-icons a:nth-child(1) { animation-delay: 0.1s; }
.footer-social-icons a:nth-child(2) { animation-delay: 0.2s; }
.footer-social-icons a:nth-child(3) { animation-delay: 0.3s; }
.footer-social-icons a:nth-child(4) { animation-delay: 0.4s; }
.footer-social-icons a:nth-child(5) { animation-delay: 0.5s; }


/*Responsive Home Page */

@media (max-width: 1240px) {
    .section {
        max-width: 1180px;
    }
    
    .pinImage {
    right: 14%;
    top: 14%;
    }

    .Platformcard {
        max-width: 260px;
    }

    .Platformcard {
        height: fit-content;
        padding: 44px 24px 24px 24px
    }

    .cardWrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        place-items: center;

    }

    .Platformcard:nth-child(even) {
        margin-top: 0px !important;
    }
}

@media (min-width: 993px) and (max-width: 1470px) {
    .pinImage {
        right: 12%;
        top: 14%;
    }
}

@media (max-width: 991px) {
    .section {
        max-width: 770px;
    }

    .ToppersContentcard {
        margin-bottom: 20px;
    }
    
    .pinImage {
        right: 14%;
        top: 14%;
    }

    .TutorBenefits,
    .StudyBenefits {
        width: 100%;
    }

    .pherotopper {
        display: none;
    }

    .pherostudent {
        display: none;
    }

    .Titleherotopper,
    .Titleherostudent {
        text-align: center;
        margin-top: 20px;
    }

    .buttonherotopper,
    .buttonherostudent {
        margin-bottom: 25px
    }

    .herosignuptopper {
        height: 498px;
        background-color: #858AE3;
        background-image: url('../img/topper.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center bottom;
    }

    .common {
        margin: 0 0px 32px 0px;
    }

    .chooseuscontent {
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    
    .ulherostudent, .ulherotopper{
        display: none;
    }
    
    .section {
        max-width: 770px;
    }

    .hero {
        flex-direction: column-reverse !important;
    }

    .subject {
        max-width: 100%;
    }
    
    .subject p{
        font-size: 25px;
    }

    .cardWrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .arrow,
    .arrow1,
    .arrow2,
    .arrow3 {
        display: none;
    }

    .label {
        top: -14px;
        left: 10px;
    }

    .label1 {
        top: -14px;
        left: 161px;
    }

    .label2 {
        top: -14px;
        left: 10px;
    }

    .label3 {
        top: -14px;
        left: 161px;
    }

    .cardWrapper {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 37px;
        place-items: center;
    }

    .PlatformWrapper {
        padding: 62px 0 53px 0;
    }

    .ToppersContentcard {
        border-bottom: 1px solid rgba(192, 192, 192, 0.4);
        margin-bottom: 28px;
    }

    .ToppersContentcard:last-child {
        border-bottom: 0px solid rgba(192, 192, 192, 0.4);
        margin-bottom: 0px;
    }

    .ToppersContentcard:nth-child(even) {
        border-right: 0px solid rgba(192, 192, 192, 0.4);
    }

    .ToppersContentcard:nth-child(odd) {
        border-right: 0px solid rgba(192, 192, 192, 0.4);
    }

    .Topperbtnwrapper {
        margin-bottom: 40px;
    }

    .containerWrapper {
        margin: 40px;
    }

    .Testimonials {
        border-left: 0px solid rgba(192, 192, 192, 0.4);
    }

    .des {
        margin-bottom: 37px;
    }

    .des2 {
        border-bottom: 1px solid rgba(192, 192, 192, 0.4)
    }

    .des3 {
        border-bottom: 0px solid rgba(192, 192, 192, 0.4)
    }

    .BenefitsWrapper {
        padding: 30px;
        margin-top: 68px;
    }

    .tagline,
    .whychooseus,
    .textchooseus {
        text-align: center;
    }
    
    .accordion-button::after {
        visibility: hidden;
    }

    .accordion-button:not(.collapsed)::after {
        visibility: visible;
    }

    .faqsWrapper {
        margin: 45px;
    }

    .accordion-button::after {
        right: 12px !important;
        top: 40px !important;
    }

    .slider {
        margin-left: 10px;
    }

    .testwrapper {
        padding-bottom: 64px;
    }

    .chooseus {
        margin: 95.5px 0px 60px 0px
    }

    .header {
        margin-top: 20px;
        flex-direction: column;
        width: 100%
    }

    .btngroup {
        flex-direction: column;
        width: 100%;
        margin-top: 18px;
    }

    .studentButton,
    .topperbutton {
        margin-right: 0px;
        margin-bottom: 10px;

    }

    .socialIcon {
        margin-bottom: 25px;
    }

    .socialIcon ul {
        justify-content: center;
    }

    .owl-theme .owl-dots .owl-dot span {
        width: 10px !important;
        height: 4px !important;
        margin: 5px 16px !important;
        display: block;
        -webkit-backface-visibility: visible;
        transition: opacity .2s ease;
        border-radius: 30px;
    }

    .pinImage {
        display: none !important;
    }

    .studytPart {
        height: auto !important;
        padding-top: 49px;
    }

    .boyImage {
        width: 100% !important;
    }

    .search {
        display: block;
        margin: 0 auto;
        height: auto;
        width: 100%;
        background-color: transparent;
    }

    .search input {
        margin-bottom: 17px;
    }
    
    .CategoriesList {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }
    
    .d-md-block.d-lg-none > div {
        flex-direction: column;
    }

    .herocontent {
        margin: 0 33px;
    }

    .searchbtn {
        padding: 10px 86px;
        margin-top: 50px;
    }

    .bookimg {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    .exam {
        grid-template-columns: repeat(1, 1fr);
        margin: 55px;
    }

    .PopularCategories {
        font-size: 14px;
    }

    .CategoriesList li a {
        font-size: 10px;
    }

    .futuretitle {
        font-size: 18px;
    }

    .subtitle {
        font-family: 'Montserrat';
        font-style: normal;
        font-weight: 500;
        font-size: 12px;
        line-height: 20px;
        color: #262626;
    }

    .question {
        margin-bottom: 38px;
    }

    .searchinput {
        padding: 15px 21px;
        border-radius: 6px
    }
    
}

.prepare {
    max-width: 230px;
    width: 100%;
    height: 100%;
}

.buttongroup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 65px;
    justify-content: center;
}

.help {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 22px;
    text-align: center;
    color: #656565;
    margin-bottom: 28px;
}

.buttongroup button {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600;
    font-size: 22px;
    line-height: 24px;
    color: #1D2445;
    padding: 4px 38px;
    border: none;
    border-radius: 4px;
    display: block;
}

.buttongroup button:hover {
    color: #EBEEFF;
    background: #1D2445;
}

.tutorname {
    margin: 0;
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000000;
}

.tutorname {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000000;
}

.total {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400;
    font-size: 15.0499px;
    line-height: 27px;
    text-align: center;
    margin: 0;
    color: #8D8D8D;
}

.Specialtiescard {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 17px;
    color: #000000;
    margin: 19px 0 0 0;
}

.sublist {
    border: none;
    max-width: 205px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sublist button {
    background: #C7E1FF;
    border: none;
    border-radius: 2px;
    padding: 6px 12px;
    margin: 10px 14px 5px 0;
}

.Toppersinfo {
    display: flex;
    align-items: center;
    gap: 13px;
    justify-content: center;
    width: 100%;
    background: #DF1331;
}

.Toppersinfo p {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 700;
    font-size: 16.9786px;
    line-height: 18px;
    display: flex;
    align-items: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
    padding: 17px 0 17px 0;
    margin: 0;
}

.photo {
    max-width: 230px;
}

.preparecontent {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    padding: 12px;
}

.exambutton {
    background: #DF1331;
    border-radius: 4px;
    font-family: 'Archivo';
    border: none;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    padding: 16px 118px;
    color: #FFFFFF;
    display: block;
    margin: 0 auto;
}

/* RednWhite Team Card */

/* CSS Variables */
:root {
    --br40: clamp(24px, 3vw, 40px);
    --fs18: clamp(16px, 2vw, 18px);
    --fs24: clamp(20px, 2.5vw, 24px);
    --black: #1b1b1b;
    --grey: #58595b;
}

.comm-grid {
    display: grid;
    width: 100%;
}

.gp-25 {
    gap: 25px;
}

.g-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Mentor Card Base Styles */
.mentor-card {
    border-radius: var(--br40);
    background-color: #fffcf4;
    border: 1px solid #dedbd5;
    display: flex;
    width: 100%;
    padding-bottom: 24px;
    flex-direction: column;
    align-items: center;
    height: 100%;
    font-size: var(--fs18);
    letter-spacing: -0.36px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mentor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mentor Card Header */
.mentor-card__header {
    border-radius: var(--br40) var(--br40) 0 0;
    display: flex;
    flex-direction: column;
    color: #1b1b1b;
    font-weight: 500;
    background: linear-gradient(180deg, #fbebc2 0, rgba(250, 247, 238, 0) 100%);
    width: 100%;
    padding: 40px;
    padding-bottom: 0;
}

/* IIT Card Specific Header */
.team-card.mentor-iit-card .mentor-card__header {
    margin-bottom: 16px;
}

.mentor-iit-card .mentor-card__header {
    align-items: center;
    margin-bottom: 70px;
}

/* Team Image */
.team-img {
    width: 260px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-img:hover {
    transform: scale(1.05);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-img:hover img {
    transform: scale(1.1);
}

/* Team Details */
.team-details {
    width: 100%;
    padding: 0 20px;
    text-align: center;
}

.team-details h4 {
    color: var(--black);
    text-align: center;
    font-size: var(--fs24);
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.48px;
    margin-bottom: 8px;
}

.team-details h5 {
    color: var(--grey);
    text-align: center;
    font-size: var(--fs18);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.36px;
    margin-bottom: 16px;
}

/* Social Icons */
.team-card.mentor-iit-card .social-icons {
    margin-top: 24px;
    justify-content: center;
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: inline-flex;
    padding: 8px;
    border-radius: 8px;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icons a:hover .social-icon {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1536px) {
    .team-img {
        width: 200px;
    }
}

@media (max-width: 1366px) {
    .team-img {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .team-img {
        width: 140px;
    }

    .mentor-card__header {
        padding: 20px;
        padding-bottom: 0;
    }

    .mentor-iit-card .mentor-card__header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .team-img {
        width: 120px;
    }

    .team-details {
        padding: 0 15px;
    }

    .social-icons {
        gap: 12px;
    }
}

/* WhatsApp Floating Button - POSITIONED BELOW */
.whatsapp-btn {
    width: 70px;
    height: 70px;
    z-index: 999;
    position: fixed;
    bottom: 30px;
    right: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse-glow 2s infinite;
    transition: all 0.3s ease-in-out;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    animation: pulse-glow-hover 1.5s infinite;
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: none;
}

/* Enhanced Scroll to Top Button - POSITIONED ABOVE */
.scroll-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #1a1a1a;
    /* Dark background for better neon effect */
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow:
        0 4px 20px rgba(223, 19, 49, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 30px rgba(223, 19, 49, 0.5),
        inset 0 0 25px rgba(0, 0, 0, 0.9);
    background: #222;
}

/* Enhanced Progress Fill with Wave Effect */
.progress-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background:
        /* Base layer that's always visible */
        linear-gradient(to top,
            rgba(223, 19, 49, 0.9) 0%,
            rgba(223, 19, 49, 0.7) 50%,
            rgba(255, 107, 139, 0.6) 100%) bottom/100% 20px no-repeat,
        /* Main animated gradient layer */
        linear-gradient(135deg,
            #DF1331 0%,
            #FF6B8B 25%,
            #DF1331 50%,
            #FF4757 75%,
            #B80F28 100%);
    transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
    background-size: 200% 200%, 200% 200%;
    animation: waveAnimation 3s ease-in-out infinite;
    /* Ensure liquid is always visible at bottom */
    border-radius: 50%;
}

/* Water wave animation */
@keyframes waveAnimation {
    0% {
        background-position:
            0% 100%,
            /* Base layer */
            0% 50%;
        /* Animated layer */
    }

    25% {
        background-position:
            0% 100%,
            /* Base layer stays */
            50% 70%;
        /* Animated layer moves */
    }

    50% {
        background-position:
            0% 100%,
            /* Base layer stays */
            100% 50%;
        /* Animated layer moves */
    }

    75% {
        background-position:
            0% 100%,
            /* Base layer stays */
            50% 30%;
        /* Animated layer moves */
    }

    100% {
        background-position:
            0% 100%,
            /* Base layer stays */
            0% 50%;
        /* Animated layer returns */
    }
}

/* Liquid surface effect */
.progress-fill::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.6) 50%,
            transparent 100%);
    border-radius: 50%;
    animation: surfaceShine 2s ease-in-out infinite;
}

@keyframes surfaceShine {

    0%,
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    80% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Bubble effects */
.progress-fill::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: bubbleFloat 3s ease-in-out infinite;
}

.progress-fill .bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: bubbleFloat 4s ease-in-out infinite;
}

.progress-fill .bubble:nth-child(1) {
    width: 3px;
    height: 3px;
    bottom: 8px;
    left: 70%;
    animation-delay: 0.5s;
}

.progress-fill .bubble:nth-child(2) {
    width: 2px;
    height: 2px;
    bottom: 12px;
    left: 40%;
    animation-delay: 1.2s;
}

.progress-fill .bubble:nth-child(3) {
    width: 3px;
    height: 3px;
    bottom: 6px;
    left: 60%;
    animation-delay: 2s;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-15px) scale(1.2);
        opacity: 0;
    }
}

/* Ripple effect on hover */
.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(223, 19, 49, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.scroll-to-top:hover::before {
    width: 100%;
    height: 100%;
}

/* Enhanced pulse effect when fully filled */
.progress-fill[style*="height: 100%"] {
    animation: waveAnimation 1.5s ease-in-out infinite,
        pulseFull 2s ease-in-out infinite;
}

@keyframes pulseFull {

    0%,
    100% {
        box-shadow:
            inset 0 0 0 0 rgba(223, 19, 49, 0.4),
            inset 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow:
            inset 0 0 20px 8px rgba(223, 19, 49, 0.6),
            inset 0 0 40px 15px rgba(255, 255, 255, 0.4);
    }
}

/* Glowing Neon Arrow Effect */
.scroll-to-top i {
    position: relative;
    z-index: 3;
    font-size: 24px;
    color: #fff;
    text-shadow:
        0 0 5px #DF1331,
        0 0 10px #DF1331,
        0 0 15px #DF1331,
        0 0 20px #DF1331;
    transition: all 0.3s ease;
    animation: neonPulse 2s ease-in-out infinite;
}

.scroll-to-top:hover i {
    transform: translateY(-4px) scale(1.1);
    text-shadow:
        0 0 10px #DF1331,
        0 0 20px #DF1331,
        0 0 30px #DF1331,
        0 0 40px #DF1331,
        0 0 50px #DF1331,
        0 0 60px #DF1331;
    animation: neonPulseFast 1s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        text-shadow:
            0 0 5px #DF1331,
            0 0 10px #DF1331,
            0 0 15px #DF1331,
            0 0 20px #DF1331;
        transform: scale(1);
    }

    50% {
        text-shadow:
            0 0 10px #DF1331,
            0 0 20px #DF1331,
            0 0 30px #DF1331,
            0 0 40px #DF1331;
        transform: scale(1.05);
    }
}

@keyframes neonPulseFast {

    0%,
    100% {
        text-shadow:
            0 0 10px #DF1331,
            0 0 20px #DF1331,
            0 0 30px #DF1331,
            0 0 40px #DF1331;
        transform: translateY(-4px) scale(1.1);
    }

    50% {
        text-shadow:
            0 0 15px #DF1331,
            0 0 30px #DF1331,
            0 0 45px #DF1331,
            0 0 60px #DF1331;
        transform: translateY(-4px) scale(1.15);
    }
}

/* Subtle attention animation when button appears */
.scroll-to-top.show i {
    animation: gentleAttention 0.6s ease-out, neonPulse 2s ease-in-out infinite;
}

@keyframes gentleAttention {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Button glow effect when active */
.scroll-to-top:active i {
    animation: neonFlash 0.3s ease-out;
}

@keyframes neonFlash {
    0% {
        text-shadow:
            0 0 20px #DF1331,
            0 0 40px #DF1331,
            0 0 60px #DF1331,
            0 0 80px #DF1331;
    }

    100% {
        text-shadow:
            0 0 10px #DF1331,
            0 0 20px #DF1331,
            0 0 30px #DF1331,
            0 0 40px #DF1331;
    }
}

/* Animation for WhatsApp button */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-glow-hover {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top {
        width: 55px;
        height: 55px;
        bottom: 90px;
        right: 20px;
        font-size: 18px;
    }

    .progress-fill {
        background:
            linear-gradient(to top,
                rgba(223, 19, 49, 0.9) 0%,
                rgba(223, 19, 49, 0.7) 50%,
                rgba(255, 107, 139, 0.6) 100%) bottom/100% 15px no-repeat,
            linear-gradient(135deg,
                #DF1331 0%,
                #FF6B8B 30%,
                #DF1331 70%,
                #B80F28 100%);
    }

    .progress-fill::before {
        height: 3px;
    }

    /* Adjust neon arrow for mobile */
    .scroll-to-top i {
        font-size: 22px;
        text-shadow:
            0 0 4px #DF1331,
            0 0 8px #DF1331,
            0 0 12px #DF1331;
    }
}

@media (max-width: 480px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 15px;
        font-size: 16px;
    }

    .progress-fill {
        background:
            linear-gradient(to top,
                rgba(223, 19, 49, 0.9) 0%,
                rgba(223, 19, 49, 0.7) 50%,
                rgba(255, 107, 139, 0.6) 100%) bottom/100% 12px no-repeat,
            linear-gradient(135deg,
                #DF1331 0%,
                #FF6B8B 40%,
                #DF1331 100%);
    }

    .progress-fill::before {
        height: 2px;
    }

    .progress-fill .bubble {
        display: none;
    }

    /* Adjust neon arrow for small mobile */
    .scroll-to-top i {
        font-size: 20px;
        text-shadow:
            0 0 3px #DF1331,
            0 0 6px #DF1331,
            0 0 9px #DF1331;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Link transition */
a {
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    text-decoration: none;
}

/* Optional: Add loading state */
.scroll-to-top.loading .progress-fill {
    animation: waveAnimation 1s ease-in-out infinite, pulseFull 1s ease-in-out infinite;
}

/* Optional: Success state when reaching top */
.scroll-to-top.success {
    animation: successBounce 0.6s ease;
}

.scroll-to-top.success i {
    animation: successNeon 1s ease-in-out;
}

@keyframes successBounce {

    0%,
    20%,
    40%,
    60%,
    80% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes successNeon {
    0% {
        text-shadow:
            0 0 5px #DF1331,
            0 0 10px #DF1331,
            0 0 15px #DF1331;
    }

    50% {
        text-shadow:
            0 0 20px #DF1331,
            0 0 40px #DF1331,
            0 0 60px #DF1331;
    }

    100% {
        text-shadow:
            0 0 5px #DF1331,
            0 0 10px #DF1331,
            0 0 15px #DF1331;
    }
}
