/*
Theme Name: Extent Research
Author: Custom Development
Description: Pixel Perfect CSS for Market Research Portal.
Version: 1.6.0
*/

/* --- 1. Global Reset & Typography --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.6; color: #333; overflow-x: hidden; background: #fff; }
p { text-align: justify; } /* Justified alignment for professional look */

.container { width: 90%; max-width: 1140px; margin: 0 auto; }
.text-center { text-align: center !important; }

/* --- 2. Fixed Header & Horizontal Menu --- */
.site-header { background-color: #1b2623; padding: 15px 0; position: sticky; top: 0; z-index: 9999; border-bottom: 1px solid #2a3a35; }
.header-flex { display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: center; }

.logo a { text-decoration: none; display: flex; align-items: center; }
.logo .extent { color: #43f1ff; font-weight: bold; font-size: 26px; }
.logo .research { color: #fff; font-weight: bold; font-size: 26px; margin-left: 6px; }

/* Menu items ko ek line mein laane ke liye */
.nav-list { list-style: none; display: flex !important; flex-direction: row !important; gap: 25px; margin: 0; padding: 0; }
.nav-list li a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; transition: 0.3s; }
.nav-list li a:hover { color: #43f1ff; }

/* --- 3. Centered Hero & Search Bar --- */
.hero-section { background-color: #232f2b; color: #fff; padding: 70px 0 110px 0; text-align: center; }
.hero-section h1 { font-size: 38px; margin-bottom: 10px; font-weight: 500; }
.hero-subtext { max-width: 850px; margin: 0 auto 30px auto; color: #ccc; font-size: 15px; text-align: center !important; }

.search-container { text-align: center; }
.search-label { font-weight: bold; font-size: 13px; margin-bottom: 12px; display: block; color: #fff; }

.search-form-flex { display: flex; justify-content: center; width: 650px; margin: 0 auto; position: relative; }
.search-input { width: 570px; height: 42px; border: none; padding: 0 15px; outline: none; border-radius: 4px 0 0 4px; font-size: 15px; }
.search-submit { background-color: #f3a847; width: 80px; height: 42px; border: none; font-weight: bold; font-style: italic; cursor: pointer; border-radius: 0 4px 4px 0; transition: 0.3s; }
.search-submit:hover { background-color: #e29736; }

/* Live Search Results Dropdown */
/* Search results ko boxes ke upar lane ke liye */
.live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    
    /* Sabse zaroori: Yeh results ko boxes ke upar layega */
    z-index: 9999 !important; 
    
    display: none;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: left;
}

/* Parent container ka position relative hona chahiye */
.search-input-wrapper, 
.pr-top-search-row form {
    position: relative !important;
    z-index: 10000; /* Dropdown ke parent ko bhi upar rakhein */
}

/* --- 4. 4-Feature Cards (Hero Overlap) --- */
.features-section { position: relative; margin-top: -30px; z-index: 10; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.feature-card { background: #2d3d38; color: #fff; height: 220px; border: 2px solid #fff; padding: 25px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.4s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); border-color: #43f1ff; }
.feature-card i { font-size: 40px; color: #43f1ff; margin-bottom: 12px; }

/* --- 5. Side-by-Side Dual Lists (Reports & PR) --- */
.dual-list-section { background-color: #fff; padding: 80px 0; color: #333; }
.dual-grid { display: flex; justify-content: space-between; position: relative; }
.v-divider { width: 1px; background: #eee; position: absolute; left: 50%; height: 100%; }
.dual-col { width: 46%; }
.dual-title { font-size: 22px; color: #1b2623; margin-bottom: 30px; border-bottom: 2px solid #ff4b4b; padding-bottom: 5px; width: fit-content; text-transform: uppercase; }
.dual-item { margin-bottom: 25px; }
.dual-item h4 a { color: #ff4b4b; text-decoration: none; font-size: 16px; font-weight: 600; }
.dual-item p { color: #666; font-size: 13.5px; margin-top: 5px; }

/* --- 6. Why Us Modern Section --- */
.why-us-modern { padding: 80px 0; background: #fdfdfd; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.why-card { padding: 45px 25px; background: #fff; border: 1px solid #eee; border-radius: 15px; position: relative; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.why-card:hover { border-color: #f3a847; transform: translateY(-5px); }
.why-number { position: absolute; top: -18px; left: 25px; background: #1b2623; color: #43f1ff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 3px solid #fff; }
.why-card h4 { margin-bottom: 12px; font-size: 18px; color: #1b2623; }

/* --- 7. Stats Section (White Cards) --- */
.stats-section { background-color: #0073aa; padding: 90px 0; }
.stats-grid { display: flex; justify-content: center; gap: 30px; }
.stat-card-wrapper { background: #fff; border-radius: 20px; padding: 40px; width: 340px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.stat-card-wrapper h3 { font-size: 48px; font-weight: 800; color: #333; margin: 10px 0; }
.stat-card-wrapper p { text-align: center; font-weight: bold; color: #0073aa; text-transform: uppercase; font-size: 12px; }
.stat-1 { border-bottom: 10px solid #00BCD4; }
.stat-2 { border-bottom: 10px solid #E91E63; }
.stat-3 { border-bottom: 10px solid #FF5722; }

/* --- 8. Services Grid (Full Text) --- */
.services-section { padding: 80px 0; background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 50px; }
.service-card { background: #fff; padding: 45px; border: 1px solid #eee; border-radius: 10px; transition: 0.3s; position: relative; }
.service-card:hover { transform: scale(1.02); box-shadow: 0 15px 35px rgba(0,0,0,0.06); border-left: 6px solid #f3a847; }
.service-card h4 { font-size: 19px; color: #1b2623; margin-bottom: 15px; border-bottom: 2px solid #f3a847; width: fit-content; padding-bottom: 5px; }

/* --- 9. Categories Grid (Fixed & Optimized) --- */

/* Section spacing ko balanced kiya gaya hai taki top gap kam ho jaye */
.categories-section { 
    background-color: #ffffff; 
    padding: 30px 0 80px 0; /* Top padding 70 se kam karke 30 ki gayi hai */
    border-top: 1px solid #f0f0f0;
}

/* Heading aur subtext ke beech ki spacing */
.categories-section h2 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #1b2623;
}

.categories-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px; /* Grid se pehle ka gap */
}

/* Logical Grid setup for 4 columns */
.category-grid { 
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 25px; 
    margin-top: 0; /* Extra margin hata diya gaya hai */
}

.cat-card { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    text-align: center; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Card ke andar ka clickable area aur padding */
.cat-card a { 
    display: block; 
    padding: 50px 25px; /* Padding badhai gayi hai taaki card bada dikhe */
    text-decoration: none; 
    color: #333; 
}

/* Premium Hover Effect: Card upar uthega aur shadow badhegi */
.cat-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    border-color: #43f1ff; 
}

/* Card ke upar ek choti gold line jo hover par highlight hogi */
.cat-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: #f3a847;
    transform: scaleX(0);
    transition: 0.3s;
}

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

/* Icon size ko bada kiya gaya hai */
.cat-icon { 
    font-size: 55px; /* 45px se badha kar 55px kiya gaya */
    display: block; 
    margin-bottom: 20px; 
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-icon {
    transform: scale(1.1); /* Hover par icon thoda zoom hoga */
}

/* Category Title styling */
.cat-card h4 {
    font-size: 17px; /* Font size badhaya gaya */
    font-weight: 600;
    color: #1b2623;
    line-height: 1.3;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .category-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .category-grid { grid-template-columns: 1fr !important; }
}

/* --- 10. Footer Alignment & Copyright --- */
.site-footer { background-color: #1b2623; color: #fff; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 50px; }
.footer-heading { color: #f3a847; margin-bottom: 25px; border-left: 3px solid #ff4b4b; padding-left: 12px; font-size: 16px; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links li a { color: #fff; text-decoration: none; font-size: 13px; transition: 0.2s; opacity: 0.8; }
.footer-links li a:hover { opacity: 1; color: #43f1ff; padding-left: 5px; }

/* Copyright centered at bottom */
.footer-bottom { border-top: 1px solid #2a3a35; padding: 30px 0; text-align: center !important; color: #777; font-size: 12px; width: 100%; }

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.search-container { position: relative; width: 100%; }

#search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
    display: none; /* Shuru mein chhupa rahega */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.search-result-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.search-result-item:hover { background: #f9f9f9; }/* Search Page Styling */
.search-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
}

.search-header {
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.search-header span {
    color: #0073aa; /* Professional Blue */
}

.search-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.entry-title a {
    text-decoration: none;
    color: #222;
    font-size: 22px;
    transition: 0.3s;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 13px;
    color: #888;
    margin: 5px 0 10px;
}

.entry-excerpt {
    color: #555;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.search-container { position: relative; width: 100%; }

#search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
    display: none; /* Shuru mein chhupa rahega */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.search-result-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.search-result-item:hover { background: #f9f9f9; }