/* ===========================================
   RESPONSIVE.CSS - Mobile UX Enhancements
   ===========================================
   Mobile-first improvements for course pages
   Preserves desktop design, enhances mobile experience
   =========================================== */

/* Mobile UX Enhancements - Max Width 768px */

    /* Top bar - mobile offer visibility */
.mobile-offer {
 display: none; /* Hidden by default on all devices */
}

@media (max-width: 768px) {

    /* ===== GENERAL MOBILE IMPROVEMENTS ===== */

    /* Better body and container spacing */
    body {
        font-size: 16px;
        line-height: 1.5;
        overflow-x:hidden;
    }
    
    #mobilealign{
       align-items: baseline !important; 
       margin-bottom: -10px;
    }
    #emailwrapper{
    align-items: baseline !important; 
    margin-bottom: -10px;
    }
    .footer-section h5 {
    font-size: 1rem;
}
    .about-section-title {
       line-height:3rem !important;
    }
    
.d-flex#mobilealign,
.d-flex#emailwrapper {
    margin-bottom: -20px;
}

.about-hero-section {
    padding-top: 1rem;
}
.about-hero-section .about-hero-title {
    font-size: 2rem !important;
    text-align: center;
    line-height: 3rem !important;
    }
    .about-hero-section .about-hero-subtitle {
    font-size: 1.5rem;
    text-align: center;
    }
    .about-hero-section .about-hero-description {
    font-size: 1.1rem;
    text-align: center;
    }
    
    .about-hero-section .hero-cta-buttons {
    width: fit-content;
    margin: 0 auto;
}
.about-text {
    text-align: justify;
}
.vm-content-text {
    text-align: justify;
}
.video-courses-section h2{
    font-size: 2rem !important;
    line-height: 3rem;
    }
    
    .categories-section h2 {
    font-size: 2rem !important;
    line-height: 3rem;
}
        .cta-title {
        text-align: center !important;
    }
    .cta-subtitle {
        margin-bottom: 0;
        text-align: center !important;
    }
    
.whatsapp-btn i {
    animation: whatsappZoom 1.5s linear infinite;
}
 .whatsapp-btn i {
      animation-duration: 2.2s !important;
  }
 .whatsapp-btn {
      animation-duration: 2.8s !important;
  }
    .hero-section {
    padding: 0;
}

