/*
Theme Name: SkillStudy
Theme URI: https://skillstudy.in
Author: SkillStudy
Description: Premium Academic WordPress Theme (Optimized & Final).
Version: 1.0.3
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; --bg-body: #0a0a0a; --bg-surface: #111111; --bg-surface-alt: #171717; --text-main: #ffffff; --text-muted: #a3a3a3; --border-color: #262626; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { transition: background-color 0.4s, color 0.4s, border-color 0.4s; }
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg-body); color: var(--text-main); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; border-radius: 8px; }

/* HEADER */
.ss-header { border-bottom: 1px solid var(--border-color); background: var(--bg-surface); opacity: 0.98; backdrop-filter: blur(12px); }
.ss-header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.ss-logo-group { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 900; }
.ss-logo-svg { width: 32px; height: 32px; color: var(--brand-main); transition: transform 0.3s; }
.ss-logo-svg-lines { transition: all 0.3s ease; transform-origin: center; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ss-logo-group:hover .ss-logo-svg { transform: scale(1.05); }
.ss-logo-group:hover .ss-logo-svg-lines { opacity: 0; transform: scale(0.5); }
.ss-logo-text-wrap { display: flex; align-items: center; }
.ss-logo-text-anim { display: inline-flex; max-width: 70px; overflow: hidden; white-space: nowrap; transition: all 0.3s ease; }
.ss-logo-group:hover .ss-logo-text-anim { max-width: 0; opacity: 0; }

.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: var(--bg-surface-alt); }
.ss-search-input { background: transparent; border: none; outline: none; padding-left: 8px; color: var(--text-main); }
.ss-theme-toggle { background: transparent; border: none; cursor: pointer; color: var(--text-main); padding: 8px; }
.ss-theme-toggle:hover { color: var(--brand-main); }

.ss-nav { display: none; }
@media (min-width: 1024px) { 
    .ss-nav { display: flex; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); } 
    .ss-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center; }
    .ss-nav li { list-style: none; margin: 0; }
    .ss-search-form { display: flex; }
    .ss-mobile-menu-toggle { display: none !important; }
}
.ss-nav a { padding: 20px 0; position: relative; color: #374151; font-weight: 700; }
.dark .ss-nav a { color: var(--text-muted); }

.ss-mobile-menu-toggle { background: transparent; border: none; color: var(--text-main); cursor: pointer; padding: 8px; }
@media (max-width: 1023px) {
    .ss-nav { flex-direction: column; position: absolute; top: 64px; left: 0; width: 100%; background: var(--bg-surface); padding: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
    .ss-nav.is-open { display: flex; animation: slideDown 0.3s forwards; }
    .ss-nav ul { flex-direction: column; width: 100%; padding: 0; margin: 0; }
    .ss-nav li { width: 100%; }
    .ss-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* LAYOUT & TYPOGRAPHY */
.ss-layout-wrapper { display: flex; gap: 40px; max-width: 1350px !important; margin: 20px auto 40px auto !important; padding: 0 20px; }
.ss-main-content { flex: 1; background: var(--bg-surface); padding: 25px 40px 40px 40px !important; border-radius: 12px; border: 1px solid var(--border-color); }
.ss-sidebar { width: 320px; }
@media(max-width: 992px) { .ss-layout-wrapper { flex-direction: column; } .ss-sidebar { width: 100%; } }

.ss-single-title, .ss-single-body, .ss-post-title, .ss-post-excerpt, .entry-content { font-family: 'Lora', 'Georgia', 'Times New Roman', serif !important; }
.ss-single-title, .ss-post-title { font-weight: 800 !important; letter-spacing: -0.5px; transition: color 0.3s ease; margin-top: 0 !important; }

/* POSTS */
.ss-post-card { margin-bottom: 40px; padding-bottom: 30px; background: var(--bg-surface); padding: 25px; border-radius: 12px; border: 1px solid var(--border-color); }
.ss-post-title { font-size: 1.8rem; margin: 0 0 10px 0; }
.ss-post-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }
.ss-feat-img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }

/* FRONT PAGE HERO */
.ss-front-main { max-width: 1440px; margin: 0 auto; padding: 24px 20px 48px 20px !important; }
.ss-hero { display: flex; flex-direction: column; align-items: center; gap: 40px; min-height: 75vh; margin-bottom: 120px; }
@media (min-width: 1024px) { .ss-hero { flex-direction: row; } .ss-hero-content { margin-left: 48px; max-width: 48rem; } .ss-hero-img { display: block; width: 100%; max-width: 620px; } }

.ss-badge { display: inline-block; padding: 6px 16px; background: color-mix(in srgb, var(--brand-main) 12%, transparent); color: var(--brand-main); border-radius: 99px; font-size: 0.85rem; font-weight: 800; margin-bottom: 24px; letter-spacing: 0.5px; text-transform: uppercase; }
.dark .ss-badge { background: color-mix(in srgb, var(--brand-main) 20%, transparent); }
.ss-hero-title { font-size: 3.2rem; font-weight: 900; line-height: 1.1; margin: 0 0 24px 0; font-family: 'Inter', sans-serif; }
@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; margin-bottom: 40px; }
.ss-hero-btn { display: inline-flex; align-items: center; background: #111; color: #fff; padding: 14px 32px; border-radius: 8px; font-weight: 700; transition: 0.3s; }
.dark .ss-hero-btn { background: #fff; color: #111; }

/* KEN BURNS SLIDER */
.ss-image-slider { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); background: var(--bg-surface-alt); }
.ss-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity 1s ease-in-out, transform 6s linear; will-change: transform, opacity; }
.ss-slide.active { opacity: 1; z-index: 2; transform: scale(1.1); }
.ss-hero-img { transition: transform 0.1s ease-out; will-change: transform; }

