/*
Theme Name: Apkzen Theme
Theme URI: https://apkzen.xyz/
Author: Apk zen
Description: A custom WordPress theme.
Version: 2.3 (Final Version)
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-starter-theme
*/

/* ===================================================================
   1. CSS Reset
   =================================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, button {
    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}
html {
    font-size: 62.5%;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
    display: block;
}
ol, ul {
    list-style: none;
}
table {
    border-collapse: separate;
    border-spacing: 0;
}
caption, th, td {
    font-weight: normal;
    text-align: left;
}
blockquote:before, blockquote:after, q:before, q:after {
    content: "";
}
blockquote, q {
    quotes: "" "";
}
a:hover, a:active {
    outline: 0;
}
a img {
    border: 0;
}
*, *::before, *::after {
    box-sizing: border-box;
}

/* ===================================================================
   2. Root Variables (Color Scheme)
   =================================================================== */
:root {
    /* ==================================
       Naya Professional Color Palette
       ================================== */

 
    --main-color: #0F172A;              
    --surface-color: #1E293B;          
    --accent-bg-color: #334155;        

    --button-color: #2DD4BF;          


    --primary-text-color: #E2E8F0;      
    --secondary-text-color: #94A3B8;   


    --border-color: #334155;           


    --gradient-start-color: #2DD4BF;   
    --gradient-end-color: #34D399;      
}

/* ===================================================================
   3. Global Styles
   =================================================================== */
html, body {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--main-color);
    color: var(--primary-text-color);
    margin: 0;
    min-height: 100vh;
}
body {
    display: flex;
    flex-direction: column;
}
a {
    color: var(--button-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    text-decoration: underline;
    color: var(--primary-text-color);
}
a:focus {
    outline: none;
}
svg {
    cursor: pointer;
}

/* ===================================================================
   4. Header Styles
   =================================================================== */
.site-header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    height: 64px;
    padding: 0 20px;
}
.site-branding .site-logo-and-title-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-branding .site-title-text {
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--button-color); /* Naya color yahan set ho gaya */
    text-decoration: none;
}
.header-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}
.header-search-bar {
    width: 100%;
    max-width: 720px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-5px);
    transition: all 0.25s ease-in-out;
    pointer-events: none;
}
body.search-active .header-search-bar {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.header-search-form {
    position: relative;
    width: 100%;
}
.search-input-field {
    width: 100%;
    height: 40px;
    padding: 10px 50px 10px 15px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--accent-bg-color);
    color: var(--primary-text-color);
    outline: none;
    transition: all 0.2s ease;
}
.search-input-field:focus {
    background-color: var(--surface-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-color: var(--button-color);
}
.search-submit-btn, .search-icon-btn, .close-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
.search-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}
.search-submit-btn svg, .search-icon-btn svg, .close-search-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary-text-color);
}
.close-search-btn { display: none; }
body.search-active .search-icon-btn { display: none; }
body.search-active .close-search-btn { display: flex; }
.header-right {
    display: flex;
    align-items: center;
}

/* ===================================================================
   5. Navigation Menus
   =================================================================== */
.main-navigation {
    display: block;
}
.primary-menu, .primary-menu-mobile {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}
.main-navigation li, .mobile-navigation li { 
    padding: 0 !important;
}
.main-navigation li::before, .mobile-navigation li::before {
    display: none !important;
}
.main-navigation a {
    display: block;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-text-color);
    border-radius: 8px;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.main-navigation a:hover {
    background-color: var(--accent-bg-color);
    color: #FFFFFF;
    text-decoration: none;
}
.main-navigation .current-menu-item > a {
    color: var(--button-color);
    font-weight: 700;
}
.main-navigation .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--button-color);
    border-radius: 2px;
}
.mobile-navigation {
    display: none;
}

/* ===================================================================
   6. Main Content & Layout
   =================================================================== */
