/*
Theme Name: EduVernacular
Theme URI: https://example.com/eduvernacular
Author: EdTech 2.0 Team
Author URI: https://example.com
Description: A high-quality, professional, fully responsive WordPress theme built specifically for EdTech 2.0 Vernacular AI plugin. Perfect for LMS, online courses, job boards and vernacular (Hindi, Tamil, Telugu etc.) learning platforms. Clean, fast, AdSense-friendly design with excellent typography for Indic scripts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduvernacular
Tags: education, learning-management-system, lms, courses, blog, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, e-commerce, one-column, two-columns, right-sidebar, custom-logo, custom-colors, editor-style
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --ev-primary: #1a56db;
  --ev-primary-dark: #1e3a8a;
  --ev-primary-light: #3b82f6;
  --ev-secondary: #0f766e;
  --ev-accent: #f59e0b;
  --ev-success: #059669;
  --ev-danger: #dc2626;
  --ev-text: #1e293b;
  --ev-text-light: #64748b;
  --ev-bg: #f8fafc;
  --ev-white: #ffffff;
  --ev-border: #e2e8f0;
  --ev-radius: 12px;
  --ev-radius-sm: 8px;
  --ev-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --ev-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --ev-font: "Inter", "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Telugu", system-ui, -apple-system, sans-serif;
  --ev-container: 1200px;
  --ev-header-h: 72px;
}

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

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

body {
  font-family: var(--ev-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ev-text);
  background-color: var(--ev-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ev-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--ev-text);
  margin-bottom: 0.75em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25em;
}

ul, ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.ev-container {
  width: 100%;
  max-width: var(--ev-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.ev-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ev-main {
  flex: 1;
  padding: 40px 0;
}

.ev-content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.ev-content-area.no-sidebar {
  grid-template-columns: 1fr;
}

.ev-primary {
  min-width: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.ev-header {
  background: var(--ev-white);
  border-bottom: 1px solid var(--ev-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--ev-header-h);
  box-shadow: var(--ev-shadow);
}

.ev-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.ev-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ev-primary-dark);
  text-decoration: none;
  white-space: nowrap;
}

.ev-logo img {
  height: 40px;
  width: auto;
}

.ev-logo span {
  background: linear-gradient(135deg, var(--ev-primary), var(--ev-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ev-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ev-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.ev-nav a {
  display: block;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ev-text);
  border-radius: var(--ev-radius-sm);
  transition: all 0.2s ease;
}

.ev-nav a:hover,
.ev-nav .current-menu-item a {
  background: #eff6ff;
  color: var(--ev-primary);
}

.ev-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--ev-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.ev-btn-primary {
  background: var(--ev-primary);
  color: #fff;
}

.ev-btn-primary:hover {
  background: var(--ev-primary-dark);
  color: #fff;
}

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

.ev-btn-outline:hover {
  background: var(--ev-primary);
  color: #fff;
}

.ev-btn-sm {
  padding: 7px 14px;
  font-size: 0.875rem;
}

/* Mobile menu toggle */
.ev-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ev-text);
}

.ev-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.ev-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #0f766e 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.ev-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.ev-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.ev-hero h1 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.ev-hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.7;
}

.ev-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ev-hero .ev-btn-primary {
  background: #fff;
  color: var(--ev-primary-dark);
}

.ev-hero .ev-btn-primary:hover {
  background: #f1f5f9;
  color: var(--ev-primary-dark);
}

.ev-hero .ev-btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.ev-hero .ev-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ==========================================================================
   Cards & Grid
   ========================================================================== */
.ev-section {
  padding: 60px 0;
}

.ev-section-title {
  text-align: center;
  margin-bottom: 40px;
}

.ev-section-title h2 {
  margin-bottom: 8px;
}

.ev-section-title p {
  color: var(--ev-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.ev-grid {
  display: grid;
  gap: 28px;
}

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

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

.ev-card {
  background: var(--ev-white);
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--ev-border);
}

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

.ev-card-img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: #e2e8f0;
}

.ev-card-body {
  padding: 22px;
}

.ev-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ev-text-light);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ev-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--ev-primary);
}

.ev-badge-free {
  background: #d1fae5;
  color: var(--ev-success);
}

.ev-badge-paid {
  background: #fef3c7;
  color: #b45309;
}

.ev-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.ev-card-title a {
  color: var(--ev-text);
}

.ev-card-title a:hover {
  color: var(--ev-primary);
}

.ev-card-excerpt {
  font-size: 0.925rem;
  color: var(--ev-text-light);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

/* ==========================================================================
   Posts / Blog
   ========================================================================== */
.ev-post {
  background: var(--ev-white);
  border-radius: var(--ev-radius);
  padding: 36px;
  box-shadow: var(--ev-shadow);
  margin-bottom: 32px;
  border: 1px solid var(--ev-border);
}

.ev-post-header {
  margin-bottom: 24px;
}

.ev-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--ev-text-light);
  margin-bottom: 12px;
}

.ev-post-title {
  margin-bottom: 0;
}

.ev-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.ev-post-content h2,
.ev-post-content h3 {
  margin-top: 1.75em;
}

.ev-post-content img {
  border-radius: var(--ev-radius-sm);
  margin: 1.5em 0;
}

.ev-post-content ul,
.ev-post-content ol {
  margin: 1.25em 0;
}

.ev-post-content blockquote {
  border-left: 4px solid var(--ev-primary);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: #f1f5f9;
  border-radius: 0 var(--ev-radius-sm) var(--ev-radius-sm) 0;
  color: var(--ev-text-light);
  font-style: italic;
}

