/* ==========================================================================
   Silversky Consulting - Modern Responsive Design System
   Engineered for high performance, smooth micro-interactions & cPanel hosting
   ========================================================================== */

/* --- CSS Reset & Box Sizing --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors (Exact WordPress defaults) */
    --color-primary: #002060;
    --color-primary-rgb: 0, 32, 96;
    --color-primary-light: #0d3b85;
    --color-secondary: #EE4A62;
    --color-secondary-hover: #d93850;
    --color-accent: #f8b81f;
    --color-accent-hover: #dfa312;
    
    /* Neutrals & Dark Theme */
    --color-dark: #001540;
    --color-dark-surface: #0a1f4d;
    --color-text-main: #232323;
    --color-text-muted: #555555;
    --color-text-light: #888888;
    --color-bg-body: #f8f9fa;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;
    --color-border-subtle: #edf2f7;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #002060 0%, #003399 100%);
    --grad-secondary: linear-gradient(135deg, #EE4A62 0%, #ff6b81 100%);
    --grad-accent: linear-gradient(135deg, #f8b81f 0%, #e09900 100%);
    --grad-hero-overlay: linear-gradient(180deg, rgba(0, 32, 96, 0.90) 0%, rgba(0, 21, 64, 0.95) 100%);
    --grad-card-glow: radial-gradient(circle at top right, rgba(238, 74, 98, 0.08), transparent 70%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 25px rgba(14, 205, 115, 0.25);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Typography */
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.font-garamond {
    font-family: 'EB Garamond', Garamond, 'Apple Garamond', Baskerville, Georgia, 'Times New Roman', serif !important;
}

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

a:hover {
    color: var(--color-secondary);
}

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

ul, ol {
    list-style-position: inside;
}

/* --- Container & Grid System --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-fluid {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-normal);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 32, 96, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 32, 96, 0.35);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(14, 205, 115, 0.25);
}

.btn-secondary:hover {
    background: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 205, 115, 0.35);
}

.btn-accent {
    background: var(--color-accent);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff !important;
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff !important;
    backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--color-primary) !important;
    border-color: #ffffff;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.95rem 2.2rem;
    font-size: 1.05rem;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary { background: rgba(0, 32, 96, 0.1); color: var(--color-primary); }
.badge-secondary { background: rgba(14, 205, 115, 0.12); color: #088b4d; }
.badge-accent { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.badge-free { background: #dcfce7; color: #166534; }
.badge-paid { background: #fef3c7; color: #92400e; }

/* --- Top Header Bar --- */
.top-bar {
    background-color: var(--color-dark);
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar a:hover {
    color: var(--color-secondary);
}

/* --- Main Navigation Header --- */
.main-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-symbol {
    width: 44px;
    height: 44px;
    background: var(--grad-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 32, 96, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.95rem;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-main);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-item.active > .nav-link {
    color: var(--color-primary);
    background-color: rgba(0, 32, 96, 0.04);
}

.nav-link i.dropdown-caret {
    font-size: 0.85rem;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link i.dropdown-caret {
    transform: rotate(180deg);
}

/* Dropdown Submenu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-normal);
    z-index: 1050;
    list-style: none;
}

.nav-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.dropdown-item a:hover {
    color: var(--color-primary);
    background-color: #f1f5f9;
    padding-left: 1.5rem;
}

/* Header CTA */
.header-cta {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
}

/* Hide header CTA on medium screens (laptops, landscape tablets, medium windows) so menu items fit smoothly */
@media (max-width: 1280px) {
    .header-cta {
        display: none !important;
    }
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--color-dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 3.5rem 0 3.8rem;
    background-color: var(--color-dark);
    background-image: var(--grad-hero-overlay), url('../images/hero_banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #ffffff;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.85fr);
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.hero-content {
    max-width: 820px;
    position: relative;
    z-index: 2;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(1.85rem, 3.8vw, 2.9rem);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-weight: 800;
}

.hero-title span.highlight,
.hero-title .highlight,
.highlight {
    color: #f8b81f;
    background: linear-gradient(120deg, #f8b81f 0%, #0ecd73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: #e2e8f0;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Hero Logo (Right Column) */
.hero-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-logo-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

.hero-logo-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-logo-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(14, 205, 115, 0.18);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.6rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Section Headers --- */
.section {
    padding: 3.25rem 0;
    position: relative;
}

.section-compact {
    padding: 1.5rem 0 3rem;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.25rem;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-secondary);
    margin-bottom: 0.4rem;
}

.section-title {
    margin-bottom: 0.6rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* --- Thematic Areas Grid --- */
.thematic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.thematic-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.thematic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-primary);
    opacity: 0;
    transition: var(--transition-fast);
}

.thematic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 32, 96, 0.2);
}

.thematic-card:hover::before {
    opacity: 1;
}

.thematic-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
}

.thematic-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(0, 32, 96, 0.06);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.thematic-card:hover .thematic-icon {
    background: var(--color-primary);
    color: #ffffff;
}

.thematic-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

.thematic-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* --- Toolkits Showcase --- */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.toolkits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.8rem;
}



.toolkit-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.toolkit-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(14, 205, 115, 0.1);
    color: #088b4d;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.toolkit-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.toolkit-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 1.2rem;
}

.toolkit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-subtle);
}

.toolkit-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* --- Books & Journals / E-Reader Card --- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.book-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.book-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.book-card-header {
    background: var(--grad-primary);
    color: #ffffff;
    padding: 2.2rem 1.8rem;
    position: relative;
}

.book-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.book-card-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-author {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.book-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.book-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.book-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* --- Online Interactive E-Reader Modal --- */
.reader-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.reader-modal.active {
    display: flex;
}

.reader-container {
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reader-header {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reader-title-area h4 {
    font-size: 1.15rem;
    color: var(--color-dark);
}

.reader-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reader-btn {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.reader-btn:hover {
    background: #f1f5f9;
}

.reader-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.reader-sidebar {
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid var(--color-border);
    padding: 1.5rem;
    overflow-y: auto;
}

.reader-sidebar h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.chapter-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-nav-item {
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chapter-nav-item:hover, .chapter-nav-item.active {
    background: var(--color-primary);
    color: #ffffff;
}

.reader-viewport {
    flex-grow: 1;
    padding: 3rem 4rem;
    overflow-y: auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.reader-viewport.theme-sepia {
    background: #fbf0d9;
    color: #433422;
}

.reader-viewport.theme-dark {
    background: #1e293b;
    color: #e2e8f0;
}

/* --- Courses Section --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.course-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.course-header {
    background: linear-gradient(135deg, #0a192f 0%, #002060 100%);
    color: #ffffff;
    padding: 2rem;
}

.course-meta-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.course-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-curriculum {
    margin: 1.2rem 0;
    padding-left: 1.2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.course-curriculum li {
    margin-bottom: 0.5rem;
}

/* --- Events & Calendar Section --- */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.event-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.event-date-badge {
    min-width: 100px;
    padding: 1rem;
    background: rgba(0, 32, 96, 0.05);
    border: 2px solid rgba(0, 32, 96, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
}

.event-date-day {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.event-date-month {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-secondary);
    letter-spacing: 0.05em;
}

.event-details {
    flex-grow: 1;
    min-width: 280px;
}

.event-meta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Info Tables --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.custom-table th {
    background: #f1f5f9;
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1.1rem 1.4rem;
    border-bottom: 2px solid var(--color-border);
}

.custom-table td {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text-main);
}

.custom-table tr:hover td {
    background-color: #f8fafc;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 47, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #ffffff;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Content Alignment Styles (Requested: images left, right, center, justified) --- */
.content-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.content-img.align-left {
    float: left;
    margin: 0 1.5rem 1.5rem 0;
}

.content-img.align-right {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
}

.content-img.align-center {
    display: block;
    margin: 2rem auto;
}

.text-justify {
    text-align: justify;
}

/* --- Contact & CTA Banner --- */
.cta-banner {
    background: var(--grad-primary);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-banner h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: #e2e8f0;
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-dark);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 0.35rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* Scroll to Top Floating Button (Above WhatsApp Float) */
.scroll-to-top {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 52px;
    height: 52px;
    background: var(--grad-primary, #002060);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 32, 96, 0.35);
    z-index: 998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--color-secondary, #EE4A62);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(238, 74, 98, 0.45);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* --- Responsive Media Queries --- */
/* Medium Screens (1280px down to 992px): Hide button and adapt menu spacing to prevent overflow */
@media (max-width: 1280px) {
    .header-cta {
        display: none !important;
    }

    .nav-menu {
        gap: 0.15rem;
    }

    .nav-link {
        padding: 0.65rem 0.65rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 1100px) {
    .nav-link {
        padding: 0.55rem 0.45rem;
        font-size: 0.84rem;
        gap: 0.2rem;
    }

    .brand-text h1 {
        font-size: 1.15rem;
    }

    .brand-tagline {
        font-size: 0.68rem;
    }
}

/* Tablet Portrait & Mobile (< 992px): Switch to off-canvas drawer */
@media (max-width: 991px) {
    .nav-menu {
        display: none !important; /* Handled by off-canvas drawer */
    }
    
    .mobile-nav-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .hero-section {
        padding: 3.5rem 0 4rem;
    }

    .thematic-grid, .toolkits-grid, .courses-grid, .books-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reader-sidebar {
        display: none; /* Full width on mobile reader */
    }

    .reader-viewport {
        padding: 1.5rem;
    }

    .content-img.align-left, .content-img.align-right {
        float: none;
        margin: 1.5rem auto;
        display: block;
        max-width: 100% !important;
    }
}

/* Mobile Off-canvas Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: left var(--transition-normal);
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.mobile-submenu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-submenu a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   AUTHENTIC TOOLKIT CARDS (Exact match to WordPress site & User screenshots)
   Cards with images on top and uppercase bold title underneath
   ========================================================================== */
.toolkits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

@media (min-width: 1024px) {
    .toolkits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .toolkits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.toolkit-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 0 !important;
    margin: 0;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 32, 96, 0.05);
    height: 100%;
    cursor: pointer;
    position: relative;
}

.toolkit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 32, 96, 0.12);
    border-color: rgba(0, 32, 96, 0.28);
}

.toolkit-image-wrap {
    width: 100% !important;
    height: 230px;
    overflow: hidden;
    position: relative;
    background-color: #002060;
    margin: 0 !important;
    padding: 0 !important;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.toolkit-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    transition: transform 0.4s ease;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

.toolkit-card:hover .toolkit-image-wrap img {
    transform: scale(1.05);
}

.toolkit-card-body {
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.toolkit-card-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.toolkit-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.toolkit-card-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.toolkit-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    color: var(--color-primary);
    background: #f8fafc;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.toolkit-card:hover .toolkit-card-action {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* ==========================================================================
   COLLABORATORS / STRATEGIC PARTNERS LOGO WALL
   ========================================================================== */
.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: center;
    justify-items: center;
}

@media (min-width: 600px) {
    .collaborators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .collaborators-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }
}

.collaborator-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 32, 96, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.collaborator-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 32, 96, 0.08);
    border-color: var(--color-secondary);
}

.collaborator-item img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    filter: none;
    transition: transform 0.2s ease;
}

/* ==========================================================================
   SCHEDULE OF TRAINING SEMINARS TABLE
   ========================================================================== */
.seminar-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.seminar-schedule-table th {
    background: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    text-align: left;
}

.seminar-schedule-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border-subtle);
    font-size: 0.95rem;
    color: var(--color-text-main);
    vertical-align: middle;
}

.seminar-schedule-table tr:last-child td {
    border-bottom: none;
}

.seminar-schedule-table tr:hover td {
    background: #f8fafc;
}

.date-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--color-primary);
}

/* ==========================================================================
   TOP TRAINING CATEGORIES (Unified, Sleek & Executive Aesthetic)
   ========================================================================== */
.top-categories-section {
    padding: 4rem 0;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--color-border);
}

