/*
Theme Name: ThemePlace Child
Theme URI: https://vfxhydra.com
Description: Custom child theme for VFX Hydra - built on ThemePlace parent theme.
Author: Aisha Rani
Template: themeplace
Version: 1.0.0
Text Domain: themeplace-child
*/

/* Yahan se aage har page ki CSS clearly sectioned hogi, jaise:
   1. GLOBAL / RESET
   2. HEADER
   3. HOMEPAGE
   4. SINGLE POST
   5. AUTHOR PAGE
   6. CATEGORY PAGE
   7. SEARCH PAGE
   8. FOOTER
   ... taake sab kuch organized rahe, koi cheez idhar-udhar na ho
*/

/* =================================================================
   GLOBAL RESET (Globe Reads mein tha, VFX Hydra mein missing tha -
   yeh missing hona hi bade logo/tooti grid jaisi problems ki asal wajah thi)
================================================================= */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* full-width wave/hero se horizontal scroll na ho */
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =================================================================
   GLOBAL CONTAINER (header aur post-grid isi width ko follow karte hain)
================================================================= */
.vh-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo image ki size fix - WordPress custom logo original size mein render hoti hai,
   parent theme (ThemePlace) ki CSS bohot strong hai, isliye !important use kiya hai */
.vh-header .custom-logo,
.vh-header img.custom-logo,
.vh-mobile-overlay .custom-logo,
.vh-mobile-overlay img.custom-logo {
    max-width: 420px !important;
    width: auto !important;
    height: auto !important;
    max-height: 105px !important;
    display: block !important;
}

.vh-footer .custom-logo,
.vh-footer img.custom-logo {
    max-width: 560px !important;
    width: auto !important;
    height: auto !important;
    max-height: 168px !important; /* footer height se koi restriction nahi, isliye header se bhi bada rakh sakte hain */
    display: block !important;
}

.vh-footer__brand .custom-logo,
.vh-footer__brand img.custom-logo {
    max-width: 520px !important;
    max-height: 156px !important;
}

@media (max-width: 600px) {
    .vh-header .custom-logo,
    .vh-header img.custom-logo,
    .vh-mobile-overlay .custom-logo,
    .vh-mobile-overlay img.custom-logo {
        max-width: 300px !important;
        max-height: 84px !important;
    }

    .vh-footer__brand .custom-logo,
    .vh-footer__brand img.custom-logo {
        max-width: 380px !important;
        max-height: 112px !important;
        margin: 0 auto; /* mobile pe center rakhna, footer center-aligned hota hai */
    }
}

/* =================================================================
   HEADER (Desktop: logo left, menu right - constrained width)
================================================================= */
.vh-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    height: 125px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.vh-header__container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.vh-logo-text {
    font-size: 24px !important;
    font-weight: 800 !important;
    font-family: 'Poppins', sans-serif !important;
    color: #010011 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.vh-header__logo {
    display: flex !important;
    align-items: center !important;
    z-index: 5 !important;
    position: relative !important;
}

.vh-header__mobile-triggers {
    display: none;
    gap: 12px;
}

.vh-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #010011;
}

.vh-hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vh-hamburger-icon span {
    width: 22px;
    height: 2px;
    background: #010011;
    display: block;
}

.vh-primary-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.vh-primary-menu li a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #010011;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.vh-primary-menu li a:hover {
    color: #463da3;
}

@media (max-width: 991px) {
    .vh-header {
        height: 100px !important;
    }
    .vh-header__container {
        justify-content: center !important;
        position: relative !important;
    }
    .vh-header__mobile-triggers {
        display: flex !important;
        position: absolute !important;
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .vh-header__primary-nav {
        display: none !important;
    }
}

/* =================================================================
   MOBILE FULL-SCREEN OVERLAY MENU
================================================================= */
.vh-mobile-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    padding: 16px 24px !important;
    overflow-y: auto !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    margin: 0 !important;
}

.vh-mobile-overlay.is-open {
    transform: translateX(0) !important;
}

