
/* ════════════════════════════════════════════════════════════
   CNS INNER PAGES — Colorful Theme
   Applies to: about, contact, classes, gallery, events, news,
   vision/mission, building, management, faculty, etc.
   ════════════════════════════════════════════════════════════ */

/* Body background — soft cream (only for inner pages, not home) */
body:not(.home) {
    background: linear-gradient(180deg, #FFF8E1 0%, #FFF3E0 50%, #FFFAF3 100%) !important;
    min-height: 100vh;
}
/* Override Bootstrap bg-white wrapper that forces white background */
body:not(.home) > .bg-white {
    background: transparent !important;
}
body:not(.home) > .bg-white > * {
    /* keep inner backgrounds intact */
}

/* Page banner — orange gradient with decorative cloud at bottom */
.page-header,
.cns-page-banner-wrap,
.bg-banner {
    background: linear-gradient(135deg, #FFB74D 0%, #FFA726 50%, #FB8C00 100%) !important;
    position: relative;
    color: #fff !important;
    padding: 70px 0 80px !important;
    overflow: hidden;
}
.page-header h1,
.page-header h2,
.page-header .display-3,
.page-header .breadcrumb-item.active,
.page-header .breadcrumb a,
.bg-banner h1, .bg-banner h2 {
    color: #fff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,.18);
    font-weight: 700;
}
.page-header .breadcrumb {
    background: rgba(255,255,255,.15);
    padding: 8px 18px;
    border-radius: 30px;
    display: inline-flex;
    margin-top: 10px;
}
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.7); }

/* Inner content sections — white cards with rounded corners */
.cns-inner-section {
    background: #fff;
    border-radius: 18px;
    padding: 40px 35px;
    box-shadow: 0 6px 24px rgba(255,167,38,.08), 0 2px 8px rgba(0,0,0,.06);
    margin: 30px auto 50px;
    max-width: 100%;
    border: 1px solid rgba(255,167,38,.15);
    position: relative;
}
.cns-inner-section::before {
    content: '';
    position: absolute;
    top: 0; left: 30px;
    width: 60px; height: 4px;
    background: linear-gradient(90deg, #FFA726, #FB8C00);
    border-radius: 0 0 4px 4px;
}

/* Page main headings (h1, h2) inside content */
.cns-page-heading h1,
.cns-page-heading h2,
.cns-inner-section > h1,
.cns-inner-section > h2,
.about-content h2,
.about-content h3 {
    color: #E65100 !important;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}
.cns-page-heading h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #FFA726, #FB8C00);
    border-radius: 2px;
    margin-top: 10px;
}
.cns-page-heading {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 30px;
}
.cns-page-heading h2::after {
    margin-left: auto; margin-right: auto;
}

/* Justified paragraph text — clean reading */
.pera-justify p,
.about-content p,
.cns-inner-section p,
.cns-inner-section div {
    text-align: justify;
    line-height: 1.75;
    color: #555;
    font-size: 1.02rem;
}
.cns-inner-section ul,
.cns-inner-section ol {
    line-height: 1.85;
    color: #555;
}
.cns-inner-section ul li::marker {
    color: #FFA726;
}

/* Pretty buttons */
.btn-primary, .cns-btn-primary {
    background: linear-gradient(135deg, #FFA726, #FB8C00) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 26px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    transition: all .3s ease !important;
    box-shadow: 0 4px 12px rgba(255,167,38,.3);
}
.btn-primary:hover, .cns-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,167,38,.45);
}

/* Cards (general) — softer, rounded */
.card {
    border: 1px solid rgba(255,167,38,.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.06) !important;
    overflow: hidden;
}
.card-header {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2) !important;
    color: #E65100 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid rgba(255,167,38,.2) !important;
}

/* Form inputs — colorful focus */
.form-control:focus {
    border-color: #FFA726 !important;
    box-shadow: 0 0 0 3px rgba(255,167,38,.15) !important;
}

/* Contact page specific — info cards */
.cns-contact-info-card,
.cns-contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    border-top: 4px solid #FFA726;
    margin-bottom: 20px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cns-contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,.1);
}

/* Class pages — colorful class cards */
.cns-class-card {
    border: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.08) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease !important;
}
.cns-class-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255,167,38,.18) !important;
}

/* Gallery thumbnails */
.cns-gallery-item, .gallery-item, .glightbox img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transition: transform .3s ease;
}
.cns-gallery-item:hover, .gallery-item:hover {
    transform: scale(1.03);
}

/* Auth pages (sign-in, register, forgot password) */
.cns-auth-wrap, .auth-card {
    max-width: 460px;
    margin: 50px auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 12px 40px rgba(255,167,38,.15);
    border: 1px solid rgba(255,167,38,.18);
}
.cns-auth-wrap h1, .cns-auth-wrap h2 {
    color: #E65100;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Section accent background colors (alternating pattern for long pages) */
.cns-section-cream { background: #FFF3E0 !important; padding: 50px 0; }
.cns-section-blue  { background: #E3F2FD !important; padding: 50px 0; }
.cns-section-green { background: #E8F5E9 !important; padding: 50px 0; }
.cns-section-pink  { background: #FFF0F5 !important; padding: 50px 0; }

/* Lists with custom bullets */
.cns-feature-list {
    list-style: none;
    padding-left: 0;
}
.cns-feature-list li {
    position: relative;
    padding: 8px 0 8px 32px;
    color: #555;
    line-height: 1.6;
}
.cns-feature-list li::before {
    content: '\2605';
    color: #FFA726;
    font-size: 1.1rem;
    position: absolute;
    left: 6px;
    top: 6px;
}

/* Tables — clean and colorful */
.table thead th {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2) !important;
    color: #E65100 !important;
    border-bottom: 2px solid #FFA726 !important;
    font-weight: 700;
}
.table tbody tr:hover {
    background: rgba(255,167,38,.05) !important;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .page-header { padding: 50px 0 60px !important; }
    .cns-inner-section { padding: 26px 20px; margin: 20px 12px 35px; border-radius: 14px; }
    .cns-page-heading h2 { font-size: 1.5rem; }
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">" !important;
    color: #6c757d !important;
}

/* ── Faculty/Management qualifications text on card (override page text rules) ── */
.management-card p.management-card-qual,
.cns-inner-section .management-card p.management-card-qual,
.management-card-qual {
    font-size: 0.7rem !important;
    color: #666 !important;
    line-height: 1.35 !important;
    margin: 0.35rem 0 0 !important;
    text-align: left !important;
    word-wrap: break-word !important;
    word-spacing: normal !important;
}

/* ── Card content uniform height (per client) — name starts right below image ── */
.management-card h3 {
    min-height: 2.6em;        /* reserves 2 lines so card height stays uniform */
    text-align: left;
    margin-bottom: 0.25rem;
    /* No flex — text naturally starts at TOP of its slot */
}
.management-card span {
    min-height: 1.4em;
    display: block;
    text-align: left;
}
.management-card p.management-card-qual {
    min-height: 3em;
}