.training-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .training-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .training-categories-grid {
        grid-template-columns: 1fr;
    }
}

.training-category-card {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1.25rem 1.4rem;
    background-color: var(--cat-bg, #f8fafc);
    border: 1px solid rgba(0, 32, 96, 0.08);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 32, 96, 0.02);
    position: relative;
    overflow: hidden;
}

.training-category-card:hover {
    transform: translateY(-3px);
    border-color: var(--cat-accent, var(--color-primary));
    box-shadow: 0 10px 25px -4px rgba(0, 32, 96, 0.10), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
}

.training-category-card .category-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--cat-accent, var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: all 0.28s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.training-category-card:hover .category-icon {
    background: var(--cat-accent, var(--color-primary));
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.training-category-card .category-info {
    flex: 1;
    min-width: 0;
}

.training-category-card .category-name {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0;
    transition: color 0.2s ease;
}

.training-category-card:hover .category-name {
    color: var(--cat-accent, var(--color-primary));
}

.training-category-card .category-arrow {
    color: var(--cat-accent, #94a3b8);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
    opacity: 0.45;
    transform: translateX(0);
}

.training-category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ==========================================================================
   DEDICATED SINGLE TOOLKIT VIEW & CUSTOMIZABLE LAYOUT
   ========================================================================== */
.single-toolkit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.25rem;
    align-items: start;
}

.single-toolkit-grid.sidebar-thin {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.single-toolkit-grid.sidebar-extra-thin {
    grid-template-columns: minmax(0, 1fr) 250px;
}

.single-toolkit-grid.sidebar-standard {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.single-toolkit-grid.sidebar-hidden {
    grid-template-columns: 1fr;
}

@media (max-width: 991px) {
    .single-toolkit-grid,
    .single-toolkit-grid.sidebar-thin,
    .single-toolkit-grid.sidebar-extra-thin,
    .single-toolkit-grid.sidebar-standard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.toolkit-rich-content p {
    margin-bottom: 1.25rem;
}

.toolkit-rich-content p:last-child {
    margin-bottom: 0;
}

.toolkit-rich-content h2,
.toolkit-rich-content h3,
.toolkit-rich-content h4 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 1.75rem 0 0.75rem;
}

.toolkit-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 6px 20px rgba(0, 32, 96, 0.08);
}

.toolkit-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.toolkit-rich-content table th,
.toolkit-rich-content table td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
}

.toolkit-rich-content table th {
    background: #f1f5f9;
    color: var(--color-primary);
    font-weight: 700;
}

.toolkit-rich-content ul,
.toolkit-rich-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
}

