/* =====================================================
   SNN – Design System CSS
   Selera Nikmat Nusantara
   ===================================================== */

/* ---------- Google Fonts already loaded in layout ---------- */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand Colors */
    --primary:        #634524;
    --primary-light:  #825d36;
    --primary-dark:   #4b3217;
    --primary-50:     #fdf6ef;
    --primary-100:    #f5e3cc;

    --accent:         #c5a059;
    --accent-light:   #e4cf9b;
    --accent-dark:    #a07838;
    --accent-50:      #fdf8ed;

    --cream:          #fdf6ee;
    --warm-white:     #fffcf8;

    /* Status Colors */
    --success:        #16a34a;
    --success-bg:     #f0fdf4;
    --warning:        #d97706;
    --warning-bg:     #fffbeb;
    --danger:         #dc2626;
    --danger-bg:      #fef2f2;
    --info:           #0284c7;
    --info-bg:        #f0f9ff;

    /* Light Theme */
    --bg:             #fdf6ee;
    --bg-secondary:   #f5ede0;
    --surface:        #ffffff;
    --surface-alt:    #fffcf8;
    --surface-raised: #ffffff;
    --text:           #1a0f05;
    --text-secondary: #5c4033;
    --text-muted:     #9c7a62;
    --border:         #e8d5c0;
    --border-light:   #f0e4d0;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(99,69,36,0.06);
    --shadow:     0 2px 8px rgba(99,69,36,0.10);
    --shadow-md:  0 4px 16px rgba(99,69,36,0.12);
    --shadow-lg:  0 10px 30px rgba(99,69,36,0.15);
    --shadow-xl:  0 20px 60px rgba(99,69,36,0.18);

    /* Layout */
    --navbar-h:      72px;
    --radius-sm:     8px;
    --radius:        12px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    --radius-full:   9999px;

    /* Transitions */
    --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
    --transition-fast: 0.15s ease;
    --transition-slow: 0.45s cubic-bezier(0.4,0,0.2,1);

    /* Typography */
    --font-sans:     'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display:  'Playfair Display', Georgia, serif;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg:             #120a02;
    --bg-secondary:   #1e1008;
    --surface:        #1e1208;
    --surface-alt:    #251508;
    --surface-raised: #2c1a0a;
    --text:           #fdf6ee;
    --text-secondary: #d4a67a;
    --text-muted:     #8a6040;
    --border:         #3d2010;
    --border-light:   #2c1a0a;
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.3);
    --shadow:     0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:  0 10px 30px rgba(0,0,0,0.6);
    --shadow-xl:  0 20px 60px rgba(0,0,0,0.7);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }

/* ---------- Typography ---------- */
.display-1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.display-2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; line-height: 1.15; }
.heading-1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
.heading-2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
.heading-3 { font-size: 1.125rem; font-weight: 600; }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); }
.caption { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    transition: background var(--transition), box-shadow var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253,246,238,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(18,10,2,0.92);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--primary);
    text-shadow: 0 1px 3px rgba(255,255,255,0.3);
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.brand-logo-icon.large { width: 52px; height: 52px; font-size: 22px; }

.brand-name {
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-menu a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition);
    white-space: nowrap;
    opacity: 0.8;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: var(--primary);
    color: #fff;
    opacity: 1;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(99,69,36,0.08);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all var(--transition);
    font-size: 0.85rem;
}

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

.lang-toggle form, .theme-toggle form { display: flex; }
.lang-label { font-size: 0.7rem; font-weight: 700; margin-left: 2px; }
.lang-flag { font-size: 1rem; }

.btn-icon.wide { width: auto; padding: 0 12px; gap: 6px; }

/* User Menu */
.user-menu { position: relative; }
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-full);
    background: rgba(99,69,36,0.08);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}
