/* Left Side Flip Overlay Styles */
.left-flip-btn {
    position: absolute;
    top: 90px;
    left: 30px;
    z-index: 20;
    background: #fff;
    color: #1a5fad;
    border: none;
    border-radius: 22px;
    padding: 8px 22px;
    font-size: 1.08em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26,95,173,0.10);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.left-flip-btn:hover {
    background: #1a5fad;
    color: #fff;
}
.left-flip-overlay {
    /* Use fixed so overlay reliably covers the viewport on mobile (address bar / vh quirks) */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    color: #1a5fad;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}
.left-flip-overlay.flipped {
    display: flex;
    background: #1a5fad;
    color: #fff;
}
.left-flip-content {
    max-width: 1000px;
    background: rgba(255,255,255,0.97);
    color: #1a5fad;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(26,95,173,0.13);
    padding: 38px 32px 28px 32px;
    text-align: left;
    position: relative;
    animation: slideUp 0.4s;
}
.left-flip-overlay.flipped .left-flip-content {
    background: rgba(26,95,173,0.97);
    color: #fff;
}
/* Make overlay content scrollable and constrained on small screens */
.left-flip-content {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.left-flip-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: inherit;
    font-size: 2em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.left-flip-close { z-index: 1010; }
.left-flip-close:hover {
    opacity: 1;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* Global Peace Resources branch actions style */
.branch-actions-gpr {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.branch-btn-gpr {
    padding: 8px 14px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border: none;
    border-radius: 4px;
    font-size: 0.98em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-weight: 500;
}
.branch-btn-gpr:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
}
/* Prevent flip on hover of resource icons in Global Peace Resources card */
.flip-card.gpr-no-flip-hover:hover .flip-card-inner,
.flip-card.gpr-no-flip-hover:focus-within .flip-card-inner {
    transform: none !important;
}
.bottom-contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}
.bottom-powered-by-text {
    color: #e6f2ff;
    font-size: 0.98em;
    text-align: center;
    margin-top: 2px;
    letter-spacing: 0.01em;
}
/* Bottom contact and powered by, icons only */
.bottom-contact-powered {
    width: 100%;
    text-align: center;
    color: #e6f2ff;
    font-size: 0.98em;
    margin-top: 38px;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.bottom-contact-powered a {
    color: #e6f2ff;
    text-decoration: underline dotted;
    margin-right: 4px;
    font-size: 0.98em;
}
.bottom-contact-powered a:hover {
    color: #fff;
}
.bottom-contact-icon {
    color: #ff6b6b;
    font-size: 1.08em;
    margin-right: 4px;
    vertical-align: middle;
}
.bottom-contact-sep {
    color: #b3d1f7;
    margin: 0 4px;
    font-size: 1.1em;
}
.bottom-powered-by {
    color: #e6f2ff;
    font-size: 0.98em;
    margin-top: 2px;
    display: inline-block;
}
/* Top left contact info below social icons */
.top-contact-info {
    margin-top: 10px;
    color: #fff;
    font-size: 0.98em;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.top-contact-label {
    color: #ff6b6b;
    font-size: 1.08em;
    margin-right: 4px;
    vertical-align: middle;
}
.top-contact-info a {
    color: #e6f2ff;
    text-decoration: underline dotted;
    margin-right: 4px;
    font-size: 0.98em;
}
.top-contact-info a:hover {
    color: #fff;
}
.top-contact-sep {
    color: #b3d1f7;
    margin: 0 4px;
    font-size: 1.1em;
}
/* Simple powered by text at bottom */
.powered-by-text-simple {
    width: 100%;
    text-align: center;
    color: #e6f2ff;
    font-size: 0.98em;
    margin-top: 38px;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}
/* Full-width left-side footer info block */
.left-footer-info-block {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(26,95,173,0.97);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 -2px 10px rgba(26,95,173,0.08);
    padding: 14px 24px 10px 24px;
    color: #e6f2ff;
    font-size: 1em;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.left-footer-info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    font-size: 1em;
    justify-content: center;
}
.left-footer-info-row .info-icon {
    color: #ff6b6b;
    font-size: 1.13em;
    margin-right: 2px;
    display: flex;
    align-items: center;
}
.left-footer-info-row .info-label {
    color: #e6f2ff;
    font-weight: 500;
    font-size: 1em;
}
.left-footer-info-row .info-sep {
    color: #b3d1f7;
    font-size: 1.1em;
    margin: 0 4px;
}
.left-footer-powered {
    font-size: 0.98em;
    color: #e6f2ff;
    gap: 8px;
    margin-top: 2px;
    justify-content: center;
}
.left-footer-powered .info-powered-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 1px 4px rgba(255,107,107,0.10);
}
@media (max-width: 900px) {
    .left-footer-info-block { padding: 10px 6px 8px 6px; font-size: 0.97em; }
    .left-footer-info-row { gap: 5px; }
}

/* Ensure mobile menu is hidden on desktop devices */
@media (min-width: 901px) {
    .mobile-menu, .mobile-menu-wrapper, #mobile-menu { display: none !important; }
    .mobile-menu-item { display: none !important; }
}


/* Mobile hamburger button and menu animations */
.mobile-menu-wrapper {
    position: relative;
}
.mobile-menu-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn .arrow-icon {
    display: inline-block;
    transition: transform 220ms ease, opacity 180ms ease;
    font-size: 20px;
}
.mobile-menu-btn.open .arrow-icon {
    transform: rotate(180deg);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 120px;
    max-width: 240px;
    overflow: hidden;
    background: rgba(26,95,173,0.98);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
    z-index: 1220;
    padding: 0 8px 10px 8px;
    max-height: 0;
    opacity: 0;
    transition: max-height 340ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
}
.mobile-menu-item {
    display: block;
    padding: 8px 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    background: transparent;
    text-align: left;
    width: 100%;
    opacity: 0;
    transform: translateY(-6px);
    transition: transform 260ms ease, opacity 240ms ease;
}
.mobile-menu-wrapper.open .mobile-menu { display: block; max-height: 360px; opacity: 1; }
.mobile-menu-wrapper.open .mobile-menu-item { opacity: 1; transform: translateY(0); }
.mobile-menu-wrapper.open .mobile-menu-item:nth-child(1) { transition-delay: 40ms; }
.mobile-menu-wrapper.open .mobile-menu-item:nth-child(2) { transition-delay: 80ms; }
.mobile-menu-wrapper.open .mobile-menu-item:nth-child(3) { transition-delay: 120ms; }
.mobile-menu-item i { font-size: 16px; }
.mobile-menu-item .menu-text { font-size: 14px; color: #fff; }

/* Close button inside mobile menu */
.mobile-menu-close {
    position: relative;
    display: block;
    margin: 8px auto 6px auto;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}
.mobile-menu-close i { pointer-events: none; }
.mobile-menu-close:active { transform: scale(0.98); }

/* On mobile show only icons (hide text label) */
@media (max-width:900px) {
    .mobile-menu-item .menu-text { display: none; }
}

/* Ensure mobile menu is hidden on desktop (double-check) */
@media (min-width:901px) {
    .mobile-menu, .mobile-menu-wrapper, #mobile-menu { display: none !important; }
    .mobile-menu-item { display: none !important; }
}
/* Modern Info Block for Contact/Powered-by */
.info-block {
    width: 100%;
    margin: 32px 0 0 0;
    padding: 0 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
    font-size: 1.04em;
    letter-spacing: 0.01em;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    flex-wrap: wrap;
}
.info-icon {
    color: #ff6b6b;
    font-size: 1.18em;
    margin-right: 2px;
    display: flex;
    align-items: center;
}
.info-label {
    color: #e6f2ff;
    font-weight: 500;
    font-size: 1em;
}
.info-sep {
    color: #b3d1f7;
    font-size: 1.1em;
    margin: 0 4px;
}
.info-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #ff6b6b 0%, #e6f2ff 100%);
    opacity: 0.18;
    margin: 6px 0 2px 0;
    border-radius: 2px;
}
.info-powered {
    font-size: 0.98em;
    color: #e6f2ff;
    gap: 8px;
}
.info-powered-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 1px 4px rgba(255,107,107,0.10);
}
/* Left Side Footer Bar Styles */
.left-footer-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #ffe5e5;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 -2px 10px rgba(255,107,107,0.07);
    padding: 18px 0 10px 0;
    color: #b23b3b;
    font-size: 1em;
    z-index: 5;
}
.left-footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
    flex-wrap: wrap;
}
.left-footer-contact {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    color: #b23b3b;
    font-size: 1em;
}
.left-footer-label {
    color: #e74c3c;
    font-weight: 600;
    margin-right: 4px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 3px;
}
.left-footer-bar a {
    color: #b23b3b;
    text-decoration: underline dotted;
    transition: color 0.2s;
    font-size: 0.98em;
}
.left-footer-bar a:hover {
    color: #e74c3c;
}
.footer-sep {
    color: #e6b0b0;
    margin: 0 4px;
    font-size: 1.1em;
}
.left-footer-powered {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #b23b3b;
    font-size: 0.98em;
    margin-top: 2px;
}
.left-footer-powered .footer-powered-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 1px 4px rgba(255,107,107,0.10);
}
@media (max-width: 900px) {
    .left-footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0 10px;
    }
    .left-footer-bar { padding: 14px 0 8px 0; }
}
/* Footer-style Contact & Powered-by Bar */
.footer-contact-bar {
    width: 100%;
    background: rgba(255,255,255,0.10);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
    padding: 18px 18px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: #e6f2ff;
    font-size: 1em;
}
.footer-contact-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #e6f2ff;
    font-size: 1em;
}
.footer-contact-label {
    color: #ff6b6b;
    font-weight: 600;
    margin-right: 4px;
    font-size: 1em;
}
.footer-contact-bar a {
    color: #e6f2ff;
    text-decoration: underline dotted;
    transition: color 0.2s;
    font-size: 0.98em;
}
.footer-contact-bar a:hover {
    color: #fff;
}
.footer-sep {
    color: #b3d1f7;
    margin: 0 4px;
    font-size: 1.1em;
}
.footer-powered-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e6f2ff;
    font-size: 0.98em;
    margin-top: 2px;
}
.footer-powered-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
/* Modern Contact Info Styles */
.contact-info {
    background: rgba(255,255,255,0.13);
    border-radius: 12px;
    padding: 28px 22px 18px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 30px;
    max-width: 410px;
    margin-left: auto;
    margin-right: auto;
}
.contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.18em;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.contact-header i {
    color: #ff6b6b;
    font-size: 1.3em;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}
