/*
Theme Name: SkillStudy Final
Theme URI: https://skillstudy.in
Author: SkillStudy
Description: A secure, lightweight, and completely English WordPress theme with standard GeneratePress-like layout.
Version: 1.0.0
Text Domain: skillstudy
*/

:root {
    --brand-main: #027A48;
    --bg-body: #f9fafb;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f3f4f6;
    --text-main: #171717;
    --text-muted: #525252;
    --border-color: #e5e7eb;
}

html.dark, .dark {
    --brand-main: #34d399; /* This will be overridden by Customizer if set */
    --bg-body: #0a0a0a;
    --bg-surface: #111111;
    --bg-surface-alt: #171717;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: #262626;
}

/* FIX: -webkit-tap-highlight-color removes the blue flash on mobile tap globally */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* SMOOTH TRANSITION FOR ALL ELEMENTS IN DARK MODE */
*, *::before, *::after {
    transition-property: background-color, color, border-color, fill, stroke, box-shadow;
    transition-duration: 0.4s;
    transition-timing-function: ease-in-out;
}

body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background-color: var(--bg-body); color: var(--text-main); transition: background-color 0.4s ease, color 0.4s ease; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; outline: none; }
img { max-width: 100%; height: auto; border-radius: 8px; }

#wpadminbar { display: block !important; visibility: visible !important; opacity: 1 !important; z-index: 99999 !important; }

/* Header */
.ss-header { border-bottom: 1px solid var(--border-color); position: sticky; top: 0; background-color: var(--bg-surface); opacity: 0.98; backdrop-filter: blur(12px); z-index: 50; transition: background-color 0.4s ease, border-color 0.4s ease; }
.admin-bar .ss-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .ss-header { top: 46px; } }

.ss-header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* Logo Animation */
.ss-logo-group { display: flex; align-items: center; gap: 8px; width: 150px; white-space: nowrap !important; text-decoration: none; flex-shrink: 0; text-shadow: none !important; box-shadow: none !important; filter: none !important; }
.ss-logo-svg { width: 32px; height: 32px; color: var(--brand-main); transition: transform 0.3s; flex-shrink: 0; filter: none !important; drop-shadow: none !important; }
.ss-logo-group:hover .ss-logo-svg { transform: scale(1.05); }

.ss-logo-svg g { transition: all 0.3s ease; transform-origin: center; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ss-logo-group:hover .ss-logo-svg g { opacity: 0; transform: scale(0.5); }

.ss-logo-text-wrap { display: flex; align-items: center; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.5px; color: var(--text-main); white-space: nowrap !important; transition: color 0.4s ease; text-shadow: none !important; }
.ss-logo-text-wrap span:first-child { display: inline-flex; max-width: 70px; overflow: hidden; white-space: nowrap; transition: all 0.3s ease; }
.ss-logo-group:hover .ss-logo-text-wrap span:first-child { max-width: 0; opacity: 0; }

.ss-nav { display: none; }
@media (min-width: 1024px) { .ss-nav { display: flex; gap: 32px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); } }
.ss-nav-link { padding: 20px 0; position: relative; transition: color 0.3s ease; }
.ss-nav-link { padding: 20px 0; position: relative; transition: color 0.3s ease; color: #374151; font-weight: 700; }.ss-nav-link::after { content: ''; position: absolute; width: 100%; height: 2px; bottom: 0; left: 0; background-color: var(--brand-main); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.25s ease-out; }
.ss-nav-link:hover::after, .ss-nav-link.active::after { transform: scaleX(1); transform-origin: bottom left; }

.ss-header-actions { display: flex; align-items: center; gap: 12px; }
.ss-search-form { display: none; align-items: center; padding: 0 16px; height: 36px; border-radius: 99px; background-color: var(--bg-surface-alt); border: 1px solid transparent; transition: all 0.3s ease; }
@media (min-width: 768px) { .ss-search-form { display: flex; } }
.ss-search-form:focus-within { background-color: var(--bg-surface); border-color: var(--brand-main); }
.ss-search-input { background: transparent; border: none; outline: none; padding-left: 8px; color: var(--text-main); font-size: 0.875rem; width: 160px; }
.ss-theme-toggle { background: transparent; border: none; cursor: pointer; padding: 8px; color: var(--brand-main); display: flex; align-items: center; transition: 0.3s; }

.ss-layout-wrapper { display: flex; flex-wrap: nowrap; gap: 40px; max-width: 1200px; margin: 40px auto; padding: 0 20px; width: 100%; align-items: flex-start; }
.ss-main-content { flex: 1 1 0%; min-width: 0; background: var(--bg-surface); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); transition: background-color 0.4s ease, border-color 0.4s ease; }
.ss-sidebar { flex: 0 0 320px; width: 320px; }
@media(max-width: 992px) { .ss-layout-wrapper { flex-direction: column; } .ss-sidebar { width: 100%; flex: 1 1 auto; } .ss-main-content { padding: 20px; } }