.user-avatar-btn:hover { background: rgba(99,69,36,0.14); }
.user-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-name-short { font-size: 0.85rem; font-weight: 600; }
.user-avatar-btn i { font-size: 0.7rem; opacity: 0.6; }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 100;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    width: 100%;
    transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item i { width: 16px; color: var(--primary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger i { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99,69,36,0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99,69,36,0.4);
}

.btn-accent {
    background: var(--accent);
    color: #1a0f05;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(197,160,89,0.3);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197,160,89,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.825rem;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    transition: all var(--transition);
}
.btn-outline-sm:hover { background: var(--primary); color: #fff; }

.btn-glass {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

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

.card-glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-50);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    border: 1px solid rgba(197,160,89,0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.section-divider::before, .section-divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--accent));
}
.section-divider::after { background: linear-gradient(to left, transparent, var(--accent)); }
.section-divider i { color: var(--accent); }

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-primary   { background: var(--primary-100); color: var(--primary-dark); }
.badge-accent    { background: var(--accent-50); color: var(--accent-dark); }
.badge-success   { background: var(--success-bg); color: var(--success); }
.badge-warning   { background: var(--warning-bg); color: var(--warning); }
.badge-danger    { background: var(--danger-bg); color: var(--danger); }
.badge-info      { background: var(--info-bg); color: var(--info); }
.badge-muted     { background: var(--border-light); color: var(--text-muted); }

/* ---------- Forms ---------- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,69,36,0.08);
}

.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 4px;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    width: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: transform 0.5s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(18,10,2,0.85) 0%,
        rgba(99,69,36,0.6) 50%,
        rgba(18,10,2,0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197,160,89,0.2);
    border: 1px solid rgba(197,160,89,0.4);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}
.hero-scroll i { font-size: 1.2rem; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ---------- Floating Stats ---------- */
.hero-stats {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-align: center;
    color: #fff;
    min-width: 130px;
}
.stat-card .stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.72rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ---------- Section Padding ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 140px 0; }

/* ---------- Grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ---------- Brand Card ---------- */
.brand-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    group: true;
}

.brand-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.brand-card:hover img { transform: scale(1.08); }

.brand-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18,10,2,0.95) 0%, rgba(18,10,2,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    transition: all var(--transition);
}

.brand-card-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.brand-card-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-card h3 { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.brand-card .brand-tagline { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.brand-card .brand-outlets {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.brand-card .brand-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}
.brand-card:hover .brand-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Promo Card ---------- */
.promo-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.promo-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.promo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.promo-card:hover .promo-card-image img { transform: scale(1.05); }

.promo-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(197,160,89,0.4);
}

.promo-card-body { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; }
.promo-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.promo-card p { font-size: 0.875rem; color: var(--text-secondary); flex: 1; margin-bottom: 16px; }
.promo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}
.promo-deadline { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ---------- Blog Card ---------- */
.blog-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.blog-card-meta .category-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-50);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}
.blog-card-meta .date { font-size: 0.78rem; color: var(--text-muted); }
.blog-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blog-card h3 a { color: var(--text); transition: color var(--transition); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; flex: 1; margin-bottom: 16px; }

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.blog-author { display: flex; align-items: center; gap: 8px; }
.blog-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.blog-author-name { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.read-time { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ---------- Career Card ---------- */
.job-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.job-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.job-brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.job-info { flex: 1; min-width: 0; }
.job-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.job-title a { color: var(--text); transition: color var(--transition); }
.job-title a:hover { color: var(--primary); }
.job-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.job-meta span { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-muted); }

.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-deadline { font-size: 0.75rem; color: var(--text-muted); }

/* ---------- Toast / Flash Messages ---------- */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    min-width: 300px;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
    font-size: 0.9rem;
    font-weight: 500;
}
.toast button { margin-left: auto; opacity: 0.6; transition: opacity var(--transition); }
.toast button:hover { opacity: 1; }
.toast-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(22,163,74,0.2); }
.toast-error   { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(220,38,38,0.2); }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    padding: calc(var(--navbar-h) + 60px) 0 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent-dark) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; opacity: 0.85; }
.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.8rem;
    opacity: 0.7;
}
.page-hero .breadcrumb a { color: var(--accent-light); }
.page-hero .breadcrumb i { font-size: 0.65rem; }

