/* ============================================================
   STH GLOBAL CSS — Skill Technical Hub University Theme
   Import this in every page: <link rel="stylesheet" href="css/sth-global.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --sth-primary:    #0f1b2d;
    --sth-accent:     #e63946;
    --sth-gold:       #f4a522;
    --sth-sky:        #1d78c1;
    --sth-light-bg:   #f3f6fb;
    --sth-card-bg:    #ffffff;
    --sth-text:       #1a2535;
    --sth-muted:      #6c7a8d;
    --sth-border:     #dce3ed;
    --sth-radius:     14px;
    --sth-shadow:     0 6px 24px rgba(15,27,45,0.10);
    --sth-shadow-lg:  0 16px 40px rgba(15,27,45,0.18);
    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--sth-light-bg);
    color: var(--sth-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Top Bar ── */
.sth-topbar {
    background: var(--sth-primary);
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    padding: 7px 0;
    border-bottom: 2px solid var(--sth-accent);
}
.sth-topbar a { color: rgba(255,255,255,0.85); text-decoration: none; }
.sth-topbar a:hover { color: #fff; }
.sth-topbar .btn-login {
    background: var(--sth-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.sth-topbar .btn-login:hover { background: #c62b36; color: #fff; }

/* ── Logo Bar ── */
.sth-logobar {
    background: #fff;
    border-bottom: 1px solid var(--sth-border);
    padding: 10px 0;
}
.sth-logobar .brand-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sth-primary);
    line-height: 1.2;
}
.sth-logobar .brand-tagline {
    font-size: 0.78rem;
    color: var(--sth-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Navbar ── */
.sth-navbar {
    background: var(--sth-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(15,27,45,0.35);
}
.sth-navbar .navbar-nav .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 16px 16px !important;
    transition: all 0.2s;
    position: relative;
}
.sth-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 3px;
    background: var(--sth-accent);
    transition: all 0.25s ease;
}
.sth-navbar .navbar-nav .nav-link:hover,
.sth-navbar .navbar-nav .nav-link.active-nav {
    color: #fff !important;
}
.sth-navbar .navbar-nav .nav-link:hover::after,
.sth-navbar .navbar-nav .nav-link.active-nav::after {
    left: 0; right: 0;
}
/* ── Dropdown ──────────────────────────────────────────── */
/* All dropdown CSS is now in nav.php <style> block         */
/* to keep it co-located and avoid specificity conflicts    */
.sth-navbar .dropdown-menu {
    z-index: 9999;
}
.sth-navbar .dropdown-item {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sth-navbar .dropdown-item:hover,
.sth-navbar .dropdown-item:focus {
    background: var(--sth-accent);
    color: #fff;
}
/* Critical: remove ALL pseudo-element interference on toggle */
.sth-navbar .dropdown-toggle::after,
.sth-navbar .dropdown-toggle::before,
.sth-navbar .nav-link::after {
    display: none !important;
    content: none !important;
}

.sth-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    padding: 6px 10px;
}
.sth-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Page Hero Banner ── */
.sth-page-hero {
    background: linear-gradient(135deg, var(--sth-primary) 0%, #1d3557 60%, #1d78c1 100%);
    color: #fff;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}
.sth-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.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");
}
.sth-page-hero .hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}
.sth-page-hero .hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    position: relative;
}
.sth-breadcrumb {
    background: transparent;
    padding: 0;
    margin-top: 12px;
    position: relative;
}
.sth-breadcrumb .breadcrumb-item { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.sth-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.75); text-decoration: none; }
.sth-breadcrumb .breadcrumb-item.active { color: #fff; }
.sth-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── Section Title ── */
.sth-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--sth-primary);
    position: relative;
    display: inline-block;
    margin-bottom: 6px;
}
.sth-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--sth-accent);
    border-radius: 2px;
    margin-top: 8px;
}
.sth-section-title.centered::after { margin: 8px auto 0; }

/* ── Cards ── */
.sth-card {
    background: var(--sth-card-bg);
    border-radius: var(--sth-radius);
    box-shadow: var(--sth-shadow);
    border: 1px solid var(--sth-border);
    transition: all 0.3s ease;
    overflow: hidden;
}
.sth-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sth-shadow-lg);
    border-color: transparent;
}

/* ── Buttons ── */
.btn-sth-primary {
    background: var(--sth-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}
.btn-sth-primary:hover { background: #c62b36; color: #fff; transform: translateY(-2px); }

.btn-sth-outline {
    background: transparent;
    color: var(--sth-accent);
    border: 2px solid var(--sth-accent);
    border-radius: 8px;
    padding: 8px 22px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}
.btn-sth-outline:hover { background: var(--sth-accent); color: #fff; }

/* ── Badge ── */
.sth-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.sth-badge-accent { background: #fde8ea; color: var(--sth-accent); }
.sth-badge-sky    { background: #dbeeff; color: var(--sth-sky); }
.sth-badge-gold   { background: #fdf3de; color: #b8760c; }

/* ── Accent color strip helpers ── */
.strip-blue   { border-top: 4px solid #1d78c1; }
.strip-red    { border-top: 4px solid #e63946; }
.strip-green  { border-top: 4px solid #2a9d5c; }
.strip-purple { border-top: 4px solid #7c3aed; }
.strip-orange { border-top: 4px solid #f4a522; }
.strip-teal   { border-top: 4px solid #0d9488; }

/* ── Utility ── */
.text-accent  { color: var(--sth-accent) !important; }
.text-sky     { color: var(--sth-sky) !important; }
.text-gold    { color: var(--sth-gold) !important; }
.bg-sth       { background: var(--sth-primary) !important; }
.rounded-sth  { border-radius: var(--sth-radius) !important; }