/* ══════════════════════════════════════════
   COMPONENTS — Cards, buttons, badges, modals, CTA strips
   ══════════════════════════════════════════ */

/* ── Buttons ── */
.cg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--cg-radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--cg-font);
    cursor: pointer;
    border: none;
    transition: all var(--cg-transition);
    text-decoration: none;
    min-height: 44px;
}

.cg-btn-primary {
    background: var(--cg-orange);
    color: #fff;
}

.cg-btn-primary:hover {
    background: var(--cg-orange-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.cg-btn-blue {
    background: var(--cg-blue);
    color: #fff;
}

.cg-btn-blue:hover {
    background: var(--cg-blue-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56,93,255,0.3);
}

.cg-btn-outline {
    background: transparent;
    color: var(--cg-navy);
    border: 2px solid var(--cg-border);
}

.cg-btn-outline:hover {
    border-color: var(--cg-orange);
    color: var(--cg-orange);
}

.cg-btn-green {
    background: var(--cg-green);
    color: #fff;
}

.cg-btn-green:hover {
    background: #15803d;
    color: #fff;
}

/* ── Post Cards ── */
.cg-post-card {
    background: var(--cg-bg-white);
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cg-post-card:hover {
    box-shadow: var(--cg-shadow-md);
    border-color: transparent;
    transform: translateY(-2px);
}

.cg-post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cg-post-card-body {
    padding: 20px;
}

.cg-post-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cg-post-card-title a {
    color: var(--cg-text-heading);
}

.cg-post-card-title a:hover {
    color: var(--cg-orange);
}

.cg-post-card-excerpt {
    color: var(--cg-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cg-post-card-meta {
    color: var(--cg-text-muted);
    font-size: 13px;
}

/* ── Enrollment CTA Strip ── */
.cg-enroll-strip {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: var(--cg-radius);
    padding: 32px;
    text-align: center;
    margin: 40px auto;
    max-width: 700px;
}

.cg-enroll-tagline {
    color: var(--cg-text-muted);
    font-size: 14px;
    margin: 0 0 6px;
}

.cg-price-tag {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.cg-price-mrp {
    font-size: 16px;
    color: var(--cg-text-muted);
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
}

.cg-price-save {
    font-size: 13px;
    color: var(--cg-green);
    font-weight: 600;
    margin-left: 8px;
}

.cg-enroll-emi {
    color: var(--cg-text-muted);
    font-size: 13px;
    margin: 4px 0 16px;
}

.cg-enroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cg-orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--cg-font);
    cursor: pointer;
    transition: all var(--cg-transition);
    min-height: 48px;
    width: 100%;
    max-width: 400px;
}

.cg-enroll-btn:hover {
    background: var(--cg-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.cg-enroll-secondary {
    display: block;
    margin-top: 12px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: color var(--cg-transition);
}

.cg-enroll-secondary:hover {
    color: #fff;
}

/* ── Sticky Mobile CTA ── */
.cg-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #fff;
    border-top: 1px solid var(--cg-border);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.cg-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--cg-container);
    margin: 0 auto;
}

.cg-sticky-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--cg-text-heading);
}

.cg-sticky-price small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--cg-text-muted);
}

.cg-sticky-btn {
    background: var(--cg-orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--cg-font);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--cg-transition);
}

.cg-sticky-btn:hover {
    background: var(--cg-orange-hover);
}

body.cg-has-sticky-cta {
    padding-bottom: 80px;
}

/* ── Trust Badges ── */
.cg-trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 24px 0;
}

.cg-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cg-text-light);
}

.cg-trust-icon {
    font-size: 20px;
}

/* ── FAQ Accordion ── */
.cg-faq-item {
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.cg-faq-question {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--cg-text-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--cg-bg-white);
    transition: background var(--cg-transition);
}

.cg-faq-question:hover {
    background: var(--cg-border-light);
}

.cg-faq-question.active {
    color: var(--cg-blue);
}

.cg-faq-answer {
    display: none;
    padding: 0 20px 16px;
    color: var(--cg-text);
    line-height: 1.7;
}

.cg-faq-answer.active {
    display: block;
}

/* ── iPhone Safe Area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .cg-sticky-cta {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    body.cg-has-sticky-cta {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

.cg-footer {
    background: var(--cg-navy);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
    margin-top: 0;
}

.cg-footer-inner {
    max-width: var(--cg-container-wide);
    margin: 0 auto;
    padding: 0 20px;
}

.cg-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.cg-footer-logo {
    max-width: 160px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.cg-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.cg-footer-social {
    display: flex;
    gap: 12px;
}

.cg-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: all var(--cg-transition);
}

.cg-footer-social a:hover {
    background: var(--cg-orange);
    color: #fff;
    transform: translateY(-2px);
}

.cg-footer-social a svg {
    fill: currentColor;
}

.cg-footer-heading {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.cg-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cg-footer-links li {
    margin-bottom: 10px;
}

.cg-footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color var(--cg-transition);
}

.cg-footer-links a:hover {
    color: #fff;
}

.cg-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cg-footer-contact-item {
    font-size: 14px;
    line-height: 1.5;
}

.cg-footer-contact-item strong {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin-bottom: 2px;
}

.cg-footer-contact-item span {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.cg-footer-contact-item a {
    color: rgba(255,255,255,0.7);
    transition: color var(--cg-transition);
}

.cg-footer-contact-item a:hover {
    color: var(--cg-orange);
}

/* Footer bottom bar */
.cg-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

.cg-footer-bottom p {
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.cg-footer-legal {
    display: flex;
    gap: 20px;
}

.cg-footer-legal a {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    transition: color var(--cg-transition);
}

.cg-footer-legal a:hover {
    color: rgba(255,255,255,0.8);
}
