/* Responsive Design Enhancements */

/* Mobile Navigation Styles */
@media screen and (max-width: 991px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .logo img {
        max-width: 180px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--color-primary-dark);
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 20px 0;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 0;
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        background-color: var(--color-primary);
        color: #fff;
    }
    
    .secondary-nav {
        margin-left: auto;
    }
    
    .secondary-nav .btn {
        display: none;
    }
}

/* Responsive Grid System */
@media screen and (max-width: 1200px) {
    .container {
        width: 95%;
        max-width: 1140px;
    }
}

@media screen and (max-width: 991px) {
    .row {
        flex-wrap: wrap;
    }
    
    .col-1-2,
    .col-1-3,
    .col-2-3,
    .col-1-4 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .col-1-2:last-child,
    .col-1-3:last-child,
    .col-2-3:last-child,
    .col-1-4:last-child {
        margin-bottom: 0;
    }
    
    /* Tablet-specific adjustments */
    .col-tablet-1-2 {
        width: 48%;
    }
    
    .col-tablet-1-2:nth-child(2n) {
        margin-left: 4%;
    }
    
    .col-tablet-1-2:nth-child(2n+1) {
        clear: left;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .service-card,
    .resource-card,
    .course-card,
    .team-card,
    .testimonial-card {
        height: 100%;
    }
    
    .col-1-3,
    .col-1-4 {
        width: 48%;
        margin-right: 4%;
    }
    
    .col-1-3:nth-child(2n),
    .col-1-4:nth-child(2n) {
        margin-right: 0;
    }
    
    .col-1-3:nth-child(3n),
    .col-1-4:nth-child(4n) {
        margin-right: 4%;
    }
    
    .col-1-3:nth-child(2n),
    .col-1-4:nth-child(2n) {
        margin-right: 0;
    }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    /* Hero Section */
    .hero {
        height: auto;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Cards and Grids */
    .service-card,
    .resource-card,
    .course-card,
    .team-card,
    .testimonial-card,
    .contact-card,
    .package-card,
    .membership-card {
        margin-bottom: 20px;
    }
    
    /* Form Elements */
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-row .form-group {
        width: 100%;
        margin-right: 0;
    }
    
    /* Cart and Checkout */
    .cart-header {
        display: none;
    }
    
    .cart-item {
        flex-direction: column;
        padding: 15px;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
    }
    
    .cart-item-product,
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-subtotal,
    .cart-item-action {
        width: 100%;
        padding: 5px 0;
        text-align: left;
    }
    
    .cart-item-price::before,
    .cart-item-quantity::before,
    .cart-item-subtotal::before {
        content: attr(data-title);
        font-weight: 600;
        margin-right: 5px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .coupon-section {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-bottom {
        margin-top: 20px;
        padding-top: 20px;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .container {
        width: 90%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .cta-buttons .btn {
        margin-right: 0;
    }
    
    /* Hero Section */
    .hero {
        min-height: 350px;
    }
    
    .hero-content {
        padding: 30px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Calendar */
    .calendar-table th,
    .calendar-table td {
        padding: 5px;
        font-size: 0.8rem;
    }
    
    .calendar-event {
        padding: 2px;
        font-size: 0.7rem;
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: 15px;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-author-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Responsive Utility Classes */
@media screen and (max-width: 767px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .mt-mobile-3 {
        margin-top: 15px !important;
    }
    
    .mb-mobile-3 {
        margin-bottom: 15px !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .hide-on-tablet {
        display: none !important;
    }
}

@media screen and (min-width: 992px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    header, footer, .cta-section, .secondary-nav, .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .col-1-2, .col-1-3, .col-2-3, .col-1-4 {
        width: 100%;
        margin-bottom: 20px;
    }
}
