/*
Theme Name: Portali Studentor
Theme URI: https://portalistudentit.com
Author: Portali Studentor
Author URI: https://portalistudentit.com
Description: Full WordPress theme for Portali Studentor - the #1 portal for Albanian students. Supports both traditional web view and headless CMS mode for mobile app integration.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
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: ps-headless
Tags: education, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties - Design System
   Matches Next.js Tailwind configuration
   ========================================================================== */

:root {
  /* Primary Colors - Indigo */
  --ps-primary-50: #EEF2FF;
  --ps-primary-100: #E0E7FF;
  --ps-primary-200: #C7D2FE;
  --ps-primary-300: #A5B4FC;
  --ps-primary-400: #818CF8;
  --ps-primary-500: #6366F1;
  --ps-primary-600: #4F46E5;
  --ps-primary-700: #4338CA;
  --ps-primary-800: #3730A3;
  --ps-primary-900: #312E81;

  /* Secondary Colors - Purple */
  --ps-purple-500: #A855F7;
  --ps-purple-600: #9333EA;
  --ps-purple-700: #7E22CE;
  --ps-purple-900: #581C87;

  /* Gray Scale */
  --ps-gray-50: #F9FAFB;
  --ps-gray-100: #F3F4F6;
  --ps-gray-200: #E5E7EB;
  --ps-gray-300: #D1D5DB;
  --ps-gray-400: #9CA3AF;
  --ps-gray-500: #6B7280;
  --ps-gray-600: #4B5563;
  --ps-gray-700: #374151;
  --ps-gray-800: #1F2937;
  --ps-gray-900: #111827;

  /* Semantic Colors */
  --ps-success: #10B981;
  --ps-warning: #F59E0B;
  --ps-error: #EF4444;
  --ps-info: #3B82F6;

  /* Background & Surface */
  --ps-bg: #FFFFFF;
  --ps-bg-secondary: var(--ps-gray-50);
  --ps-surface: #FFFFFF;
  --ps-text: var(--ps-gray-900);
  --ps-text-secondary: var(--ps-gray-600);
  --ps-text-tertiary: var(--ps-gray-400);
  --ps-border: var(--ps-gray-200);

  /* Typography */
  --ps-font-sans: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ps-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --ps-space-1: 0.25rem;
  --ps-space-2: 0.5rem;
  --ps-space-3: 0.75rem;
  --ps-space-4: 1rem;
  --ps-space-5: 1.25rem;
  --ps-space-6: 1.5rem;
  --ps-space-8: 2rem;
  --ps-space-10: 2.5rem;
  --ps-space-12: 3rem;
  --ps-space-16: 4rem;

  /* Border Radius */
  --ps-radius-sm: 0.375rem;
  --ps-radius-md: 0.5rem;
  --ps-radius-lg: 0.75rem;
  --ps-radius-xl: 1rem;
  --ps-radius-2xl: 1.5rem;
  --ps-radius-3xl: 2rem;
  --ps-radius-full: 9999px;

  /* Shadows */
  --ps-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --ps-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --ps-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --ps-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --ps-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --ps-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Container */
  --ps-container-max: 80rem; /* 1280px */
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ps-bg: var(--ps-gray-900);
    --ps-bg-secondary: var(--ps-gray-800);
    --ps-surface: var(--ps-gray-800);
    --ps-text: var(--ps-gray-50);
    --ps-text-secondary: var(--ps-gray-300);
    --ps-text-tertiary: var(--ps-gray-500);
    --ps-border: var(--ps-gray-700);
  }
}

[data-theme="dark"] {
  --ps-bg: var(--ps-gray-900);
  --ps-bg-secondary: var(--ps-gray-800);
  --ps-surface: var(--ps-gray-800);
  --ps-text: var(--ps-gray-50);
  --ps-text-secondary: var(--ps-gray-300);
  --ps-text-tertiary: var(--ps-gray-500);
  --ps-border: var(--ps-gray-700);
}

body.bg-gray-900 {
  --ps-bg: var(--ps-gray-900);
  --ps-bg-secondary: var(--ps-gray-800);
  --ps-surface: var(--ps-gray-800);
  --ps-text: var(--ps-gray-50);
  --ps-text-secondary: var(--ps-gray-300);
  --ps-text-tertiary: var(--ps-gray-500);
  --ps-border: var(--ps-gray-700);
}

