/* 1. CSS VARIABLES (Centralized Control) */
:root {
    --brand-primary: #19a7d9;
    --brand-secondary: #1cb5eb;
    --color-secondary: #1e1b4b;
    --bg-deep: #0f172a;
    --bg-surface: #ffffff;
    --bg-soft: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --accent-green: #22c55e;
    
    --radius-main: 16px;
    --radius-pill: 50px;
    --radius-sm: 8px;
    --radius-input: 12px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-search: 0 10px 30px rgba(0,0,0,0.2);
    
    --container-width: 1200px;
    --inner-container: 1170px;
    
    --grad-hero: linear-gradient(135deg, var(--bg-deep) 0%, var(--color-secondary) 100%);
    --grad-brand: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    --border-footer: #19a7db40;
}

/* 2. BASE RESET & GLOBAL STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a, a:hover, a:focus, a:active { text-decoration: none; }
.wp-block-post-date.has-small-font-size{ display: none !important;}
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: 100%; }

.has-global-padding { padding: 0 !important; margin: 0 !important; } 
.has-global-padding > .alignfull { margin-left: 0 !important; margin-right: 0 !important; }

img { max-width: 100% !important; width: auto !important; }

.container, .has-global-padding > .alignfull.container { 
    max-width: var(--inner-container) !important; 
    margin: auto !important; 
    width: auto; 
    padding: 0 15px !important; 
}

/* 3. HEADER & NAVIGATION */
header { border-bottom: 1px solid #2b303b10; background-color: var(--bg-surface);  }
header .header-flex { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 !important;}
header .header-flex .logo { width: 120px; margin-left: 0 !important; }
header .btn-enroll { margin-left: 20px; }

.nav-wrapper { display: flex; justify-content: flex-end; }
.nav-list { list-style: none; margin: 0; padding: 0; align-items: center; gap: 8px; }
.nav-list li{ display: none;}
.nav-list li:last-child{ display: block;}
.nav-link { text-decoration: none; color: rgba(0, 0, 0, 0.7); transition: color 0.3s ease; }
.nav-link:hover { color: #000; }

.btn-enroll {
    display: inline-block;
    padding: 8px 20px;
    background: var(--grad-brand);
    color: #fff !important;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}
.btn-enroll:hover { opacity: 0.9; }

/* 4. BLOG HERO SECTION */
.blog-hero {
    background: var(--grad-hero);
    padding: 6rem 2rem !important;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-container {
    max-width: 500px;
    margin: 0 auto !important;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-input);
    border: none;
    font-size: 1rem;
    box-shadow: var(--shadow-search);
    outline: none;
}

/* 5. CATEGORY FILTER */
.category-scroll ul {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.category-scroll ul li { list-style: none; }

.category-scroll ul li a {
    padding: 8px 18px; 
    display: inline-block;
    background: white;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid var(--border-light, rgba(0,0,0,0.05));
    white-space: nowrap;
    transition: all 0.3s; 
    text-decoration: none;
}

.category-scroll ul li.current-cat a{ background: var(--grad-brand); color: white;}

.category-scroll ul .tag-pill.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* 6. MAIN CONTENT LAYOUT */
.main-layout {
    display: flex; 
    gap: 2rem;
    padding: 0 2rem;
    position: relative;
}

.blog-feed { width: 75%; }
.sidebar { width: 25%; }
.blog-grid-sec { margin-top: -55px !important; padding-bottom: 50px !important; }

/* 7. BLOG CARDS */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-card li {
    background: var(--bg-surface);
    border-radius: var(--radius-main);
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.tech-card li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image-box {
    background: #e2e8f0;
    position: relative;
    max-height: 220px; 
    width: 35%;
}

.card-image-box figure { margin-top: 0 !important; height: 100%; }

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: fill !important;
}

.difficulty-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(255,255,255,0.9);
    padding: 4px 12px !important;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-primary); 
    z-index: 99; 
    max-width: 95%;
}

.difficulty-badge > div {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
}

.difficulty-badge > div a { display: inline; }

.card-content {
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column; 
    width: 65%;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.card-meta .wp-block-post-date.has-small-font-size{ display: block !important;}

.card-meta > div { margin-left: 0 !important; margin-top: 0 !important; }
.card-meta > div time:before { 
    content: '\f073'; 
    display: inline-block; 
    font-size: 14px; 
    font-family: "Font Awesome 5 Free"; 
    margin-right: 4px; 
    color: var(--text-muted); 
}

.card-title, .card-title a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4; 
}

.card-title { margin-bottom: 0; margin-top: 2px; margin-left: 0 !important; }

.card-title a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; 
    margin-top: 10px;
}

.card-footer {
    margin-top: 14px !important;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    background-color: transparent; 
    border: none !important;
}

.card-footer a { font-size: 16px; color: var(--brand-primary); font-weight: 500; }
.card-footer a:after { 
    content: '\f061'; 
    display: inline-block; 
    font-size: 14px; 
    font-family: "Font Awesome 5 Free"; 
    margin-left: 4px; 
    color: var(--brand-primary); 
    font-weight: 900; 
}

.card-footer .auther-dv { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.card-footer .auther-dv .auther-img { 
    background-color: var(--color-secondary); 
    height: 30px; 
    width: 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    border-radius: 50%; 
}
.card-footer .auther-dv .auther-img > div { font-size: 0; margin-top: 1px; }
.card-footer .auther-dv .auther-img > div::first-letter { font-size: 18px; }
.card-footer > div, .card-footer > a { margin: 0 !important; }

.author-box { display: flex; align-items: center; gap: 10px; }
.author-box img { width: 32px; height: 32px; border-radius: 50%; background: #ddd; }
.author-name { font-size: 0.85rem; font-weight: 600; }

nav[aria-label="Pagination"] { justify-content: center; }

/* 8. SIDEBAR - COURSE PROMO */
.course-promo { 
    background: var(--grad-brand); 
    color: white;
    position: sticky; 
    top: 0;
    overflow: hidden; 
    padding: 22px !important; 
    border-radius: 12px;
}
.blog-grid-sec .course-promo{ margin-top: 10px !important;}

.course-promo h6 { font-size: 0.7rem; font-weight: 800; opacity: 0.8; margin: 0; }
.course-promo h4 { font-size: 25px; margin-bottom: 8px; position: relative; z-index: 1; margin-top: 6px; }
.course-promo p { font-size: 14px; opacity: 0.9; margin-top: 0; }
.course-promo h2 { font-size: 1.5rem; font-weight: 800; margin: 15px 0; display: block; }
.course-promo .btn-course { 
    background: var(--color-secondary);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.course-promo .course-promo-inr { position: relative; z-index: 99; }
.course-promo i { color: #fff; opacity: .4; font-size: 80px; }
.course-promo .course-icon { position: absolute; z-index: 9; right: 0; bottom: 0; }

/* 9. MAIN FOOTER */
.main-footer {
    background: var(--grad-hero);
    color: #fff;
    padding: 40px 0 0;
    font-family: sans-serif;
}

.main-footer .foot-logo { width: 220px; margin: auto; }
.footer-container { max-width: 1152px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.footer-logo-section { margin-bottom: 24px; }
.logo-wrapper { display: flex; align-items: center; gap: 8px; }

.logo-icon { 
    width: 40px; height: 40px; background-color: #2563eb; color: white; 
    border-radius: 8px; display: flex; align-items: center; justify-content: center; 
}
.logo-text { font-size: 24px; font-weight: 700; color: #111827; letter-spacing: -0.025em; }

.footer-menu { 
    list-style: none; padding: 0; margin: 0 0 32px 0; 
    display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; 
}
.footer-menu a { text-decoration: none; color: inherit; font-weight: 500; transition: color 0.2s; color: #ffffff98; }
.footer-menu a:hover { color: #fff; }

.footer-divider { width: 100%; height: 1px; background-color: #ffffff10; margin-bottom: 0; }

.footer-bottom { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 12px 0; }
.copyright-text { font-size: 14px; color: #6b7280; margin: 0; }
.copyright-text a{ color: #6b7280; transition: .5s;}
.copyright-text a:hover{ color: #fff;}
.social-icons { display: flex; gap: 20px; }
.social-link { color: #9ca3af; transition: color 0.2s; }
.social-link.facebook:hover { color: var(--brand-primary); }
.social-link.instagram:hover { color: var(--brand-primary); }
.social-link.twitter:hover { color: var(--brand-primary); }
.social-link.youtube:hover { color: var(--brand-primary); }


/* blog-detail-sec */
.blog-detail-sec{ padding-top: 50px !important; padding-bottom: 50px !important;}
.blog-detail-sec .blog-detail-flex{ display: flex; gap: 30px;}
.blog-detail-sec .blog-detail-flex .blog-detail-left{ width: 75%;}
.blog-detail-sec .blog-detail-flex .blog-detail-right{ width: 25%;}
.blog-detail-sec .blog-detail-flex .blog-detail-right>div{ width: 100%;}
.blog-detail-sec .blog-detail-flex .blog-detail-right .sidebar .course-promo{ position: sticky; top: 0;}
.blog-detail-sec .cat-flex{ gap: 10px;}
.blog-detail-sec .cat-flex>div{ margin: 0 !important;}
.cate-pill a{ border-radius: 100px; padding: 10px 16px; color: #fff; background: var(--grad-brand);}
.blog-detail-sec .cat-flex time:before { 
    content: '\f073'; 
    display: inline-block; 
    font-size: 14px; 
    font-family: "Font Awesome 5 Free"; 
    margin-right: 4px; 
    color: var(--text-muted); 
}
.blog-detail-sec .card-footer { margin-top: 22px !important; padding-bottom: 12px !important; border-bottom: 1px solid #00000020 !important;}
.blog-detail-sec .wp-block-post-featured-image{aspect-ratio: 2 / 1 !important; border-radius: 12px; overflow: hidden; margin-bottom: 20px;}
.blog-detail-sec .wp-block-post-featured-image img{ object-fit: fill !important; width: 100% !important;}
.blog-detail-sec  .entry-content p{ text-align: justify; line-height: 1.625; font-size: 16px; color: #545454; }
.blog-detail-sec  .entry-content H3+p{ margin-top: 0 !important;}
.blog-detail-sec  .entry-content p:first-child{ font-size: 18px; background-color: #19a7d910; padding: 20px; border-left: 3px solid; border-color: #19a7d9; border-radius: 0 12px 12px 0;}

.blog-detail-sec ul{list-style-type: disc;}
.blog-detail-sec ol, .blog-detail-sec ul{ padding-left: 20px;}
.blog-detail-sec ul li, .blog-detail-sec ol li{font-size: 1.0625rem;
    line-height: 1.8; color: hsl(220, 15%, 30%); margin-bottom: 5px; padding-left: 8px;}

    .blog-detail-sec h2{ font-size: 28px; margin-bottom: 8px !important; margin-top: 22px !important;}
    .blog-detail-sec h3{ margin-top: 22px !important; font-size: 26px; margin-bottom: 8px !important;}
    .blog-detail-sec h3 strong{ font-weight: 500;}
/* 10. MEDIA QUERIES (Moved to End) */
/* Un paragraphs ko hide karein jo sirf whitespace container hain */
/* form-card */
.form-card{    background: var(--grad-brand);
    border-radius: 16px;
    padding: 20px !important;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-sizing: border-box; margin-bottom: 12px !important;}
   .form-card h3{    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0 !important;
    margin-bottom: 8px !important;}
    .form-card  p{color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
}
.form-card label{ margin-bottom: 0;}
.form-card input, .form-card textarea, .form-card select{    width: 100%;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    border-radius: 12px;
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease; height: 45px;}
.form-card textarea{ height: 120px; resize: none;}
.form-card p{ margin-bottom: 0 !important;}
.form-card input[type="submit"]{    width: 100%;
    padding: 12px 0 !important;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background-color: white;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;}
    .wpcf7-not-valid-tip{ position: absolute; top: calc(100% + 12px);}

/* Input Placeholder styling */
.form-card input::placeholder, .form-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.6); 
}

.wpcf7 form .wpcf7-response-output{ font-size: 12px; margin-top: 4px !important;}
.wpcf7-spinner{ position: absolute !important; top: calc(100% - 10px); left: 0; right: 0; margin: auto !important; text-align: center;}
/* p:empty, 
p:has(span:empty),
p:has(> br:only-child) {
    display: none !important;
} */

.blog-detail-right .sidebar .course-promo {
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 20px; /* Screen ke top se thoda gap rakhega */
    z-index: 10;
}

.blog-detail-right .sidebar {
    height: 100%;
}

.detail-post-img{ position: relative;}
.detail-post-img .detail-pst-date-btm{ position: absolute; bottom: 5px; right: 5px; z-index: 9; background-color: #fff; border-radius: 100px; padding: 5px 12px; color: #000; display: none;}


/* related-posts */
.related-posts.blog-grid-sec{ background-color: #eee; padding: 40px 0 !important; margin-top: 40px !important;}
.related-posts.blog-grid-sec .tech-card li{ flex-direction: column; margin-top: 0 !important;}
.related-posts.blog-grid-sec .tech-card li:last-child{ display: none;}
.related-posts.blog-grid-sec .card-image-box, .related-posts.blog-grid-sec .card-content{ width: 100%;}
.related-posts.blog-grid-sec .tech-card {
  display: grid;
  list-style: none;
  gap: 20px; 
  grid-template-columns: repeat(3, 1fr);
}


/* cat-card */
.category-card{    background: linear-gradient(to bottom, #ffffff, #f0f9ff);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 20px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease; margin-bottom: 15px !important;}

    .top-border-line{    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 4px; 
    background: var(--grad-brand);}
.category-card h3{    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0 !important;
    margin-bottom: 8px !important; color: #1e293b;}
.category-card ul{ list-style: none; border-left: 2px solid #eee;}
.category-card ul li{ position: relative;}
.category-card ul li a{ position: relative; color: #64748b; font-size: 16px; padding-left: 7px !important; transition: .5s;}
.category-card ul li a:hover{ color: #000;}
.category-card ul li:after{ position: absolute; left: -2px; top: 0; z-index: 9; background-color: transparent; height: 100%; width: 2px; display: block; content: '';}
.category-card ul li:first-child a{ color: var(--brand-primary);}
.category-card ul li:first-child::after{ background-color: var(--brand-primary);}
.related-posts.blog-grid-sec h2{ text-align: center;}  
   .author-card {
    margin-top: 4rem; /* mt-16 */
    background: linear-gradient(135deg, #0f172a, #1e293b); /* from-slate-900 to-slate-800 */
    padding: 2rem !important; /* p-8 */
    border-radius: 1.5rem; /* rounded-3xl */

    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
.author-card .author-card-flex{ display: flex; align-items: center; gap: 30px;}

.author-img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    border: 4px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10; background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
}
.author-img>div{ font-size: 0px ;}
.author-img>div::first-letter{ font-size: 35px ; color: #fff;}

/* Responsive Desktop Style */
@media (min-width: 768px) {
    .author-card {
        flex-direction: row;
        padding: 2.5rem; /* md:p-10 */
        text-align: left;
    }
}

/* Background Blur Effect */
.decorator-circle {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(64px); /* blur-3xl */
    margin-right: -4rem;
    margin-top: -4rem;
    pointer-events: none;
}


.author-content {
    position: relative;
    z-index: 10;
    color: #ffffff;
}

.author-label {
    color: #94a3b8; /* text-slate-400 */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.author-name {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    margin-bottom: 0.75rem; margin-top: 0 !important;
}

.author-bio {
    color: #cbd5e1; /* text-slate-300 */
    font-size: 1rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
    /* max-w-lg */ 
}

.author-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .author-actions {
        justify-content: flex-start;
    }
}

.btn-courses {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: #0284c7; /* Brand color / blue-600 */
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s;  margin-top: 0 !important;
}

.btn-courses:hover {
    background-color: #0ea5e9; /* brand-500 */ color: #fff;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (8 Breakpoints)
   ============================================================ */

@media (min-width: 768px) {
    .nav-list {
        display: flex;
    }
    .nav-list li{ display: block;}
    .footer-menu { 
        gap: 40px; 
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
/* 1500px - Large Screens */
@media (max-width: 1500px) {
    .container { max-width: 1170px !important; }
}

/* 1200px - Standard Desktop */
@media (max-width: 1200px) {

    .blog-hero h1 { font-size: 2.5rem; }
    .main-layout { gap: 1.5rem; }
}

/* 1069px - Smaller Laptops */
@media (max-width: 1069px) {
    .blog-feed { width: 70%; }
    .sidebar { width: 30%; }
    .blog-hero h1 { font-size: 2.2rem; }
}

/* 992px - Portrait Tablet (Sidebar Shifts Down) */
@media (max-width: 992px) {
    .related-posts.blog-grid-sec h2{ font-size: 28px;}
    .related-posts.blog-grid-sec .card-footer .auther-dv{ display: none;}
    .main-layout, .blog-detail-flex { flex-direction: column; padding: 0 15px; }
    .blog-feed, .sidebar, .blog-detail-left, .blog-detail-right { width: 100% !important; }
    .blog-grid-sec { margin-top: -30px !important; }
    .sidebar .course-promo { position: relative; top: 0; margin-top: 30px; }
    .blog-detail-sec .blog-detail-right { margin-top: 40px; }
}

/* 767px - Large Mobile / Tablets */
@media (max-width: 767px) {
      .related-posts.blog-grid-sec h2{ font-size: 24px;}
    .related-posts.blog-grid-sec .tech-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-posts.blog-grid-sec .tech-card li:last-child{ display: block;}
    .detail-post-img .detail-pst-date-btm{ display: block;}
    .detail-pst-date-top{ display: none;}
    .card-image-box img{ width: 100% !important;}
    .blog-detail-sec .entry-content p:first-child{ font-size: 16px;}
    .blog-detail-sec h1{ font-size: 32px;}
    header .header-flex { flex-direction: row; gap: 15px; text-align: center; }
    .nav-wrapper { justify-content: center; }
    header .btn-enroll { margin-left: 0; width: 100%; text-align: center; }
    
    /* Horizontal Card becomes Vertical */
    .tech-card li { flex-direction: column; }
    .card-image-box, .card-content { width: 100% !important; }
    .card-image-box { height: 220px; max-height: 250px; }
    
    .blog-hero { padding: 4rem 1rem !important; }
    .blog-hero h1 { font-size: 1.8rem; }
    .footer-menu { gap: 15px; flex-direction: row; align-items: center; }
}

@media(max-width:643px){
      .blog-detail-sec h1{ font-size: 28px;}
}

/* 579px - Mobile Standard */
@media (max-width: 579px) {
      .related-posts.blog-grid-sec h2{ font-size: 22px;}
    .main-footer .foot-logo{ width: 170px;}
    .copyright-text{ text-align: center;}
    .blog-detail-sec h1{ font-size: 24px;}
    .blog-hero h1 { font-size: 1.5rem; }
    .blog-hero p { font-size: 1rem; margin-bottom: 1.5rem; }
    .search-container input { padding: 0.9rem 1.2rem; }
    
    .card-title, .card-title a { font-size: 1.15rem; }
    .card-meta { gap: 8px; flex-wrap: wrap; font-size: 0.75rem; }
    
    .blog-detail-sec h2 { font-size: 22px; }
    .blog-detail-sec .entry-content p { font-size: 15px; }
}

/* 480px - Small Mobile */
@media (max-width: 480px) {
    .related-posts.blog-grid-sec .tech-card {
    grid-template-columns: repeat(1, 1fr);
  }
    .blog-detail-sec h1{ font-size: 22px;}
    .category-scroll ul { gap: 8px; padding-bottom: 5px; }
    .category-scroll ul li a { padding: 6px 14px; font-size: 0.8rem; }
    
    .difficulty-badge { font-size: 0.65rem; padding: 3px 10px !important; }
    .card-content { padding: 1.2rem !important; }
    
    .form-card { padding: 15px !important; }
    .form-card input, .form-card textarea { font-size: 0.8rem; }
}

/* 400px - Extra Small Devices */
@media (max-width: 400px) {
    .blog-hero h1 { font-size: 1.3rem; }
    .logo-text { font-size: 20px; }
    .card-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
    .card-footer .auther-dv { font-size: 14px; }
}

