/* Blog Page Specific Styles */

/* Blog Grid Layout */
.blogs-sec .blogs {
    width: 100%;
    margin-top: 4rem;
}

.blogs-sec .blogCard {
    transition: all 0.3s ease;
}

.blogs-sec .blogCard:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blogs-grid {
    margin-top: 1rem;
}

.blogs-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.blogs-grid-3col .blogCard {
    height: 350px;
}

.blog-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-card h4 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.category-card h4 i {
    margin-right: 0.5rem;
}

.category-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.5;
}

/* Blog Section Title */
.blogs-sec .titleContainer {
    text-align: center;
    margin-bottom: 3rem;
}

.blogs-sec .titleContainer .title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.blogs-sec .titleContainer .title .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    position: absolute;
    top: -15px;
    left: -20px;
    background: var(--card-bg);
    padding: 2px 8px;
    border-radius: 3px;
}

/* Professional Responsive Design for Blog Page */

@media (max-width: 1200px) {
    .blogs-sec .blogs {
        margin-top: 3rem;
    }
    
    .blogs-grid-3col {
        gap: 1.5rem;
    }
    
    .blogs-grid-3col .blogCard {
        height: 320px;
    }
}

@media (max-width: 1024px) {
    .blogs-sec .blogs {
        margin-top: 2.5rem;
    }
    
    .blogs-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .blogs-grid-3col .blogCard {
        height: 350px;
    }
    
    .blog-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.3rem;
    }
}

