/* Responsive */


@media only screen and (max-width: 1440px){
    section.hero-circle {
        padding: 50px 0 60px 0;
    }
    .gallery-card {
        flex: 0 0 298px;
    }
    .bottom-links {
        margin-top: 43px;
    }
    .offcanvas {
        background: #000;
        color: #fff;
        transition: transform 0.35s ease-out, opacity 0.25s ease-out;
        opacity: 0;
        max-height: 100vh; 
        overflow-y: auto;            /* allows vertical scroll */
        overflow-x: hidden;    
        -webkit-overflow-scrolling: touch; 
    }
    .top-border .top-item {
        display: block;
        padding: 0 6px;
        font-size: 13px;
        font-weight: 400;
        color: #fff;
        text-decoration: none;
        background: 0 0;
        border: 0;
        white-space: nowrap;
    }
    .top-border .top-list {
        padding: 0;
        padding-right: 20px;
    }
    .top-list .nav-link {
        display: block;
        padding: 0 6px;
        font-size: 13px;
        font-weight: 400;
        color: #fff;
        text-decoration: none;
        background: 0 0;
        border: 0;
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    }
    .dashboard-hero header.hero .top-border {
        padding: 10px 0;
        padding-right: 0;
    }
}

@media only screen and (max-width: 1280px){
    .top-border .top-list {
        padding: 0 20px;
        flex-wrap: wrap;
    }
}

@media only screen and (max-width: 1024px) {
    .top-border .top-list {
        padding: 0 20px;
    }
    .footer-row {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
    }

    .footer-arch {
        order: -1;
        grid-column: 1 / -1;
        border-radius: 0 0 140px 140px;
        padding-bottom: 34px;
    }
    .bottom-links {
        margin-top: 0;
        gap: 26px;
    }
    .bottom-links .btn-danger {
        padding: 13px 31px;
    }
    .side-img {
        position: absolute;
        left: 0;
        height: 100%;
    }
    .side-img img {
        width: 100%;
        height: 100%;
    }
    .header-tools {
        gap: 15px;
        padding-right: 0;
    }
    .logo-wrap img {
        width: 300px;
        height: 100px;
    }
    .logo-text {
        font-size: 24px;
        text-align: left;
        line-height: 27px;
        margin-bottom: 2px;
    }
    .offset-sm-1 {
        margin-left: 5.333333%;
    }
}

@media only screen and (max-width: 992px) {
    .explore-panel::after {
        top: 10%;
        right: 5%;
        width: 90px;
        height: 90px;
    }

    .explore-panel p {
        margin-left: 0;
        margin-right: auto;
    }
    .cards-wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        overflow: visible;
    }

    .gallery-card {
        flex: 0 1 auto;
        min-height: 420px;
    }

    .gallery-card img {
        height: 420px;
        object-fit: cover;
    }
    .hero-card {
        right: 4%;
        width: 48%;
        padding: 22px;
    }

    .play-btn {
        left: 6%;
        --play-size: 86px;
    }
    .dashboard-hero {
        height: 80vh;
    }
    .hero-slide-content {
        padding-top: 140px;
    }
}

@media (max-width: 991.98px) {
    .explore-row {
        grid-template-columns: 1fr;
    }

    .explore-panel {
        min-height: auto;
        padding: 36px 20px;
        margin-bottom: 20px;
    }
    .side-img {
        opacity: 0;
    }
}

