/*
Theme Name: Bez Risku v Nezisku
Description: Vzdelávacia platforma pre neziskové organizácie — ekonomika, dane a účtovníctvo bez rizika. Moderná svetlá téma s oranžovými akcentmi.
Version: 1.0.0
Author: DiverzityStudios.sk
Author URI: https://diverzitystudios.sk
Text Domain: bezrisku
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================
   CSS Variables — Design System
   ============================================ */
:root {
    /* Primary Colors */
    --orange: #E8752A;
    --orange-light: #F4A261;
    --orange-dark: #D4621E;
    --orange-bg: rgba(232, 117, 42, 0.1);
    --orange-bg-hover: rgba(232, 117, 42, 0.15);

    /* Secondary Colors */
    --navy: #1B3A5C;
    --navy-light: #2A5580;
    --navy-dark: #0F2440;

    /* Backgrounds */
    --cream: #FFF8F0;
    --cream-dark: #F5EDE3;
    --white: #FFFFFF;

    /* Greys */
    --grey-50: #FAFAFA;
    --grey-100: #F5F5F5;
    --grey-200: #EEEEEE;
    --grey-300: #E0E0E0;
    --grey-400: #BDBDBD;
    --grey-500: #9E9E9E;
    --grey-600: #757575;
    --grey-700: #616161;

    /* Text */
    --text-primary: #1B3A5C;
    --text-secondary: #5A6B7D;
    --text-light: #8896A6;
    --text-inverse: #FFFFFF;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(27, 58, 92, 0.06);
    --shadow-md: 0 4px 16px rgba(27, 58, 92, 0.08);
    --shadow-lg: 0 8px 32px rgba(27, 58, 92, 0.1);
    --shadow-xl: 0 12px 48px rgba(27, 58, 92, 0.12);
    --shadow-card: 0 4px 20px rgba(27, 58, 92, 0.07);
    --shadow-card-hover: 0 8px 30px rgba(27, 58, 92, 0.12);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 800px;
    --header-height: 90px;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

::selection {
    background: var(--orange);
    color: var(--white);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Decorative background blobs */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 600px 400px at 5% 15%, rgba(232, 117, 42, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 90% 80%, rgba(232, 117, 42, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(244, 162, 97, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--orange-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--cream {
    background: var(--cream);
}

.section--white {
    background: var(--white);
}

.section--navy {
    background: var(--navy);
    color: var(--text-inverse);
}

.section--navy h2,
.section--navy h3 {
    color: var(--white);
}

.section--navy p {
    color: rgba(255, 255, 255, 0.8);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__header h2 {
    margin-bottom: var(--space-md);
}

.section__header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    line-height: 1.4;
}

.btn--primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn--primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 117, 42, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--orange);
    border-color: var(--orange);
}

.btn--secondary:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn--navy:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--white {
    background: var(--white);
    color: var(--orange);
    border-color: var(--white);
}

.btn--white:hover {
    background: var(--cream);
    color: var(--orange-dark);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-medium);
    height: var(--header-height);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.site-header > .container {
    max-width: none;
    padding: 0 var(--space-3xl);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding {
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--navy);
}

.site-logo img {
    height: 44px;
    width: auto;
    max-width: 200px;
}

.site-logo .logo-highlight {
    color: var(--orange);
}

.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 0 var(--space-xl);
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-navigation ul li a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-sm) var(--space-md);
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition-medium);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
    color: var(--orange);
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after,
.main-navigation ul li.current_page_item a::after {
    width: 100%;
}

.main-navigation .header-actions-mobile {
    display: none !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
    margin-left: var(--space-3xl);
}

.header-actions .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.header-user img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
    margin-left: auto;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition-medium);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-4xl);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero__text h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--navy);
}

.hero__text h1 .highlight {
    color: var(--orange);
}

.hero__text p {
    font-size: 1.15rem;
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
}

.hero__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

/* Decorative blobs */
.hero__blob {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.hero__blob--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 117, 42, 0.12) 0%, transparent 70%);
    top: -50px;
    right: -80px;
}

.hero__blob--2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.1) 0%, transparent 70%);
    bottom: -30px;
    left: -60px;
}

.hero__blob--3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(232, 117, 42, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 40%;
}

/* ============================================
   Feature / Category Cards
   ============================================ */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-medium);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(232, 117, 42, 0.15);
}

.feature-card__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    transition: all var(--transition-medium);
}

.feature-card:hover .feature-card__icon {
    background: var(--orange);
}

.feature-card__icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 2;
    transition: stroke var(--transition-medium);
}

