﻿/* ============================================================
   INŠTITÚT VZDELÁVANIA — Modern Responsive Redesign
   style.css — Shared stylesheet for all pages
   UPDATED: System Unicode Font Stack (no Google Fonts)
   ============================================================ */

/* ============ CSS VARIABLES ============ */
:root {
    /* Fonts (System Unicode Stack) */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    --font-heading: 'Georgia', 'Times New Roman', 'Noto Serif', 'Liberation Serif', serif;

    /* Brand Colors (from logo) */
    --primary: #2056A6;
    --primary-dark: #17408a;
    --primary-light: #e8f0fe;
    --primary-rgb: 32, 86, 166;

    --accent: #F0C632;
    --accent-dark: #d4ab1a;
    --accent-light: #fef9e7;
    --accent-rgb: 240, 198, 50;

    /* Neutrals */
    --dark: #111827;
    --dark-700: #1f2937;
    --dark-600: #374151;
    --dark-500: #4b5563;
    --dark-400: #6b7280;
    --dark-300: #9ca3af;

    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;

    --white: #ffffff;

    /* Functional */
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --max-width: 1200px;
    --navbar-height: 76px;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--dark);
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--dark-500);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ============ UTILITY CLASSES ============ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-primary {
    background: var(--primary);
    color: var(--white);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--dark-400); }
.text-white { color: var(--white); }

.font-sans {
    font-family: var(--font-body);
}

/* ============ SECTION HEADER ============ */
.section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--dark-400);
}

/* Dark section header overrides */
.section-dark .section-label {
    color: var(--accent);
}

.section-dark .section-header h2 {
    color: var(--white);
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.65);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn i {
    font-size: 0.9em;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    height: var(--navbar-height);
	overflow: visible;
}

.navbar.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
	overflow: visible;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
}

.nav-logo img {
    height: 46px;
    width: auto;
    max-width: 280px;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter:
        drop-shadow(0 1px 3px rgba(0,0,0,0.1))
        drop-shadow(0 1px 1px rgba(0,0,0,0.06));
    border-radius: 4px;
    object-fit: contain;
}

.nav-logo:hover img {
    filter:
        drop-shadow(0 2px 6px rgba(0,0,0,0.15))
        drop-shadow(0 1px 2px rgba(0,0,0,0.08))
        brightness(1.05);
    transform: scale(1.03);
}

.navbar.scrolled .nav-logo img {
    height: 40px;
}

/* Enhanced logo frame container */
.nav-logo .logo-frame {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: rgba(255,255,255,0.65);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.4);
    transition: var(--transition);
    height: fit-content;
}

.nav-logo:hover .logo-frame {
    background: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar.scrolled .logo-frame {
    background: rgba(255,255,255,0.5);
    padding: 4px 8px;
}

/* Optional logo frame */
.nav-logo .logo-frame {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
    height: fit-content;
}

.nav-logo:hover .logo-frame {
    background: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar.scrolled .nav-logo .logo-frame {
    background: rgba(255,255,255,0.4);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    margin-left: auto;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark-500);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-links .nav-cta {
    background: var(--primary);
    color: var(--white);
    padding: 9px 22px;
    margin-left: 8px;
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.mobile-toggle:hover {
    background: var(--gray-100);
}

/* ============ HERO SECTION ============ */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(175deg, var(--primary-light) 0%, var(--white) 50%, var(--accent-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -250px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 6px 16px 6px 6px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dark-500);
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
}

.hero-badge .badge-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 0.7rem;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #4a8af4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.12rem;
    color: var(--dark-400);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.hero-stat .label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--dark-400);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.hero-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #3a7bd5 100%);
    color: var(--white);
    padding: 28px 32px;
}

.hero-card-header .card-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 8px;
}

.hero-card-header h3 {
    color: var(--white);
    font-size: 1.4rem;
}

.hero-card-body {
    padding: 28px 32px;
}

.hero-card-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-card-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.88rem;
}