.contact-block {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.contact-icon {
    color: #2d8ae6;
    font-size: 1.25em;
    margin-top: 2px;
}
.contact-info-text {
    color: #fff;
    font-size: 1em;
    line-height: 1.5;
}
.contact-label {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 0.98em;
    margin-right: 8px;
}
.contact-info-text a {
    color: #e6f2ff;
    text-decoration: underline dotted;
    transition: color 0.2s;
    font-size: 0.98em;
}
.contact-info-text a:hover {
    color: #fff;
}
.powered-by-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.09);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    color: #fff;
    font-size: 1em;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.flip-card.no-flip-hover:hover .flip-card-inner,
.flip-card.no-flip-hover:focus-within .flip-card-inner {
    transform: none !important;
}
/* Prevent flip on hover of social icons inside branch-actions */
.branch-actions .branch-btn a,
.branch-actions .branch-btn {
    pointer-events: auto;
}
.flip-card .branch-actions .branch-btn:hover,
.flip-card .branch-actions .branch-btn:focus {
    z-index: 2;
}
.flip-card .branch-actions .branch-btn:focus-visible {
    outline: 2px solid var(--primary-blue);
}
.flip-card .branch-actions .branch-btn,
.flip-card .branch-actions .branch-btn * {
    z-index: 2;
}
/* Site Loading Overlay Styles */
#site-loading-overlay {
    background: rgba(255,255,255,0.97);
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100vw; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s;
}
.site-loading-circle {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-loading-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 120px;
    height: 120px;
    border: 7px solid #e6f2ff;
    border-top: 7px solid #1a5fad;
    border-radius: 50%;
    animation: site-spin 1.2s linear infinite;
    z-index: 1;
}
@keyframes site-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Flip tip and mobile flip button styles */
.flip-tip {
    font-weight: 500;
}
@media (max-width: 900px) {
    .flip-tip-desktop { display: none !important; }
    .flip-tip-mobile { display: inline !important; }
    .flip-btn-mobile { display: inline-flex !important; }
    .flip-card:hover .flip-card-inner, .flip-card:focus-within .flip-card-inner {
        /* Prevent hover flip on mobile */
        transform: none;
    }

    /* Stack layout into a single column for mobile and allow full-page scroll */
    .split-container {
        flex-direction: column;
        height: auto;
    }
    body {
        overflow: auto; /* allow whole page scrolling */
        height: auto;
    }
    .left-side, .right-side {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 22px;
    }
    /* Move logo and text lower on mobile */
    .logo-container { margin-top: 24px; margin-bottom: 18px; }
    .logo-text { margin-top: 8px; }
    /* Place flip tip on top-right of left container */
    .left-side .flip-tip { position: absolute; top: 12px; right: 14px; z-index: 15; }

    /* Place About button directly below the tip in the top-right of left container on mobile */
    .left-container-tip.flip-tip + .left-flip-btn,
    .left-side .left-container-tip.flip-tip + .left-flip-btn {
        position: absolute;
        top: 48px; /* tip (12px) + tip height (~24px) + small gap */
        right: 14px;
        left: auto;
        z-index: 1215;
    }

    /* hide desktop social icons on small screens */
    .desktop-only { display: none !important; }

    /* show left container tip and hide right-side tip on mobile */
    .left-side .left-container-tip { display: block !important; }
    .branches-header .flip-tip { display: none !important; }

    /* Desktop-only block should display by default; hidden on mobile below */
    .desktop-only { display: block; }
    .mobile-menu-wrapper { display: inline-block; }
    .mobile-menu-btn {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.2rem;
        padding: 6px 8px;
        border-radius: 6px;
    }
    .mobile-menu {
        /* vertical stacked menu under the hamburger */
        display: none;
        position: absolute;
        top: 44px; /* anchored below button */
        left: 50%;
        transform: translateX(-50%);
        min-width: 120px;
        max-width: 220px;
        flex-direction: column;
        gap: 10px;
        padding: 10px 8px;
        background: rgba(26,95,173,0.98);
        color: #fff;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
        z-index: 1220;
        align-items: stretch;
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu-item {
        display: block;
        color: #fff;
        padding: 8px 12px;
        text-decoration: none;
        border-radius: 6px;
        background: transparent;
        text-align: left;
        border: none;
        width: 100%;
    }
    .mobile-menu-item:hover { background: rgba(255,255,255,0.06); }
}

/* Additional mobile size tweaks for top-left icons and buttons */
@media (max-width: 600px) {
    .follow-us-top .social-icons .social-icon {
        font-size: 0.8rem; /* anchor font-size */
        margin-right: 6px;
        padding: 6px;
        display: inline-flex;

/* Center menu icons in the vertical menu on small screens */
@media (max-width:900px) {
    .mobile-menu-item {
        text-align: center; /* center icon horizontally */
        padding: 10px 6px; /* tighter vertical padding when centered */
    }
    .mobile-menu-item i {
        display: inline-block;
        margin: 0 auto;
    }
}
        align-items: center;
        justify-content: center;
    }
    /* Ensure the actual icon (<i>) is smaller and centered */
    .follow-us-top .social-icons .social-icon i {
        font-size: 14px !important;
        line-height: 1;
        display: inline-block;
    }
    /* Slightly move social block inward on small screens */
    .follow-us-top { top: 16px; left: 12px; }

    .left-flip-btn {
        top: 60px;
        left: 12px;
        padding: 6px 10px;
        font-size: 0.88em;
        border-radius: 18px;
    }
    .flip-tip {
        font-size: 0.82em;
    }
    /* Make sure the overlay close button is visible on small screens */
    .left-flip-close {
        top: 10px;
        right: 10px;
        font-size: 1.6em;
        opacity: 0.95;
    }
    /* Mobile center close button near signature */
    .left-flip-close-mobile {
        display: none; /* default hidden, shown only on small screens */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 28px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,0.12);
        color: #fff;
        font-size: 1.4rem;
        z-index: 1020;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
        backdrop-filter: blur(4px);
    }
    .left-flip-overlay.flipped .left-flip-close-mobile { display: inline-flex; }
}

