/* ==========================================================================
   THEME REFRESH — NTHPSC Website
   Extends the existing elearn/css/style.css variables (--primary,--light,--dark)
   Do NOT remove the base stylesheet — this file only adds/upgrades on top of it.
   ========================================================================== */

:root {
    --primary: #06BBCC;        /* kept from original theme */
    --primary-dark: #049aa8;
    --accent: #FDB913;         /* new warm accent for CTAs / highlights */
    --light: #F0FBFC;          /* kept from original theme */
    --dark: #181d38;           /* kept from original theme */
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(24,29,56,0.08);
    --shadow-hover: 0 20px 40px rgba(6,187,204,0.18);
}

body {
    font-family: 'Nunito', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand h2 {
    font-family: 'Poppins', sans-serif;
}

/* ---------- Section title accent (reused across pages) ---------- */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 45px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    letter-spacing: .3px;
    transition: all .3s ease;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: .3px;
    transition: all .3s ease;
}
.btn-accent:hover {
    background: #e5a80f;
    border-color: #e5a80f;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(253,185,19,0.3);
}

/* ---------- Generic card polish ---------- */
.card-modern {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform .35s ease, box-shadow .35s ease;
}
.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* ---------- Icon circle used in service / feature cards ---------- */
.icon-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(6,187,204,0.12), rgba(6,187,204,0.04));
    color: var(--primary);
    font-size: 1.75rem;
    transition: all .35s ease;
}
.card-modern:hover .icon-circle {
    background: var(--primary);
    color: #fff;
    transform: rotate(8deg) scale(1.05);
}

/* ---------- Back to top ---------- */
.back-to-top {
    box-shadow: 0 8px 20px rgba(6,187,204,0.35);
}

/* ---------- Scroll reveal helper (paired with small inline JS / wow.js) ---------- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Misc ---------- */
::selection {
    background: var(--accent);
    color: #1a1a1a;
}

@media (max-width: 576px) {
    .icon-circle { width: 64px; height: 64px; font-size: 1.4rem; }
}
