/* ================================================
   ExamConnect — ec-categories.css (Clean Restore)
   ================================================ */

/* Section */
.ec-categories-v2 { padding: 50px 0; background: #fafcfb; }

/* Heading */
.homeSectionHeading { margin-bottom: 28px !important; }
.homeSectionHeading .span-round {
    background: #fffdf5 !important; color: #c8922a !important;
    border: 1.5px solid #e8c46c !important; font-size: 0.72rem !important;
    font-weight: 700 !important; padding: 6px 18px !important;
    border-radius: 24px !important; text-transform: uppercase !important;
    letter-spacing: 1.5px !important; display: inline-block !important;
    margin-bottom: 10px !important;
}
.homeSectionHeading .sub_sect {
    display: block !important; font-size: 2rem !important;
    font-weight: 800 !important; color: #1a365d !important;
    margin-left: 0 !important; margin-top: 8px !important;
}
.homeSectionHeading .sub_title {
    font-size: 0.95rem !important; color: #8899a8 !important;
    font-weight: 400 !important; margin-top: 8px !important;
}

/* Filter Tabs */
.tabs { gap: 8px !important; margin-bottom: 28px !important; }
.tab-btn {
    padding: 7px 20px !important; border-radius: 24px !important;
    font-size: 0.84rem !important; font-weight: 600 !important;
    border: 2px solid #e0e0e0 !important; background: #fff !important;
    color: #555 !important; transition: all 0.2s ease !important;
}
.tab-btn:hover { border-color: #2d7a6e !important; color: #2d7a6e !important; background: #e8f5f3 !important; }
.tab-btn.active {
    background: #2d7a6e !important; border-color: #2d7a6e !important;
    color: #fff !important; box-shadow: 0 4px 12px rgba(45,122,110,0.3) !important;
}

/* ================================================
   V4 Package Cards
   ================================================ */
.slide-box {
    background: #fff; border: 1.5px solid #e8eef0; border-radius: 16px;
    padding: 22px; margin-bottom: 24px; transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.slide-box:hover {
    border-color: #2d7a6e; box-shadow: 0 8px 30px rgba(45,122,110,0.12);
    transform: translateY(-3px);
}
.ec-card-header { margin-bottom: 14px; }
.ec-card-badge { font-size: 0.74rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; letter-spacing: 0.5px; }
.ec-badge-free { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.ec-badge-pro { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }
.ec-card-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ec-card-icon {
    width: 54px; height: 54px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
    background: #fff; display: flex; align-items: center; justify-content: center;
    border: 1px solid #e8eef0;
}
.ec-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.ec-card-icon-placeholder { color: #2d7a6e; }
.ec-card-name-block { flex: 1; min-width: 0; }
.ec-card-name {
    font-size: 1.02rem; font-weight: 700; color: #1a1a2e; margin: 0 0 2px;
    line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.ec-card-updated { font-size: 0.74rem; color: #2d7a6e; font-weight: 600; }
.ec-card-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ec-price-free { font-size: 1.3rem; font-weight: 800; color: #2d7a6e; }
.ec-price-amount { font-size: 1.3rem; font-weight: 800; color: #1a1a2e; }
.ec-price-old { font-size: 0.85rem; color: #aaa; text-decoration: line-through; }
.ec-price-off { font-size: 0.70rem; font-weight: 700; background: #fff0e0; color: #e65100; padding: 3px 10px; border-radius: 12px; }
.ec-card-stats-bar {
    display: flex; align-items: center; justify-content: space-around;
    background: #f4f8f7; border: 1px solid #e8f0ee; border-radius: 10px;
    padding: 12px 0; margin-bottom: 14px;
}
.ec-card-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ec-card-stat-num { font-size: 1rem; font-weight: 800; color: #1a1a2e; }
.ec-card-stat-label { text-transform: uppercase; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.5px; color: #999; }
.ec-card-stat-divider { width: 1px; height: 28px; background: #ddd; }
.ec-card-features { margin-bottom: 4px; }
.ec-card-feature { font-size: 0.84rem; color: #555; padding: 4px 0; line-height: 1.5; }
.ec-feat-check { color: #2d7a6e; font-weight: 700; margin-right: 6px; }
.ec-btn-free, .ec-btn-buy {
    background: #2d7a6e !important; border-color: #2d7a6e !important;
    color: #fff !important; font-weight: 700; border-radius: 12px;
    padding: 12px; font-size: 0.92rem;
}
.ec-btn-free:hover, .ec-btn-buy:hover { opacity: 0.9; }

@media (max-width: 768px) {
    .ec-card-identity { gap: 10px; }
    .ec-card-icon { width: 44px; height: 44px; }
    .ec-card-name { font-size: 0.92rem; }
}


/* ================================================
   WordPress Articles Section
   ================================================ */
.ec-wp-articles {
    max-width: 1200px; margin: 48px auto 48px; padding: 32px 20px;
    border-top: 2px solid #e8f5f3;
}
.ec-wp-articles-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ec-wp-articles-title { display: flex; align-items: center; gap: 12px; }
.ec-wp-articles-icon-wrap {
    font-size: 1.4rem; background: #e8f5f3; width: 42px; height: 42px;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #2d7a6e;
}
.ec-wp-articles-title h3 { font-size: 1.2rem; font-weight: 700; color: #1a1a2e; margin: 0; }
.ec-wp-articles-sub { font-size: 0.76rem; color: #999; display: block; margin-top: 2px; }
.ec-wp-view-all {
    font-size: 0.82rem; font-weight: 600; color: #2d7a6e; text-decoration: none;
    border: 1.5px solid #2d7a6e; padding: 5px 14px; border-radius: 20px;
    transition: all 0.2s; white-space: nowrap;
}
.ec-wp-view-all:hover { background: #2d7a6e; color: #fff; }

/* WP Tabs */
.ec-wp-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.ec-wp-tab {
    padding: 5px 16px; border-radius: 20px; border: 1.5px solid #d4ece8;
    background: #fff; color: #666; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.ec-wp-tab:hover { border-color: #2d7a6e; color: #2d7a6e; }
.ec-wp-tab.active { background: #2d7a6e; color: #fff; border-color: #2d7a6e; }

/* WP Grid */
.ec-wp-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* WP Card */
.ec-wp-card {
    border-radius: 12px; overflow: hidden; background: #fff;
    border: 1.5px solid #e8f5f3; display: flex; flex-direction: column;
    text-decoration: none; transition: all 0.22s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ec-wp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(45,122,110,0.13); border-color: #2d7a6e; }

/* WP Image */
.ec-wp-card-img { position: relative; width: 100%; height: 180px; overflow: hidden; flex-shrink: 0; background: #f8f7ff; }
.ec-wp-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.ec-wp-card-img-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2d7a6e, #4db6a9);
}
.ec-wp-card-img-placeholder span { font-size: 2rem; font-weight: 800; color: rgba(255,255,255,0.35); letter-spacing: 3px; }

/* WP Badge */
.ec-wp-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 0.65rem; font-weight: 700; padding: 3px 9px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.ec-wp-badge--jobs { background: #1565c0; color: #fff; }
.ec-wp-badge--result { background: #2e7d32; color: #fff; }
.ec-wp-badge--syllabus { background: #e65100; color: #fff; }
.ec-wp-badge--answerkey { background: #c62828; color: #fff; }
.ec-wp-badge--callletter { background: #00695c; color: #fff; }
.ec-wp-badge--article { background: #2d7a6e; color: #fff; }

/* WP Card Body */
.ec-wp-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ec-wp-card-title {
    font-size: 0.90rem; font-weight: 700; color: #1a1a2e; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ec-wp-card-excerpt {
    font-size: 0.78rem; color: #777; line-height: 1.55; margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ec-wp-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 10px; border-top: 1px solid #e8f5f3; margin-top: 6px;
}
.ec-wp-card-date { font-size: 0.72rem; color: #aaa; }
.ec-wp-card-readmore { font-size: 0.78rem; font-weight: 700; color: #2d7a6e; }

/* WP Responsive */
@media (max-width: 1100px) { .ec-wp-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
    .ec-wp-articles-grid { grid-template-columns: 1fr; }
    .ec-wp-articles-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===== Card Spacing Fix ===== */
.slide-box {
    margin-bottom: 24px !important;
}
#subcategories-container > .col-md-4 {
    padding: 0 12px !important;
    margin-bottom: 0 !important;
}

/* ===== Row Gap Final Fix ===== */
#subcategories-container > .col-md-4,
#subcategories-container > .col-sm-6,
#subcategories-container > .col-12 {
    margin-bottom: 24px !important;
}
.slide-box {
    margin-bottom: 0 !important;
    height: 100% !important;
}

/* ===== Blog Image Fix ===== */
.ec-wp-card-img {
    height: 200px !important;
}
.ec-wp-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}
