/* Professional Blog Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Hero Banner */
.servicebanner {
    padding: 120px 0 80px;
    padding-top: 12%;
    position: relative;
    overflow: hidden;
    background-image: url(../img/Bg-3.png);
    background-size: cover;
    background-position: center;
}



.servheading {
    position: relative;
    z-index: 2;
}

.servheading h1 {
    color: rgb(56, 56, 56);
    font-weight: 700;
    letter-spacing: -0.35px;
    font-size: calc(3vw + 0.1rem);
    margin: 0;
}

/* Breadcrumb */
.bradcrum {
    padding: 1rem 0;
}

.dradvrmbx {
    display: flex;
    align-items: center;
    gap: 0rem;

}


.bradbxone i {
    color: #1961ad;
    font-size: 0.875rem;
}

.bradbxone a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bradbxone a:hover {
    color: black;
}

/* Main Blog Layout */
.blogcover {
    padding: 4rem 0;
    background: var(--bg-white);
}

.bloggridbx {
    display: flex;
    grid-template-columns: 1fr 320px;
    gap: 3rem;

    margin: 0 auto;
    padding: 0 1rem;
}

.col-md-12 {
    width: 100%;
}

/* Blog Grid - Enhanced Layout */
.blogcrdgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

/* Ensure grid items don't overflow */
.blogcrdgrid > * {
    min-width: 0;
    max-width: 100%;
}

/* Blog Layout Container */
.bloggingsecone {
    flex: 1;
    padding-right: 2rem;
}

.bloggingsecone .row {
    margin: 0 -1rem;
}

.bloggingsecone .col-md-6 {
    padding: 0 1rem;
    width: 47%;
    margin-bottom: 2rem;
    display: flex;
}

.bloggingsecone .blogcrdprntbx {
    width: 100%;
}

/* Blog Cards - Enhanced Professional Design */
.blogcrdprntbx {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    position: relative;
}

.blogcrdprntbx::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blogcrdprntbx:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.blogcrdprntbx:hover::before {
    opacity: 1;
}

img.blogcrdhead {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    background: var(--bg-light);
}

.blogcrdprntbx:hover img.blogcrdhead {
    transform: scale(1.1);
}