#page.site {
    overflow-x: hidden;
}
main {
    padding: 20px;
    flex: 1;
}
.main-content-section {
    text-align: center;
}
/* Consolidated Section Titles (Corrected) */
.section-title,
.screenshots-title,
.info-box-title,
.post-content-title,
.site-pages h1,
.child-categories-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0 auto 25px auto;
    position: relative;
    padding-bottom: 10px;
    display: block;       /* This is the fix */
    text-align: center; /* This is the fix */
}
.section-title::after,
.screenshots-title::after,
.info-box-title::after,
.post-content-title::after,
.site-pages h1::after,
.child-categories-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--button-color);
    border-radius: 2px;
}
.post-content-container .post-content-title {
    margin-bottom: 15px;
}

/* Content Typography */
.entry-content, .page-content {
    text-align: left;
}
.entry-content h2, .entry-content h3, .entry-content h4,
.page-content h2, .page-content h3, .page-content h4 {
    color: var(--primary-text-color);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.4;
    text-align: center;
}
.entry-content h2, .page-content h2 { font-size: 22px; }
.entry-content h3, .page-content h3 { font-size: 20px; }
.entry-content h4, .page-content h4 { font-size: 18px; }

.entry-content ul, .entry-content ol, .page-content ul, .page-content ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}
.entry-content ul, .page-content ul { list-style: disc; }
.entry-content ol, .page-content ol { list-style: decimal; }
.entry-content li, .page-content li {
    margin-bottom: 0.8em;
}
.entry-content p, .page-content p {
    color: #cccccc;
    margin-bottom: 1.5em;
    line-height: 1.7;
}
.page-content a {
    font-weight: 500;
    text-decoration: underline;
}
.page-content a:hover {
    color: var(--gradient-start-color);
}

/* ===================================================================
   7. Component Styles
   =================================================================== */

/* ===================================================================
   15. NEW: Professional App Card Styles
   =================================================================== */

/* Grid container mein spacing adjust karein */
.apps-grid-container {
    display: flex;             /* Yeh line cards ko side-by-side rakhegi */
    flex-wrap: wrap;           /* Yeh line cards ko agli line mein layegi jab jagah kam ho */
    justify-content: center;   /* Yeh line cards ko page ke center mein rakhegi */
    gap: 20px;
}
/* Main card ka container */
.app-card-container {
    flex: 1 1 350px; /* Card ko thora bara aur flexible banayein */
    max-width: 400px;
}

/* Card ka link element (asal card) */
.app-card-link {
    display: flex;
    flex-direction: row; /* Sab se ahem change: direction ko horizontal karein */
    align-items: center; /* Cheezon ko vertically center karein */
    text-decoration: none;
    background-color: var(--surface-color); /* Aapke theme ka surface color */
    border-radius: 16px; /* Zyada gol corners */
    border: 1px solid var(--border-color);
    padding: 15px;
    gap: 15px;
    height: 100%;
    transition: all 0.25s ease-in-out;
}

/* Hover effect */
.app-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--button-color);
    text-decoration: none;
}

/* App ka icon */
.app-card-icon {
    width: 80px;  /* Icon ka size aamne saamne ke liye */
    height: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 20px; /* Icon ke corners bhi gol karein */
    margin-bottom: 0; /* Neeche se margin khatam karein */
    flex-shrink: 0; /* Icon ko shrink na hone dein */
}

/* Icon ki image */
.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details wala hissa (right side) */
.app-card-meta {
    text-align: left; /* Text ko left align karein */
    display: flex;
    flex-direction: column;
    gap: 4px; /* Title aur details ke darmiyan halka gap */
}

/* App ka Title */
.app-card-title {
    font-size: 16px;
    font-weight: 700; /* Title ko bold karein */
    line-height: 1.3;
    color: var(--primary-text-color);
    -webkit-line-clamp: 2; /* Title 2 line se zyada na ho */
}

.app-card-link:hover .app-card-title {
    color: var(--button-color); /* Hover par title ka rang badle */
}

