/*--------------------------------------------------------------
# RESPONSIVE FIXES FOR HEADER AND MOBILE
--------------------------------------------------------------*/

/* Fix header structure for mobile */
.header {
    flex-direction: column;
    padding: 0 !important;
}

.header-top-bar {
    width: 100%;
}

.header-main {
    width: 100%;
}

/* Mobile Header Improvements */
@media (max-width: 1199px) {
    .header {
        padding: 0 !important;
    }

    .header-main {
        padding: 12px 0;
    }

    .header .logo-text h1 {
        font-size: 20px;
    }

    .header .logo-text .tagline {
        font-size: 10px;
    }

    .header .logo-icon {
        width: 38px;
        height: 38px;
    }

    .header .logo-icon i {
        font-size: 20px;
    }

    .header .btn-getstarted {
        padding: 6px 15px;
        font-size: 13px;
        margin-left: auto !important;
        margin-right: 10px !important;
    }

    .header .header-actions {
        gap: 8px;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .header .logo-text h1 {
        font-size: 18px;
    }

    .header .logo-text .tagline {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .header .logo-icon {
        width: 35px;
        height: 35px;
    }

    .header .logo-icon i {
        font-size: 18px;
    }

    .header .btn-getstarted {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* Fix navigation menu mobile */
@media (max-width: 1199px) {
    .navmenu {
        padding: 0;
    }

    .navmenu ul {
        background-color: var(--background-color);
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Fix hero section for mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px !important;
    }

    .hero .lead {
        font-size: 16px !important;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* Fix course cards for mobile */
@media (max-width: 768px) {
    .course-card {
        margin-bottom: 20px;
    }

    .course-card h3 {
        font-size: 18px;
    }

    .price-tag {
        flex-direction: column;
        align-items: flex-end !important;
    }

    .price-amount {
        font-size: 24px !important;
    }
}

/* Fix pricing cards for mobile */
@media (max-width: 768px) {
    .pricing .pricing-item {
        margin-bottom: 20px;
    }

    .pricing .pricing-item h3 {
        font-size: 18px;
    }

    .pricing .pricing-item h4 {
        font-size: 32px;
    }
}

/* Fix footer for mobile */
@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 20px;
    }

    .footer-links,
    .footer-contact,
    .footer-brand {
        margin-bottom: 30px;
    }

    .footer .logo-text h3 {
        font-size: 20px;
    }
}

/* Fix floating action buttons for mobile */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        right: 15px;
    }

    .fab-phone,
    .fab-apply {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .fab-tooltip {
        display: none;
    }
}

/* Fix phone popup for mobile */
@media (max-width: 576px) {
    .phone-popup-content {
        width: 90%;
        padding: 25px;
    }

    .phone-number-item {
        padding: 15px;
    }

    .phone-value {
        font-size: 16px;
    }
}

/* Fix tutor modal for mobile */
@media (max-width: 768px) {
    .tutor-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 20px;
    }

    .google-form-container iframe {
        height: 500px;
    }
}

/* Ensure container doesn't overflow */
@media (max-width: 1199px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Fix section padding for mobile */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 16px;
    }
}

/* Fix page title for mobile */
@media (max-width: 768px) {
    .page-title .heading h1 {
        font-size: 32px;
    }

    .page-title .heading p {
        font-size: 15px;
    }
}

/* Fix testimonials for mobile */
@media (max-width: 768px) {
    .testimonial-item {
        padding: 20px;
    }

    .testimonial-item h3 {
        font-size: 18px;
    }

    .testimonial-item p {
        font-size: 14px;
    }
}

/* Fix stats/counts for mobile */
@media (max-width: 768px) {
    .stats-item {
        margin-bottom: 20px;
    }

    .stats-item span {
        font-size: 36px !important;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix overflow issues */
body {
    overflow-x: hidden;
}

.container,
.container-fluid {
    overflow-x: hidden;
}