.ss-widget { background: var(--bg-surface); padding: 25px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 30px; transition: background-color 0.4s ease, border-color 0.4s ease; }
.ss-widget-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 20px 0; border-bottom: 2px solid var(--brand-main); display: inline-block; padding-bottom: 5px; transition: color 0.4s ease; }
.ss-widget ul { list-style: none; padding: 0; margin: 0; }
.ss-widget li { padding: 10px 0; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; transition: border-color 0.4s ease; }
.ss-widget li:last-child { border-bottom: none; }
.ss-widget a:hover { color: var(--brand-main); }

.ss-post-card { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); transition: border-color 0.4s ease; }
.ss-post-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ss-post-title { font-size: 1.8rem; font-weight: 800; margin: 0 0 10px 0; line-height: 1.3; }
.ss-post-title a:hover { color: var(--brand-main); }
.ss-post-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; transition: color 0.4s ease; }
.ss-post-excerpt { font-size: 1.05rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 15px; transition: color 0.4s ease; }
.ss-read-more { color: var(--brand-main); font-weight: 700; transition: color 0.3s ease; }

.ss-single-title { font-size: 2.5rem; font-weight: 900; line-height: 1.2; margin: 0 0 15px 0; color: var(--text-main); transition: color 0.4s ease; }
.ss-single-body { font-size: 1.15rem; line-height: 1.8; color: var(--text-main); transition: color 0.4s ease; }
.ss-single-body h2 { font-size: 2rem; margin: 40px 0 20px; font-weight: 800; }
.ss-single-body h3 { font-size: 1.5rem; margin: 30px 0 15px; font-weight: 700; }
.ss-author-box { display: flex; align-items: center; background: var(--bg-body); padding: 25px; margin-top: 40px; border: 1px solid var(--border-color); border-radius: 12px; transition: background-color 0.4s ease, border-color 0.4s ease; }
.ss-author-avatar { margin-right: 20px; flex-shrink: 0; }
.ss-author-avatar img { border-radius: 50%; }
.ss-author-info h3 { margin: 0 0 5px 0; font-size: 1.2rem; }
.ss-author-info p { margin: 0; font-size: 0.95rem; color: var(--text-muted); transition: color 0.4s ease; }

.ss-front-main { max-width: 1440px; margin: 0 auto; padding: 48px 16px; width: 100%; }
@media (min-width: 768px) { .ss-front-main { padding: 48px 32px; } }

/* Hero Section */
.ss-hero { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 40px; min-height: 75vh; margin-bottom: 120px; }
@media (min-width: 1024px) { .ss-hero { flex-direction: row; } }

.ss-hero-content { max-width: 48rem; text-align: left; }
@media (min-width: 1024px) { .ss-hero-content { margin-left: 48px; } }

