/* Responsive Styles for Frontend Pages */

/* Header Responsive Styles */
@media (max-width: 991px) {
    .header-area .navbar-brand img {
        max-width: 120px !important;
        height: auto;
    }
    
    .header-area .navbar-collapse {
        margin-top: 20px !important;
        padding: 20px 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .header-area .menu_nav {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .header-area .menu_nav .nav-item {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .header-area .menu_nav .nav-link {
        padding: 12px 20px !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .header-area .search-bar {
        width: 100% !important;
        margin-top: 15px !important;
    }
    
    .header-area .search-bar .input-group {
        width: 100% !important;
    }
    
    .header-area .navbar-toggler {
        border: 2px solid rgba(0, 0, 0, 0.1);
        padding: 8px 12px;
    }
}

@media (max-width: 767px) {
    .header-area .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .header-area .navbar-brand {
        max-width: 100px !important;
    }
    
    .header-area .navbar-brand img {
        max-width: 100px !important;
    }
}

@media (max-width: 575px) {
    .header-area .navbar-brand {
        max-width: 80px !important;
    }
    
    .header-area .navbar-brand img {
        max-width: 80px !important;
    }
    
    .header-area .menu_nav .nav-link {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }
}

/* Hero Section Responsive Styles */
@media (max-width: 991px) {
    .hero-section {
        padding: 40px 30px !important;
        flex-direction: column !important;
    }
    
    .hero-section .col-sm-7,
    .hero-section .col-sm-5 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .hero-section h1 {
        font-size: 42px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }
    
    .hero-section p {
        font-size: 16px !important;
        margin-bottom: 25px !important;
    }
    
    /* Hide student circles on tablet and mobile */
    .student-circles-container,
    .hero-section .col-sm-5 {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 30px 20px !important;
    }
    
    .hero-section h1 {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-section p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    
    .hero-section [style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .hero-section [style*="display: flex"] > div {
        width: 100% !important;
    }
    
    .btn-gradient,
    .btn-outline {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        display: block !important;
        margin-bottom: 10px !important;
    }
    
    /* Hide student circles on mobile */
    .student-circles-container,
    .hero-section .col-sm-5 {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .hero-section {
        padding: 20px 15px !important;
    }
    
    .hero-section h1 {
        font-size: 28px !important;
    }
    
    .hero-section p {
        font-size: 14px !important;
    }
    
    /* Hide student circles on small mobile */
    .student-circles-container,
    .hero-section .col-sm-5 {
        display: none !important;
    }
}

/* Section Padding Responsive */
@media (max-width: 991px) {
    section[style*="padding: 100px 150px"],
    section[style*="padding: 60px 100px 100px 150px"] {
        padding: 60px 30px !important;
    }
}

@media (max-width: 767px) {
    section[style*="padding: 100px 150px"],
    section[style*="padding: 60px 100px 100px 150px"] {
        padding: 40px 20px !important;
    }
    
    section[style*="padding: 100px 150px"] h1,
    section[style*="padding: 100px 150px"] h2,
    section[style*="padding: 60px 100px 100px 150px"] h1 {
        font-size: 32px !important;
    }
    
    section[style*="padding: 100px 150px"] .col-lg-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 575px) {
    section[style*="padding: 100px 150px"],
    section[style*="padding: 60px 100px 100px 150px"] {
        padding: 30px 15px !important;
    }
    
    section[style*="padding: 100px 150px"] h1,
    section[style*="padding: 100px 150px"] h2,
    section[style*="padding: 60px 100px 100px 150px"] h1 {
        font-size: 24px !important;
    }
    
    section[style*="padding: 100px 150px"] h2 {
        font-size: 20px !important;
    }
    
    section[style*="padding: 100px 150px"] p {
        font-size: 14px !important;
    }
}

/* Footer Responsive Styles */
@media (max-width: 991px) {
    .footer_area .footer_inner {
        margin-bottom: 30px;
    }
    
    .footer_area .footer_inner > div {
        margin-bottom: 30px;
    }
    
    .footer_area .f_widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .footer_area {
        padding: 40px 0 !important;
    }
    
    .footer_area .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .footer_area .footer_inner > div {
        margin-bottom: 40px !important;
        text-align: center !important;
    }
    
    .footer_area .f_title h4 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .footer_area .f_widget ul {
        text-align: center !important;
    }
    
    .footer_area .f_widget ul li {
        margin-bottom: 8px !important;
    }
    
    .footer_area .single-footer-widget {
        text-align: center !important;
        margin-top: 30px !important;
    }
    
    .footer_area .copy_right_text {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .footer_area .social_widget {
        justify-content: center !important;
        display: flex !important;
    }
}

@media (max-width: 575px) {
    .footer_area {
        padding: 30px 0 !important;
    }
    
    .footer_area .f_title h4 {
        font-size: 16px !important;
    }
    
    .footer_area .f_widget ul li a {
        font-size: 14px !important;
    }
    
    .footer_area .copy_right_text p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    .footer_area .social_widget a {
        margin: 0 8px !important;
        font-size: 16px !important;
    }
}

/* BitApps Header Responsive Styles */
@media (max-width: 991px) {
    .bitopps-header {
        padding: 15px 20px !important;
        flex-wrap: wrap !important;
    }
    
    .bitopps-header .bitopps-logo img {
        max-width: 120px !important;
        height: auto !important;
    }
    
    .bitopps-nav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--dark-card) !important;
        flex-direction: column !important;
        padding: 20px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
        display: none !important;
        z-index: 9998 !important;
    }
    
    .bitopps-nav.show,
    .bitopps-nav.active {
        display: flex !important;
    }
    
    .bitopps-nav li {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .bitopps-nav li a {
        padding: 12px 20px !important;
        display: block !important;
    }
    
    .bitopps-header-actions {
        margin-left: auto !important;
    }
    
    .btn-get-started {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .bitopps-header {
        padding: 12px 15px !important;
    }
    
    .bitopps-header .bitopps-logo img {
        max-width: 100px !important;
    }
    
    .btn-get-started {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .theme-toggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
}

@media (max-width: 575px) {
    .bitopps-header .bitopps-logo img {
        max-width: 80px !important;
    }
    
    .bitopps-nav li a {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }
    
    .btn-get-started {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

/* BitApps Footer Responsive Styles */
@media (max-width: 991px) {
    .bitopps-footer .footer-content {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .bitopps-footer .footer-logo-section,
    .bitopps-footer .footer-links-section,
    .bitopps-footer .footer-contact-section {
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    .bitopps-footer {
        padding: 40px 20px !important;
    }
    
    .bitopps-footer .footer-links-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .bitopps-footer .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
}

@media (max-width: 575px) {
    .bitopps-footer {
        padding: 30px 15px !important;
    }
    
    .bitopps-footer h4 {
        font-size: 18px !important;
    }
    
    .bitopps-footer p,
    .bitopps-footer a {
        font-size: 14px !important;
    }
}

/* General Frontend Page Responsive Styles */
@media (max-width: 991px) {
    .container.box-1420 {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 767px) {
    body.client {
        font-size: 14px;
    }
    
    .section-gap-top {
        padding-top: 40px !important;
    }
    
    .section-gap {
        padding: 40px 0 !important;
    }
}

@media (max-width: 575px) {
    body.client {
        font-size: 13px;
    }
    
    .section-gap-top {
        padding-top: 30px !important;
    }
    
    .section-gap {
        padding: 30px 0 !important;
    }
}

/* Feature List Responsive */
@media (max-width: 767px) {
    .hero-section [style*="display: flex"][style*="gap: 30px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .hero-section [style*="display: flex"][style*="gap: 30px"] > div {
        width: 100% !important;
    }
}

/* Button Container Responsive */
@media (max-width: 767px) {
    .hero-section [style*="display: flex"][style*="gap: 20px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .hero-section [style*="display: flex"][style*="gap: 20px"] > a {
        width: 100% !important;
    }
}

/* Feature Cards Responsive - 2 per column */
@media (max-width: 991px) {
    /* Feature cards - 2 per column on tablet and mobile */
    .row.m-0[style*="gap: 30px"] {
        gap: 20px !important;
        justify-content: center !important;
    }
    
    .row.m-0 > .col-lg-3.col-md-6 {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        width: calc(50% - 10px) !important;
        padding: 0 10px !important;
        margin-bottom: 20px !important;
    }
    
    /* Make all row elements stack on tablet */
    .row.m-0 {
        margin: 0 !important;
    }
    
    .row.m-0 > [class*="col-"] {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 767px) {
    /* Feature cards - 2 per column on mobile */
    .row.m-0[style*="gap: 30px"] {
        gap: 15px !important;
    }
    
    .row.m-0 > .col-lg-3.col-md-6 {
        flex: 0 0 calc(50% - 7.5px) !important;
        max-width: calc(50% - 7.5px) !important;
        width: calc(50% - 7.5px) !important;
        padding: 0 8px !important;
        margin-bottom: 15px !important;
    }
    
    /* Reduce padding in feature cards on mobile */
    .row.m-0 > .col-lg-3.col-md-6 > div[style*="padding: 45px"] {
        padding: 35px 25px !important;
    }
    
    /* Force other columns to full width on mobile */
    .col-sm-7,
    .col-sm-6,
    .col-sm-5,
    .col-sm-4,
    .col-sm-3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    /* Center align text on mobile */
    .text-left {
        text-align: center !important;
    }
    
    /* Remove side padding from columns with inline styles */
    [class*="col-"][style*="padding-right"],
    [class*="col-"][style*="padding-left"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Make all headings responsive */
    h1[style*="font-size: 68px"],
    h1[style*="font-size: 64px"] {
        font-size: 32px !important;
        line-height: 1.3 !important;
    }
    
    h1[style*="font-size: 48px"] {
        font-size: 28px !important;
    }
    
    h2[style*="font-size: 36px"] {
        font-size: 24px !important;
    }
    
    h2[style*="font-size: 48px"] {
        font-size: 28px !important;
    }
    
    /* Make paragraphs responsive */
    p[style*="font-size: 20px"] {
        font-size: 16px !important;
    }
    
    p[style*="font-size: 18px"] {
        font-size: 15px !important;
    }
}

@media (max-width: 575px) {
    /* Feature cards - 2 per column on small mobile */
    .row.m-0[style*="gap: 30px"] {
        gap: 10px !important;
    }
    
    .row.m-0 > .col-lg-3.col-md-6 {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        padding: 0 5px !important;
        margin-bottom: 10px !important;
    }
    
    /* Reduce padding in feature cards on small mobile */
    .row.m-0 > .col-lg-3.col-md-6 > div[style*="padding: 45px"] {
        padding: 25px 15px !important;
    }
    
    /* Reduce icon size on small mobile */
    .row.m-0 > .col-lg-3.col-md-6 > div > div[style*="width: 70px"] {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 15px !important;
    }
    
    .row.m-0 > .col-lg-3.col-md-6 > div > div[style*="width: 70px"] i {
        font-size: 24px !important;
    }
    
    h1[style*="font-size: 68px"],
    h1[style*="font-size: 64px"] {
        font-size: 24px !important;
    }
    
    h1[style*="font-size: 48px"] {
        font-size: 22px !important;
    }
    
    h2[style*="font-size: 36px"] {
        font-size: 20px !important;
    }
    
    h2[style*="font-size: 48px"] {
        font-size: 22px !important;
    }
    
    /* Feature card headings */
    .row.m-0 h3[style*="font-size: 24px"] {
        font-size: 18px !important;
    }
    
    /* Feature card text */
    .row.m-0 p[style*="font-size: 16px"] {
        font-size: 13px !important;
    }
    
    p[style*="font-size: 20px"] {
        font-size: 14px !important;
    }
    
    p[style*="font-size: 18px"] {
        font-size: 14px !important;
    }
}