.toolkit-rich-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   SMOOTHED-OUT MODERN SEARCH BOXES & FORM CONTROLS
   ========================================================================== */
.form-control,
.search-input,
.filter-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
select.form-control,
textarea.form-control {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1.1rem;
    font-family: inherit;
    font-size: 0.93rem;
    color: var(--color-text-main);
    background-color: #ffffff;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    outline: none;
}

.form-control:hover,
.search-input:hover,
.filter-select:hover,
input:hover:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
select:hover,
textarea:hover {
    border-color: #cbd5e1;
}

.form-control:focus,
.search-input:focus,
.filter-select:focus,
input:focus:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 32, 96, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    background-color: #ffffff;
}

/* Search Bar Wrapper (Modern Pill & Smoothed Border) */
.modern-search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.35rem 0.5rem 0.35rem 1.25rem;
    box-shadow: 0 4px 18px rgba(0, 32, 96, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-search-bar:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 32, 96, 0.09), 0 8px 25px rgba(0, 32, 96, 0.07);
}

.modern-search-bar input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem;
    color: var(--color-text-main);
    flex-grow: 1;
}

.modern-search-bar .search-icon {
    color: var(--color-primary);
    font-size: 1.25rem;
    opacity: 0.75;
}

/* Category Filter Pills */
.filter-pills-wrap {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-pill {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 32, 96, 0.03);
}

