/* ================================================================
   Mobile Responsive Overrides for Professional Career Club
   ================================================================ */

/* Global Adjustments */
@media (max-width: 991px) {

    section,
    .section {
        padding: 40px 0;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title {
        padding-bottom: 30px;
    }

    .section-title h2 {
        font-size: 28px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
}

/* Header Adjustments */
@media (max-width: 1200px) {
    .header .logo h1 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .header-logo-img {
        height: 35px;
    }

    .header .btn-quote {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Page Breadcrumbs */
@media (max-width: 768px) {
    .page-breadcrum {
        padding: 40px 0;
    }

    .page-breadcrum h1 {
        font-size: 28px !important;
    }

    .page-breadcrum p {
        font-size: 14px;
    }
}

/* Hero Section Refinement */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 30px !important;
        line-height: 1.2;
    }

    .hero .lead {
        font-size: 16px;
        margin: 20px auto;
        max-width: 100%;
    }

    .hero .hero-actions {
        justify-content: center;
        margin-bottom: 30px;
        gap: 15px;
    }
}

/* Features Section */
@media (max-width: 768px) {
    .features .feature-item {
        padding: 30px 20px;
    }

    .features .feature-item h3 {
        font-size: 22px;
    }
}

/* About Section */
@media (max-width: 768px) {
    .about .about-content {
        text-align: center;
    }

    .about .about-content h2 {
        font-size: 28px;
    }

    .about .about-image {
        margin-top: 30px;
    }
}

/* What We Do Section */
@media (max-width: 768px) {
    .what-we-do .do-card {
        border-radius: 20px;
    }

    .what-we-do .do-image {
        min-height: 250px;
    }

    .what-we-do .do-content {
        padding: 30px 20px;
        text-align: center;
    }

    .what-we-do .do-content .quote-icon i {
        font-size: 40px;
    }

    .what-we-do .do-footer-icons {
        justify-content: center;
    }
}

/* Courses Page */
@media (max-width: 991px) {
    .course-content-grid {
        display: flex;
        flex-direction: column;
    }

    .course-sticky-sidebar {
        order: 2;
        margin-top: 40px;
    }

    .cov-top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .cov-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-share-new,
    .btn-start-new {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-add-review {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .review-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .reviewer-avatar {
        margin-bottom: 15px;
    }
}

/* Forum Page */
@media (max-width: 991px) {
    .post-question-container {
        padding: 20px;
    }

    .recent-questions-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-filters {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .bg-white.p-4.rounded-xl {
        padding: 20px !important;
    }

    .d-flex.align-items-start.gap-4 {
        gap: 15px !important;
    }

    .question-title a {
        font-size: 1rem !important;
    }

    .forum-card-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Stack user info in forum list */
    .forum-questions-list .d-flex.align-items-center.flex-wrap.gap-2 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .forum-questions-list .d-flex.align-items-center.flex-wrap.gap-2 span:nth-child(2) {
        display: none;
        /* Hide the separator dot on mobile */
    }

    .forum-questions-list .btn-filter-custom {
        margin-left: 0 !important;
        margin-top: 5px;
    }

    /* Stack user info in forum details */
    .detail-question-header .d-flex.align-items-center.mb-1 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .detail-question-header .user-name {
        font-size: 1rem;
    }

    .detail-question-header .btn-filter-custom {
        margin-left: 0 !important;
    }
}

/* Careers Page */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .jobs-grid {
        grid-template-columns: 1fr !important;
    }

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

    .job-title-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px;
    }

    .job-modal-content {
        padding: 25px 20px !important;
        width: 95% !important;
    }
}

/* Nav Menu Mobile Wrap Fix */
@media (max-width: 1199px) {

    .navmenu a,
    .navmenu a:focus {
        white-space: normal !important;
        line-height: 1.4;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .navmenu a i,
    .navmenu a:focus i {
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        margin-left: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .navmenu .dropdown ul {
        margin: 10px 10px !important;
    }

    .navmenu .dropdown ul a {
        padding: 10px 15px !important;
    }
}

/* Footer Section */
@media (max-width: 991px) {
    .footer .footer-top {
        text-align: left;
        /* Changed to left */
    }

    .footer .footer-about {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Changed to flex-start */
        margin-bottom: 30px;
    }

    .footer h4::before {
        display: none;
    }

    .footer h4 {
        padding-left: 0;
        text-align: left;
        /* Changed to left */
        margin-bottom: 20px;
    }

    .footer .footer-links ul {
        margin-bottom: 30px;
    }

    .footer .footer-links ul li {
        justify-content: flex-start;
        /* Changed to flex-start */
    }

    .footer .footer-social-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Changed to flex-start */
    }

    .footer-socials {
        justify-content: flex-start;
        /* Changed to flex-start */
    }
}

/* Common Components */
@media (max-width: 576px) {

    .btn-main,
    .btn-learn-more,
    .btn-apply,
    .btn-submit-application {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        display: flex;
        justify-content: center;
        min-height: auto;
    }

    .b-bubble {
        display: none;
        /* Reduce performance hit on mobile and clean up layout */
    }
}

/* Modal Fixes */
.job-modal {
    padding: 10px;
}

.job-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}