/* Light Mode - explicitly set when body.light class is applied */
body.light {
  --ps-bg: #FFFFFF;
  --ps-bg-secondary: var(--ps-gray-50);
  --ps-surface: #FFFFFF;
  --ps-text: var(--ps-gray-900);
  --ps-text-secondary: var(--ps-gray-600);
  --ps-text-tertiary: var(--ps-gray-400);
  --ps-border: var(--ps-gray-200);
  --ps-gray-100: #F3F4F6;
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  font-feature-settings: normal;
  font-variation-settings: normal;
  tab-size: 4;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ps-font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ps-text);
  background: var(--ps-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ps-text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
}

p {
  margin: 0 0 1rem;
}

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

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

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

/* ==========================================================================
   Layout - Container
   ========================================================================== */

.ps-container {
  width: 100%;
  max-width: var(--ps-container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .ps-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ps-container {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.ps-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.ps-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

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

.ps-logo-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--ps-radius-xl);
  box-shadow: var(--ps-shadow-lg);
  background: white;
  object-fit: cover;
}

.ps-logo-text {
  display: none;
}

@media (min-width: 640px) {
  .ps-logo-text {
    display: block;
  }
}

.ps-logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.ps-logo-subtitle {
  font-size: 0.75rem;
  color: var(--ps-gray-400);
}

/* Desktop Navigation */
.ps-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ps-nav {
    display: flex;
  }
}

.ps-nav a {
  color: var(--ps-gray-300);
  font-weight: 400;
  transition: color 0.2s ease;
}

.ps-nav a:hover {
  color: #60A5FA;
}

.ps-nav a.active,
.ps-nav a.current-menu-item,
.ps-nav .current_page_item a {
  color: white;
  font-weight: 500;
}

/* Header CTA Button */
.ps-header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ps-header-cta {
    display: flex;
  }
}

.ps-header-cta .ps-btn-primary {
  padding: 0.5rem 1.5rem;
  background: var(--ps-primary-600);
  color: white;
  font-weight: 500;
  box-shadow: var(--ps-shadow-md);
}

.ps-header-cta .ps-btn-primary:hover {
  background: var(--ps-primary-700);
  color: white;
  box-shadow: var(--ps-shadow-lg);
  transform: scale(1.05);
}

/* Mobile Menu Button */
.ps-mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: var(--ps-radius-lg);
  cursor: pointer;
  color: white;
  transition: background 0.2s ease;
}

.ps-mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .ps-mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation */
.ps-mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  padding: 1rem;
}

.ps-mobile-nav.active {
  display: block;
}

@media (min-width: 1024px) {
  .ps-mobile-nav {
    display: none !important;
  }
}

.ps-mobile-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--ps-gray-300);
}

.ps-mobile-nav a:hover,
.ps-mobile-nav a.active {
  color: white;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: var(--ps-radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ps-btn-primary {
  background: var(--ps-primary-600);
  color: white;
  box-shadow: var(--ps-shadow-md);
}

.ps-btn-primary:hover {
  background: var(--ps-primary-700);
  color: white;
  box-shadow: var(--ps-shadow-lg);
  transform: scale(1.05);
}

.ps-btn-secondary {
  background: white;
  color: var(--ps-text);
  box-shadow: var(--ps-shadow-lg);
}

.ps-btn-secondary:hover {
  box-shadow: var(--ps-shadow-xl);
  color: var(--ps-text);
}

[data-theme="dark"] .ps-btn-secondary,
.dark .ps-btn-secondary {
  background: var(--ps-gray-800);
  color: white;
}

.ps-btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.ps-hero {
  position: relative;
  overflow: hidden;
}

.ps-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ps-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(49, 46, 129, 0.85), rgba(88, 28, 135, 0.80), rgba(67, 56, 202, 0.85));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.ps-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

/* Glass effect overlay at bottom */
.ps-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.ps-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .ps-hero-content {
    padding: 6rem 0;
  }
}

.ps-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ps-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ps-hero-text {
  color: white;
}

.ps-hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--ps-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.ps-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

@media (min-width: 768px) {
  .ps-hero-title {
    font-size: 3.75rem;
  }
}

.ps-hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .ps-hero-description {
    font-size: 1.5rem;
  }
}

.ps-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.ps-hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ps-hero-stat-icon {
  font-size: 1.5rem;
}

/* Store Buttons */
.ps-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ps-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ps-radius-lg);
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ps-store-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

.ps-store-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.ps-store-btn-text {
  text-align: left;
}