.filter-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 32, 96, 0.2);
}

/* Books Grid & Book Cards */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.book-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 32, 96, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 32, 96, 0.1);
    border-color: rgba(0, 32, 96, 0.2);
}

.book-card-header {
    background: var(--grad-primary);
    color: #ffffff;
    padding: 2.25rem 2rem 1.75rem;
    position: relative;
    border-bottom: 3px solid var(--color-secondary);
}

.book-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
}

.book-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.book-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.book-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

/* ==========================================================================
   PERFORMANCE & OFF-SCREEN LAZY RENDERING (Core Web Vitals Boost)
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
    font-style: italic;
    vertical-align: middle;
    shape-margin: 0.75rem;
}

/* Improve initial rendering by deferring offscreen layout computations */
#section-thematic,
#section-toolkits,
#section-seminars,
#section-journals,
.gallery-grid,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

/* ==========================================================================
   THEMATIC AREAS STICKY SUBNAV & DOUBLE-LINED PILL BUTTONS
   ========================================================================== */
.thematic-subnav-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 75px;
    z-index: 900;
    box-shadow: 0 3px 12px rgba(0, 32, 96, 0.05);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.thematic-subnav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
    align-items: stretch;
}

.thematic-nav-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.55rem 0.85rem;
    min-height: 56px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
    background: #ffffff;
    border: 1.5px solid var(--color-primary);
    border-radius: 28px;
    text-decoration: none;
    white-space: normal;
    word-break: normal;
    overflow: visible;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 32, 96, 0.04);
    box-sizing: border-box;
}