/* App ki doosri details (version, size etc.) */
.app-card-details {
    /* Ab details ko hamesha show karna hai, hover par nahi */
    opacity: 1;
    max-height: 100px; /* Height de dein */
    margin-top: 0; /* Upar se margin khatam karein */
    display: flex;
    flex-direction: column; /* Details ko vertical line mein rakhein */
    align-items: flex-start; /* Left se shuru karein */
    gap: 5px; /* Details ke items mein gap */
    font-size: 13px;
    color: var(--secondary-text-color);
}

.app-card-details span {
    display: flex;
    align-items: center;
}

.app-card-details svg {
    width: 14px;
    height: 14px;
    fill: var(--secondary-text-color);
    margin-right: 6px;
}
/* Single Post Header */
.app-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.app-details .left-side {
    display: flex;
    align-items: center;
    gap: 20px;
}
.app-details .icon img {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid var(--surface-color);
}
.single-app-meta .title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.single-app-meta .apktype {
    font-size: 12px;
    font-weight: 500;
    background-color: var(--accent-bg-color);
    color: var(--secondary-text-color);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.app-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}
.app-meta span {
    display: flex;
    align-items: center;
    color: var(--secondary-text-color);
}
.app-meta svg {
    width: 16px;
    height: 16px;
    fill: var(--secondary-text-color);
    margin-right: 8px;
}
.app-meta .genre a {
    color: var(--button-color);
    font-weight: 500;
}
.app-details .right-side {
    margin-left: auto;
}

/* Download Button */
.download-btn {
    display: flex;
    align-items: center;
    background-color: var(--button-color);
    color: #FFFFFF;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #FFFFFF;
}
.download-btn .button-left {
    text-align: left;
    margin-right: 15px;
}
.download-btn .button-top {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.download-btn .filesize {
    display: none;
}
.download-btn .button-bottom {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1;
    margin-top: 4px;
}
.download-btn .button-right svg {
    width: 28px;
    height: 28px;
    fill: #FFFFFF;
}


/* Important Note Box */
.important-note {
    display: block;
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 8px;
    background-color: rgba(167, 139, 250, 0.1);
    color: #d8cfff;
    border-left: 5px solid var(--button-color);
}




/* Quick Details Box */
.app-info-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.info-item {
    background-color: var(--surface-color);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background-color 0.2s ease;
}
.info-item:hover {
    background-color: var(--accent-bg-color);
}
.info-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--button-color);
    margin-bottom: 10px;
}
.info-label {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin-bottom: 4px;
}
.info-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-text-color);
    word-break: break-word;
}

/* Breadcrumbs */
.breadcrumbs-nav {
    padding: 15px 20px;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    margin-bottom: 20px;
}
.breadcrumbs-nav ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumbs-nav .breadcrumb-item a:hover {
    color: #FFFFFF;
}
.breadcrumbs-nav .breadcrumb-current {
    color: var(--secondary-text-color);
    font-weight: 500;
}
.breadcrumbs-nav .breadcrumb-separator {
    margin: 0 8px;
    color: var(--secondary-text-color);
    stroke-width: 2.5px;
}

/* ===================================================================
   8. Page & Template Specific Styles
   =================================================================== */

/* Static Pages */
.site-pages {
    max-width: 1140px;
    margin: 20px auto;
    padding: 30px 40px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Search Page */
.search-page-container {
    max-width: 1140px;
    margin: 20px auto;
    padding: 0 15px;
}
.search-page-container .page-header {
    text-align: center;
    margin-bottom: 25px;
}
.search-page-container .page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-text-color);
}
.search-page-container .page-title span {
    color: var(--button-color);
}
.search-page-form-container {
    max-width: 720px;
    margin: 0 auto 40px auto;
}
.no-results-box {
    text-align: center;
    background-color: var(--surface-color);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 720px;
    margin: 40px auto;
}
.no-results-box h2 {
    font-size: 24px;
    margin: 10px 0;
    font-weight: 700;
}
.no-results-box p {
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Download Page */
.download-page-container .app-info-box {
    grid-template-columns: repeat(2, 1fr);
    box-shadow: none;
}
.download-timer-section {
    text-align: center;
    background-color: var(--surface-color);
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}
#countdown-visual {
    background-color: var(--accent-bg-color);
    border-radius: 50px;
    position: relative;
    max-width: 300px;
    height: 40px;
    margin: 25px auto 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
#progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--button-color);
    border-radius: 50px;
    transition: width 0.5s linear;
    z-index: 1;
}
#countdown-text {
    position: relative;
    z-index: 2;
    font-weight: 500;
    color: #FFFFFF !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