/* ---------- Comment Section ---------- */
.comment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.comment-card.admin-reply {
    border-left: 3px solid var(--accent);
    background: var(--accent-50);
    margin-left: 48px;
}
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comment-author { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: var(--text-muted); }
.admin-badge { background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); text-transform: uppercase; }
.comment-body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.comment-actions { margin-top: 10px; display: flex; gap: 12px; }
.comment-reply-btn { font-size: 0.78rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ---------- QR Code Container ---------- */
.qr-voucher {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    border: 2px dashed var(--accent);
    box-shadow: var(--shadow-md);
}
.qr-code-wrapper { display: flex; justify-content: center; margin: 20px 0; }
.voucher-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    background: var(--primary-50);
    padding: 12px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--primary-100);
    display: inline-block;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: all var(--transition);
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Scroll Animations ---------- */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ---------- Dashboard Specific ---------- */
.dash-layout { display: flex; min-height: 100vh; background: var(--bg); }
.dash-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-dark) 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    transition: transform var(--transition);
}
.dash-main { margin-left: 260px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.dash-header {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.dash-content { padding: 28px; flex: 1; }

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-nav { flex: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sidebar-section {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    padding: 14px 12px 6px;
    font-weight: 700;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.15); color: #fff; font-weight: 600; }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-light);
    border-radius: 0 3px 3px 0;
}
.nav-item i { width: 18px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--accent); color: #1a0f05; font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }

.dash-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}
.stat-widget:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-widget-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-widget-icon.primary { background: var(--primary-50); color: var(--primary); }
.stat-widget-icon.accent  { background: var(--accent-50); color: var(--accent-dark); }
.stat-widget-icon.success { background: var(--success-bg); color: var(--success); }
.stat-widget-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-widget-icon.info    { background: var(--info-bg); color: var(--info); }
.stat-widget-icon.danger  { background: var(--danger-bg); color: var(--danger); }
.stat-widget-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat-widget-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--bg); }

.card-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}
.card-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.card-panel-title { font-weight: 700; font-size: 0.9rem; }
.card-panel-body { padding: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-stats { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    .navbar-menu.open { display: flex; }
    .navbar-menu a { width: 100%; padding: 12px 16px; }
    .hamburger { display: flex; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-actions { gap: 12px; }
    .section { padding: 70px 0; }

    .dash-sidebar { transform: translateX(-100%); }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-main { margin-left: 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn-lg { padding: 14px 28px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-auto     { margin-top: auto; }
.gap-8       { gap: 8px; }
.gap-16      { gap: 16px; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.w-full      { width: 100%; }
.mb-0        { margin-bottom: 0 !important; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary{ color: var(--primary); }
.fw-700      { font-weight: 700; }
.rounded-full { border-radius: var(--radius-full); }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer {
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    color: var(--text);
    padding-top: 80px;
    position: relative;
}

.footer-top {
    padding-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

[data-theme="dark"] .footer-brand-name {
    color: var(--accent-light);
}

.footer-brand-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

[data-theme="dark"] .footer-brand-sub {
    color: var(--accent);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    background: var(--bg-secondary);
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* Corporate Logo theme toggle */
.navbar-brand .logo-light {
    display: block;
}
.navbar-brand .logo-dark {
    display: none;
}

[data-theme="light"] .navbar.scrolled .navbar-brand .logo-light {
    display: none;
}
[data-theme="light"] .navbar.scrolled .navbar-brand .logo-dark {
    display: block;
}

/* Footer Logo theme toggle */
.footer-logo .logo-light {
    display: none;
}
.footer-logo .logo-dark {
    display: block;
}

[data-theme="dark"] .footer-logo .logo-light {
    display: block;
}
[data-theme="dark"] .footer-logo .logo-dark {
    display: none;
}


