/*=====================================================
LARGE DESKTOP
======================================================*/

@media (max-width:1400px) {
    .hero-right {
        min-height: 620px;
    }

    .hero-form {
        max-width: 430px;
    }

    .premium-navbar>.container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-row {
        min-height: 700px;
    }
}

@media (max-width: 1200px) {
    .university-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .countries-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-content {
        padding: 50px;
    }

    .featured-left h2 {
        font-size: 42px;
    }

    .featured-right {
        width: 300px;
    }

    .smart-match-wrapper {
        gap: 40px;
    }

    .countries-cta {
        padding: 50px;
    }

    .countries-cta h2 {
        font-size: 36px;
    }

    .navbar-nav {
        gap: 10px;
    }

    .nav-actions {
        margin-left: 40px;
    }

    .hero-right {
        min-height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 18px;
    }

    .hero-form {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 500px;
        margin: auto;
    }

    .floating-card {
        position: relative;
        width: 100%;
        max-width: 500px;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0;
    }
}


/*==========================*/

@media (max-width:1199px) {
    .hero-section {
        padding: 90px 0 60px;
    }

    .hero-row {
        min-height: auto;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-form {
        padding: 28px;
    }

    .hero-right {
        min-height: auto;
    }

    .cta-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .premium-navbar{
        height:78px;
    }
    .navbar-brand img{
        height:58px;
    }
    .premium-navbar>.container{
        padding-inline:18px;
    }

    .navbar-toggler{
        width:56px;
        height:56px;
        border-radius:18px;
        padding:0;
    }
}


/* Max-width : 992px*/

@media (max-width: 992px) {
    .destination-grid {
        grid-template-columns: 1fr;
        /* Switch to single grid block on tablets */
    }

    .featured-country {
        grid-column: span 1;
        min-height: 520px;
    }

    .countries-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}


/* Max-width : 991px*/

@media (max-width: 991px) {
    .featured-university-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding: 45px;
    }

    .featured-university {
        min-height: auto;
    }

    .featured-university-content {
        min-height: auto;
    }

    .featured-university-right {
        width: 100%;
    }

    .featured-university-left h2 {
        font-size: 40px;
    }

    .countries-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .countries-btn {
        grid-column: 1/-1;
        text-align: center;
    }

    .featured-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding: 45px 35px;
    }

    .featured-right {
        width: 100%;
    }

    .featured-country-card {
        min-height: auto;
    }

    .featured-content {
        min-height: auto;
    }

    .featured-left h2 {
        font-size: 38px;
    }

    .country-card-premium {
        min-height: 400px;
    }

    .smart-match-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .footer-top {
        padding: 70px 0 50px;
    }

    .footer-title {
        margin-top: 30px;
    }

    .back-to-top {
        right: 30px;
    }

    .top-bar {
        display: none;
    }

    .premium-navbar {
        height: 78px;
    }

    .navbar-brand {
        margin-right: 0;
    }

    .navbar-brand img {
        height: 62px;
    }

    .navbar-nav {
        gap: 4px;
        padding: 20px 0;
    }

    .navbar-nav .nav-link {
        justify-content: flex-start;
        border-radius: 14px;
        padding: 14px 18px;
        height: auto;
    }

    .navbar-collapse{
        position:fixed;
        top:78px;
        left:0;
        width:100%;
        height:calc(100vh - 78px);
        background:#ffffff;
        z-index:9999;
        overflow-y:auto;
        padding:24px;
    }

    .nav-actions {
        margin: 20px 0 0;
        width: 100%;
    }

    .premium-navbar .btn {
        width: 100%;
    }

    .hero-section {
        padding: 80px 0 50px;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-world-map {
        display: none;
    }

    .hero-right {
        margin-top: 20px;
    }

    .scroll-down {
        display: none;
    }

    .hero-section {
        padding-top: 130px;
    }

    .hero-row {
        gap: 45px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-right {
        width: 100%;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-form {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-form-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .cta-box {
        padding: 50px 35px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .premium-cta {
        padding: 90px 0;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-image-wrapper {
        margin-top: 60px;
    }

    .smart-match-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .loan-checker-section {
        padding: 80px 0;
    }

    .loan-calculator-card {
        margin-top: 50px;
        padding: 30px;
    }

    .review-card {
        padding: 28px;
    }

    .service-card {
        padding: 30px 24px;
    }

    .service-card p {
        min-height: auto;
    }
}


/* Mobile */

@media (max-width:768px) {
    .top-bar {
        display: none;
    }

    .navbar-collapse{
        position:fixed;
        top:78px;
        left:0;
        width:100%;
        height:calc(100vh - 78px);
        background:#ffffff;
        z-index:9999;
        overflow-y:auto;
        padding:24px;
    }

    .hero-right {
        gap: 12px;
    }

    .hero-form {
        width: 100%;
        max-width: 100%;
        padding: 24px;
    }

    .hero-form h3 {
        font-size: 24px;
    }

    .hero-form p {
        font-size: 15px;
    }

	.hero-actions
	{
		justify-content: center;
	}

    .hero-form .input-group {
        margin-bottom: 14px;
    }

    .hero-form .form-control,
    .hero-form .form-select {
        min-height: 50px;
        font-size: 14px;
    }

    .hero-form-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-submit-btn,
    .hero-whatsapp-btn {
        width: 100%;
    }

    .floating-card {
        max-width: 100%;
        padding: 15px;
    }

    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .countries-section {
        padding: 80px 0;
    }

    .country-title {
        font-size: 34px;
    }

    .country-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .countries-cta {
        padding: 40px 25px;
    }

    .countries-cta h2 {
        font-size: 28px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .country-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .accordion-button {
        padding: 20px;
        font-size: 16px;
    }

    .accordion-body {
        padding: 0 20px 20px;
        font-size: 15px;
    }

    .accordion-icon {
        width: 36px;
        height: 36px;
    }

    .faq-number {
        width: 34px;
        height: 34px;
        margin-right: 10px;
    }

    .footer-about {
        max-width: 100%;
    }

    .footer-newsletter form {
        flex-direction: column;
        gap: 15px;
    }

    .footer-newsletter input {
        border-radius: var(--radius-lg);
    }

    .footer-newsletter button {
        width: 100%;
        height: 54px;
        border-radius: var(--radius-lg);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .back-to-top {
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .flex-between {
        flex-direction: column;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-section .card-premium {
        padding: 30px;
        border-radius: 24px;
    }

    .whatsapp-form .form-control {
        height: 54px;
    }

    .whatsapp-form .form-textarea {
        min-height: 140px;
    }

    .whatsapp-form .btn-premium {
        height: 56px;
        font-size: 16px;
    }
}


/* Max-width : 767px*/

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    .navbar-collapse{
        position:fixed;
        top:78px;
        left:0;
        width:100%;
        height:calc(100vh - 78px);
        background:#ffffff;
        z-index:9999;
        overflow-y:auto;
        padding:24px;
    }

    .university-stats {
        grid-template-columns: 1fr;
    }

    .featured-university-content {
        padding: 30px;
    }

    .featured-university-left h2 {
        font-size: 30px;
    }

    .featured-university-left p {
        font-size: 16px;
    }

    .university-image {
        height: 220px;
    }

    .university-body {
        padding: 38px 22px 22px;
    }

    .university-body h4 {
        font-size: 22px;
    }

    .university-stats-row {
        grid-template-columns: 1fr;
    }

    .countries-stats {
        grid-template-columns: 1fr;
    }

    .stat-box {
        justify-content: flex-start;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-left h2 {
        font-size: 32px;
    }

    .featured-left p {
        font-size: 16px;
    }

    .country-card-premium {
        min-height: 360px;
    }

    .country-content {
        padding: 22px;
    }

    .country-content h4 {
        font-size: 24px;
    }

    .country-btn {
        padding: 12px 16px;
    }


    .qualification-grid {
        grid-template-columns: 1fr;
    }

    .finder-card {
        padding: 30px 20px !important;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-form {
        padding: 25px;
    }

    .hero-form h3 {
        font-size: 26px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-description {
        font-size: 16px;
    }

    .cta-title {
        font-size: 34px;
    }

    .cta-stats {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .cta-image-wrapper img {
        max-width: 340px;
    }

    .floating-card {
        position: relative;
        display: inline-block;
        margin: 10px 5px;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }

    .timeline-vertical {
        padding-left: 45px;
    }

    .timeline-number {
        width: 40px;
        height: 40px;
        left: -50px;
        font-size: 15px;
    }

    .timeline-content {
        padding: 24px;
    }

    .timeline-roadmap {
        grid-template-columns: 1fr;
    }
}

@media (max-width:576px) {
    .top-bar {
        display: none;
    }

    .navbar-collapse{
        position:fixed;
        top:78px;
        left:0;
        width:100%;
        height:calc(100vh - 78px);
        background:#ffffff;
        z-index:9999;
        overflow-y:auto;
        padding:24px;
    }

    .hero-section {
        padding: 70px 0 40px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 15px;
    }

    .hero-rating {
        justify-content: center;
    }

    .hero-form .form-control,
    .hero-form .form-select {
        height: 52px;
        font-size: 14px;
    }

    .hero-section {
        padding-top: 110px;
    }

    .hero-form {
        padding: 20px;
        border-radius: 18px;
    }

    .hero-form h3 {
        font-size: 22px;
    }

    .hero-form p {
        font-size: 14px;
    }

    .hero-form .row {
        row-gap: 12px;
    }

    .hero-form .col-6 {
        width: 100%;
    }

    .hero-form-buttons {
        margin-top: 12px;
    }

    .secure-note {
        font-size: 13px;
        text-align: center;
    }

    .floating-card {
        border-radius: 15px;
    }

    .loan-calculator-card {
        padding: 25px;
        border-radius: 24px;
    }

    .loan-calculator-card .form-control,
    .loan-calculator-card .form-select {
        height: 54px;
    }

    .loan-calculator-card .btn-premium {
        height: 56px;
        font-size: 16px;
    }

    .loan-result-card {
        padding: 22px;
    }

    .review-card {
        padding: 24px;
        border-radius: 22px;
    }

    .review-top {
        gap: 14px;
    }

    .review-top img {
        width: 60px;
        height: 60px;
    }

    .review-top h5 {
        font-size: 17px;
    }

    .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/*==========================*/

@media (max-width:400px) {
    .top-bar {
        display: none;
    }

    .navbar-collapse{
        position:fixed;
        top:78px;
        left:0;
        width:100%;
        height:calc(100vh - 78px);
        background:#ffffff;
        z-index:9999;
        overflow-y:auto;
        padding:24px;
    }

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

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons .btn {
        font-size: 14px;
        padding: 13px;
    }

    .hero-form {
        padding: 18px;
    }

    .hero-form h3 {
        font-size: 20px;
    }

    .hero-form .form-control,
    .hero-form .form-select {
        min-height: 48px;
        font-size: 13px;
    }

    .hero-submit-btn,
    .hero-whatsapp-btn {
        height: 50px;
        font-size: 14px;
    }

    .floating-card {
        padding: 14px;
    }
}

/*===================================================== REDUCED MOTION======================================================*/

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}