.feature-card:hover .feature-card__icon svg {
    stroke: var(--white);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   Material Cards (rendered by e-shop plugin)
   ============================================ */
.material-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.material-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-medium);
    border: 1px solid var(--grey-200);
}

.material-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.material-card__image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    overflow: hidden;
}

.material-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
}

.material-card__body {
    padding: var(--space-xl);
}

.material-card__category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.material-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    color: var(--navy);
}

.material-card__title a {
    color: inherit;
    text-decoration: none;
}

.material-card__title a:hover {
    color: var(--orange);
}

.material-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Steps Guide (How it works)
   ============================================ */
.steps-guide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
}

.step {
    text-align: center;
    flex: 1;
    max-width: 280px;
}

.step__number {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--orange);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--navy);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step__arrow {
    flex-shrink: 0;
    width: 32px;
    color: var(--grey-300);
    padding-top: 12px;
}

.step__arrow svg {
    width: 100%;
    height: auto;
}

/* ============================================
   Course Filters (JS-based)
   ============================================ */
.course-filters-wrapper {
    margin-bottom: var(--space-xl);
}

.course-filters-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.course-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.course-filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.course-filter-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.course-filter-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* ============================================
   Course Cards Grid (e-shop archive)
   ============================================ */
.course-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-medium);
    border: 1px solid var(--grey-200);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.course-card__image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    overflow: hidden;
}

.course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
}

.course-card__body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-card__category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.course-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    color: var(--navy);
}

.course-card__title a {
    color: inherit;
    text-decoration: none;
}

.course-card__title a:hover {
    color: var(--orange);
}

.course-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.course-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.course-card__meta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
}

/* Course Empty State */
.course-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.course-empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--grey-300);
    margin-bottom: var(--space-lg);
}

.course-empty-state h3 {
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.course-empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Target Audience Section
   ============================================ */
.audience-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.audience-card {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-medium);
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.audience-card__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.audience-card__icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 2;
}

.audience-card h3 {
    margin-bottom: var(--space-sm);
}

.audience-card p {
    font-size: 0.95rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(232, 117, 42, 0.1);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-section .btn {
    position: relative;
}

/* ============================================
   Blog / Article Cards
   ============================================ */
.post-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-medium);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.post-card__image {
    height: 200px;
    background: var(--cream-dark);
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__body {
    padding: var(--space-xl);
}

.post-card__date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.post-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.post-card__title a {
    color: var(--navy);
}

.post-card__title a:hover {
    color: var(--orange);
}

.post-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.post-card__link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.post-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.post-card__link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--grey-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 117, 42, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--grey-400);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group .error-message {
    font-size: 0.85rem;
    color: #e74c3c;
    margin-top: var(--space-xs);
    display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #e74c3c;
}

.form-group.has-error .error-message {
    display: block;
}

.form-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    display: none;
}

.form-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Auth forms */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-4xl);
}

.auth-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
}

.auth-form-wrapper h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.auth-form-wrapper .auth-subtitle {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text-secondary);
}

.auth-form-wrapper .btn {
    width: 100%;
    padding: 0.85rem;
}

.auth-link {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-link a {
    font-weight: 600;
}

/* ============================================
   Profile / Dashboard
   ============================================ */
.profile-page {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-4xl);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--orange-bg);
}

.profile-info h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.profile-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.profile-section {
    margin-bottom: var(--space-3xl);
}

.profile-section h2 {
    font-size: 1.35rem;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--grey-200);
}


/* ============================================
   Archive Header
   ============================================ */
.archive-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
}

.archive-header h1 {
    margin-bottom: var(--space-sm);
}

.archive-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grey-200);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--orange);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--navy);
    transition: transform var(--transition-medium);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.faq-answer__content {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-4xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--orange-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo .logo-highlight {
    color: var(--orange);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--orange);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--orange-light);
    fill: none;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
    color: var(--orange-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) 0;
    font-size: 0.85rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--orange-light);
}

/* ============================================
   Powered by Diverzity — Floating & Glowing
   ============================================ */
.powered-by-link {
    display: inline-block;
    animation: poweredFloat 3s ease-in-out infinite;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.powered-by-img {
    height: 34px;
    width: auto;
    opacity: 0.55;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.powered-by-link:hover .powered-by-img {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 111, 97, 0.6))
            drop-shadow(0 0 16px rgba(255, 111, 97, 0.3))
            drop-shadow(0 0 32px rgba(255, 111, 97, 0.15));
    transform: scale(1.08);
}

.powered-by-link:hover {
    animation-play-state: paused;
}

@keyframes poweredFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================
   Placeholder Logo Image
   ============================================ */