.ev-post-thumbnail {
  margin-bottom: 24px;
  border-radius: var(--ev-radius);
  overflow: hidden;
}

.ev-post-thumbnail img {
  width: 100%;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.ev-sidebar .widget {
  background: var(--ev-white);
  border-radius: var(--ev-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--ev-shadow);
  border: 1px solid var(--ev-border);
}

.ev-sidebar .widget-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ev-primary);
}

.ev-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ev-sidebar li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ev-border);
}

.ev-sidebar li:last-child {
  border-bottom: none;
}

.ev-sidebar a {
  color: var(--ev-text);
  font-size: 0.95rem;
}

.ev-sidebar a:hover {
  color: var(--ev-primary);
}

/* AdSense friendly ad slots */
.ev-ad-slot {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--ev-radius-sm);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 24px 0;
  text-align: center;
  padding: 12px;
}

.ev-ad-slot.in-content {
  margin: 32px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ev-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 0;
  margin-top: auto;
}

.ev-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.ev-footer-brand h3 {
  color: #fff;
  margin-bottom: 12px;
}

.ev-footer-brand p {
  font-size: 0.925rem;
  line-height: 1.6;
}

.ev-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.ev-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ev-footer li {
  margin-bottom: 8px;
}

.ev-footer a {
  color: #94a3b8;
  font-size: 0.925rem;
  transition: color 0.2s;
}

.ev-footer a:hover {
  color: #fff;
}

.ev-footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  text-align: center;
  font-size: 0.875rem;
}

/* ==========================================================================
   Page Templates specific
   ========================================================================== */
.ev-page-header {
  background: linear-gradient(135deg, #eff6ff, #f0fdfa);
  padding: 48px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--ev-border);
}

.ev-page-header h1 {
  margin-bottom: 8px;
}

.ev-breadcrumb {
  font-size: 0.875rem;
  color: var(--ev-text-light);
}

.ev-breadcrumb a {
  color: var(--ev-text-light);
}

.ev-breadcrumb a:hover {
  color: var(--ev-primary);
}

/* Features section */
.ev-features {
  background: var(--ev-white);
}

.ev-feature-item {
  text-align: center;
  padding: 28px 20px;
}

.ev-feature-icon {
  width: 56px;
  height: 56px;
  background: #eff6ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--ev-primary);
}

.ev-feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.ev-feature-item p {
  font-size: 0.925rem;
  color: var(--ev-text-light);
  margin: 0;
}

/* CTA */
.ev-cta {
  background: linear-gradient(135deg, var(--ev-primary), var(--ev-secondary));
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--ev-radius);
  margin: 40px 0;
}

.ev-cta h2 {
  color: #fff;
  margin-bottom: 12px;
}

.ev-cta p {
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.ev-cta .ev-btn-primary {
  background: #fff;
  color: var(--ev-primary-dark);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.ev-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.ev-pagination a,
.ev-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--ev-radius-sm);
  background: var(--ev-white);
  border: 1px solid var(--ev-border);
  color: var(--ev-text);
  font-weight: 500;
}

.ev-pagination .current {
  background: var(--ev-primary);
  color: #fff;
  border-color: var(--ev-primary);
}

.ev-pagination a:hover {
  background: #eff6ff;
  border-color: var(--ev-primary);
  color: var(--ev-primary);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.ev-comments {
  background: var(--ev-white);
  border-radius: var(--ev-radius);
  padding: 32px;
  margin-top: 32px;
  box-shadow: var(--ev-shadow);
  border: 1px solid var(--ev-border);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--ev-border);
}

.comment-author {
  font-weight: 600;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--ev-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

/* ==========================================================================
   404
   ========================================================================== */
.ev-404 {
  text-align: center;
  padding: 80px 20px;
}

.ev-404 h1 {
  font-size: 6rem;
  color: var(--ev-primary);
  margin-bottom: 8px;
  line-height: 1;
}

/* ==========================================================================
   Plugin Compatibility (EdTech 2.0 shortcodes)
   ========================================================================== */
.etv-courses-grid,
.etv-jobs-list,
.etv-student-dashboard,
.etv-ai-assistant {
  margin: 24px 0;
}

.etv-course-card,
.etv-job-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .ev-content-area {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }

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

  .ev-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --ev-header-h: 64px;
  }

  .ev-menu-toggle {
    display: block;
  }

  .ev-nav {
    position: fixed;
    top: var(--ev-header-h);
    left: 0;
    right: 0;
    background: var(--ev-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--ev-shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .ev-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .ev-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .ev-nav a {
    padding: 12px 16px;
  }

  .ev-header-actions .ev-btn {
    display: none;
  }

  .ev-content-area {
    grid-template-columns: 1fr;
  }

  .ev-sidebar {
    order: 2;
  }

  .ev-grid-3,
  .ev-grid-2 {
    grid-template-columns: 1fr;
  }

  .ev-hero {
    padding: 50px 0 45px;
  }

  .ev-post {
    padding: 24px 18px;
  }

  .ev-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ev-section {
    padding: 40px 0;
  }

  .ev-card-body {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .ev-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ev-hero-actions .ev-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Print (AdSense friendly - hide ads in print)
   ========================================================================== */
@media print {
  .ev-header,
  .ev-footer,
  .ev-sidebar,
  .ev-ad-slot,
  .ev-menu-toggle {
    display: none !important;
  }

  .ev-content-area {
    grid-template-columns: 1fr;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ==========================================================================
   Accessibility & Focus
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--ev-primary-light);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