#final-download-button {
    max-width: 300px;
    margin: 0 auto;
    justify-content: center;
}
.how-to-install-section {
    background-color: var(--surface-color);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 40px;
}
.how-to-install-section li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--secondary-text-color);
    border-bottom: 1px solid var(--border-color);
}
.how-to-install-section li:last-child {
    border-bottom: none;
}
.how-to-install-section li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--button-color);
    font-weight: bold;
}
.how-to-install-section code {
    background-color: var(--accent-bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-text-color);
}

/* ===================================================================
   9. Footer Styles
   =================================================================== */
.site-footer {
    background-color: var(--surface-color);
    color: var(--secondary-text-color);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px 0;
    gap: 30px;
}
.footer-column {
    flex: 1;
    min-width: 200px;
}
.about-column {
    flex-basis: 30%;
}
.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0 0 10px 0;
}
.footer-description {
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-social-icons {
    display: flex;
    gap: 10px;
}
.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--main-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.footer-social-icons a svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-text-color);
    transition: fill 0.2s ease;
}
.footer-social-icons a:hover {
    background-color: var(--button-color);
    text-decoration: none;
}
.footer-social-icons a:hover svg {
    fill: #ffffff;
}
.footer-social-icons a[aria-label="Telegram"] svg {
    fill: none;
    stroke: var(--primary-text-color);
    stroke-width: 2;
    transition: stroke 0.2s ease;
}
.footer-social-icons a[aria-label="Telegram"]:hover svg {
    stroke: #ffffff;
}
.footer-column-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}
.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--button-color);
}
.links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.links-column ul li {
    position: relative;
    padding-left: 18px;
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.links-column ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: var(--secondary-text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.links-column ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-text-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s ease;
}
.links-column ul li:hover::before {
    background-color: var(--button-color);
    transform: scale(1.3);
}
.links-column ul li:hover a::after {
    background-color: var(--button-color);
    transform: scaleX(1);
    height: 3px;
}
.links-column a {
    color: var(--secondary-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.links-column ul li:hover a {
    color: var(--primary-text-color);
}
.footer-copyright {
    background-color: var(--main-color);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
}
.footer-copyright p {
    margin: 0;
}

/* ===================================================================
   10. Mobile Responsive Styles (Final Corrected Version)
   =================================================================== */
@media (max-width: 767px) {
    main { padding: 15px 10px; }
    .header-container { padding: 0 10px; }
    
    /* --- Header Fixes --- */
    .main-navigation {
        display: none; /* Hide desktop menu on mobile */
    }
    .site-branding .custom-logo { 
        height: 35px; 
    }
    .site-branding .site-title-text {
        font-size: 18px; /* Reduce font size for mobile */
        white-space: normal; /* Allow title to wrap if needed */
    }
    .mobile-navigation {
        display: block;
        background-color: var(--surface-color);
        border-bottom: 1px solid var(--border-color);
        padding: 8px 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        position: sticky;
        top: 64px;
        z-index: 998;
    }
    .mobile-navigation::-webkit-scrollbar { display: none; }
    .primary-menu-mobile {
        justify-content: center;
        padding: 0 15px;
    }
    .mobile-navigation a {
        display: block;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 500;
        color: var(--secondary-text-color);
        text-decoration: none;
        border: 1px solid var(--border-color);
        border-radius: 50px;
        transition: all 0.2s ease;
    }
    .mobile-navigation .current-menu-item > a,
    .mobile-navigation a:hover {
        color: #FFFFFF;
        background-color: var(--button-color);
        border-color: var(--button-color);
        text-decoration: none;
    }

    /* --- Mobile Search Animation Fix --- */
    .header-center {
        display: none;
    }
    body:not(.search-active) .header-right {
        display: flex;
    }
    body.search-active .site-branding {
        display: none;
    }
    body.search-active .header-center {
        display: flex;
        flex-grow: 1;
    }
    
    /* --- Other Page Styles --- */
    .app-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    .app-details .left-side {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 15px;
    }
    .single-app-meta .title {
        justify-content: center;
        font-size: 22px;
    }
    .app-meta { align-items: center; }
    .app-details .right-side {
        margin-left: 0;
        margin-top: 25px;
        width: 100%;
    }
    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
    .download-btn .button-left { text-align: center; }
    
   /* Mobile par apps ki list ko behtar karein */
.apps-grid-container {
    display: flex;
    flex-direction: column; /* Sab se ahem: Cards ko vertical list banayein */
    gap: 15px; /* Cards ke darmiyan fasla */
}
.app-card-container {
    width: 100%; /* Har card poori chaurai (width) le */
    max-width: none; /* Desktop wali max-width hata dein */
    flex: 1 1 auto;
}

    .app-info-box { grid-template-columns: repeat(2, 1fr); }
    .app-info-box .info-item {
        align-items: flex-start;
        text-align: left;
    }
    .info-icon svg { margin-bottom: 5px; }
    
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    .footer-column { min-width: 100%; }
    .footer-social-icons { justify-content: center; }
    .footer-column-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* --- Horizontal Carousel on Mobile --- */
    .horizontal-scroll-container {
        margin: 0 -10px;
        padding: 0 10px;
    }
    .scroll-btn {
        display: none;
    }
    .horizontal-scroll-wrapper .app-card-container {
        flex-basis: 120px;
        width: 120px;
    }
}

/* ===================================================================
   11. Miscellaneous
   =================================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}
img[alt="Preview"] {
    display: none;
}


/* ===================================================================
   13. Category Pills Section
   =================================================================== */
.child-categories-section {
    margin: 60px auto 30px auto;
    max-width: 1140px;
    text-align: center;
}
.child-categories-section .child-categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.category-pill:hover {
    background-color: var(--accent-bg-color);
    border-color: var(--button-color);
    transform: translateY(-2px);
    text-decoration: none;
}
.category-pill-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}
.category-pill .category-pill-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-text-color);
}

