/*
 * NetPrime Mobile Responsiveness Overrides
 * Appended to main.css for mobile fixes across all public-facing pages
 */

/* =============================================
   HERO SECTION
   ============================================= */
.courses-hero {
    padding: 40px 0 30px;
}

@media (max-width: 991px) {
    .courses-hero .hero-text h1 {
        font-size: 26px;
        line-height: 1.3;
        text-align: center;
    }
    .courses-hero .hero-text p {
        text-align: center;
        font-size: 15px;
    }
    .courses-hero .hero-image {
        margin-top: 30px;
        text-align: center;
    }
    .courses-hero .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }
    .courses-hero .floating-cards {
        display: none;
    }
}

@media (max-width: 576px) {
    .courses-hero {
        padding: 20px 0 10px;
    }
    .courses-hero .hero-text h1 {
        font-size: 22px;
    }
    .courses-hero .hero-image img {
        max-width: 100%;
    }
}

/* =============================================
   SERVICES CARDS GRID
   ============================================= */
@media (max-width: 767px) {
    .service-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    .service-slide-card {
        padding: 20px;
    }
    .service-icon {
        font-size: 36px;
    }
    .service-slide-icon {
        font-size: 40px;
    }
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-main-wrapper {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.contact-main-wrapper .map-wrapper {
    flex: 1;
    min-height: 350px;
}

.contact-main-wrapper .contact-content {
    flex: 1;
}

@media (max-width: 991px) {
    .contact-main-wrapper {
        flex-direction: column;
    }
    .contact-main-wrapper .map-wrapper {
        min-height: 250px;
        width: 100%;
    }
    .contact-cards-container {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
    }
    .contact-card {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .contact-form-container h3 {
        font-size: 20px;
    }
    .php-email-form .row .col-md-6 {
        margin-top: 12px !important;
    }
    .form-submit button {
        width: 100%;
        padding: 12px;
    }
    .form-submit .social-links {
        justify-content: center;
        margin-top: 12px;
    }
}

/* =============================================
   BLOG SECTION
   ============================================= */
@media (max-width: 767px) {
    .entry {
        margin-bottom: 30px;
    }
    .entry-title {
        font-size: 18px;
    }
}

/* =============================================
   ABOUT PAGE
   ============================================= */
@media (max-width: 991px) {
    .about-section .col-lg-6:first-child {
        margin-bottom: 30px;
    }
    .about-section img {
        width: 100%;
    }
}

/* =============================================
   GLOBAL SECTION TITLE
   ============================================= */
@media (max-width: 576px) {
    .section-title h2 {
        font-size: 24px;
    }
    .section-title p {
        font-size: 14px;
    }
}

/* =============================================
   FOOTER
   ============================================= */
@media (max-width: 767px) {
    .footer .footer-top {
        padding-top: 30px;
    }
    .footer .footer-about,
    .footer .footer-links,
    .footer .footer-contact {
        margin-bottom: 24px;
        text-align: center;
    }
    .footer .social-links {
        justify-content: center;
    }
    .footer .footer-links ul li {
        justify-content: center;
    }
}

/* =============================================
   PAGE TITLE / BREADCRUMBS
   ============================================= */
@media (max-width: 576px) {
    .page-title h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .page-title .breadcrumbs {
        font-size: 13px;
    }
}

/* =============================================
   GLOBAL SPACING FIXES ON MOBILE
   ============================================= */
@media (max-width: 576px) {
    section, .section {
        padding: 40px 0;
    }
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
}

/* =============================================
   NAV - ensure hamburger icon is visible on mobile
   ============================================= */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        display: block !important;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
    }
    .header .logo img {
        max-height: 45px;
    }
    .navmenu ul {
        background-color: #0D1B3A !important;
    }
    .navmenu ul li a {
        color: #ffffff !important;
    }
    .navmenu ul li a:hover,
    .navmenu ul li a.active {
        color: #4EC3FF !important;
    }
}