.vh-mobile-overlay__backdrop {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(1, 0, 17, 0.5);
    z-index: 999998 !important;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vh-mobile-overlay__backdrop.is-open {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vh-mobile-overlay__backdrop.is-open {
    display: block;
}

.vh-mobile-overlay__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.vh-mobile-overlay__spacer {
    width: 40px;
}

.vh-mobile-overlay__search {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.vh-mobile-overlay__search input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    outline: none;
}

.vh-mobile-overlay__search button {
    background: #010011;
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.vh-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vh-mobile-menu-list li {
    border-bottom: 1px solid #eee;
}

.vh-mobile-menu-list li a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 600;
    color: #010011;
    font-family: 'Poppins', sans-serif;
}

.vh-mobile-overlay__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.vh-mobile-overlay__buttons .vh-btn {
    text-align: center;
}

/* =================================================================
   HERO - Mobile responsive (search hide, heading resize)
================================================================= */
@media (max-width: 991px) {
    .vh-hero {
        padding: 80px 20px;
    }
    .vh-hero__title {
        font-size: 32px;
    }
    .vh-hero__subtitle {
        font-size: 16px;
    }
    .vh-search-bar-container {
        display: none;
    }
}

@media (max-width: 600px) {
    .vh-hero__title {
        font-size: 26px;
    }
    .vh-button-container {
        flex-direction: column;
        gap: 12px;
    }
}

/* =================================================================
   FOOTER (full-width, wavy top, purple bg)
================================================================= */
.vh-footer {
    width: 100%;
}

.vh-footer__wave {
    line-height: 0;
}

.vh-footer__wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

.vh-footer__wave svg path {
    fill: #463da3;
}

.vh-footer__main {
    background: #463da3;
    padding: 0 0 40px 0;
}

.vh-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 32px;
}

@media (max-width: 991px) {
    .vh-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .vh-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.vh-footer__logo-text {
    color: #ffffff;
}

.vh-footer__tagline {
    color: #E4E2F5;
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0;
    font-family: 'Poppins', sans-serif;
}

.vh-footer__divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 16px 0;
}

.vh-footer__contact {
    color: #E4E2F5;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.vh-footer__contact strong {
    color: #ffffff;
}

.vh-footer__col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 16px;
}

.vh-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vh-footer__col li {
    margin-bottom: 10px;
}

.vh-footer__col a {
    color: #E4E2F5;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vh-footer__col a:hover {
    color: #ffffff;
}

.vh-footer__bottom {
    background: #000000;
    padding: 20px 0;
}

.vh-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
}

.vh-footer__copyright {
    color: #cccccc;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.vh-footer__credit a {
    color: #A9A0F5;
}

.vh-footer__credit a:hover {
    color: #ffffff;
}

.vh-footer__social {
    display: flex;
    gap: 16px;
}

.vh-social-icon {
    color: #ffffff;
    display: inline-flex;
}

.vh-social-icon:hover {
    color: #A9A0F5;
}

@media (max-width: 600px) {
    .vh-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* =================================================================
   SINGLE POST PAGE (single.php) - Original theme CSS, unchanged
================================================================= */
.image-slider-section {
    width: 100%;
    margin-top: 40px;   /* Header aur slider ke darmiyan gap */
    margin-bottom: 0;
    padding-top: 35px;    /* Upar se image tak equal spacing */
    padding-bottom: 35px; /* Neeche dots tak equal spacing - same value rakhi hai symmetry ke liye */
    background-color: #F7F7F7;
}

/* GLITCH FIX: Slick JS load hone tak slider chupa rehta hai, taake
   "pehle badi image, phir chhoti" wala flash na dikhe. Koi size/width
   change nahi hui - sirf load ke dauran ek fade-in add hua hai. */
.image-slider {
    opacity: 0;
}

.image-slider.slick-initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.image-slider img {
    width: 100%;  /* Ensures images take full width */
    height: auto;  /* Maintain aspect ratio */
    border-radius: 16px;  /* Border radius of images */
    max-width: 100%; /* Ensure images don't stretch beyond the container */
}

/* Space between images */
.image-slider .slick-slide {
    margin-right: 17px;  /* Space between the images */
}

/* Style for Arrows */
.slick-prev, .slick-next {
    color: white;
    font-size: 50px;
    z-index: 10;
}

/* Style for Dots */
.slick-dots.custom-dots li button:before {
    color: grey;  /* Default dot color */
    font-size: 11px;
}

.slick-dots.custom-dots li.slick-active button:before {
    color: black;  /* Active dot color */
}

.slick-dots {
    position: static !important; /* absolute positioning ki wajah se dots slider ke upar overlap ho rahe thay mobile pe */
    margin-top: 16px; /* Space between images and dots */
    margin-bottom: 1px;
    text-align: center;
}

.slick-dots li {
    margin: 0 7px; /* Space between dots */
}

.slick-dots li button:before {
    font-size: 11px; /* Dot size */
}

/* Slider aur neeche wale post content ke darmiyan gap already upar wale padding-bottom se handle ho raha hai */

.themeplace-page-section {
    padding-top: 45px;
}

/* =================================================================
   HOMEPAGE (template-homepage.php)
================================================================= */
.vh-hero {
    background-color: #010011;
    text-align: center;
    padding: 187px 20px;
}

.vh-hero__title {
    font-size: 55px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #ffffff;
    max-width: 1600px;
    margin: 0 auto;
}

.vh-hero__subtitle {
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #ffffff;
    max-width: 1200px;
    margin: 20px auto;
}

.vh-search-bar-container {
    margin: 30px auto;
}

.vh-search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.vh-search-input {
    width: 800px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.vh-search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #463da3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.vh-button-container {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.vh-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #463da3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.vh-post-grid-section {
    margin: 30px auto;
}

.vh-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.vh-search-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    text-align: left;
}

