/* ===== RESPONSIVE DESIGN GLOBAL ===== */

/* Breakpoints */
/* xs: 0-575px */
/* sm: 576-767px */
/* md: 768-991px */
/* lg: 992-1199px */
/* xl: 1200px+ */

/* ===== MOBILE FIRST APPROACH ===== */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        padding: 0 2rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
    }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE ===== */

/* Hide/Show elements based on screen size */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }

@media (max-width: 575.98px) {
    .d-xs-none { display: none !important; }
    .d-xs-block { display: block !important; }
    .d-xs-flex { display: flex !important; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
}

/* Text alignment responsive */
@media (max-width: 767.98px) {
    .text-center-mobile { text-align: center !important; }
    .text-left-mobile { text-align: left !important; }
}

/* Spacing responsive */
@media (max-width: 767.98px) {
    .p-mobile { padding: 1rem !important; }
    .px-mobile { padding-left: 1rem !important; padding-right: 1rem !important; }
    .py-mobile { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .m-mobile { margin: 1rem !important; }
    .mx-mobile { margin-left: 1rem !important; margin-right: 1rem !important; }
    .my-mobile { margin-top: 1rem !important; margin-bottom: 1rem !important; }
}

/* Flexbox responsive utilities */
@media (max-width: 767.98px) {
    .flex-column-mobile { flex-direction: column !important; }
    .justify-center-mobile { justify-content: center !important; }
    .align-center-mobile { align-items: center !important; }
}

/* Width responsive utilities */
@media (max-width: 767.98px) {
    .w-100-mobile { width: 100% !important; }
    .w-auto-mobile { width: auto !important; }
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    
    .no-print {
        display: none !important;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    @page {
        margin: 0.5in;
    }
} 