/* ===================================================================
   NEW: Professional Staggered Load Animation
   =================================================================== */

/* Nayi animation ki definition (halka sa zyada movement) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page ke Title par animation lagayein */
.section-title {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* App Cards par animation lagayein */
.app-card-container {
    /* Shuru mein cards ko chupa dein */
    opacity: 0; 
    
    /* Animation settings */
    animation-name: fadeInUp;
    animation-duration: 0.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards; /* Animation ke baad card ko visible rakhein */
}

/* --- Tarteeb-war (Staggered) Effect --- */
/* Har card ko thori dair se show karein */

.app-card-container:nth-child(1) {
    animation-delay: 0.1s;
}
.app-card-container:nth-child(2) {
    animation-delay: 0.2s;
}
.app-card-container:nth-child(3) {
    animation-delay: 0.3s;
}
.app-card-container:nth-child(4) {
    animation-delay: 0.4s;
}
.app-card-container:nth-child(5) {
    animation-delay: 0.5s;
}
.app-card-container:nth-child(6) {
    animation-delay: 0.6s;
}
/* Aap is list ko mazeed lamba kar sakte hain agar ek line mein zyada cards hain */
.app-card-container:nth-child(7) {
    animation-delay: 0.7s;
}
.app-card-container:nth-child(8) {
    animation-delay: 0.8s;
}
/* ===================================================================
   12. FINAL & CLEAN: Single Post Layout
   =================================================================== */

/* --- A) Main Grid Layout (Left/Right Columns) --- */
.single-post-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Left column bara, right chota */
    gap: 40px;
    max-width: 1200px;
    margin: 20px auto;
    align-items: flex-start;
}