.hero-card-info-item i {
    color: var(--primary);
    margin-top: 3px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.hero-card-info-item .info-label {
    font-weight: 600;
    color: var(--dark);
}

.hero-card-info-item .info-value {
    color: var(--dark-500);
}

.hero-card-price {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-card-price .price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-card-price .price-note {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--dark-400);
}

/* Floating elements */
.floating-badge {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-badge-1 {
    top: -10px;
    left: -30px;
    animation-delay: 0s;
}

.floating-badge-2 {
    bottom: 30px;
    right: -20px;
    animation-delay: 3s;
}

.floating-badge .fb-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.floating-badge .fb-text {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--dark-400);
}

.floating-badge .fb-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.card-icon.blue { background: var(--primary-light); color: var(--primary); }
.card-icon.gold { background: var(--accent-light); color: var(--accent-dark); }
.card-icon.green { background: #ecfdf5; color: #10b981; }
.card-icon.red { background: #fef2f2; color: #ef4444; }
.card-icon.purple { background: #f5f3ff; color: #7c3aed; }
.card-icon.teal { background: #f0fdfa; color: #14b8a6; }

.card h3 {
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9rem;
    color: var(--dark-400);
    line-height: 1.65;
}

/* Card with top accent */
.card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.card-accent:hover::before {
    opacity: 1;
}

/* ============ COURSE LIST CARDS ============ */
.course-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-family: var(--font-body);
}

.course-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.course-list-item .course-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.course-list-item .course-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.course-list-item .course-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--dark);
}

.course-list-item .course-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.course-list-item .course-duration,
.course-list-item .course-price {
    font-size: 0.85rem;
    color: var(--dark-400);
    white-space: nowrap;
}

.course-list-item .course-price {
    font-weight: 700;
    color: var(--primary);
    min-width: 80px;
    text-align: right;
}

/* ============ PRICING TABLE ============ */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-body);
}

.pricing-table thead th {
    background: var(--primary);
    color: var(--white);
    padding: 16px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
}

.pricing-table tbody tr {
    transition: var(--transition-fast);
}

.pricing-table tbody tr:nth-child(even) {
    background: var(--gray-100);
}

.pricing-table tbody tr:hover {
    background: var(--primary-light);
}

.pricing-table tbody td {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: var(--dark-600);
    border-bottom: 1px solid var(--gray-200);
}

.pricing-table tbody td:last-child {
    font-weight: 700;
    color: var(--primary);
}

/* ============ TABS ============ */
.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark-400);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ CONTACT INFO ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.contact-card .cc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-card .cc-info h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card .cc-info p {
    font-size: 0.88rem;
    color: var(--dark-400);
}

.contact-card .cc-info a {
    color: var(--primary);
    font-weight: 500;
}

.contact-card .cc-info a:hover {
    text-decoration: underline;
}

/* ============ PHOTO GALLERY ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============ PAGE HERO (for inner pages) ============ */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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.04'%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");
    pointer-events: none;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 12px;
    position: relative;
}

.page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    position: relative;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 20px;
    position: relative;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.page-hero .breadcrumb a:hover {
    color: var(--white);
}

.page-hero .breadcrumb .separator {
    font-size: 0.7rem;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.footer-brand .footer-logo img {
    height: 42px;
    width: auto;
    /* Make it look good on dark background */
    filter: 
        brightness(1.15)
        drop-shadow(0 1px 3px rgba(0,0,0,0.3));
    border-radius: 3px;
    opacity: 0.92;
    transition: var(--transition);
}

.footer-brand .footer-logo:hover img {
    opacity: 1;
    filter: 
        brightness(1.2)
        drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.footer-brand .footer-logo .logo-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
}

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ============ SCROLL TO TOP ============ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============ ANIMATIONS ============ */
.animate {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.9rem; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero h1 { font-size: 2.8rem; }

    .hero-visual {
        max-width: 540px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    :root {
        --navbar-height: 68px;
    }

    .section { padding: 70px 0; }

    .nav-logo img {
        height: 38px;
        max-width: 200px;
    }

    .navbar.scrolled .nav-logo img {
        height: 34px;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 3200;
    }

    .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.99);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 10px;
    border-top: 1px solid var(--gray-200);
    margin: 0;
    list-style: none;
    z-index: 3100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
   }
      
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 18px;
        border-radius: var(--radius-md);
        font-size: 0.95rem;
    }

    .nav-links .nav-cta {
        margin-left: 0;
        margin-top: 8px;
        justify-content: center;
        text-align: center;
    }

    .hero {
        padding: 120px 0 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .hero-stats {
        gap: 28px;
    }

    .hero-stat .number {
        font-size: 1.7rem;
    }

    .section-header h2 { font-size: 1.75rem; }

    .page-hero {
        padding: 120px 0 50px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 0.82rem;
    }

    .course-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .course-list-item .course-meta {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--gray-100);
    }

    .pricing-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }

    .navbar {
        z-index: 3000;
    }

    .navbar .container {
        padding: 0 16px;
        gap: 12px;
    }

    .nav-logo img {
        height: 34px;
        max-width: 165px;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 3200;
        font-size: 1.3rem;
        padding: 6px;
    }

    .nav-links {
         top: 100%;
         padding: 16px;
         gap: 8px;
         height: calc(100vh - var(--navbar-height));
         overflow-y: auto;
         z-index: 3100;
     }
	 
    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    .nav-links .nav-cta {
        justify-content: center;
        text-align: center;
    }

    .hero h1 { font-size: 1.85rem; }

    .floating-badge { display: none; }

    .hero-stats { flex-wrap: wrap; gap: 20px; }

    .hero-card-header { padding: 22px 24px; }
    .hero-card-body { padding: 22px 24px; }

    .card { padding: 24px; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}