/* Mobile-only flip back button inside flip-card-back */
@media (max-width: 900px) {
    .flip-back-btn-mobile {
        display: inline-flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
        margin: 12px auto 8px auto;
        padding: 10px 14px;
        background: rgba(255,255,255,0.12);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 0.98em;
        cursor: pointer;
        z-index: 1100; /* ensure it's above embedded content */
    }
    .flip-back-btn-mobile i { font-size: 1em; }
    .flip-card-back { padding-bottom: 28px; }

    /* Reinforce disabling hover/focus flip on mobile */
    .flip-card:hover .flip-card-inner,
    .flip-card:focus-within .flip-card-inner {
        transform: none !important;
    }
}
/* Flip Card Styles for Global Peace Resources */
        .flip-card {
    perspective: 1000px;
    position: relative;
    /* Slightly taller to accommodate a consistent image area + content */
    min-height: 360px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,1);
    transform-style: preserve-3d;
}
.flip-card:focus-within .flip-card-inner {
        transform: rotateY(180deg);
}

/* Hover flip only on wider screens (desktop); mobile will use .flipped-mobile */
@media (min-width: 901px) {
    .flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
}

/* Mobile/JS-triggered flip class */
.flip-card.flipped-mobile .flip-card-inner {
    transform: rotateY(180deg) !important;
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.flip-card-front {
    z-index: 2;
}
.flip-card-back {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #fff !important;
    transform: rotateY(180deg);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}
.flip-card-back * {
    color: #fff !important;
}

/* Ensure embedded maps/iframes match the branch image area so front/back align */
.flip-card-back iframe,
.flip-card-back embed,
.flip-card-back object {
    width: 100% !important;
    height: 180px !important; /* match .branch-image height */
    border: 0 !important;
    border-radius: 8px !important;
}

@media (max-width: 600px) {
    .flip-card-back iframe,
    .flip-card-back embed,
    .flip-card-back object {
        height: 140px !important; /* smaller on narrow screens */
    }
    .branch-image {
        height: 140px;
    }
}
     * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary-blue: #1a5fad;
            --secondary-blue: #2d8ae6;
            --light-blue: #e6f2ff;
            --dark-blue: #0d3b66;
            --accent-color: #ff6b6b;
            --text-dark: #333;
            --text-light: #666;
            --white: #fff;
            --light-gray: #f5f7fa;
            --border-radius: 8px;
            --transition: all 0.3s ease;
        }

        body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;   /* allow scroll vertically, block sideways */
  overflow-y: auto;     /* enable natural scroll */
  height: auto;         /* don’t lock to 100vh */
  min-height: 100vh;    /* ensure full height */
}
        .split-container {
  display: flex;
  min-height: 100vh;    /* allow to grow with content */
  height: auto;         /* no hard lock */
}

        /* Left Side Styles */
        .left-side {
            flex: 1;
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
            color: var(--white);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .left-side::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('https://via.placeholder.com/1920x1080/1a5fad/ffffff?text=Peshika+BG+Image');
            background-size: cover;
            background-position: center;
            opacity: 0.5;
            z-index: 0;
        }

        .logo-container {
            margin-bottom: 40px;
            z-index: 1;
            position: relative;
        }

        .logo {
            width: 180px;
            height: 180px;
            background-color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            animation: float 6s ease-in-out infinite;
            position: relative;
            overflow: hidden;
        }

        .logo-img {
            width: 80%;
            height: 80%;
            object-fit: contain;
            border-radius: 50%;
        }

        .logo-text {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .logo-subtitle {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .coming-soon-banner {
            background: var(--accent-color);
            padding: 12px 50px;
            border-radius: 50px;
            font-size: 2.8rem;
            font-weight: 700;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            animation: pulse 2s infinite;
            z-index: 1;
            position: relative;
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0px); }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .countdown {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            z-index: 1;
            position: relative;
        }

        .countdown-item {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border-radius: var(--border-radius);
            padding: 15px;
            min-width: 80px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: visible;
        }

        .countdown-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            transform: translateX(-100%);
        }

        .countdown-item:hover::before {
            animation: shimmer 1.5s infinite;
        }

        @keyframes shimmer {
            100% {
                transform: translateX(100%);
            }
        }

        .countdown-number {
            font-size: 2.2rem;
            font-weight: 700;
            display: block;
            margin-bottom: 5px;
        }

        .countdown-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .contact-info {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: var(--border-radius);
            padding: 25px;
            width: 100%;
            max-width: 400px;
            margin-bottom: 30px;
            z-index: 1;
        }

        .contact-item {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .contact-item i {
            margin-right: 12px;
            width: 20px;
            text-align: center;
        }

        .powered-by {
            margin-top: -60px;
            font-size: 0.9rem;
            opacity: 0.8;
            z-index: 1;
        }

        /* Right Side Styles */
        .right-side {
            flex: 1;
            background-color: var(--light-gray);
            display: flex;
            flex-direction: column;
            padding: 40px;
            overflow-y: auto;
            max-height: 100vh;
        }

        .branches-header {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
        }

        .gp-logo {
            width: 60px;
            height: 60px;
            margin-right: 15px;
            border-radius: 50%;
            background-color: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }

        .gp-logo-img {
            width: 60%;
            height: 60%;
            object-fit: contain;
        }

        .section-title {
            font-size: 1.8rem;
            color: var(--primary-blue);
            position: relative;
        }

        .branches-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

        .branch-card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
        }

        .branch-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .branch-image {
            /* Fixed image area so all branch cards look consistent */
            height: 180px;
            min-height: 140px;
            max-height: 220px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: block;
            width: 100%;
        }

        .branch-content {
            padding: 20px;
        }

        .branch-name {
            font-size: 1.3rem;
            color: var(--primary-blue);
            margin-bottom: 10px;
        }

        .branch-address, .branch-contact {
            margin-bottom: 10px;
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .branch-contact i {
            color: var(--secondary-blue);
            margin-right: 5px;
        }

        .branch-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .branch-btn {
            flex: 1;
            padding: 8px 12px;
            background-color: var(--light-blue);
            color: var(--primary-blue);
            border: none;
            border-radius: 4px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .branch-btn:hover {
            background-color: var(--secondary-blue);
            color: var(--white);
        }

        .quick-links {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 40px;
        }

        .link-button {
            display: inline-flex;
            align-items: center;
            padding: 12px 20px;
            background-color: var(--primary-blue);
            color: var(--white);
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .link-button:hover {
            background-color: var(--secondary-blue);
            transform: translateY(-3px);
        }

        .link-button i {
            margin-right: 8px;
        }

        .social-media {
            margin-bottom: 30px;
        }

        .social-icons {
            display: flex;
            gap: 15px;
        }

        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background-color: var(--primary-blue);
            color: var(--white);
            border-radius: 50%;
            font-size: 1.2rem;
            transition: var(--transition);
            text-decoration: none;
        }

        .social-icon:hover {
            background-color: var(--secondary-blue);
            transform: translateY(-3px);
        }

        footer {
            margin-top: auto;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            font-size: 0.85rem;
            color: var(--text-light);
        }

        /* Loading Animation */
        .loading-ring {
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            border: 5px solid transparent;
            border-top: 5px solid var(--accent-color);
            border-radius: 50%;
            animation: spin 2s linear infinite;
            z-index: -1;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
  body {
    overflow-y: auto; /* only one scrollbar */
    height: auto;     /* allow body to expand */
  }
 .split-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible; /* no extra scroll here */
  }

  .left-side,
  .right-side {
    flex: none;
    width: 100%;
    min-height: auto; /* don’t lock height */
    padding: 30px 15px;
    box-sizing: border-box;
    overflow: visible !important; /* kill side scrollbars */
    max-height: unset !important; /* remove height restriction */
  }

   .left-side {
    order: 1;
    border-radius: 0 0 18px 18px;
  }

  .right-side {
    order: 2;
    margin-top: 0;
    border-radius: 18px 18px 0 0;
  }

  html {
    scroll-behavior: smooth;
  }
  .logo-container {
    margin-bottom: 24px;
  }
  .coming-soon-banner {
    font-size: 1.5rem;
    padding: 10px 18px;
    margin-bottom: 18px;
  }
  .countdown {
    gap: 8px;
    margin-bottom: 24px;
  }
  .countdown-item {
    min-width: 60px;
    padding: 10px;
  }
  .branches-header {
    margin-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .gp-logo {
    margin-bottom: 8px;
    margin-right: 0;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .branches-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
  }
  .branch-card {
    min-height: 320px;
  }
  .contact-info {
    max-width: 100%;
    margin-bottom: 18px;
    padding: 18px 10px;
  }
  footer {
    padding-top: 12px;
    font-size: 0.85rem;
  }
}
@media (max-width: 600px) {
  .logo {
    width: 100px;
    height: 100px;
  }
  .logo-text {
    font-size: 1.1rem;
  }
  .logo-subtitle {
    font-size: 0.85rem;
  }
  .coming-soon-banner {
    font-size: 1.1rem;
    padding: 7px 10px;
  }
  .countdown-item {
    min-width: 45px;
    padding: 7px;
  }
  .branch-content {
    padding: 12px;
  }
}
/* --- Creative Banner & Timer Animations --- */
.creative-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--accent-color);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: visible;
    animation: bannerGlow 2.5s infinite alternate;
}
@keyframes bannerGlow {
    0% { box-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 0px #ff6b6b; }
    100% { box-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 24px #ff6b6b; }
}
.banner-text-wave {
    display: inline-block;
    animation: waveText 2.2s infinite linear;
}
@keyframes waveText {
    0%,100% { transform: translateY(0); }
    20% { transform: translateY(-8px); }
    40% { transform: translateY(0); }
    60% { transform: translateY(8px); }
    80% { transform: translateY(0); }
}
.countdown-number {
    display: inline-block;
    animation: waveText 2.2s infinite linear;
}
/* Remove all book, sparkle, hat, and extra creative styles */
.banner-books, .banner-sparkles, .banner-hat, .book, .sparkle, .timer-hat, .timer-sparkles {
    display: none !important;
}
/* Mobile-first optimization for split layout */
@media (max-width: 1024px) {
  body {
    overflow-y: auto; /* allow smooth scroll */
    height: auto;     /* prevent cutoff */
  }

  .split-container {
    flex-direction: column;   /* stack vertically */
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .left-side, .right-side {
    flex: none;
    width: 100%;
    min-height: unset;
    padding: 30px 15px;
  }

  .left-side {
    order: 1; /* show first */
    border-radius: 0 0 18px 18px;
  }

  .right-side {
    order: 2; /* show second */
    margin-top: 0;
    border-radius: 18px 18px 0 0;
  }

  html {
    scroll-behavior: smooth; /* smooth scroll on mobile */
  }
}

@media (max-width: 600px) {
  .logo {
    width: 90px;
    height: 90px;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .logo-subtitle {
    font-size: 0.85rem;
  }
  .coming-soon-banner {
    font-size: 1rem;
    padding: 8px 12px;
  }
}
/* Extra mobile optimizations */
@media (max-width: 768px) {
  /* Give more breathing room between branch cards */
  .branches-grid {
    grid-template-columns: 1fr;
    gap: 28px; /* bigger gap */
    margin-bottom: 30px;
  }

  .branch-card {
    min-height: 340px; /* prevent overlap */
  }

  /* Shrink About button */
  .left-flip-btn {
    top: 75px;
    left: 20px;
    padding: 6px 14px;
    font-size: 0.9em;
  }

  /* Shrink social media icons */
  .social-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .social-icons {
    gap: 10px;
  }

  /* Shrink tip bubble/button */
  .flip-tip span {
    font-size: 0.75rem !important;
    padding: 5px 10px !important;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  /* Even smaller for very small devices */
  .left-flip-btn {
    .flip-btn-mobile { display: inline-flex !important; z-index: 1100; position: relative; }
    left: 15px;
    padding: 5px 12px;
    font-size: 0.8em;
  }

  .social-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .flip-tip span {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
  }

  .branches-grid {
    gap: 24px;
  }
}

/* Prevent overlap: ensure social icons remain visible and About button doesn't cover them
     Move About button a bit to the right on wider screens and raise social icons z-index */
@media (min-width: 601px) {
    .follow-us-top { left: 16px; top: 18px; z-index: 1200; }
    .follow-us-top .social-icons { position: relative; z-index: 1210; }
    /* Move About button to the right so it doesn't sit on top of the icons */
    .left-flip-btn { left: 96px; }
}

/* Slightly smaller shift for medium screens */
@media (min-width: 401px) and (max-width: 600px) {
    .left-flip-btn { left: 72px; }
}
/* Sidebar container */
.sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 60px;           /* collapsed width */
  background: #1e1e2f;
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: width 0.3s ease;
  overflow: hidden;
  z-index: 1000;
}

/* Expanded sidebar */
.sidebar.open {
  width: 160px;
}

/* Buttons and links */
.sidebar button, .sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar button:hover, .sidebar a:hover {
  background: #333;
}

/* Close button hidden initially */
.sidebar .close-btn {
  display: none;
}

.sidebar.open .close-btn {
  display: flex;
}

/* Letters and language text */
.sidebar .letter {
  font-weight: bold;
  font-size: 18px;
  margin-right: 8px;
}

/* Only show letters + abbreviation when expanded */
.sidebar:not(.open) .lang,
.sidebar:not(.open) a {
  display: none;
}

.sidebar.open a {
  display: flex;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .sidebar.open {
    width: 140px;
  }
}