@media only screen and (max-width: 991px) {
    .header-actions {
        position: relative;
    }
    .search-wrapper.active ~ .tools-group {
        display: none;
    }
    .search-input {
        position: fixed;
        top: 107px;         
        left: 12px;
        right: 12px;
        width: auto;
        height: 44px;
        font-size: 16px;
        border-radius: 6px;
        z-index: 10001;
        display: none;
    }
    .search-wrapper.active .search-input {
        display: block;
    }
    .search-icon {
        padding: 0;
    }
    .search-wrapper.active .search-icon {
        background: transparent;
        box-shadow: 0px 0px 12px #5107067a;
        border-radius: 41px;
        padding: 0;
    }
    .virtual-tour-grid {
        grid-template-columns: 1fr;
    }
    .virtual-tour-content h2 {
        font-size: 30px;
    }
    .grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 768px) {
    .toggle-btn{
        display: block !important;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        padding: 0 14px;
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-arch {
        padding: 28px 12px;
    }

    .footer-arch p {
        max-width: 100%;
        font-size: 14px;
    }

    .footer-headline {
        font-size: 16px;
    }

    .contact-info {
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 14px 0;
    }
}

@media only screen and (max-width: 768px) {
    .offset-sm-1 {
        margin-left: 5.333333%;
    }
    .brand-center {
        position: relative;
        left: 0;
        transform: none;
        top: 0;
        z-index: 11;
        width: 80px;
        height: 80px;
    }

    .top-nav a {
        font-size: 14px;
        margin: 0 8px;
    }

    .hero {
        height: 75vh;
    }

    .register-btn {
        right: 16px;
        padding: 12px 18px;
        bottom: 0;
    }
    .news-ticker {
        font-size: 0.9rem;
        flex-direction: row;
    }

    .ticker-right {
        padding: 12px 14px;
        font-size: 0.9rem;
        width: fit-content;
        border-radius: 0;
    }
    
    .top-bar {
        top: 73px;
        padding: 7px 24px;
        /*top: 103px;*/
        /*padding: 14px 24px;*/
        /*background: rgba(0, 0, 0, 0.46);*/
        /*backdrop-filter: blur(7px);*/

        /* smooth animation */
        transition: 
            background-color 0.3s ease,
            backdrop-filter 0.3s ease,
            box-shadow 0.3s ease;
    }
    .top-bar.scrolled {
        background: rgb(0 0 0 / 23%);
        backdrop-filter: blur(30px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    }


    .top-border .top-list {
        display: none !important;
    }
    .new-badge {
        font-size: 0.7rem;
    }
    .partners-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        overflow: visible;
    }

    .partner-tile {
        width: auto;
        height: 90px;
        border-right: 1px solid #E9E9E9;
    }

    .partner-tile:last-child {
        border-right: none;
    }
    .feature-headlines {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 28px;
        overflow: visible;
    }

    .feature-headlines .headline {
        min-width: 0;
        text-align: left;
    }
    section.feature-strip {
        padding: 0 0 20px;
    }

    .feature-row {
        display: flex;       /* switch from grid to flex on mobile */
        gap: 16px;           /* adjust gap for small screens */
        overflow-x: auto;    /* allow horizontal scroll if needed */
        padding-bottom: 6px; /* optional padding */
        align-items: flex-end; /* keep alignment */
        justify-content: flex-start;
    }

    .feature-card {
        flex: 0 0 100%;       /* responsive width for each card */
        min-width: 200px;    /* optional minimum width */
    }

    .feature-card img, .img1, .img2, .img3, .img4 {
        height: 360px;
        /* slightly larger on desktop */
    }
    section.hero-circle::before {
        background-size: 100%;
    }
    .feature-icon {
        margin: 0;
    }

    .feature-card1 img {
        margin-top: 30px;
    }

    .feature-card2 img {
        margin-top: 50px;
    }

    .feature-card3 img {
        margin-top: 40px;
    }

    .feature-card4 img {
        margin-top: 30px;
    }

    .feature-card5 img {
        margin-top: 0px;
    }
     .content-box {
        text-align: center;
        padding: 40px 20px;
    }
    .video-hero .row{
        gap: 50px;
    }

    .play-btn {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .section-video .hero-stage {
        border-radius: 519px;
        padding: 135px 30px;
    }
    .box-cta-content {
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: center;
    }
    .box-cta {
        background: #004372;
        border-radius: 0;
        padding: 20px 20px;
    }
    .box-cta-link {
        margin-top: 20px;
        display: flex;
        justify-content: flex-end;
        gap: 20px;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }
    footer.site-footer {
        background: #090909;
        color: #fff;
        padding: 68px 0 0;
        position: relative;
    }
    .hero-content {
        padding: 50px 0;
    }
    .side-img {
        position: absolute;
        left: 0;
        opacity: 0;
    }
    .offcanvas {
        background: #000;
        color: #fff;
        transition: transform 0.35s ease-out, opacity 0.25s ease-out;
        opacity: 0;
        max-height: 100vh; 
        overflow-y: auto;            /* allows vertical scroll */
        overflow-x: hidden;    
        -webkit-overflow-scrolling: touch; 
    }
    .bottom-links {
        display: flex;
        gap: 20px;
        justify-content: flex-end;
        align-items: center;
        flex-direction: column;
        padding: 10px;
    }
    .bottom-links span{
        display: none;
    }
    .about-us .hero-img img {
        width: 100%;
        height: auto;
    }
    .breadcrumbs h1 {
        font-size: 45px;
    }
    .tab-inner-img img {
        width:  100%;
        height: auto;
    }
    .dashboard-hero {
        height: 100vh;
        margin-top: 0;
        /*height: 85vh;*/
        /*margin-top: 108px;*/
    }
    .dashboard-hero header.hero .top-border {
        padding: 10px 0;
        border: 0;
    }
    .hero-slide-overlay {
        padding: 0 1.5rem;
        background: linear-gradient(120deg, rgba(16, 22, 58, 0.75) 0%, rgba(16, 22, 58, 0.55) 45%, rgba(16, 22, 58, 0) 100%);
    }

    .hero-slide-content {
        max-width: 100%;
    }

    .hero-slide-title {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
    }

    .hero-slide-text {
        font-size: 0.98rem;
    }
    .header-tools {
        gap: 10px;
        padding-right: 20px;
    }
    .street-view-frame {
        height: 300px;
    }

    .street-view-header h2 {
        font-size: 26px;
    }
    .location-map-full {
        height: 300px;
    }

    .location-title h2 {
        font-size: 28px;
    }
    .header-hero {
        margin-top: 0;
        min-height: 400px;
        height: 66vh;
    }
    .header-hero .register-btn {
        position: absolute;
        right: 77px;
        bottom: 24px;
        padding: 17px 15px;
    }
    .download-card {
        flex-direction: column;
    }
    .faq-section, .process-section, .eligibility-section {
        padding: 40px 0;
    }
}

@media (max-width: 720px) {
    .hero-stage {
        height: min(640px, 70vh);
    }

    .hero-card {
        position: static;
        transform: none;
        width: calc(100% - 48px);
        margin: 18px auto 0;
    }

    .play-btn {
        left: 50%;
        transform: translate(-50%, -50%);
        top: 42%;
    }
}

@media (max-width: 576px) {
    .direction-bar {
        max-width: 92%;
    }

    .directions {
        padding: 28px 0 36px;
    }

    .direction-bar .mid {
        font-size: 0.95rem;
        padding: 12px;
    }

    .direction-bar .left,
    .direction-bar .right {
        flex: 0 0 56px;
        font-size: 18px;
    }
    .top-border .top-item {
        font-size: 14px;
        padding: 8px 12px;
    }

    .top-border .icon-circle {
        width: 24px;
        height: 24px;
        font-size: 13px;
        margin-right: 8px;
    }
    .ticker-content {
        animation-duration: 20s;
    }

    .news-ticker {
        border-radius: 0;
    }
     .hero-content p {
        max-width: 100%;
        font-size: 13px;
    }
    section.hero-circle {
        position: relative;
        color: #0b2340;
        padding: 30px 0 30px 0;
        overflow: hidden;
    }

    .btn-cta {
        padding: 8px 16px;
        font-size: 14px;
    }
    .grade-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .feature-image {
        height: 150px;
    }
}

@media (max-width: 520px) {
    .cards-wrap {
        display: flex;
        gap: 24px;
        align-items: start;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .gallery-card {
        flex: 0 0 100%; 
        min-height: 350px;
    }
    

    .explore-panel h2 {
        font-size: 28px;
    }
    .feature-card {
        flex: 0 0 400px;
    }

    .feature-card img {
        height: 280px;
    }

    .feature-headlines .headline {
        min-width: 180px;
        font-size: 1.05rem;
    }
}



@media (max-width: 420px) {
    .hero-card {
        padding: 18px;
        font-size: 14px;
    }

    .play-btn {
        width: 72px;
        height: 72px;
    }
}

@media only screen and (max-width: 375px) {
    .dashboard-hero {
        height: 120vh;
        margin-top: 0;
    }
    .register-btn {
        right: 16px;
        padding: 12px 18px;
        bottom: 0;
    }
}
@media only screen and (max-width: 364px) {
    .register-btn {
        right: 16px;
        padding: 12px 18px;
        bottom: 0;
    }
}
@media only screen and (max-width: 342px) {
    .register-btn {
        right: 0;
        padding: 12px 18px;
        bottom: 0;
    }
}