/*
Theme Name: Invent CPC Revamp
Theme URI: https://www.cpcnagpur.com
Description: Revamped Child Theme for City Premier College with responsive 4+3 stat bar, 8-box grid, accordion FAQs, updated page templates, speed optimizations, and standardized footer contact.
Author: City Premier College
Template: invent
Version: 1.0.0
License: GNU General Public License version 3.0
*/

#header {
    background: #fff;
}
#top-header-area ul.contact-info > li, 
#top-header-area ul.contact-info > li > a, 
#top-header-area #header-menu > ul.menu > li > a {
    color: #fff;
}
#top-header-area .dropdown-menu-wrap ul li,
#top-header-area #header-menu > ul.menu > li {
    padding: 0px 22px;
    margin-left: 10px;
    margin-top: 5px;
}
#top-header-area #header-menu > ul.menu > li > a {
    line-height: 20px;
}
#top-header-area ul.contact-info li i {
    color: #fff;
}
#top-header-area {
    background: #888888;
    border-bottom: 1px solid #888888;
}
.site-branding {
    top: 0;
    max-width: 511px;
}
#header.sticky .site-branding {
    top: 0px;
    max-width: 320px;
}
.mainnavbar {
    background: #144097;
}
#primary-menu > ul.menu > li > a {
    padding: 0 15px 0;
    line-height: 56px;
}
.dropdown-menu-wrap > ul.menu > li > ul.sub-menu {
    top: 56px;
}
header#title-area {
    position:relative;
}
body.home #testimonials2:before, #title-area:before {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    clear: none;
    visibility: unset;
}
#title-area h1, #title-area h2 {
    color: #F9F9F9;
    position: relative;
}

/* ==========================================================================
   FIX STUCK LOADING SPINNER
   ========================================================================== */
#page-loading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ==========================================================================
   1. WHY CHOOSE CPC NAGPUR - 7 STATS BAR (4+3 GRID)
   ========================================================================== */
.cpc-stat-bar-container {
    margin: 40px 0;
    padding: 30px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.cpc-stat-grid-row1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.cpc-stat-grid-row2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 85%;
    margin: 0 auto;
}
.cpc-stat-box {
    background: #ffffff;
    padding: 22px 15px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cpc-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.cpc-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #144097;
    line-height: 1.2;
    margin-bottom: 6px;
}
.cpc-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .cpc-stat-grid-row1, .cpc-stat-grid-row2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}
@media (max-width: 575px) {
    .cpc-stat-grid-row1, .cpc-stat-grid-row2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .cpc-stat-number {
        font-size: 24px;
    }
    .cpc-stat-label {
        font-size: 12px;
    }
}

/* ==========================================================================
   2. LIFE AT CPC NAGPUR - 8 BOX RESPONSIVE GRID (4x2 -> 2x4 -> 1 col)
   ========================================================================== */
.cpc-life-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 30px 0;
}
.cpc-life-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.cpc-life-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #144097;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}
.cpc-life-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
}

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

/* ==========================================================================
   3. ACCORDION FAQ SECTION (SINGLE PANEL EXPAND)
   ========================================================================== */
.cpc-faq-accordion {
    margin: 30px 0;
}
.cpc-faq-item {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #ffffff;
}
.cpc-faq-question {
    width: 100%;
    padding: 18px 24px;
    background: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}
.cpc-faq-question:hover {
    background: #f1f5f9;
}
.cpc-faq-icon {
    font-size: 20px;
    font-weight: 700;
    color: #144097;
    transition: transform 0.3s ease;
}
.cpc-faq-item.active .cpc-faq-icon {
    transform: rotate(45deg);
}
.cpc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 24px;
    background: #ffffff;
}
.cpc-faq-item.active .cpc-faq-answer {
    max-height: 500px;
    padding: 18px 24px;
    border-top: 1px solid #e2e8f0;
}
.cpc-faq-answer p {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   4. STANDARDIZED FOOTER CONTACT BLOCK
   ========================================================================== */
.cpc-footer-contact-block {
    background: #0f172a;
    color: #f8fafc;
    padding: 36px 28px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}
.cpc-footer-contact-block h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}
.cpc-footer-contact-block p {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 8px;
}
.cpc-footer-contact-block a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}
.cpc-footer-contact-block a:hover {
    text-decoration: underline;
}