:root {
    --body: #FFFFFF;
    --black: #000000;
    --white: #FFFFFF;
    --theme: #EC0000;
    --theme2: #000000;
    --header: #000000;
    --text: #000000;
    --border: #F5F5F5;
    --border-2: #F5F5F5;
    --border-3: #F5F5F5;
    --bg: #F5F5F5;
    --bg2: #F5F5F5;
    --box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* =========================
   NAVBAR
========================= */

.top-navbar {
    background: var(--white);
    border-bottom: 1px solid #eaeaea;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* =========================
   BRAND
========================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--header);
    min-width: 0;
}

.brand-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: var(--theme);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 4px 12px rgba(236, 0, 0, 0.22);
}

.brand-title {
    display: block;
    font-weight: 800;
    font-size: 21px;
    line-height: 1.15;
    color: var(--black);
    letter-spacing: -0.3px;
}

.navbar-subtitle {
    font-size: 11px;
    color: #555555;
    font-weight: 500;
    margin-top: 2px;
}

/* =========================
   CONTACT AREA
========================= */

.navbar-contact {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.contact-item i {
    color: var(--theme);
    font-size: 14px;
}

.contact-item:hover {
    color: var(--theme);
}

/* =========================
   SOCIAL ICONS
========================= */

.social-icons {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 15px;
    border-left: 1px solid #e5e5e5;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--black);
    background: var(--bg);
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: var(--theme);
    color: var(--white);
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--black) 0%,
        #181818 65%,
        #3a0000 100%
    );
    color: var(--white);
    padding: 65px 0 95px;
    border-bottom: 4px solid var(--theme);
}

.hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(236, 0, 0, 0.14);
    top: -170px;
    right: -70px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -130px;
    left: -60px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(236, 0, 0, 0.18);
    border: 1px solid rgba(236, 0, 0, 0.45);
    color: var(--white);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge i {
    color: var(--theme);
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--white);
}

.hero p {
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* =========================
   MAIN CONTENT
========================= */

.exam-section {
    margin-top: -48px;
    position: relative;
    z-index: 5;
    padding-bottom: 65px;
}

.section-heading {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 25px;
    margin-bottom: 26px;
    box-shadow: var(--box-shadow);
    border: 1px solid #ececec;
}

.section-heading h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: var(--header);
}

.section-heading h2 i {
    color: var(--theme);
}

.heading-underline {
    width: 55px;
    height: 3px;
    background: var(--theme);
    border-radius: 3px;
    margin: 10px auto 8px;
}

.section-heading p {
    margin: 0;
    color: #555555;
    font-size: 14px;
}

/* =========================
   QUIZ CARD
========================= */

.exam-card {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow);
    transition: all 0.25s ease;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.10);
    border-color: var(--theme);
}

.exam-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.exam-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(236, 0, 0, 0.08);
    color: var(--theme);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.quiz-tag {
    background: var(--bg);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid #e5e5e5;
}

.exam-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 8px;
}

.exam-description {
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    min-height: 44px;
    margin-bottom: 18px;
}

.exam-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--bg);
    border-radius: 12px;
    padding: 13px 8px;
    margin-bottom: 20px;
}

.meta-item {
    text-align: center;
}

.meta-icon {
    color: var(--theme);
    font-size: 16px;
    display: block;
    margin-bottom: 3px;
}

.meta-value {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--black);
}

.meta-label {
    display: block;
    font-size: 11px;
    color: #666666;
    margin-top: 1px;
}

/* =========================
   FORM
========================= */

.exam-card form {
    margin-top: auto;
}

.candidate-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
}

.candidate-input {
    height: 44px;
    border-radius: 50px;
    border: 1px solid #dcdcdc;
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    padding: 0 18px;
}

.candidate-input:focus {
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(236, 0, 0, 0.12);
}

.start-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 50px;
    background: var(--theme);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.start-btn:hover {
    background: var(--theme2);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
    background: var(--white);
    border-radius: 16px;
    padding: 60px 25px;
    text-align: center;
    border: 1px solid #eaeaea;
    box-shadow: var(--box-shadow);
}

.empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: rgba(236, 0, 0, 0.08);
    color: var(--theme);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.empty-state h4 {
    font-weight: 700;
    color: var(--header);
    margin-bottom: 8px;
}

.empty-state p {
    color: #555555;
    margin: 0;
}

/* =========================
   FOOTER
========================= */

footer {
    background: var(--black);
    color: #cccccc;
    padding: 28px 0 20px;
    font-size: 13px;
    border-top: 3px solid var(--theme);
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #222222;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand strong {
    color: var(--white);
    font-size: 17px;
}

.footer-divider {
    color: var(--theme);
    font-weight: bold;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-contact a {
    color: #cccccc;
    text-decoration: none;
    transition: 0.2s;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-contact i {
    color: var(--theme);
    margin-right: 6px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    gap: 15px;
    color: #999999;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1a1a1a;
    color: var(--white);
    text-decoration: none;
    transition: 0.2s;
}

.footer-social a:hover {
    background: var(--theme);
    color: var(--white);
}

/* =========================
   TABLET & MOBILE RESPONSIVE
========================= */

@media (max-width: 991px) {
    .navbar-contact {
        gap: 8px;
    }

    .contact-item span {
        display: none;
    }

    .contact-item {
        width: 34px;
        height: 34px;
        justify-content: center;
        background: var(--bg);
        border-radius: 50%;
    }

    .social-icons {
        padding-left: 8px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 45px 0 75px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .exam-section {
        margin-top: -32px;
    }

    .exam-card {
        padding: 20px;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .footer-brand {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-contact {
        flex-direction: column;
        gap: 7px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .top-navbar {
        padding: 10px 0;
    }

    .navbar-inner {
        gap: 10px;
    }

    .brand {
        gap: 9px;
        flex: 1;
    }

    .brand-icon {
        width: 38px;
        min-width: 38px;
        height: 38px;
        font-size: 18px;
        border-radius: 8px;
    }

    .brand-title {
        font-size: 17px;
    }

    .navbar-subtitle {
        font-size: 9px;
        margin-top: 2px;
    }

    .navbar-contact {
        gap: 5px;
    }

    .contact-item {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .social-icons {
        gap: 5px;
        padding-left: 5px;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .social-icons a:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 380px) {
    .brand-title {
        font-size: 15px;
    }

    .navbar-subtitle {
        font-size: 8px;
    }

    .brand-icon {
        width: 35px;
        min-width: 35px;
        height: 35px;
    }

    .contact-item,
    .social-icons a {
        width: 28px;
        height: 28px;
    }
}