.ss-badge { 
    display: inline-block; 
    background-color: color-mix(in srgb, var(--brand-main) 10%, transparent); 
    color: var(--brand-main);
    font-size: 11px; 
    font-weight: 800; 
    text-transform: uppercase; 
    padding: 5px 14px; 
    border-radius: 99px; 
    border: 1px solid color-mix(in srgb, var(--brand-main) 25%, transparent); 
    margin-bottom: 24px; 
    letter-spacing: 1px; 
    transition: all 0.4s ease; 
}
html.dark .ss-badge, .dark .ss-badge { 
    background-color: color-mix(in srgb, var(--brand-main) 15%, transparent); 
    color: var(--brand-main); 
    border-color: color-mix(in srgb, var(--brand-main) 30%, transparent); 
}

.ss-hero-title { font-size: 3.2rem; font-weight: 900; line-height: 1.1; margin: 0 0 24px 0; transition: color 0.4s ease; }
@media (min-width: 768px) { .ss-hero-title { font-size: 5rem; } }
.ss-hero-desc { font-size: 1.35rem; color: var(--text-muted); line-height: 1.6; font-weight: 500; margin: 0 0 40px 0; max-width: 580px; transition: color 0.4s ease; }

.ss-hero-btn { display: inline-flex; align-items: center; gap: 8px; background-color: #111111; color: #ffffff; padding: 14px 32px; border-radius: 8px; font-weight: 700; border: 1px solid transparent; transition: transform 0.3s ease, background-color 0.4s ease, color 0.4s ease; outline: none; }
.ss-hero-btn:hover { background-color: var(--brand-main); transform: translateY(-2px); color: #ffffff; }
html.dark .ss-hero-btn, .dark .ss-hero-btn { background-color: #ffffff; color: #111111; }
html.dark .ss-hero-btn:hover, .dark .ss-hero-btn:hover { background-color: var(--brand-main); color: #ffffff; }

.ss-hero-img { display: none; width: 100%; max-width: 620px; }
@media (min-width: 1024px) { .ss-hero-img { display: block; } }

.ss-section-title { font-size: 1.875rem; font-weight: 900; border-left: 4px solid var(--brand-main); padding-left: 16px; margin: 0 0 40px 0; transition: color 0.4s ease; }
.ss-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .ss-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ss-grid { grid-template-columns: repeat(3, 1fr); } }

/* Cards Styling */
.ss-card { display: flex; flex-direction: column; background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 24px; overflow: hidden; position: relative; height: 100%; transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease; transform: translateZ(0); backface-visibility: hidden; outline: none; }
.ss-card:hover { transform: translateY(-8px) translateZ(0); border-color: var(--brand-main); box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--brand-main) 20%, transparent); }
.ss-card-top { height: 192px; display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--border-color); overflow: hidden; transition: border-color 0.4s ease, background-color 0.4s ease; }
.ss-card-content { padding: 32px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.ss-card-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 12px 0; transition: color 0.4s ease; }
.ss-card:hover .ss-card-title { color: var(--brand-main); }
.ss-card-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; margin: 0 0 16px 0; transition: color 0.4s ease; }
.ss-card-link { color: var(--brand-main); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; transition: color 0.4s ease; }


/* ==========================================================================
       100% NATIVE CSS ANIMATIONS (NO EXTERNAL PLUGINS)
   ========================================================================== */

/* 1. Hero Load Animations */
@keyframes fadeUpAnim {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ss-hero-content .ss-badge { animation: fadeUpAnim 0.5s ease-out forwards; opacity: 0; }
.ss-hero-content .ss-hero-title { animation: fadeUpAnim 0.5s ease-out forwards; opacity: 0; } 
.ss-hero-content .ss-hero-desc { animation: fadeUpAnim 0.5s ease-out forwards; opacity: 0; }
.ss-hero-content .ss-hero-btn { animation: fadeUpAnim 0.5s ease-out forwards; opacity: 0; }
.ss-hero-img { animation: imageReveal 0.8s ease-out forwards; opacity: 0; }

@keyframes imageReveal {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}
.ss-hero-img { animation: imageReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }

/* 2. Scroll Animations Classes (Triggered by Vanilla JS Observer) */
.ss-scroll-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.ss-scroll-visible {
    opacity: 1;
    transform: translateY(0);
}