.placeholder-logo {
    width: 80px;
    height: auto;
    opacity: 0.25;
    object-fit: contain;
}

.material-card__image .placeholder-logo,
.post-card__image .placeholder-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
}

.hero__image .placeholder-logo {
    width: 160px;
    opacity: 0.2;
}

/* ============================================
   Page Templates
   ============================================ */
.page-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
    background: var(--white);
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: var(--space-sm);
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.page-content .container {
    max-width: var(--container-narrow);
}

/* Content styles (from editor) */
.entry-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.entry-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.entry-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--orange);
    padding: var(--space-md) var(--space-xl);
    background: var(--orange-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-xl) 0;
}

.entry-content blockquote p {
    color: var(--navy);
    font-style: italic;
}

/* About page */
.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.about-value {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.about-value__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.about-value__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--orange);
    fill: none;
}

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--orange);
    fill: none;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: var(--cream-dark);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-top: var(--space-3xl);
}

/* ============================================
   Single Post (Blog)
   ============================================ */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-3xl);
    align-items: start;
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.single-post-layout .entry-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
}

.single-post-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-xl);
}

.single-post-header .post-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.single-post-header h1 {
    font-size: 2rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--space-xl);
}

.sidebar-widget h3 {
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--orange-bg);
}

.sidebar-widget ul li {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--grey-200);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-widget ul li a:hover {
    color: var(--orange);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--grey-300);
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + var(--space-2xl)) 0;
}

.error-404__number {
    font-size: 8rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-404 h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.error-404 p {
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Search Page
   ============================================ */
.search-form-inline {
    display: flex;
    gap: var(--space-md);
    max-width: 600px;
    margin: var(--space-xl) auto var(--space-3xl);
}

.search-form-inline input[type="search"] {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--grey-300);
    border-radius: var(--radius-xl);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-form-inline input[type="search"]:focus {
    border-color: var(--orange);
}

.search-form-inline button {
    padding: 0.75rem 1.75rem;
}

/* ============================================
   Loading Spinner
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--grey-200);
    border-top-color: var(--orange);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Scroll Animations
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate--delay-1 { transition-delay: 0.1s; }
.scroll-animate--delay-2 { transition-delay: 0.2s; }
.scroll-animate--delay-3 { transition-delay: 0.3s; }
.scroll-animate--delay-4 { transition-delay: 0.4s; }

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }

    .hero__text h1 { font-size: 2.25rem; }

    .feature-cards { grid-template-columns: repeat(2, 1fr); }
    .material-cards { grid-template-columns: repeat(2, 1fr); }
    .course-cards { grid-template-columns: repeat(2, 1fr); }
    .post-cards { grid-template-columns: repeat(2, 1fr); }
    .audience-cards { grid-template-columns: repeat(2, 1fr); }
    .about-values { grid-template-columns: repeat(2, 1fr); }

    .footer-content { grid-template-columns: repeat(2, 1fr); }

    .single-post-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-4xl: 3rem;
        --header-height: 64px;
    }

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 var(--space-md);
    }

    /* Mobile navigation */
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
        transition: right var(--transition-medium);
        z-index: 999;
        flex-direction: column;
        overflow-y: auto;
    }

    .main-navigation.mobile-open {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li {
        border-bottom: 1px solid var(--grey-200);
    }

    .main-navigation ul li a {
        display: block;
        padding: var(--space-md) 0;
        font-size: 1.05rem;
    }

    .main-navigation ul li a::after {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .main-navigation .header-actions-mobile {
        display: flex !important;
        flex-direction: column;
        gap: var(--space-md);
        margin-top: var(--space-xl);
        padding-top: var(--space-xl);
        border-top: 1px solid var(--grey-200);
    }

    /* Mobile overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-bottom: var(--space-2xl);
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero__text h1 { font-size: 1.85rem; }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero__image {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Cards */
    .feature-cards { grid-template-columns: 1fr 1fr; }
    .material-cards { grid-template-columns: 1fr; }
    .course-cards { grid-template-columns: 1fr; }
    .post-cards { grid-template-columns: 1fr; }
    .audience-cards { grid-template-columns: 1fr; }

    .steps-guide {
        flex-direction: column;
        align-items: center;
    }

    .step__arrow {
        transform: rotate(90deg);
        width: 24px;
    }
    .about-values { grid-template-columns: 1fr; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

    /* Contact */
    .contact-layout { grid-template-columns: 1fr; }

    /* Auth */
    .auth-form-wrapper { padding: var(--space-xl); }

    /* Profile */
    .profile-header { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .feature-cards { grid-template-columns: 1fr; }

    .hero__text h1 { font-size: 1.6rem; }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}