/* Left column ke content ko ek professional box dein */
.post-main-content {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

.post-main-content > section {
    margin-bottom: 40px;
}
.post-main-content > section:last-child {
    margin-bottom: 0;
}

/* --- B) Sidebar Styling --- */
.post-sidebar {
    position: sticky;
    top: 84px;
}

.post-sidebar .section-title {
    font-size: 22px;
    margin-bottom: 20px;
}

/* --- C) Sidebar ke andar walay App Cards ka Final Vertical Design --- */
/* Yeh sab se AHEM hissa hai jo horizontal maslay ko hal karega */
.post-sidebar .apps-grid-container {
    display: flex;
    flex-direction: column; /* ZABARDASTI VERTICAL KARO */
    gap: 15px;
}

.post-sidebar .app-card-container {
    width: 100%; /* Card poori width le */
    max-width: none; /* Purani max-width hatao */
    flex: 1 1 auto; /* Purani flex settings hatao */
}

.post-sidebar .app-card-link {
    padding: 10px;
    gap: 12px;
}

.post-sidebar .app-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.post-sidebar .app-card-title {
    font-size: 15px;
    font-weight: 500;
    -webkit-line-clamp: 1;
}

.post-sidebar .app-card-details {
    flex-direction: row;
    font-size: 12px;
    gap: 10px;
}

.post-sidebar .app-card-details svg {
    display: none;
}

/* --- D) Mobile Ke Liye Layout --- */
@media (max-width: 960px) {
    .single-post-grid-container {
        grid-template-columns: 1fr; /* Sirf ek column */
    }
    .post-sidebar {
        position: static;
        margin-top: 40px;
    }
}
/* ===================================================================
   15. Professional Pagination Styling
   =================================================================== */

/* Pagination ke main container ko center karein */
.navigation.pagination {
    margin: 50px 0 30px 0; /* Upar neeche fasla dein */
    display: flex;
    justify-content: center;
}

/* Links ke wrapper ko design karein */
.nav-links {
    display: inline-flex;
    align-items: center;
    background-color: var(--surface-color);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Har number/link ko button ki shakal dein */
.nav-links .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-text-color);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

/* Hover effect */
.nav-links .page-numbers:hover {
    background-color: var(--accent-bg-color);
    color: #FFFFFF;
    text-decoration: none;
}

/* Mojooda (current) page ka button */
.nav-links .page-numbers.current {
    background-color: var(--button-color);
    color: var(--surface-color); /* Teal ke upar dark text acha lagega */
    font-weight: 700;
    cursor: default;
}

/* Dots (...) ke liye styling */
.nav-links .dots {
    color: var(--secondary-text-color);
    padding: 0 10px;
}

.download-timer-section svg {
    
    fill: var(--button-color);
}
/* ===================================================================
   CLEAN & FINAL: Screenshot Gallery Styling
   =================================================================== */
.screenshots-container {
    margin-top: 40px;
}
.screenshots-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 2px 20px 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--button-color) transparent;
}
.screenshots-wrapper::-webkit-scrollbar { height: 8px; }
.screenshots-wrapper::-webkit-scrollbar-track { background: transparent; }
.screenshots-wrapper::-webkit-scrollbar-thumb { background-color: var(--button-color); border-radius: 4px; }
.screenshot-item {
    flex-shrink: 0;
}
.screenshots-wrapper .screenshot-item img {
    height: 250px;
    width: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}
.screenshots-wrapper .screenshot-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
/* ===================================================================
   STYLING: Sidebar Category Links Widget
   =================================================================== */

.sidebar-category-links {
    margin-top: 40px; /* Upar walay section se fasla */
}

/* Pills ko theek se align karein */
.category-pills-widget {
    display: flex;
    flex-wrap: wrap; /* Agar zyada hon to agli line mein aa jayen */
    gap: 10px; /* Pills ke darmiyan fasla */
}