.desktop-offer{
    display:none !important;
}
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
.our-story-section {
    padding-bottom: 0 !important;
}
.story-content {
    padding-bottom: 0;
}
    .story-cta{
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 1rem;
}
.course-card .btn {
    margin: 0 auto;
}
.social-section .social-title {
    text-align: center !important;
}
    /* Improved section spacing */
    section {
        padding: 3rem 0;
    }

    section.py-5 {
        padding: 2.5rem 0;
    }
    /* Show mobile offer only on mobile devices */
    @media (max-width: 768px) {
        .mobile-offer {
            display: flex;
            align-items: center;
            color: white;
            font-size: 0.9rem;
            font-weight: 600;
        }
    }

    /* ===== HERO SECTION MOBILE OPTIMIZATION ===== */

    .course-hero-section {
        min-height: auto;
        padding: 2rem 0 0rem;
        text-align: center;
    }

    /* Home page hero CTA buttons - content width and centered */
    .hero-cta {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-cta .btn {
        width: auto;
        min-height: 48px;
        font-size: 15px;
        padding: 14px;        margin-right: 0 !important; /* Override me-3 class */
    }

    .course-hero-content {
        padding: 1rem 0;
    }

    .course-hero-title {
        font-size: 2rem;
        line-height: 3rem;
        margin-bottom: 1.5rem;
    }

    .course-hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    /* Course badges - better mobile layout */
    .course-badge-wrapper {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .course-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Course stats - horizontal layout */
    .course-stats-row {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 2rem;
        text-align: left;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .course-stat-item {
        padding: 1rem;
        text-align: left;
        flex: 1;
        min-width: 120px;
    }

    .course-stat-item .stat-icon {
        width: 50px;
        height: 50px;
        margin: 0 0 0.75rem 0;
        align-self: flex-start;
    }

    .course-stat-item .stat-content {
        text-align: left;
    }

    /* Course actions - stack buttons */
    .course-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .course-actions .btn {
        width: auto;
        min-height: 48px; /* Better touch target */
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    /* Course details card - better mobile spacing */
    .course-details-card {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .course-card-pricing {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .current-price-large {
        font-size: 2rem;
    }

    .original-price-large {
        font-size: 1.2rem;
    }

    .course-features-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }

    .feature-item {
        padding: 1rem;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .feature-item i {
        width: 20px;
        margin-top: 0.25rem;
    }

    /* ===== OVERVIEW SECTION MOBILE ===== */

    .course-overview-section {
        padding: 2.5rem 0;
    }

    .overview-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .overview-main-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        line-height: 3rem;
    }

    .overview-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .overview-stats-row {
        justify-content: center;
        margin-bottom: 2rem;
        gap: 1rem;
    }

    .stat-box {
        padding: 1rem;
        min-width: 80px;
    }

    .overview-visual {
        text-align: center;
    }

    .visual-card {
        padding: 2rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .skill-item {
        padding: 0.75rem;
    }

    /* ===== BENEFITS SECTION MOBILE ===== */

    .course-benefits-section {
        padding: 2.5rem 0;
    }

    .benefits-title {
        font-size: 1.8rem;
        margin-bottom: -1rem !important;
        line-height: 3rem;
    }

    .benefits-image-wrapper {
        margin-bottom: 2rem;
    }

    .benefits-image-wrapper img {
        display: none;
    }

    .benefits-content {
        padding-left: 0;
    }

    .benefit-item-vertical {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .benefit-icon-circle {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .benefit-content-vertical h6 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    /* ===== WHAT YOU'LL LEARN SECTION MOBILE ===== */

    .what-youll-learn-section {
        padding: 2.5rem 0;
    }

    /* Ensure single column layout on mobile and tablet */
    .what-youll-learn-section .col-lg-4,
    .what-youll-learn-section .col-md-6,
    .what-youll-learn-section .col-sm-12 {
        width: 100% !important;
        margin-bottom: 2rem;
    }

    .skill-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        height: auto;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
        border-radius: 15px;
        transition: all 0.3s ease;
    }

    .skill-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .skill-icon {
        width: 60px;
        height: 60px;
        margin: 0 0 1.5rem 0;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: white;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        align-self: flex-start;
    }

    .skill-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #1e3a8a;
        line-height: 1.3;
        text-align: left;
    }

    .skill-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
        flex: 1;
    }

    .skill-list li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
        color: #6b7280;
        line-height: 1.5;
        position: relative;
        padding-left: 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .skill-list li:last-child {
        border-bottom: none;
    }

    .skill-list li::before {
        content: '✓';
        position: absolute;
        left: 0;
        color: #10b981;
        font-weight: bold;
        font-size: 0.9rem;
    }

    /* Better spacing for the grid */
    .what-youll-learn-section .row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 2rem;
    }

    /* Ensure proper card alignment */
    .skill-card .skill-icon,
    .skill-card .skill-title {
        flex-shrink: 0;
    }

    /* ===== PRE-CURRICULUM CTA MOBILE ===== */

    .pre-curriculum-cta {
        padding: 2.5rem 0;
    }

    .cta-title {
        font-size: 2rem;
        line-height:3rem !important;
    }

    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .readytolearn{
        line-height:3rem;
    }
    .categories-section {
    padding: 40px 0;
    }

#mobmargin{
    margin-bottom:0 !important;
}
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }

    .cta-stats {
        margin-top: 2rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    /* ===== CURRICULUM SECTION MOBILE ===== */

    .curriculum-section {
        padding: 2.5rem 0;
    }

    .curriculum-accordion-button {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .curriculum-week-badge {
        align-self: flex-start;
        min-width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .curriculum-title-content h4 {
        font-size: 1.1rem;
    }

    .curriculum-accordion-body {
        padding: 0 1.5rem 1.5rem;
    }

    .curriculum-topics h6 {
        font-size: 1rem;
    }

    .curriculum-topics li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    /* Syllabus CTA */
    .syllabus-cta-section {
        padding: 2rem 1.5rem;
    }

    .syllabus-cta-content h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .syllabus-cta-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn-syllabus-cta {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }

    /* ===== COURSE FEATURES SECTION MOBILE ===== */

    .course-features-section {
        padding: 2.5rem 0;
    }

    .feature-benefit-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .feature-benefit-card .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .feature-benefit-card h5 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .feature-benefit-card p {
        font-size: 0.95rem;
    }

    /* ===== TESTIMONIALS SECTION MOBILE ===== */

    .testimonials-section {
        padding: 2.5rem 0;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        min-height: 60px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .author-info h6 {
        margin-bottom: 0.25rem;
    }

    /* ===== FAQ SECTION MOBILE ===== */

    .faq-section {
        padding: 2.5rem 0;
    }

    .accordion-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .accordion-body {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    /* ===== FINAL CTA SECTION MOBILE ===== */

    .final-cta-section {
        padding: 2.5rem 0;
        min-height: auto;
    }

    .cta-left-content {
        margin-bottom: 3rem;
        text-align: center;
    }

    .cta-main-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .cta-main-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-features {
        margin-bottom: 2rem;
    }

    .cta-features .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }

    .cta-features .feature-content {
        text-align: center;
    }

    .guarantee-badges-left {
        flex-direction: column;
        gap: 0.75rem;
    }

    .guarantee-badges-left .guarantee-item {
        flex: none;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    /* Pricing card mobile */
    .cta-pricing-card-right {
        margin-top: 2rem;
    }

    .pricing-header {
        padding: 1.5rem;
    }

    .pricing-header h4 {
        font-size: 1.2rem;
    }

    .pricing-body {
        padding: 2rem 1.5rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    .price-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .savings-highlight {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .course-includes {
        padding: 1.5rem;
    }

    .course-includes h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .course-includes li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .pricing-actions {
        padding: 0 1.5rem 2rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .pricing-actions .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }

    /* ===== MODAL IMPROVEMENTS ===== */

    /* General modal improvements */
    .modal-dialog {
        margin: 1rem;
    }

    .modal-content {
        border-radius: 15px;
    }

    .modal-header {
        padding: 1.5rem;
        padding-top: 0;
        padding-bottom: 0;
    }

    .modal-body {
        padding: 1.5rem;
    }

    /* Make modal titles smaller on mobile */
    .modal-title {
        font-size: 1.1rem !important;
    }

    /* Enrollment modal */
    .enroll-modal .modal-body {
        padding: 2rem 1.5rem;
    }

    .enroll-modal .form-group-floating input,
    .enroll-modal .form-group-floating textarea {
        padding: 1rem 1rem 1rem 50px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }

    .enroll-modal .input-icon {
        left: 1rem;
        font-size: 1rem;
    }

    .enroll-modal .btn-submit-gradient {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Syllabus modal */
    .syllabus-modal .modal-body {
        padding: 2rem 1.5rem;
    }

    .syllabus-form-input {
        padding: 1rem 1rem;
        font-size: 16px;
        min-height: 48px;
    }

    .btn-download-now {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Course preview modal */
    #coursePreviewModal .modal-dialog {
        max-width: 95vw;
        margin: 1rem auto;
    }

    /* ===== FORM IMPROVEMENTS ===== */

    /* Better form inputs for mobile */

    #enrollForm .mb-3{
        margin-bottom:1rem !important;
    }
    #enrollForm .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 0rem;
    }
     #enrollForm .btn-lg{
        margin: 0 auto;
    }
    .form-control {
        font-size: 16px;
        min-height: auto;
        padding: .7rem 1rem;
    }

    .form-floating .form-control {
        padding: 1rem 1rem;
    }

    .btn {
        min-height: 44px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    /* ===== VIDEO COURSES SECTION MOBILE ===== */

    /* Hide video slider navigation arrows on mobile */
    .video-courses-section .slick-prev,
    .video-courses-section .slick-next {
        display: none !important;
    }

    /* ===== GENERAL MOBILE UX ===== */

    /* Better touch targets */
    a, button, .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        align-items: center;
    }

    /* Improved readability */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }

    /* Better spacing for paragraphs */
    p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    /* Improved list spacing */
    ul, ol {
        padding-left: 1.5rem;
    }

    li {
        margin-bottom: 0.5rem;
    }

    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Hide floating elements on mobile for better UX */
    .floating-element,
    .floating-badge,
    .hero-particles,
    .bg-circle {
        display: none !important;
    }

    /* Better card shadows for mobile */
    .card, .skill-card, .feature-benefit-card, .testimonial-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Improved section headers */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 3rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Better grid layouts */
    .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    /* ===== SPECIFIC COURSE PAGE FIXES ===== */
    
    /* Better responsive utilities */
    .text-center {
        text-align: center !important;
    }

    /* Improved responsive images */
    .img-fluid {
        max-width: 100%;
        height: auto;
    }

    /* Better responsive tables if any */
    .table-responsive {
        border: none;
    }

    .table-responsive .table {
        margin-bottom: 0;
    }

    /* ===== ACCESSIBILITY IMPROVEMENTS ===== */

    /* Better focus states */
    .btn:focus,
    .form-control:focus,
    .accordion-button:focus {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }

    /* Better contrast for links */
    a:not(.btn) {
        text-decoration: none;
    }

    a:not(.btn):hover {
        text-decoration: underline;
    }


    /* Disable hover effects on touch devices */
    @media (hover: none) and (pointer: coarse) {
        .course-card:hover,
        .skill-card:hover,
        .feature-benefit-card:hover,
        .benefit-card:hover {
            transform: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
    }
}

/* ===== TABLET OPTIMIZATIONS (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Moderate improvements for tablets */
    .course-hero-title {
        font-size: 2.8rem;
    }

    .course-hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ===== ENSURE DESKTOP DESIGN REMAINS UNCHANGED ===== */
@media (min-width: 1025px) {
    /* No changes - preserve original desktop design */
    .course-hero-section,
    .course-overview-section,
    .course-benefits-section,
    .what-youll-learn-section,
    .curriculum-section,
    .course-features-section,
    .testimonials-section,
    .faq-section,
    .final-cta-section {
        /* Original desktop styles preserved */
    }
}