.ps-store-btn-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.ps-store-btn-name {
  font-size: 1rem;
  font-weight: 600;
}

/* ==========================================================================
   Quick Links Section
   ========================================================================== */

.ps-quick-links {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.ps-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .ps-quick-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ps-quick-link {
  display: block;
  background: var(--ps-surface);
  border-radius: var(--ps-radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--ps-shadow-lg);
  border: 1px solid var(--ps-gray-100);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ps-quick-link:hover {
  box-shadow: var(--ps-shadow-2xl);
  transform: translateY(-4px);
}

.ps-quick-link-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--ps-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  margin-bottom: 1rem;
  box-shadow: var(--ps-shadow-lg);
  transition: transform 0.2s ease;
}

.ps-quick-link:hover .ps-quick-link-icon {
  transform: scale(1.1);
}

.ps-quick-link-icon.indigo { background: var(--ps-primary-600); }
.ps-quick-link-icon.purple { background: var(--ps-purple-600); }
.ps-quick-link-icon.blue { background: var(--ps-info); }
.ps-quick-link-icon.violet { background: #7C3AED; }

.ps-quick-link-title {
  font-weight: 700;
  color: var(--ps-text);
  margin-bottom: 0.25rem;
}

.ps-quick-link-desc {
  font-size: 0.875rem;
  color: var(--ps-text-secondary);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.ps-section {
  padding: 4rem 0;
}

/* Dark Section Variant */
.ps-section-dark {
  background: var(--ps-gray-900);
}

.ps-section-dark .ps-section-title {
  color: white;
}

.ps-section-dark .ps-section-subtitle {
  color: var(--ps-gray-400);
}

.ps-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .ps-section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.ps-section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--ps-text);
  margin-bottom: 0.5rem;
}

.ps-section-subtitle {
  color: var(--ps-text-secondary);
}

.ps-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ps-primary-600);
  font-weight: 500;
  transition: gap 0.2s ease;
}

.ps-section-link:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   News / Articles Grid
   ========================================================================== */

.ps-news-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ps-news-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Featured Article */
.ps-featured-article {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--ps-radius-3xl);
  box-shadow: var(--ps-shadow-xl);
  transition: box-shadow 0.2s ease;
}

.ps-featured-article:hover {
  box-shadow: var(--ps-shadow-2xl);
}

.ps-featured-article-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(to bottom right, var(--ps-primary-600), var(--ps-purple-600), var(--ps-info));
}

.ps-featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-featured-article-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
}

.ps-featured-article-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}

.ps-featured-article-category {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: var(--ps-primary-600);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--ps-radius-full);
  margin-bottom: 1rem;
}

.ps-featured-article-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.ps-featured-article:hover .ps-featured-article-title {
  color: var(--ps-primary-300);
}

.ps-featured-article-excerpt {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-featured-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Article List */
.ps-article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ps-article-card {
  display: block;
  padding: 1.5rem;
  background: var(--ps-surface);
  border-radius: var(--ps-radius-2xl);
  box-shadow: var(--ps-shadow-md);
  border: 1px solid var(--ps-gray-100);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ps-article-card:hover {
  box-shadow: var(--ps-shadow-xl);
}

.ps-article-card-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--ps-primary-100);
  color: var(--ps-primary-700);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--ps-radius-full);
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .ps-article-card-category {
  background: rgba(79, 70, 229, 0.3);
  color: var(--ps-primary-300);
}