.blogcrdbody {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Blog Card Content Elements */
a.blogcrdcategory {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;

    margin-bottom: 0.75rem;
    width: fit-content;
}

a.blogcrdcategory:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

h2.blogcrdtitle {
    margin: 0 0 0.75rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
}

h2.blogcrdtitle a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

h2.blogcrdtitle a:hover {
    color: var(--primary-color);
}

p.blogcrdintro {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogcrdmeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

span.blogcrdauthor,
time.blogcrddate {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

span.blogcrdauthor {
    color: var(--text-secondary);
}

time.blogcrddate {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

time.blogcrddate::before {
    content: '📅';
    font-size: 0.75rem;
}

.bgtolbling {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blogdate p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.tagmanblog {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.blogsndsec h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.blogsndsec h5 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blogsndsec h5 a:hover {
    color: var(--primary-color);
}

.blogsndsec p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.lernmpreb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.lernmpreb a:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.lernmpreb a::after {
    content: '→';
    transition: transform 0.2s ease;
}

.lernmpreb a:hover::after {
    transform: translateX(2px);
}

/* Sidebar */
.bloggingsectwo {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.latestpostbx,
.categorybx {
    margin-bottom: 2.5rem;
}

.latestpostbx:last-child,
.categorybx:last-child {
    margin-bottom: 0;
}

.latestpothead,
.categoryhead {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h3.latestpothead::after,
h3.categoryhead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 1px;
}

.latestpbx {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.latestpbx:hover {
    background: var(--bg-white);
    margin: 0 -0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border-bottom: 1px solid transparent;
}

.latestpbx:last-child {
    border-bottom: none;
}

.latespotimg img {
    border-radius: var(--radius-sm);
    object-fit: cover;
    width: 60px;
    height: 60px;
}

.latespottext {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 500;
}

.categorypbx {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.categorytextdtl {
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.categorytextdtl:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

/* Pagination */
.paginationbxcover {
    padding: 3rem 0;
    background: var(--bg-light);
}

.pagibx {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pagibtns {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagibtns:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.pagibtns.acti {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bloggridbx {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .blogcrdgrid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .bloggridbx {
        flex-direction: column;
        gap: 2rem;
    }

    .bloggingsecone {
        padding-right: 0;
    }

    .bloggingsectwo {
        position: static;
        width: 100%;
        max-width: none;
    }
    
    .blogcrdgrid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .servicebanner {
        padding: 80px 0 60px;
        padding-top: 20%;
    }
    
    .servheading h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .blogcover {
        padding: 2rem 0;
    }

    .bloggridbx {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }

    .blogcrdgrid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bloggingsectwo {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .bloggingsecone .col-md-6 {
        width: 100%;
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .bloggingsecone .row {
        margin: 0;
    }
    
    img.blogcrdhead {
        height: 220px;
    }
    
    .dradvrmbx {
        gap: 0.2rem;
        flex-wrap: wrap;
    }
    
    .bradbxone {
        margin-right: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .servicebanner {
        padding: 60px 0 40px;
        padding-top: 27%;
    }
    
    .servheading h1 {
        font-size: 1.5rem;
    }
    
    .bradcrum {
     
        padding: 0.5rem 0;
    }
    
    .blogcover {
        padding: 1.5rem 0;
    }
    
    .bloggridbx {
        padding: 0 0.25rem;
    }

    .bgtolbling {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .blogcrdhead img,
    img.blogcrdhead {
        height: 200px;
    }

    .blogcrdbody {
        padding: 1rem;
    }

    .blogsndsec h5 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .blogsndsec p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .bloggingsectwo {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .latestpothead,
    .categoryhead {
        font-size: 1rem;
        text-align: center;
    }
    
    .latestpbx {
        padding: 0.5rem 0;
    }
    
    .latespotimg img {
        width: 50px;
        height: 50px;
    }
    
    .latespottext {
        font-size: 0.8rem;
    }
    
    .categorytextdtl {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .pagibx {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0 0.5rem;
    }
    
    .pagibtns {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .blogcrdgrid {
        gap: 1rem;
    }
    
    .blogcrdprntbx {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .blogcrdbody {
        padding: 0.875rem;
    }
    
    .blogsndsec h5 {
        font-size: 1rem;
    }
    
    .tagmanblog {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .lernmpreb a {
        font-size: 0.8rem;
    }
    
    .bloggingsectwo {
        padding: 0.75rem;
    }
}

@media (max-width: 360px) {
    .servheading h1 {
        font-size: 1.25rem;
    }
    
    .blogcrdhead img,
    img.blogcrdhead {
        height: 180px;
    }
    
    .blogcrdbody {
        padding: 0.75rem;
    }
    
    .blogsndsec h5 {
        font-size: 0.95rem;
    }
    
    .blogsndsec p {
        font-size: 0.8rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blogcrdprntbx {
    animation: fadeInUp 0.6s ease forwards;
}

.blogcrdprntbx:nth-child(2) {
    animation-delay: 0.1s;
}

.blogcrdprntbx:nth-child(3) {
    animation-delay: 0.2s;
}

.blogcrdprntbx:nth-child(4) {
    animation-delay: 0.3s;
}

/* Focus States for Accessibility */
.lernmpreb a:focus,
.categorytextdtl:focus,
.pagibtns:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .blogcrdprntbx:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .blogcrdprntbx:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .categorytextdtl:hover {
        transform: none;
    }
    
    .categorytextdtl:active {
        background: var(--primary-color);
        color: white;
    }
    
    .pagibtns:hover {
        transform: none;
    }
    
    .pagibtns:active {
        transform: scale(0.95);
    }
}

/* Improved container spacing for mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Print Styles */
@media print {

    .servicebanner,
    .bradcrum,
    .bloggingsectwo,
    .paginationbxcover {
        display: none;
    }

    .bloggridbx {
        grid-template-columns: 1fr;
    }

    .blogcrdprntbx {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Aut
hor Profile Styles */
.author-profile-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.author-profile-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.author-image {
    text-align: center;
}

.author-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-placeholder {
    width: 150px;
    height: 150px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 48px;
    color: #6c757d;
}

.author-info h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.author-bio {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-stats {
    margin-bottom: 20px;
}

.stat-item {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
}

.stat-item i {
    margin-right: 5px;
}

.author-social a {
    display: inline-block;
    background: #0077b5;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: #005885;
    transform: translateY(-2px);
}

.author-social i {
    margin-right: 8px;
}

.author-articles-section {
    padding: 40px 0;
}

.author-articles-section h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #6c757d;
    font-size: 18px;
}

.page-info {
    display: inline-block;
    padding: 10px 20px;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .author-profile-card {
        padding: 20px;
    }

    .author-image {
        margin-bottom: 20px;
    }

    .author-image img,
    .author-placeholder {
        width: 120px;
        height: 120px;
    }

    .author-info h2 {
        text-align: center;
        font-size: 24px;
    }

    .author-bio {
        text-align: center;
    }

    .author-stats,
    .author-social {
        text-align: center;
    }

    .author-articles-section h3 {
        font-size: 20px;
        
    }
}

/* Enhanced breadcrumb styling */


.bradbxone {
    display: inline-block;
    margin-right: 15px;
    color: #6c757d;
}

.bradbxone:last-child {
    color: #2c3e50;
    font-weight: 500;
}



.bradbxone a:hover {
    text-decoration: underline;
}

/* Addit
ional Blog Card Enhancements */
.blogcrdprntbx {
    position: relative;
    overflow: hidden;
}

.blogcrdprntbx::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.blogcrdprntbx:hover::after {
    left: 100%;
}

/* Blog Card Loading Animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blogcrdprntbx {
    animation: cardFadeIn 0.6s ease forwards;
}

.blogcrdprntbx:nth-child(1) {
    animation-delay: 0.1s;
}

.blogcrdprntbx:nth-child(2) {
    animation-delay: 0.2s;
}

.blogcrdprntbx:nth-child(3) {
    animation-delay: 0.3s;
}

.blogcrdprntbx:nth-child(4) {
    animation-delay: 0.4s;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .bloggingsecone {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .bloggingsecone .col-md-6 {
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .blogcrdprntbx {
        margin: 0 auto;
        max-width: 400px;
    }

    .blogcrdhead img {
        height: 200px;
    }

    .blogcrdbody {
        padding: 1.25rem;
    }

    .blogcrdtitle a {
        font-size: 1.125rem;
    }
}

/* Focus States for Accessibility */
.blogcrdprntbx:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.blogcrdcategory a:focus,
.blogcrdtitle a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .blogcrdprntbx {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .blogcrdprntbx:hover {
        transform: none;
    }
}

/* 
Blog Description Section */
.blog-description {
    background: var(--bg-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-intro-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.blog-intro-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .blog-description {
        padding: 1.5rem 0;
    }

    .blog-intro-text p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .bloggingsecone .col-md-6{
        width: 100%;
    }
    .bloggingsecone{
        padding-right: 0px!important;
    }
    .bloggingsectwo {
    width: 100%;
    flex-shrink: 0;
}
img.blogcrdhead
 {
    width: 100%;
    height: 218px;
 }
 .bloggingsecone .row {
    margin: 0 0rem;
}
.bloggingsectwo{
    width: 100%!important;
}
.servheading h1 {
    color: rgb(56, 56, 56);
    font-weight: 700;
    letter-spacing: -0.35px;
    font-size: 1.4rem;
    line-height: 1.1;
    margin: 0;
}
.dradvrmbx{
    gap: 0.1rem;
    flex-wrap: wrap;
    margin-right: 0px!important;
    display: flex;
}
}