/**
 * ColdStorage Responsive Design System
 * Modern responsive CSS for all devices
 * Version: 1.0
 * Author: ColdStorage Team
 */

/* ===== RESPONSIVE BREAKPOINTS ===== */
:root {
    /* Breakpoint variables */
    --breakpoint-xs: 480px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
    
    /* Responsive spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Responsive typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
}

/* ===== MOBILE FIRST RESPONSIVE UTILITIES ===== */

/* Extra Small Devices (phones, 0px and up) */
@media (max-width: 479px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography adjustments */
    .display-1 { font-size: 2.5rem !important; }
    .display-2 { font-size: 2rem !important; }
    .display-3 { font-size: 1.75rem !important; }
    .display-4 { font-size: 1.5rem !important; }
    .display-5 { font-size: 1.25rem !important; }
    .display-6 { font-size: 1.125rem !important; }
    
    /* Spacing utilities */
    .p-xs-1 { padding: var(--spacing-xs) !important; }
    .p-xs-2 { padding: var(--spacing-sm) !important; }
    .p-xs-3 { padding: var(--spacing-md) !important; }
    .m-xs-1 { margin: var(--spacing-xs) !important; }
    .m-xs-2 { margin: var(--spacing-sm) !important; }
    .m-xs-3 { margin: var(--spacing-md) !important; }
    
    /* Hide elements on extra small screens */
    .d-xs-none { display: none !important; }
    .d-xs-block { display: block !important; }
    .d-xs-flex { display: flex !important; }
}

/* Small Devices (landscape phones, 480px and up) */
@media (min-width: 480px) and (max-width: 575px) {
    .container {
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Grid adjustments */
    .row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    
    .col-sm-6 { width: 50%; }
    .col-sm-12 { width: 100%; }
}

/* Medium Devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Navigation adjustments */
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
    }
    
    /* Card layouts */
    .card-deck .card {
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Enhanced spacing */
    .py-md-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-md-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}

/* Extra Large Devices (large desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

/* XXL Devices (larger desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ===== NAVBAR RESPONSIVE DESIGN ===== */

/* Mobile navbar (0px to 991px) */
@media (max-width: 991px) {
    .navbar {
        min-height: 50px;
        padding: 0.25rem 0;
    }
    
    .navbar.scrolled {
        min-height: 45px;
        padding: 0.15rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
        padding: 0.15rem 0;
    }
    
    .brand-logo {
        height: 1.75rem;
        margin-right: 0.4rem;
    }
    
    .navbar-nav {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(37, 99, 235, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1.25rem !important;
        margin: 0.25rem 0.5rem;
        border-radius: 8px;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .navbar-toggler {
        width: 38px;
        height: 32px;
        padding: 0.25rem 0.5rem;
    }
}

/* Tablet navbar adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
}

/* Mobile landscape specific */
@media (max-width: 767px) and (orientation: landscape) {
    .navbar {
        min-height: 45px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .brand-logo {
        height: 1.5rem;
    }
}

/* ===== HERO SECTION RESPONSIVE ===== */

/* Mobile hero */
@media (max-width: 767px) {
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
        margin-top: 50px;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
        text-align: center;
    }
}

/* Tablet hero */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: 80vh;
        margin-top: 55px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
}

/* Desktop hero */
@media (min-width: 992px) {
    .hero-section {
        margin-top: 60px;
    }
}

/* ===== CARD LAYOUTS RESPONSIVE ===== */

/* Mobile cards */
@media (max-width: 575px) {
    .product-card,
    .feature-card,
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
}

/* Tablet cards */
@media (min-width: 576px) and (max-width: 991px) {
    .product-card,
    .feature-card,
    .project-card {
        height: auto;
        margin-bottom: 1.5rem;
    }
}

/* ===== CONTENT SPACING RESPONSIVE ===== */

/* Mobile spacing */
@media (max-width: 767px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* ===== BUTTON RESPONSIVE ===== */

/* Mobile buttons */
@media (max-width: 575px) {
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        border-radius: 8px !important;
    }
}

/* ===== FOOTER RESPONSIVE ===== */

/* Mobile footer */
@media (max-width: 767px) {
    footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .social-media-section {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

/* ===== ANIMATION RESPONSIVE ===== */

/* Disable animations on mobile for performance */
@media (max-width: 767px) {
    .feature-card:hover,
    .product-card:hover,
    .project-card:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .navbar {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== UTILITY CLASSES ===== */

/* Responsive display utilities */
.d-mobile-none { display: block; }
.d-mobile-block { display: none; }

@media (max-width: 767px) {
    .d-mobile-none { display: none !important; }
    .d-mobile-block { display: block !important; }
    .d-mobile-flex { display: flex !important; }
}

/* Responsive text alignment */
@media (max-width: 767px) {
    .text-mobile-center { text-align: center !important; }
    .text-mobile-left { text-align: left !important; }
}

/* Responsive margins and padding */
@media (max-width: 767px) {
    .p-mobile-2 { padding: 0.5rem !important; }
    .p-mobile-3 { padding: 1rem !important; }
    .m-mobile-2 { margin: 0.5rem !important; }
    .m-mobile-3 { margin: 1rem !important; }
}

/* ===== ACCESSIBILITY RESPONSIVE ===== */

/* High contrast mode */
@media (prefers-contrast: high) {
    .navbar {
        background: rgba(255, 255, 255, 1) !important;
        border-bottom: 2px solid #000;
    }
    
    .navbar-nav .nav-link {
        color: #000 !important;
        border: 1px solid #000;
    }
    
    .btn {
        border: 2px solid #000 !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-deep-blue: #e2e8f0;
        --color-steel-blue: #60a5fa;
        --color-frost-white: #1a202c;
    }
    
    .navbar {
        background: rgba(26, 32, 44, 0.9) !important;
        border-bottom-color: rgba(96, 165, 250, 0.2);
    }
    
    .navbar-nav .nav-link {
        color: #e2e8f0 !important;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
}

/* ===== BLOG STYLES ===== */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 2rem;
}

.blog-hero-content {
    text-align: center;
}

.blog-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 0;
}

/* Blog Filter Section (At Top) */
.blog-filter-section {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 2rem 0;
}

.blog-filter-bar {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-filter-bar form {
    margin: 0;
}

.blog-search-input {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.blog-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Featured Post Section */
.blog-featured-section {
    padding: 3rem 0 1rem;
}

.blog-featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.blog-featured-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f4f8;
}

.blog-featured-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.blog-featured-card:hover .blog-featured-img {
    transform: scale(1.05);
}

.blog-featured-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-featured-content {
    padding: 2.5rem;
}

.blog-featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
    line-height: 1.3;
}

.blog-featured-excerpt {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-featured-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-featured-meta span {
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Section */
.blog-content-section {
    padding: 3rem 0;
    background: white;
}

.blog-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.blog-section-header p {
    font-size: 1.1rem;
    color: #718096;
}

.blog-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

/* Blog Cards */
.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.blog-card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    height: 280px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.08);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 4rem;
    opacity: 0.3;
}

.blog-card .card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-badge {
    display: inline-block;
    background: #edf2f7;
    color: #667eea;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 0;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
}

.blog-card-title a:hover {
    color: #667eea;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s, color 0.3s;
}

.blog-read-more:hover {
    color: #764ba2;
    gap: 0.75rem;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.blog-sidebar-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.blog-sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-sidebar-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.blog-sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.blog-sidebar-post-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-sidebar-post-placeholder {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.3;
}

.blog-sidebar-post-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-sidebar-post-content h4 a {
    text-decoration: none;
    color: inherit;
}

.blog-sidebar-post-content h4 a:hover {
    color: #667eea;
}

.blog-sidebar-post-date {
    font-size: 0.75rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
}

.blog-category-tag {
    display: inline-block;
    background: #edf2f7;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #cbd5e0;
}

.blog-category-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Single Post View */
.blog-single-header {
    margin-bottom: 2rem;
}

.blog-single-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    margin: 1.5rem 0;
}

.blog-single-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.blog-single-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #718096;
    font-size: 0.95rem;
}

.blog-single-meta-item i {
    color: #667eea;
}

.blog-single-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f4f8;
}

.blog-single-image img,
.blog-single-image video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.blog-single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 2rem;
}

.blog-single-content p {
    margin-bottom: 1.5rem;
}

/* Share Section */
.blog-share {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    border-left: 4px solid #667eea;
}

.blog-share-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: white;
    color: #667eea;
    text-decoration: none;
    margin-right: 0.75rem;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.blog-share-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.blog-share-btn.facebook:hover { background: #1877f2; color: white; }
.blog-share-btn.twitter:hover { background: #1da1f2; color: white; }
.blog-share-btn.linkedin:hover { background: #0a66c2; color: white; }

/* Related Posts */
.blog-related {
    background: #f7fafc;
    padding: 3rem 0;
    margin-top: 3rem;
}

.blog-related-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* CTA Section */
.blog-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    margin-top: 3rem;
}

.blog-cta-content {
    text-align: center;
    color: white;
}

.blog-cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-cta-content p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #667eea;
    padding: 0.85rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid white;
}

.blog-cta-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 3rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
}

.blog-empty-state i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
    display: block;
}

.blog-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.blog-empty-state p {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb-custom {
    background: transparent;
    margin-bottom: 0;
    padding: 0 0 1.5rem 0;
}

.breadcrumb-custom .breadcrumb-item {
    margin-right: 0.25rem;
}

.breadcrumb-custom .breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #764ba2;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #718096;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e0;
}

/* ===== RESPONSIVE BLOG STYLES ===== */

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .blog-featured-content {
        padding: 2rem;
    }
    
    .blog-featured-title {
        font-size: 1.75rem;
    }
}