.thematic-nav-pill:hover {
    background: var(--color-primary);
    color: #ffffff !important;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 32, 96, 0.2);
}

.thematic-nav-pill.active {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 14px rgba(0, 32, 96, 0.25);
}

.thematic-nav-pill .pill-num {
    display: inline-block;
    color: #f8b81f;
    margin-right: 0.25rem;
    font-weight: 800;
}

.thematic-nav-pill.active .pill-num,
.thematic-nav-pill:hover .pill-num {
    color: #f8b81f;
}

.thematic-nav-pill .pill-text {
    display: inline;
}

@media (max-width: 1024px) {
    .thematic-subnav-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 0.4rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }
    .thematic-nav-pill {
        flex: 0 0 auto;
        min-width: 210px;
        max-width: 260px;
        scroll-snap-align: start;
    }
}

/* ==========================================================================
   IMAGE WORD-WRAP, FLOATING & RICH CONTENT STYLING
   ========================================================================== */
.thematic-article-wrap {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.75rem;
    margin-bottom: 2.5rem;
    scroll-margin-top: 165px;
    box-shadow: 0 4px 20px rgba(0, 32, 96, 0.04);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.thematic-article-wrap:hover {
    box-shadow: 0 8px 30px rgba(0, 32, 96, 0.08);
}

.thematic-article-wrap::after,
.rich-text::after,
.entry-content::after,
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.thematic-float-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 32, 96, 0.12);
    border: 1px solid var(--color-border);
    background: #f8fafc;
}

.thematic-float-img-wrap.float-right {
    float: right;
    width: 44%;
    max-width: 480px;
    margin: 0.25rem 0 1.5rem 2.25rem;
}

.thematic-float-img-wrap.float-left {
    float: left;
    width: 44%;
    max-width: 480px;
    margin: 0.25rem 2.25rem 1.5rem 0;
}

.thematic-float-img-wrap img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.thematic-float-img-wrap:hover img {
    transform: scale(1.02);
}

/* Universal Image Alignment & Word-Wrap Rules for All Rich Content */
.rich-text, .entry-content, .tinymce-content, .thematic-content {
    line-height: 1.85;
    color: var(--color-text-main);
}

.rich-text p, .entry-content p, .tinymce-content p, .thematic-content p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.text-left, [style*="text-align: left"], [style*="text-align:left"] {
    text-align: left !important;
}

.text-center, [style*="text-align: center"], [style*="text-align:center"] {
    text-align: center !important;
}

.text-right, [style*="text-align: right"], [style*="text-align:right"] {
    text-align: right !important;
}

.text-justify, [style*="text-align: justify"], [style*="text-align:justify"] {
    text-align: justify !important;
    text-justify: inter-word !important;
}

.alignleft, .align-left, .img-wrap-left, .img-float-left {
    float: left;
    margin: 0.5rem 1.75rem 1.25rem 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 32, 96, 0.12);
    border: 1px solid var(--color-border);
}

.alignleft:not([style*="width"]):not([width]) {
    max-width: 48%;
}

.alignright, .align-right, .img-wrap-right, .img-float-right {
    float: right;
    margin: 0.5rem 0 1.25rem 1.75rem;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 32, 96, 0.12);
    border: 1px solid var(--color-border);
}

.alignright:not([style*="width"]):not([width]) {
    max-width: 48%;
}

.aligncenter, .align-center, .img-wrap-center {
    display: block;
    margin: 1.75rem auto;
    max-width: 100%;
    height: auto;
    clear: both;
    border-radius: 10px;
}

.clear-wrap, .clear-float {
    clear: both !important;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
}