/* CARDS GRID */
.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; font-family: 'Inter', sans-serif; }
.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); } }

.ss-card { display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 24px; overflow: hidden; height: 100%; }
.ss-card-top { height: 192px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-color); }
.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; font-family: 'Inter', sans-serif; transition: color 0.3s ease; }
.ss-card-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; margin-bottom: 16px; }
.ss-card-link { color: var(--brand-main); font-weight: 700; display: inline-flex; align-items: center; font-size: 0.875rem; }
.ss-custom-svg-icon { display: flex; align-items: center; justify-content: center; color: var(--brand-main); }
.ss-custom-svg-icon svg { width: 48px !important; height: 48px !important; stroke: currentColor; }

/* HOVER EFFECTS */
.ss-card, .ss-post-card, .ss-widget { transition: all 0.3s ease-in-out; }
.ss-card:hover, .ss-post-card:hover, .ss-widget:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); border-color: var(--brand-main); }
.ss-card:hover .ss-card-title, .ss-post-card:hover .ss-post-title a { color: var(--brand-main) !important; }
html.dark .ss-card:hover, html.dark .ss-post-card:hover, html.dark .ss-widget:hover { box-shadow: 0 15px 35px rgba(255,255,255,0.05); }
.ss-post-card:hover .ss-feat-img { transform: scale(1.03); }
.ss-hero-btn:hover { background: var(--brand-main); color: #fff; transform: scale(1.05) translateY(-2px); box-shadow: 0 10px 20px color-mix(in srgb, var(--brand-main) 40%, transparent); }
.ss-card-link svg { transition: 0.3s; }
.ss-card:hover .ss-card-link svg { transform: translateX(6px); }

/* SIDEBAR WIDGETS */
.ss-widget { background: var(--bg-surface); padding: 25px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 30px; }
.ss-widget-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px 0 !important; border-bottom: 2px solid var(--brand-main); display: inline-block; padding-bottom: 5px; font-family: 'Inter', sans-serif; }
.ss-widget-title + *, .ss-widget p:first-of-type, .wp-block-social-links { margin-top: 0 !important; }
.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; }
.ss-widget li:last-child { border-bottom: none; }
.ss-widget a:hover { color: var(--brand-main); }

/* HEADING SCROLL REVEAL ANIMATION */
.ss-heading-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.ss-heading-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* COMMENTS SECTION */
.comments-area { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--border-color); width: 100%; }
.comment-form { display: flex; flex-direction: column; width: 100%; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100% !important; max-width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 8px; font-family: inherit; margin-bottom: 15px; background: var(--bg-surface); color: var(--text-main); }
.comment-form .ss-submit-btn { background: #111; color: #fff; padding: 12px 28px; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; transition: 0.3s; width: max-content; }
.dark .comment-form .ss-submit-btn { background: #fff; color: #111; }
.comment-form .ss-submit-btn:hover { background: var(--brand-main); color: #fff; }

/* PREMIUM FOOTER */
.ss-orig-footer { width: 100%; display: block; clear: both; background-color: #0a0a0a; color: #ffffff; margin-top: 80px; border-top: 4px solid var(--brand-main); box-shadow: none !important; }
.ss-orig-container { max-width: 1440px; margin: 0 auto; padding: 64px 20px 24px; }
@media(min-width: 768px) { .ss-orig-container { padding: 80px 32px 32px; } }
.ss-orig-grid { display: grid; grid-template-columns: 1fr; gap: 40px; text-align: left; }
@media(min-width: 768px) { .ss-orig-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; } }
@media(min-width: 1024px) { .ss-orig-grid { gap: 48px; } }
.ss-orig-logo-wrap { width: 100%; margin-bottom: 24px; }
.ss-orig-logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #ffffff; }
.ss-orig-desc { font-size: 0.95rem; color: #d1d5db; line-height: 1.7; font-weight: 500; margin: 0; max-width: 260px; }
.ss-orig-heading { font-weight: 700; font-size: 1.2rem; margin-top: 0; margin-bottom: 24px; color: #ffffff; border-left: 3px solid var(--brand-main); padding-left: 12px; font-family: 'Inter', sans-serif; }
.ss-orig-list { list-style: none; padding: 0; margin: 0; }
.ss-orig-list li { margin-bottom: 16px; border: none; padding: 0; }
.ss-orig-list a { color: #d1d5db; font-size: 0.95rem; font-weight: 500; display: flex; align-items: center; gap: 8px; text-decoration: none; transition: color 0.3s; }
.ss-orig-list a:hover { color: var(--brand-main); }
.ss-orig-list svg { width: 18px; height: 18px; }
.ss-orig-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #1f2937; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; }
@media(min-width: 768px) { .ss-orig-bottom { flex-direction: row; } }
.ss-orig-socials { display: flex; gap: 16px; margin: 0; }
.ss-orig-social-link { width: 36px; height: 36px; background-color: #1f2937; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; text-decoration: none; transition: 0.3s; }
.ss-orig-social-link:hover { background-color: var(--brand-main); transform: translateY(-2px); }
.ss-orig-copyright { font-size: 0.9rem; color: #9ca3af; margin: 0; }
.alignnone { margin: 5px 20px 20px 0; } .aligncenter { display: block; margin: 5px auto; } .alignright { float: right; margin: 5px 0 20px 20px; } .alignleft { float: left; margin: 5px 20px 20px 0; }