/* Tablets and down */
@media (max-width: 767px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-hero-content p {
        font-size: 1rem;
    }
    
    .blog-featured-card .row {
        flex-direction: column;
    }
    
    .blog-featured-img {
        height: 250px;
    }
    
    .blog-featured-content {
        padding: 1.5rem;
    }
    
    .blog-featured-title {
        font-size: 1.5rem;
    }
    
    .blog-filter-bar {
        padding: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-single-title {
        font-size: 2rem;
    }
    
    .blog-sidebar {
        margin-top: 2rem;
    }
    
    .blog-sidebar-post-img {
        width: 60px;
        height: 60px;
    }
}

/* Mobile phones */
@media (max-width: 575px) {
    .blog-filter-bar form .row {
        flex-direction: column;
    }
    
    .blog-filter-bar form .col-lg-4,
    .blog-filter-bar form .col-lg-3,
    .blog-filter-bar form .col-lg-2 {
        width: 100%;
    }
    
    .blog-featured-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-section-title {
        font-size: 1.5rem;
    }
    
    .blog-share {
        padding: 1.5rem;
    }
    
    .blog-cta-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-cta-content p {
        font-size: 1rem;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .navbar,
    .footer,
    .btn,
    .navbar-toggler {
        display: none !important;
    }
    
    .hero-section {
        margin-top: 0 !important;
        min-height: auto !important;
        padding: 1rem 0 !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
    }
}