/* ═══ CGS Engagement Styles ═══ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #d69e2e, #e63946, #0a2463);
    z-index: 100000;
    transition: width 0.1s linear;
    width: 0;
}

/* Toast Notification */
.cgs-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #0a2463;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 100001;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cgs-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Confetti Animation */
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Card Tilt Smooth Transition */
.branch-card, .feature-card, .info-card {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* Main Branch Badge Highlight */
.branch-badge.main-badge {
    background: linear-gradient(135deg, #d69e2e, #b8860b) !important;
    color: #fff !important;
    font-weight: 700;
    animation: badgeGlow 2s ease-in-out infinite;
}
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(214,158,46,0.3); }
    50% { box-shadow: 0 0 18px rgba(214,158,46,0.6); }
}

/* ─── Dark Mode Overrides ─── */
[data-theme="dark"] .cgs-toast {
    background: #1a1a2e;
    border: 1px solid rgba(214,158,46,0.3);
}
[data-theme="dark"] .reading-progress {
    background: linear-gradient(90deg, #d69e2e, #c4941f, #e6b422);
}

/* ─── Mobile Adjustments ─── */
@media (max-width: 768px) {
    .cgs-toast {
        font-size: 0.8rem;
        padding: 10px 18px;
        bottom: 20px;
    }
}

/* FAQ Section Dark Mode */
[data-theme="dark"] .faq-section h2 {
    color: #d69e2e !important;
}
[data-theme="dark"] .faq-section > div {
    background: #1a1a2e !important;
    border-left-color: #d69e2e !important;
}
[data-theme="dark"] .faq-section h3 {
    color: #e6b422 !important;
}
[data-theme="dark"] .faq-section p {
    color: #ccc !important;
}

/* ═══ Blog Preview Section — Grand Design ═══ */
.blog-preview-section {
    position: relative;
    padding: 80px 5%;
    background: linear-gradient(135deg, #0a1628 0%, #0f2340 40%, #162d50 100%);
    overflow: hidden;
}
.bp-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(214,158,46,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.bp-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}
.bp-header {
    text-align: center;
    margin-bottom: 50px;
}
.bp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d69e2e;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.bp-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #fff;
    margin-bottom: 12px;
}
.bp-header h2 span {
    color: #d69e2e;
}
.bp-header p {
    font-family: 'Poppins', sans-serif;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
}
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bp-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(214,158,46,0.12);
    border-radius: 16px;
    padding: 32px 28px 28px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}
.bp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d69e2e, transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.bp-card:hover {
    background: rgba(214,158,46,0.06);
    border-color: rgba(214,158,46,0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.bp-card:hover::before {
    opacity: 1;
}
.bp-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(214,158,46,0.15), rgba(214,158,46,0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #d69e2e;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.bp-card:hover .bp-card-icon {
    background: linear-gradient(135deg, #d69e2e, #b8860b);
    color: #0a2463;
    transform: scale(1.1);
}
.bp-card-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(214,158,46,0.06);
    line-height: 1;
}
.bp-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}
.bp-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin-bottom: 18px;
}
.bp-read {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #d69e2e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.bp-card:hover .bp-read {
    gap: 12px;
}
.bp-footer {
    text-align: center;
    margin-top: 40px;
}
.bp-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a2463;
    background: linear-gradient(135deg, #d69e2e, #e6b422);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(214,158,46,0.3);
}
.bp-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(214,158,46,0.5);
    gap: 14px;
}

/* Blog preview responsive */
@media (max-width: 900px) {
    .bp-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .blog-preview-section { padding: 60px 20px; }
}

/* ─── Light mode override (homepage has dark bg so this section is always dark-styled) ─── */
/* No overrides needed — this section uses its own dark background regardless of theme */

/* ═══ Dark Mode: Phone numbers gold in branch cards ═══ */
[data-theme="dark"] .branch-phone,
[data-theme="dark"] .branch-phone i,
[data-theme="dark"] .branch-card a[href^="tel:"],
[data-theme="dark"] .fc-item a[href^="tel:"],
[data-theme="dark"] .bc-item a[href^="tel:"],
[data-theme="dark"] a[href^="tel:"] {
    color: #d69e2e !important;
}
[data-theme="dark"] .branch-phone:hover,
[data-theme="dark"] a[href^="tel:"]:hover {
    color: #e6b422 !important;
}

/* ═══ Footer: Quick Links 2-column + Branches single row ═══ */
.fl-quick ul {
    columns: 2 !important;
    column-gap: 20px !important;
}
.fl-quick ul li {
    break-inside: avoid !important;
    margin-bottom: 10px !important;
}
.fl-branches ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 24px !important;
    columns: unset !important;
}
.fl-branches ul li {
    margin-bottom: 0 !important;
}
@media (max-width: 480px) {
    .fl-quick ul {
        columns: 1 !important;
    }
    .fl-branches ul {
        flex-direction: column !important;
    }
}
