/*
Theme Name: IntelliSkool
Theme URI: https://www.intelliskool.com/
Author: IntelliSkool
Author URI: https://www.intelliskool.com/
Description: Ultra-modern, premium, high-converting WordPress theme for IntelliSkool - Where Skills Create Freedom. Purpose-built for digital academies, creator workflows, and future-ready skill education.
Version: 2.8.0
Tested up to: 6.8
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: intelliskool
Tags: education, e-learning, academy, woocommerce, responsive-layout, custom-header, custom-menu, featured-images, full-width-template
*/

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors */
    --is-primary: #6D3AF0;
    --is-primary-rgb: 109, 58, 240;
    --is-primary-hover: #5B28DC;
    --is-primary-light: #F4F0FF;
    --is-primary-soft: rgba(109, 58, 240, 0.08);

    --is-secondary: #0D0D21;
    --is-secondary-rgb: 13, 13, 33;
    --is-navy: #14143C;
    --is-navy-rgb: 20, 20, 60;
    
    --is-accent-amber: #FF7A45;
    --is-accent-amber-soft: #FFF2EB;
    --is-accent-purple: #8B5CF6;
    --is-accent-cyan: #06B6D4;
    --is-accent-green: #10B981;
    --is-accent-green-soft: #ECFDF5;

    /* Backgrounds */
    --is-bg: #FAF9FF;
    --is-bg-card: #FFFFFF;
    --is-bg-dark: #0D0D21;
    --is-bg-glass: rgba(255, 255, 255, 0.85);

    /* Text */
    --is-text: #14143C;
    --is-text-muted: #6B7280;
    --is-text-light: #9CA3AF;
    --is-text-white: #FFFFFF;

    /* Borders */
    --is-border: #E5E2F0;
    --is-border-light: #F1EFF8;
    --is-border-hover: #CFC8E8;

    /* Shadows */
    --is-shadow-sm: 0 2px 8px rgba(20, 20, 60, 0.04);
    --is-shadow-md: 0 8px 24px rgba(20, 20, 60, 0.07);
    --is-shadow-lg: 0 16px 40px rgba(20, 20, 60, 0.10);
    --is-shadow-xl: 0 24px 60px rgba(20, 20, 60, 0.14);
    --is-shadow-glow: 0 10px 30px rgba(109, 58, 240, 0.25);

    /* Radii */
    --is-radius-sm: 8px;
    --is-radius-md: 14px;
    --is-radius-lg: 20px;
    --is-radius-xl: 28px;
    --is-radius-full: 9999px;
    --is-radius-pill: 9999px; /* alias used by WooCommerce/Tutor overrides */

    /* Status colors (used by WooCommerce notices) */
    --is-success: #10B981;
    --is-error: #EF4444;
    --is-warning: #F59E0B;
    --is-info: #6D3AF0;

    /* Component shadow aliases */
    --is-shadow-card: 0 8px 24px rgba(20, 20, 60, 0.07);

    /* Typography */
    --is-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --is-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --is-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --is-transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--is-font-body);
    color: var(--is-text);
    background-color: var(--is-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--is-font-heading);
    color: var(--is-navy);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--is-text-muted);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--is-primary);
    text-decoration: none;
    transition: var(--is-transition);
}

a:hover {
    color: var(--is-primary-hover);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.is-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.is-container-narrow {
    max-width: 900px;
}

.is-container-wide {
    max-width: 1360px;
}

.is-section {
    padding-top: clamp(36px, 5vw, 64px);
    padding-bottom: clamp(36px, 5vw, 64px);
    position: relative;
}

.is-section-sm {
    padding-top: clamp(40px, 5vw, 60px);
    padding-bottom: clamp(40px, 5vw, 60px);
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */
.is-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--is-font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 15px 28px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--is-transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* One signature gradient, spent in one place: the primary action per screen.
   Every other tier stays quiet so the gradient still reads as special. */
.is-btn-primary {
    background: linear-gradient(100deg, #3B4CE0 0%, #B02E97 50%, #E8452B 100%);
    color: #FFFFFF !important;
    box-shadow: 0 8px 22px rgba(176, 46, 151, 0.32);
}

.is-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(176, 46, 151, 0.45);
    background: linear-gradient(100deg, #2E3ECC 0%, #98277F 50%, #D13A21 100%);
}

/* Secondary tier: important but not the main action. Outlined, brand-colored. */
.is-btn-outline {
    background: #FFFFFF;
    color: var(--is-primary) !important;
    border-color: var(--is-border-hover);
    box-shadow: none;
}
.is-btn-outline:hover {
    transform: translateY(-2px);
    border-color: var(--is-primary);
    background: var(--is-primary-light);
    color: var(--is-primary) !important;
    box-shadow: var(--is-shadow-sm);
}

/* Tertiary tier: low emphasis, tinted fill, no border. */
.is-btn-ghost {
    background: var(--is-primary-light);
    color: var(--is-primary) !important;
    border-color: transparent;
    box-shadow: none;
}
.is-btn-ghost:hover {
    background: var(--is-primary);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* Dark surfaces (hero, footer, dark cards): solid navy, not gradient. */
.is-btn-dark {
    background: var(--is-navy);
    color: #FFFFFF !important;
    border-color: transparent;
}
.is-btn-dark:hover {
    background: #0A0A24;
    transform: translateY(-2px);
}

.is-btn-lg {
    padding: 18px 34px;
    font-size: 1.05rem;
}

.is-btn-sm {
    padding: 10px 18px;
    font-size: 0.85rem;
}

.is-btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.is-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--is-radius-full);
    font-family: var(--is-font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.is-badge-purple {
    background: var(--is-primary-light);
    color: var(--is-primary);
    border: 1px solid rgba(109, 58, 240, 0.15);
}

.is-badge-amber {
    background: var(--is-accent-amber-soft);
    color: var(--is-accent-amber);
    border: 1px solid rgba(255, 122, 69, 0.2);
}

.is-badge-green {
    background: var(--is-accent-green-soft);
    color: var(--is-accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.is-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
    animation: is-pulse 2s infinite ease-in-out;
}

@keyframes is-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.is-sec-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px auto;
}

.is-sec-header.text-left {
    text-align: left;
    margin-left: 0;
}

.is-sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--is-primary);
    font-family: var(--is-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.is-sec-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 16px;
}

.is-sec-desc {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--is-text-muted);
}

/* ==========================================================================
   14. MAIN LANDMARK + SKIP LINK (a11y / SEO)
   ========================================================================== */
.is-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 12px 20px;
    background: var(--is-primary);
    color: #FFFFFF !important;
    border-radius: 0 0 var(--is-radius-sm) 0;
    font-family: var(--is-font-heading);
    font-weight: 600;
}
.is-skip-link:focus {
    left: 0;
}

.is-main {
    display: block;
}

/* ==========================================================================
   15. RESPONSIVE BUTTON / CTA SIZING  (fixes "buttons too big" on mobile)
   ========================================================================== */
@media (max-width: 600px) {
    .is-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }
    .is-btn-lg {
        padding: 14px 22px;
        font-size: 0.95rem;
    }
    .is-btn-sm {
        padding: 9px 15px;
        font-size: 0.8rem;
    }
    .is-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Very small phones: let primary CTAs go full width so they never overflow */
@media (max-width: 400px) {
    .is-hero-actions .is-btn,
    .is-prefooter-banner .is-btn {
        width: 100%;
    }
}

/* Keep long words / prices from forcing horizontal scroll on tiny screens */
@media (max-width: 380px) {
    :root { font-size: 15px; }
    .is-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
