/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* Write your custom CSS below this line */
/* ============================================================
   TOOLIMI – FINAL REFINED ADDITIONAL CSS (SIDEBAR RULE REMOVED)
   Sidebar hide ki zaroorat nahi – template se div hata diya gaya hai.
   Full‑width overrides abhi bhi plugin CSS ke liye hain.
   ============================================================ */

/* ---------- 1. GLOBAL UTILITIES & IFRAME ---------- */
iframe#toolIframe {
    border: 0 !important;
    width: 100% !important;
    min-height: 500px;
    display: block;
}

/* ---------- 2. HOMEPAGE HERO SECTION (TYPOGRAPHY + CURVE) ---------- */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #0d2926;
    margin-bottom: 20px;
}

.hero-highlight {
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero ke neeche elliptical curve */
.hero-wrap {
    position: relative;
    overflow: visible !important;
    isolation: isolate;
}

.hero-wrap::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: #f8fafb;
    clip-path: ellipse(60% 100% at 50% 100%);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 767px) {
    .hero-wrap::after {
        height: 40px;
    }
}

/* ---------- 3. HOMEPAGE FLOATING CARDS (Hero Visual) ---------- */
.hv-card {
    position: absolute;
    animation: hv-float 5s ease-in-out infinite;
}

.hv-c1 { top: 0; left: 20px; animation-delay: 0s; }
.hv-c2 { top: 60px; right: 0; animation-delay: 0.8s; }
.hv-c3 { top: 150px; left: 0; animation-delay: 1.6s; }
.hv-c4 { top: 220px; right: 20px; animation-delay: 2.4s; }
.hv-c5 { top: 300px; left: 30px; animation-delay: 3.2s; }
.hv-c6 { top: 170px; right: -10px; animation-delay: 4s; }

@keyframes hv-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- 4. HOMEPAGE CATEGORY NAVIGATION TABS ---------- */
.cat-btn {
    transition: all 0.18s;
}

.cat-btn:hover {
    color: #0d9488 !important;
}

.cat-btn.active {
    color: #0d9488 !important;
    border-bottom: 3px solid #0d9488 !important;
}

/* ---------- 5. HOMEPAGE TOOL CARDS (CONSOLIDATED) ---------- */
.tool-card {
    position: relative;
    overflow: hidden;
    transition: all 0.22s ease;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
}

.tool-card:hover {
    border-color: rgba(13,148,136,0.3) !important;
    box-shadow: 0 8px 28px rgba(13,148,136,0.12) !important;
    transform: translateY(-3px);
}

/* Arrow icon */
.tool-card::before {
    content: "\f35d";
    font-family: "FontAwesome";
    font-weight: 900;
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.9rem;
    color: #9ca3af;
    transition: all 0.2s ease;
    z-index: 3;
    pointer-events: none;
}

.tool-card:hover::before {
    color: #0d9488;
    transform: translate(3px, -3px);
}

/* Top gradient bar */
.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    z-index: 1;
}

.tool-card:hover::after {
    transform: scaleX(1);
}

/* Card ko poora clickable banane ka trick */
.tool-card h3 a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.tool-card h3 a:hover {
    color: #0d9488;
}

/* ---------- 6. HOMEPAGE AD PLACEHOLDERS ---------- */
.ad-wrap .ad-ph {
    background: #f0fdfa;
    border: 1px dashed rgba(167,243,208,0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-ph-banner { height: 90px; }
.ad-ph-rect   { height: 280px; }

/* ---------- 7. FOOTER LINK HOVER SMOOTHNESS ---------- */
.site-footer a:hover {
    color: rgba(255,255,255,0.9) !important;
    transition: color 0.15s;
}

/* ---------- 8. SINGLE TOOL ARTICLE SUPPLEMENTS ---------- */
/* Ye component article content ke andar aayenge, template mein defined nahi hain */

.art-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.art-feature-card {
    background: #f0fdfa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
}

.art-step {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.art-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #06b6d4);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.art-ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    margin: 28px 0;
    background: #f0fdfa;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- 9. FULL WIDTH OVERRIDES (Plugin CSS ko rokne ke liye) ---------- */
/* Template mein sidebar div nahi hai, lekin plugin CSS flex layout de sakti hai */
.ts-single-wrapper .ts-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ts-single-wrapper .ts-main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ts-single-wrapper {
    display: block !important;
}

/* ---------- 10. GLOBAL MOBILE ADJUSTMENTS ---------- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }
}
/* ---- Single Tool Custom Template: Header Card ---- */
.tp-head {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 8px 30px 8px 30px; !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    margin-bottom: 8px !important;
}

/* ---- Single Tool Custom Template: Article Card ---- */
.tp-article {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 48px 52px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
}

/* Optional: same for tool card (already has bg, but safe) */
.tp-tool-card {
    background: #ffffff !important;
}
