/*
Theme Name:   GP eKYC Guide Child
Theme URI:    https://example.com
Description:  Attractive GeneratePress child theme for a Hindi eKYC/government-scheme guide portal — hero + search, ticker bar, category grid, feature checklist, FAQ accordion, disclaimer banner, and a 3-column footer.
Author:       Arjun
Template:     generatepress
Version:      1.0.0
Text Domain:  gp-ekyc-child
*/

/* ==========================================================================
   ROOT VARIABLES — 5 colors control the whole theme
   ========================================================================== */
:root{
    --gp-primary: #0f2140;      /* dark navy — header/hero/footer */
    --gp-accent: #f5941f;       /* orange — buttons, badges, ticker */
    --gp-bg-light: #faf6ee;     /* warm cream section background */
    --gp-white: #ffffff;
    --gp-radius: 14px;
    --gp-shadow: 0 8px 24px rgba(0,0,0,0.07);
    --gp-shadow-hover: 0 14px 32px rgba(0,0,0,0.13);
}

html{ overflow-x: hidden; }
body{ -webkit-font-smoothing: antialiased; overflow-x: hidden; }
*, *::before, *::after{ box-sizing: border-box; }
.gpac-front-page img, .gpac-page-content img{ max-width: 100%; height: auto; }
.site-content, #primary, #main, .content-area{
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.gpac-container{
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
.gpac-section{ padding: 64px 0; }
.gpac-section.gpac-bg-light{ background: var(--gp-bg-light); }
.gpac-section-title{
    text-align: center;
    font-size: clamp(24px, 3.6vw, 32px);
    font-weight: 800;
    color: var(--gp-primary);
    margin: 0 0 10px;
}
.gpac-section-sub{
    text-align: center;
    color: #666;
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 15px;
}
.gpac-eyebrow{
    display:block;
    text-align:center;
    color: var(--gp-accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

/* ==========================================================================
   GENERATEPRESS NAVIGATION SAFETY
   ========================================================================== */
.main-navigation ul,
.main-navigation ol,
.main-navigation .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li,
.main-navigation ol li {
    list-style: none;
}

.main-navigation .menu-toggle {
    cursor: pointer;
}

/* ==========================================================================
   HERO + SEARCH
   ========================================================================== */
.gpac-hero{
    background: linear-gradient(135deg, var(--gp-primary) 0%, #17325c 100%);
    color: var(--gp-white);
    padding: 80px 20px 50px;
    text-align: center;
}
.gpac-hero-inner{ max-width: 760px; margin: 0 auto; }
.gpac-hero h1{
    font-size: clamp(26px, 4.6vw, 42px);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.25;
    color: var(--gp-white);
}
.gpac-hero h1 .gpac-accent-word{ color: var(--gp-accent); }
.gpac-hero p{
    font-size: 16px;
    opacity: .85;
    margin: 0 0 30px;
    line-height: 1.7;
}
.gpac-search-form{
    display: flex;
    max-width: 620px;
    margin: 0 auto 22px;
    background: var(--gp-white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.gpac-search-form input[type="search"], .gpac-search-form input[type="text"]{
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 22px;
    font-size: 15px;
    color: #333;
}
.gpac-search-form button{
    border: none;
    background: var(--gp-primary);
    color: var(--gp-white);
    padding: 0 28px;
    font-weight: 700;
    cursor: pointer;
}
.gpac-hero-stats{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 26px;
    font-size: 14px;
    opacity: .85;
}
.gpac-hero-stats span{ display:flex; align-items:center; gap:6px; }

/* ==========================================================================
   TICKER BAR
   ========================================================================== */
.gpac-ticker{
    background: #fbe7cc;
    border-top: 1px solid #f3d6a5;
    border-bottom: 1px solid #f3d6a5;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
}
.gpac-ticker-track{
    display: inline-block;
    padding-left: 100%;
    animation: gpac-ticker-scroll 28s linear infinite;
}
.gpac-ticker-track span{
    display: inline-block;
    margin-right: 46px;
    font-weight: 700;
    font-size: 13px;
    color: var(--gp-primary);
    letter-spacing: .3px;
}
@keyframes gpac-ticker-scroll{
    0%{ transform: translateX(0); }
    100%{ transform: translateX(-100%); }
}

/* ==========================================================================
   DISCLAIMER / NOTICE BANNER
   ========================================================================== */
.gpac-notice{
    background: #fff7ec;
    border: 1px solid #f5d9a8;
    border-radius: var(--gp-radius);
    padding: 18px 22px;
    font-size: 14px;
    color: #6b4a12;
    margin: 0 0 40px;
    line-height: 1.7;
}
.gpac-notice strong{ color: var(--gp-accent); }

/* ==========================================================================
   CATEGORY GRID
   ========================================================================== */
.gpac-categories{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.gpac-cat-card{
    background: var(--gp-white);
    border-radius: var(--gp-radius);
    text-align: center;
    padding: 30px 16px;
    box-shadow: var(--gp-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
    display: block;
    color: var(--gp-primary) !important;
}
.gpac-cat-card:hover{ transform: translateY(-6px); box-shadow: var(--gp-shadow-hover); }
.gpac-cat-icon{
    width: 58px; height: 58px;
    display:flex; align-items:center; justify-content:center;
    margin: 0 auto 14px;
    border-radius: 50%;
    font-size: 26px;
    background: var(--gp-bg-light);
}
.gpac-cat-card h3{ font-size: 16px; margin: 0 0 4px; font-weight: 700; }
.gpac-cat-card span{ font-size: 12px; color: #999; letter-spacing:.4px; }

/* ==========================================================================
   RECENT ARTICLES LIST
   ========================================================================== */
.gpac-articles{ display:flex; flex-direction:column; gap:16px; }
.gpac-article-row{
    display:flex;
    align-items:flex-start;
    gap:20px;
    background: var(--gp-white);
    border-left: 4px solid var(--gp-accent);
    border-radius: 10px;
    padding: 20px 22px;
    box-shadow: var(--gp-shadow);
    text-decoration:none;
    transition: transform .2s ease;
}
.gpac-article-row:hover{ transform: translateX(4px); }
.gpac-article-date{
    background: var(--gp-primary);
    color: var(--gp-white);
    border-radius: 8px;
    text-align:center;
    padding: 8px 14px;
    min-width: 58px;
    font-weight: 700;
    line-height: 1.2;
    flex-shrink: 0;
}
.gpac-article-date .gpac-day{ display:block; font-size: 18px; }
.gpac-article-date .gpac-mon{ display:block; font-size: 11px; opacity:.8; }
.gpac-article-body h4{ margin: 0 0 6px; font-size: 16px; color: var(--gp-primary); }
.gpac-article-body p{ margin:0; font-size: 13px; color: #777; }
.gpac-article-time{
    margin-left:auto;
    background: var(--gp-accent);
    color:#fff;
    font-size: 11px;
    font-weight:700;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
    align-self: center;
}

/* ==========================================================================
   WHY CHOOSE US — checklist + numbered steps
   ========================================================================== */
.gpac-why-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
@media (max-width: 780px){ .gpac-why-grid{ grid-template-columns: 1fr; } }
.gpac-why-col h3{
    font-size: 20px;
    color: var(--gp-primary);
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gp-accent);
    display: inline-block;
}
.gpac-check-item{ display:flex; gap:14px; margin-bottom: 20px; }
.gpac-check-icon{
    width: 26px; height:26px; flex-shrink:0;
    background: var(--gp-accent);
    color:#fff;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size: 13px; font-weight:700;
}
.gpac-check-item h4{ margin:0 0 4px; font-size:15px; color: var(--gp-primary); }
.gpac-check-item p{ margin:0; font-size:13px; color:#777; line-height:1.6; }

.gpac-step-item{ display:flex; gap:14px; margin-bottom: 20px; }
.gpac-step-num{
    width: 30px; height:30px; flex-shrink:0;
    background: var(--gp-primary);
    color:#fff;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size: 13px; font-weight:700;
}
.gpac-step-item h4{ margin:0 0 4px; font-size:15px; color: var(--gp-primary); }
.gpac-step-item p{ margin:0; font-size:13px; color:#777; line-height:1.6; }

/* ==========================================================================
   FAQ ACCORDION (pure HTML/CSS — no JS needed)
   ========================================================================== */
.gpac-faq{ max-width: 820px; margin: 0 auto; display:flex; flex-direction:column; gap:14px; }
.gpac-faq details{
    background: var(--gp-white);
    border-radius: var(--gp-radius);
    padding: 20px 24px;
    box-shadow: var(--gp-shadow);
}
.gpac-faq summary{
    cursor:pointer;
    font-weight:700;
    font-size:15px;
    color: var(--gp-primary);
    list-style:none;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.gpac-faq summary::-webkit-details-marker{ display:none; }
.gpac-faq summary::after{
    content:"+";
    font-size:20px;
    color: var(--gp-accent);
    margin-left:12px;
    flex-shrink:0;
}
.gpac-faq details[open] summary::after{ content:"−"; }
.gpac-faq details p{ margin:14px 0 0; font-size:14px; color:#666; line-height:1.7; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.gpac-footer{ background: var(--gp-primary); color:#c9d2df; padding: 56px 0 26px; }
.gpac-footer-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:34px; }
.gpac-footer-col h4{ color:var(--gp-white); font-size:15px; margin:0 0 18px; text-transform:uppercase; letter-spacing:.6px; }
.gpac-footer-col p{ font-size:14px; color:#a9b3c4; line-height:1.7; margin:0; }
.gpac-footer-col ul{ list-style:none; margin:0; padding:0; }
.gpac-footer-col ul li{ margin-bottom:11px; }
.gpac-footer-col ul li a{ color:#a9b3c4; text-decoration:none; font-size:14px; transition:color .2s ease; }
.gpac-footer-col ul li a:hover{ color: var(--gp-accent); }
.gpac-footer-notice{
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 36px;
    padding-top: 22px;
    font-size: 12px;
    color: #8a93a5;
    line-height: 1.8;
    text-align: center;
}
.site-footer .site-info, .site-info{
    background:#0a1730 !important;
    color:#8a93a5 !important;
    text-align:center;
    padding:18px !important;
    font-size:12px !important;
    border-top:1px solid rgba(255,255,255,0.08) !important;
}
.site-info a{ color:#c9d2df !important; }

/* ==========================================================================
   INNER PAGE (category/company pages)
   ========================================================================== */
.gpac-page-hero{
    background: linear-gradient(135deg, var(--gp-primary) 0%, #17325c 100%);
    color: var(--gp-white);
    padding: 56px 20px;
    text-align: center;
}
.gpac-page-hero h1{ margin:0; color: var(--gp-white); font-size: clamp(24px,4vw,36px); }
.gpac-page-content{ max-width: 780px; margin: 0 auto; font-size:16px; line-height:1.85; color:#333; }
.gpac-page-content h2{ margin:0 0 16px; color: var(--gp-primary); font-size:24px; }
.gpac-page-content h3{ margin:28px 0 12px; color: var(--gp-primary); font-size:18px; }
.gpac-page-content p{ margin:0 0 18px; }
.gpac-page-content ul{ margin:0 0 18px 22px; }
.gpac-page-content a{ color: var(--gp-accent); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 600px){
    .gpac-hero{ padding: 56px 16px 40px; }
    .gpac-section{ padding: 42px 0; }
    .gpac-article-row{ flex-wrap: wrap; }
    .gpac-article-time{ margin-left:0; }
}
