/**
 * Jewang Education Consult — Supplemental / Enhancement CSS
 * (extends style.css)
 */

/* =========================================
   GOOGLE FONTS FALLBACK IMPORT
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* =========================================
   HERO SLIDE BACKGROUND FALLBACKS
   (In production, replace with real images.
    Using CSS gradients as placeholders.)
   ========================================= */
.hero-slide-australia {
    background-image: linear-gradient(135deg, #0369a1 0%, #0ea5e9 40%, #7dd3fc 100%);
}
.hero-slide-canada {
    background-image: linear-gradient(135deg, #be123c 0%, #e11d48 40%, #fb7185 100%);
}
.hero-slide-uk {
    background-image: linear-gradient(135deg, #1e3a5f 0%, #0f172a 40%, #1d4ed8 100%);
}

/* =========================================
   BLOG PLACEHOLDER BACKGROUND
   ========================================= */
.blog-card-image img[src*="blog-placeholder"] {
    background: linear-gradient(135deg, var(--color-sky-light), var(--color-sky));
    min-height: 200px;
}

/* =========================================
   ENHANCED FORM FOCUS STYLES
   ========================================= */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    border-color: var(--color-sky-dark);
    box-shadow: 0 0 0 4px rgba(125,211,252,0.2);
    outline: none;
}

/* =========================================
   WORDPRESS GUTENBERG BLOCKS
   ========================================= */
.wp-block-image img {
    border-radius: var(--radius-lg);
}

.wp-block-quote {
    border-left: 4px solid var(--color-sky);
    padding: 1rem 1.5rem;
    background: var(--color-gray-100);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
    font-style: italic;
}

.wp-block-button__link {
    background: var(--color-navy) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    padding: 0.85rem 2rem !important;
    transition: var(--transition) !important;
}

.wp-block-button__link:hover {
    background: var(--color-sky-dark) !important;
    transform: translateY(-2px);
}

.wp-block-cover {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.wp-block-separator {
    border-color: var(--color-gray-200);
    border-top-width: 2px;
}

.wp-block-table td,
.wp-block-table th {
    border-color: var(--color-gray-200);
    padding: 0.75rem 1rem;
}

.wp-block-table th {
    background: var(--color-sky);
    color: var(--color-navy);
    font-weight: 700;
}

/* =========================================
   WORDPRESS CAPTIONS & GALLERIES
   ========================================= */
.wp-caption {
    max-width: 100%;
    text-align: center;
}

.wp-caption img {
    border-radius: var(--radius-lg);
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-top: 0.5rem;
    font-style: italic;
}

.gallery {
    display: grid;
    gap: 1rem;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* =========================================
   ADMIN BAR OFFSET
   ========================================= */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
    .site-header,
    .top-bar,
    .hero-slider,
    .hero-dots,
    .hero-arrow,
    .hero-stats-bar,
    .cta-section,
    .site-footer,
    #back-to-top,
    .nav-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #555;
    }
}

/* =========================================
   ACCESSIBILITY FOCUS INDICATORS
   ========================================= */
*:focus-visible {
    outline: 3px solid var(--color-sky-dark);
    outline-offset: 2px;
    border-radius: 3px;
}

.btn:focus-visible {
    outline: 3px solid var(--color-sky-dark);
    outline-offset: 3px;
}

/* =========================================
   SELECTION COLOUR
   ========================================= */
::selection {
    background: var(--color-sky);
    color: var(--color-navy);
}

::-moz-selection {
    background: var(--color-sky);
    color: var(--color-navy);
}

/* =========================================
   SCROLLBAR STYLING (Chrome/Edge)
   ========================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-gray-100); }
::-webkit-scrollbar-thumb {
    background: var(--color-sky-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-navy); }

/* =========================================
   WHATSAPP FLOAT BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 998;
    width: 50px;
    height: 50px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    fill: white;
}

/* =========================================
   LOADING SKELETON PLACEHOLDER
   ========================================= */
@keyframes skeleton-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}