.vh-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Fixed ratio container - layout shift na ho image load hote waqt (CLS ke liye zaroori, SEO ko bhi help karta hai) */
.vh-featured-image-container {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0; /* image load hone se pehle placeholder color */
}

.vh-featured-image-container img.vh-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-post-info {
    padding: 10px;
}

.vh-post-title {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 10px 0 10px 0;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.vh-post-title a {
    text-decoration: none;
    color: inherit;
}

.vh-meta-info {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.vh-meta-info a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.vh-author-name {
    font-weight: 600;
    margin-left: 5px;
}

.vh-meta-separator {
    margin: 0 5px;
}

.vh-watch-icon {
    margin: 0 5px;
    font-size: 16px;
}

.vh-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vh-no-results {
    text-align: center;
    color: #555;
}

/* =================================================================
   CATEGORY PAGE (category.php)
================================================================= */
.vh-category-header {
    text-align: center;
    padding: 40px 20px 0 20px;
}

.vh-category-header__title {
    font-size: 42px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.vh-category-header__subtitle {
    font-size: 17px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #555;
    margin: 12px 0 0 0;
}

.vh-category-header__btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 24px;
    font-size: 17px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background-color: #ff3366;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.vh-category-breadcrumb {
    text-align: center;
    margin-top: 22px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.vh-category-breadcrumb a {
    color: #463da3;
    text-decoration: none;
}

.vh-category-breadcrumb__sep {
    color: #000;
    margin: 0 5px;
}

.vh-category-breadcrumb__current {
    color: #000;
    font-weight: 500;
}

.vh-category-search-container {
    margin-top: 30px;
    padding: 0 20px;
}

.vh-category-search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.vh-category-search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.vh-category-search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #463da3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* 4-column grid - homepage wale .vh-search-results-grid se distinct, fixed columns */
.vh-category-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
    .vh-category-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
    .vh-category-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
    .vh-category-grid { grid-template-columns: 1fr !important; }
}

/* Mobile responsive: heading, subheading, button, breadcrumb, search */
@media (max-width: 768px) {
    .vh-category-header {
        padding: 30px 16px 0 16px;
    }
    .vh-category-header__title {
        font-size: 26px;
        line-height: 1.3;
    }
    .vh-category-header__subtitle {
        font-size: 15px;
    }
    .vh-category-header__btn {
        width: 100%;
        max-width: 320px;
        padding: 12px 16px;
        font-size: 15px;
    }
    .vh-category-breadcrumb {
        font-size: 14px;
        padding: 0 16px;
    }
    .vh-category-search-container {
        padding: 0 16px;
    }
    .vh-category-search-form {
        flex-direction: column;
        gap: 10px;
    }
    .vh-category-search-input {
        width: 100%;
    }
    .vh-category-search-button {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .vh-category-header__title {
        font-size: 22px;
    }
}

/* =================================================================
   AUTHOR PAGE (author.php)
   Heading/subheading/button/search reuse .vh-category-* classes -
   design bilkul same hai, isliye CSS duplicate nahi ki
================================================================= */
.vh-author-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
    .vh-author-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
    .vh-author-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
    .vh-author-grid { grid-template-columns: 1fr !important; }
}

/* =================================================================
   NEW POST TEMPLATE (template-post-banner.php)
================================================================= */

/* Content ki width thodi badhai - sidebar apni jagah waisi hi rehti hai,
   poora container bada hone se content column bhi proportionally badhta hai */
.vh-banner-post-container {
    max-width: 1500px !important;
}

/* Title thoda bold */
.vh-banner-post-col .entry-title,
.vh-banner-post-col article h1,
.vh-banner-post-col article h2.entry-title {
    font-weight: 700 !important;
}

/* Ad banners - post content ki poori width mein fit honge, na chote na overflow */
.vh-ad-banner {
    width: 100%;
    margin: 24px 0;
    text-align: center;
    overflow: hidden;
}

.vh-ad-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Related post titles - 2 lines ke baad ... (ellipsis) */
.vh-related-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}