@media (max-width: 900px) {
    .thematic-float-img-wrap.float-right,
    .thematic-float-img-wrap.float-left {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1.25rem 0 1.5rem 0;
    }
    .thematic-float-img-wrap img {
        height: 260px;
    }
    .thematic-article-wrap {
        padding: 1.75rem;
    }
    .alignleft, .align-left, .img-wrap-left,
    .alignright, .align-right, .img-wrap-right {
        float: none;
        max-width: 100%;
        margin: 1.25rem 0;
        display: block;
    }
}

/* ==============================================================================
   SILVERSKY INTERACTIVE UX SYSTEM:
   1. Global Smooth Scrolling
   2. Glassmorphic Loader Overlay with Frosted Backdrop Blur
   3. Anti-Multi-Click Protection & Button Loading States
   4. Smooth Scroll-Up & Scroll-Driven Reveal Animations
   ============================================================================== */

/* --- 1. Global Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- 2. Glassmorphic Loader Overlay --- */
.silversky-loader-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.52);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.silversky-loader-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    cursor: wait;
}

/* Luxury Glass Card */
.silversky-loader-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.25rem 2.75rem;
    box-shadow: 
        0 25px 60px -10px rgba(0, 32, 96, 0.4),
        0 0 0 1px rgba(0, 32, 96, 0.08),
        0 0 45px rgba(14, 205, 115, 0.18);
    text-align: center;
    max-width: 440px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    transform: scale(0.92) translateY(18px);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.silversky-loader-overlay.active .silversky-loader-card {
    transform: scale(1) translateY(0);
}

/* Dual Ring Spinner + Pulsing Emblem */
.silversky-spinner-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.silversky-spinner-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3.5px solid rgba(0, 32, 96, 0.12);
    border-top-color: #002060;
    border-right-color: #0ea5e9;
    animation: silverskySpin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.silversky-spinner-inner {
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 2.5px solid rgba(14, 205, 115, 0.15);
    border-top-color: #0ecd73;
    border-left-color: #f59e0b;
    animation: silverskySpinReverse 1.2s linear infinite;
}

.silversky-spinner-icon {
    font-size: 1.55rem;
    color: #002060;
    animation: silverskyPulse 1.8s ease-in-out infinite;
}

@keyframes silverskySpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes silverskySpinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes silverskyPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.85; }
    50% { transform: scale(1.12); opacity: 1; }
}

/* Typography in Loader Card */
.silversky-loader-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #002060;
    margin: 0;
    line-height: 1.3;
}

.silversky-loader-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Indeterminate Progress Bar */
.silversky-loader-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-top: 0.25rem;
}

.silversky-loader-bar-fill {
    position: absolute;
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, #002060, #0ecd73, #0ea5e9);
    border-radius: 999px;
    animation: silverskyBarIndeterminate 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes silverskyBarIndeterminate {
    0% { left: -45%; width: 35%; }
    50% { left: 35%; width: 55%; }
    100% { left: 100%; width: 35%; }
}

/* --- 3. Button Loading & Anti-Multi-Click States --- */
.btn-loading,
.button-loading,
button[disabled].is-submitting {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.82 !important;
    position: relative;
}

.btn-inline-spinner {
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: silverskySpin 0.7s linear infinite;
    vertical-align: -0.15em;
    margin-right: 0.45rem;
}

.click-locked {
    pointer-events: none !important;
}

/* --- 4. Smooth Scroll-Up & Scroll-Driven Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger delay helpers for grids and lists */
.scroll-reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
.scroll-reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
.scroll-reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }
.scroll-reveal[data-reveal-delay="4"] { transition-delay: 0.32s; }
.scroll-reveal[data-reveal-delay="5"] { transition-delay: 0.40s; }
.scroll-reveal[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* Native Scroll-Driven Animation where supported (Modern Web Best Practice) */
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        .scroll-reveal-native {
            animation: silverskyScrollFadeUp auto cubic-bezier(0.16, 1, 0.3, 1) backwards;
            animation-timeline: view(block);
            animation-range: entry 5% cover 28%;
        }
    }
}

@keyframes silverskyScrollFadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility: Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .silversky-loader-card {
        transform: none !important;
        transition: none !important;
    }
    .silversky-spinner-outer,
    .silversky-spinner-inner,
    .silversky-spinner-icon,
    .silversky-loader-bar-fill,
    .btn-inline-spinner {
        animation: none !important;
    }
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto !important;
    }
}