.ps-article-card-title {
  font-weight: 700;
  color: var(--ps-text);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-article-card:hover .ps-article-card-title {
  color: var(--ps-primary-600);
}

.ps-article-card-excerpt {
  font-size: 0.875rem;
  color: var(--ps-text-secondary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-article-card-date {
  font-size: 0.75rem;
  color: var(--ps-text-tertiary);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.ps-services-section {
  background: linear-gradient(to bottom right, var(--ps-gray-800), var(--ps-gray-900));
}

.ps-services-section .ps-section-title {
  color: white;
}

.ps-services-section .ps-section-subtitle {
  color: var(--ps-gray-400);
}

.ps-services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ps-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ps-service-card {
  display: block;
  background: var(--ps-gray-800);
  border-radius: var(--ps-radius-2xl);
  padding: 2rem;
  box-shadow: var(--ps-shadow-lg);
  border: 1px solid var(--ps-gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ps-service-card:hover {
  box-shadow: var(--ps-shadow-2xl);
  transform: translateY(-4px);
  border-color: var(--ps-gray-600);
}

.ps-service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.ps-service-badge {
  padding: 0.25rem 1rem;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--ps-radius-full);
}

.ps-service-badge.emerald {
  background: var(--ps-success);
}

.ps-service-badge.indigo {
  background: var(--ps-primary-600);
}

.ps-service-arrow {
  color: var(--ps-gray-500);
  transition: color 0.2s ease;
}

.ps-service-card:hover .ps-service-arrow {
  color: var(--ps-primary-400);
}

.ps-service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.ps-service-card-desc {
  color: var(--ps-gray-400);
}

.ps-services-section .ps-btn-secondary {
  background: var(--ps-gray-800);
  color: white;
  border: 1px solid var(--ps-gray-700);
}

.ps-services-section .ps-btn-secondary:hover {
  background: var(--ps-gray-700);
  border-color: var(--ps-gray-600);
}

/* ==========================================================================
   Universities Section
   ========================================================================== */

.ps-universities-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ps-universities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.ps-university-card {
  display: block;
  background: var(--ps-surface);
  border-radius: var(--ps-radius-2xl);
  padding: 1rem;
  box-shadow: var(--ps-shadow-md);
  border: 1px solid var(--ps-gray-100);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ps-university-card:hover {
  box-shadow: var(--ps-shadow-xl);
}

.ps-university-card-inner {
  display: flex;
  gap: 1rem;
}

.ps-university-logo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.ps-university-logo {
  width: 4rem;
  height: 4rem;
  border-radius: var(--ps-radius-2xl);
  background: var(--ps-gray-100);
  overflow: hidden;
}

.ps-university-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-university-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ps-text-tertiary);
}

.ps-university-verified {
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--ps-info);
  border-radius: var(--ps-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ps-surface);
}

.ps-university-verified svg {
  width: 0.75rem;
  height: 0.75rem;
  color: white;
}

.ps-university-content {
  flex: 1;
  min-width: 0;
}

.ps-university-name {
  font-weight: 700;
  color: var(--ps-text);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-university-card:hover .ps-university-name {
  color: var(--ps-primary-600);
}

.ps-university-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ps-text-secondary);
  margin-bottom: 0.25rem;
}

.ps-university-meta svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ps-footer {
  background: var(--ps-gray-900);
  color: white;
}

.ps-footer-content {
  padding: 4rem 0;
}

.ps-footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ps-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ps-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.ps-footer-brand {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .ps-footer-brand {
    grid-column: span 2;
  }
}

.ps-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ps-footer-logo-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to bottom right, var(--ps-primary-600), var(--ps-primary-800));
  border-radius: var(--ps-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ps-shadow-lg);
}

.ps-footer-logo-icon span {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.ps-footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.ps-footer-logo-subtitle {
  font-size: 0.875rem;
  color: var(--ps-gray-400);
}

.ps-footer-description {
  color: var(--ps-gray-400);
  margin-bottom: 1.5rem;
  max-width: 24rem;
}

.ps-footer-social {
  display: flex;
  gap: 1rem;
}

.ps-footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--ps-gray-800);
  border-radius: var(--ps-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s ease;
}

.ps-footer-social a:hover.facebook { background: #1877F2; }
.ps-footer-social a:hover.instagram { background: #E4405F; }
.ps-footer-social a:hover.youtube { background: #FF0000; }

.ps-footer-nav h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

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

.ps-footer-nav li {
  margin-bottom: 0.5rem;
}

.ps-footer-nav a {
  color: var(--ps-gray-400);
  transition: color 0.2s ease;
}

.ps-footer-nav a:hover {
  color: white;
}

.ps-footer-bottom {
  border-top: 1px solid var(--ps-gray-800);
  padding: 2rem 0;
}

.ps-footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .ps-footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.ps-footer-copyright {
  color: var(--ps-gray-400);
  font-size: 0.875rem;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.ps-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--ps-surface);
  border-radius: var(--ps-radius-2xl);
  box-shadow: var(--ps-shadow-md);
  border: 1px solid var(--ps-gray-100);
}

.ps-empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  background: var(--ps-gray-100);
  border-radius: var(--ps-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-empty-state-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--ps-text-tertiary);
}

.ps-empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ps-text);
  margin-bottom: 0.5rem;
}

.ps-empty-state-desc {
  color: var(--ps-text-secondary);
}

/* ==========================================================================
   Blog Archive Page
   ========================================================================== */