@media (max-width: 768px) {
    .blogs-sec {
        padding: 0;
        margin-top: 2rem;
    }
    
    .blogs-sec .blogs {
        margin-top: 2rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    /* Main blog card mobile optimization - FIX TITLE SIZE */
    .blogs-sec .blogMain {
        height: 380px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .blogs-sec .blogMain .contentArea {
        padding: 1.5rem;
    }
    
    .blogs-sec .blogMain .contentArea .textArea .title {
        font-size: 1.8rem !important; /* Override index.css 3rem */
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .blogs-sec .blogMain .contentArea .textArea .title .subtitle {
        font-size: 0.8rem !important; /* Override index.css 1rem */
        padding: 2px 8px;
        top: -10px !important;
        left: -12px !important;
        border-radius: 3px;
    }
    
    .blogs-sec .blogMain .contentArea .textArea p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Regular blog cards mobile - FIX TITLE OVERLAP */
    .blogs-sec .blogGrid {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .blogs-sec .blogGrid .blogCard {
        height: 280px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }
    
    .blogs-sec .blogGrid .blogCard:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea {
        padding: 1.2rem;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea .title {
        font-size: 1.3rem !important; /* Override index.css 2rem */
        line-height: 1.3;
        margin-bottom: 0.8rem;
        position: relative;
        padding-top: 1rem; /* Add space for subtitle */
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea .title .subtitle {
        font-size: 0.7rem !important; /* Override index.css 0.9rem */
        padding: 1px 6px;
        top: -12px !important; /* Position above title */
        left: -10px !important;
        border-radius: 2px;
        position: absolute;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* 3 column grid mobile */
    .blogs-grid-3col {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .blogs-grid-3col .blogCard {
        height: 300px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    }
    
    .blogs-grid-3col .blogCard .contentArea {
        padding: 1.2rem;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea .title {
        font-size: 1.2rem !important; /* Override index.css */
        line-height: 1.3;
        margin-bottom: 0.8rem;
        position: relative;
        padding-top: 1rem; /* Space for subtitle */
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea .title .subtitle {
        font-size: 0.7rem !important; /* Override index.css */
        padding: 1px 6px;
        top: -12px !important; /* Above title */
        left: -10px !important;
        border-radius: 2px;
        position: absolute;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Categories mobile */
    .blog-categories {
        margin-top: 1.5rem;
        gap: 0.8rem;
    }
    
    .category-card {
        padding: 1.2rem;
        border-radius: 8px;
    }
    
    .category-card h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .category-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Title container mobile */
    .blogs-sec .titleContainer {
        margin-bottom: 2rem;
    }
    
    .blogs-sec .titleContainer .title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .blogs-sec .titleContainer .title .subtitle {
        font-size: 1rem;
        top: -12px;
        left: -15px;
        padding: 1px 6px;
    }
    
    /* Blog buttons mobile */
    .blogs-sec .blogCard .btn {
        width: 35px;
        height: 35px;
        right: 1rem;
        bottom: 1rem;
    }
    
    .blogs-sec .blogMain .btn {
        width: 45px;
        height: 45px;
        right: 1.5rem;
        bottom: 1.5rem;
    }
    
    .blogs-sec .blogCard .btn i {
        font-size: 0.9rem;
    }
    
    .blogs-sec .blogMain .btn i {
        font-size: 1.1rem;
    }
    
    /* Categories chips mobile */
    .blogs-sec .blogCard .contentArea .cats {
        margin-bottom: 0.8rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .blogs-sec .blogCard .contentArea .cats .cat {
        font-size: 0.7rem;
        padding: 3px 8px;
        border-radius: 4px;
        background: var(--primary-color);
        color: var(--text-light);
        font-weight: 500;
    }
}

@media (max-width: 576px) {
    .blogs-sec .blogs {
        padding: 0 0.5rem;
        margin-top: 1.5rem;
    }
    
    /* Main blog card small mobile */
    .blogs-sec .blogMain {
        height: 350px;
    }
    
    .blogs-sec .blogMain .contentArea {
        padding: 1.2rem;
    }
    
    .blogs-sec .blogMain .contentArea .textArea .title {
        font-size: 1.6rem !important; /* Override index.css */
        line-height: 1.2;
    }
    
    .blogs-sec .blogMain .contentArea .textArea .title .subtitle {
        font-size: 0.75rem !important;
        top: -8px !important;
        left: -10px !important;
    }
    
    /* Grid cards small mobile */
    .blogs-sec .blogGrid .blogCard {
        height: 260px;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea {
        padding: 1rem;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea .title {
        font-size: 1.2rem !important; /* Override index.css */
        margin-bottom: 0.6rem;
        padding-top: 0.8rem; /* Less space for subtitle */
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea .title .subtitle {
        top: -10px !important; /* Adjust position */
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* 3 column grid small mobile */
    .blogs-grid-3col .blogCard {
        height: 280px;
    }
    
    .blogs-grid-3col .blogCard .contentArea {
        padding: 1rem;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea .title {
        font-size: 1.1rem !important; /* Override index.css */
        margin-bottom: 0.6rem;
        padding-top: 0.8rem;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea .title .subtitle {
        top: -10px !important;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Button adjustments */
    .blogs-sec .blogCard .btn {
        width: 32px;
        height: 32px;
    }
    
    .blogs-sec .blogMain .btn {
        width: 40px;
        height: 40px;
    }
    
    .blogs-sec .blogCard .btn i {
        font-size: 0.8rem;
    }
    
    .blogs-sec .blogMain .btn i {
        font-size: 1rem;
    }
    
    /* Categories small mobile */
    .category-card {
        padding: 1rem;
    }
    
    .category-card h4 {
        font-size: 0.95rem;
    }
    
    .category-card p {
        font-size: 0.8rem;
    }
    
    /* Title container small mobile */
    .blogs-sec .titleContainer .title {
        font-size: 1.8rem;
    }
    
    .blogs-sec .titleContainer .title .subtitle {
        font-size: 0.9rem;
        top: -10px;
        left: -12px;
    }
}

@media (max-width: 480px) {
    .blogs-sec .blogs {
        padding: 0 0.25rem;
        margin-top: 1rem;
    }
    
    /* Extra small mobile adjustments */
    .blogs-sec .blogMain {
        height: 320px;
        margin-bottom: 1rem;
    }
    
    .blogs-sec .blogMain .contentArea {
        padding: 1rem;
    }
    
    .blogs-sec .blogMain .contentArea .textArea .title {
        font-size: 1.4rem !important; /* Override index.css */
        line-height: 1.2;
        padding-top: 0.8rem;
    }
    
    .blogs-sec .blogMain .contentArea .textArea .title .subtitle {
        font-size: 0.7rem !important;
        top: -8px !important;
    }
    
    .blogs-sec .blogMain .contentArea .textArea p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Grid mobile extra small */
    .blogs-sec .blogGrid {
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .blogs-sec .blogGrid .blogCard {
        height: 240px;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea {
        padding: 0.8rem;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea .title {
        font-size: 1.1rem !important; /* Override index.css */
        margin-bottom: 0.5rem;
        padding-top: 0.7rem;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea .title .subtitle {
        top: -8px !important;
        font-size: 0.65rem !important;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* 3 column extra small */
    .blogs-grid-3col {
        gap: 1rem;
    }
    
    .blogs-grid-3col .blogCard {
        height: 260px;
    }
    
    .blogs-grid-3col .blogCard .contentArea {
        padding: 0.8rem;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea .title {
        font-size: 1rem !important; /* Override index.css */
        margin-bottom: 0.5rem;
        line-height: 1.2;
        padding-top: 0.7rem;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea .title .subtitle {
        top: -8px !important;
        font-size: 0.6rem !important;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Categories extra small */
    .blogs-sec .blogCard .contentArea .cats .cat {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    /* Button extra small */
    .blogs-sec .blogCard .btn {
        width: 28px;
        height: 28px;
        right: 0.8rem;
        bottom: 0.8rem;
    }
    
    .blogs-sec .blogMain .btn {
        width: 36px;
        height: 36px;
        right: 1rem;
        bottom: 1rem;
    }
    
    .blogs-sec .blogCard .btn i {
        font-size: 0.7rem;
    }
    
    .blogs-sec .blogMain .btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 350px) {
    .blogs-sec .blogs {
        padding: 0;
        margin-top: 1rem;
    }
    
    /* Ultra small mobile */
    .blogs-sec .blogMain {
        height: 300px;
    }
    
    .blogs-sec .blogMain .contentArea {
        padding: 0.8rem;
    }
    
    .blogs-sec .blogMain .contentArea .textArea .title {
        font-size: 1.2rem !important; /* Override index.css */
        line-height: 1.1;
        padding-top: 0.7rem;
    }
    
    .blogs-sec .blogMain .contentArea .textArea .title .subtitle {
        font-size: 0.7rem !important;
        padding: 1px 5px;
        top: -6px !important;
        left: -8px !important;
    }
    
    .blogs-sec .blogMain .contentArea .textArea p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Grid ultra small */
    .blogs-sec .blogGrid .blogCard {
        height: 220px;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea {
        padding: 0.7rem;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea .title {
        font-size: 1rem !important; /* Override index.css */
        margin-bottom: 0.4rem;
        padding-top: 0.6rem;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea .title .subtitle {
        top: -6px !important;
        font-size: 0.6rem !important;
    }
    
    .blogs-sec .blogGrid .blogCard .contentArea .textArea p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    /* 3 column ultra small */
    .blogs-grid-3col .blogCard {
        height: 240px;
    }
    
    .blogs-grid-3col .blogCard .contentArea {
        padding: 0.7rem;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea .title {
        font-size: 0.9rem !important; /* Override index.css */
        margin-bottom: 0.4rem;
        line-height: 1.1;
        padding-top: 0.6rem;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea .title .subtitle {
        font-size: 0.6rem !important;
        padding: 1px 4px;
        top: -5px !important;
        left: -6px !important;
    }
    
    .blogs-grid-3col .blogCard .contentArea .textArea p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    /* Categories ultra small */
    .category-card {
        padding: 0.8rem;
    }
    
    .category-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .category-card h4 i {
        margin-right: 0.3rem;
        font-size: 0.8rem;
    }
    
    .category-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Title container ultra small */
    .blogs-sec .titleContainer .title {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .blogs-sec .titleContainer .title .subtitle {
        font-size: 0.8rem;
        top: -8px;
        left: -10px;
    }
}