.ps-blog-header {
  text-align: center;
  padding: 4rem 0 2rem;
  background: var(--ps-gray-900);
}

.ps-blog-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.ps-blog-subtitle {
  color: var(--ps-gray-400);
  font-size: 1.125rem;
}

/* Breadcrumb */
.ps-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ps-gray-400);
}

.ps-breadcrumb a {
  color: var(--ps-gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ps-breadcrumb a:hover {
  color: white;
}

.ps-breadcrumb-sep {
  color: var(--ps-gray-600);
}

.ps-breadcrumb span:last-child {
  color: white;
}

.ps-blog-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ps-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.ps-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--ps-surface);
  border-radius: var(--ps-radius-2xl);
  overflow: hidden;
  box-shadow: var(--ps-shadow-md);
  border: 1px solid var(--ps-gray-100);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.ps-blog-card-image {
  aspect-ratio: 16 / 9;
  background: var(--ps-gray-100);
  overflow: hidden;
}

.ps-blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ps-blog-card:hover .ps-blog-card-image img {
  transform: scale(1.05);
}

.ps-blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ps-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--ps-text-tertiary);
  margin-bottom: 0.75rem;
}

.ps-blog-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ps-text);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.ps-blog-card:hover .ps-blog-card-title {
  color: var(--ps-primary-600);
}

.ps-blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--ps-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ==========================================================================
   Single Article Page
   ========================================================================== */

.ps-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

@media (min-width: 640px) {
  .ps-article {
    padding: 3rem 1.5rem 4rem;
  }
}

.ps-article-header {
  margin-bottom: 2rem;
}

.ps-article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--ps-primary-100);
  color: var(--ps-primary-700);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--ps-radius-full);
  margin-bottom: 1rem;
}

.ps-article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ps-article-title {
    font-size: 2.5rem;
  }
}

.ps-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--ps-text-secondary);
  font-size: 0.875rem;
}

.ps-article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ps-article-author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--ps-radius-full);
  background: var(--ps-gray-200);
  overflow: hidden;
}

.ps-article-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-article-cover {
  margin-bottom: 2rem;
  border-radius: var(--ps-radius-2xl);
  overflow: hidden;
}

.ps-article-cover img {
  width: 100%;
  height: auto;
}

.ps-article-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ps-text);
}

.ps-article-content p {
  margin-bottom: 1.5rem;
}

.ps-article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.ps-article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.ps-article-content ul,
.ps-article-content ol {
  margin: 0 0 1.5rem 1.5rem;
}

.ps-article-content li {
  margin-bottom: 0.5rem;
}

.ps-article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--ps-primary-600);
  background: var(--ps-gray-50);
  font-style: italic;
}

.ps-article-content img {
  margin: 1.5rem 0;
  border-radius: var(--ps-radius-lg);
}

.ps-article-content a {
  color: var(--ps-primary-600);
  text-decoration: underline;
}

.ps-article-content a:hover {
  color: var(--ps-primary-700);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.ps-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.ps-pagination a,
.ps-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--ps-radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ps-pagination a {
  background: var(--ps-surface);
  color: var(--ps-text);
  border: 1px solid var(--ps-border);
}

.ps-pagination a:hover {
  background: var(--ps-gray-100);
  color: var(--ps-text);
}

.ps-pagination span.current {
  background: var(--ps-primary-600);
  color: white;
}

/* ==========================================================================
   App/Web Embed Mode Styles
   ========================================================================== */

.ps-app-mode,
.ps-web-embed-mode {
  margin: 0;
  padding: 0;
  background-color: var(--ps-bg);
  color: var(--ps-text);
  font-family: var(--ps-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

.ps-app-mode::-webkit-scrollbar,
.ps-web-embed-mode::-webkit-scrollbar {
  display: none;
}

.ps-app-mode,
.ps-web-embed-mode {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ps-app-content,
.ps-web-embed-content {
  padding: 1rem;
}

@media (min-width: 640px) {
  .ps-web-embed-content {
    padding: 1.5rem 2rem;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.ps-text-center { text-align: center; }
.ps-mt-8 { margin-top: 2rem; }
.ps-mt-12 { margin-top: 3rem; }
.ps-mb-4 { margin-bottom: 1rem; }
.ps-mb-8 { margin-bottom: 2rem; }
.ps-mb-12 { margin-bottom: 3.5rem; }

@media (min-width: 768px) {
  .ps-mb-12 { margin-bottom: 4rem; }
}

.ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
