:root {
    --bg-color: #f4f4f4;
    --text-color: #111;
}

.dark-mode {
    --bg-color: #111;
    --text-color: #ffffff;
}

/* Page Layout */

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px;
    transition: background 0.3s ease, color 0.3s ease;
}

main {
    flex: 1;
}

/* Dark Mode */

body.dark-mode {
    background-color: #111;
    color: #fff;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode p,
body.dark-mode span,
body.dark-mode li {
    color: #ffffff !important;
}

body.dark-mode .card {
    background-color: #1c1c1c;
}

body.dark-mode .navbar {
    background-color: #000 !important;
}

body.dark-mode a {
    color: #ff4d4d;
}

/* Navbar */

.bg-black {
    background-color: #111111 !important;
}

.navbar {
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand-logo {
    height: 40px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-text {
    font-weight: 600;
    font-size: 20px;
    color: white;
}

.nav-animate {
    position: relative;
}

.nav-animate:hover {
    color: #c4161c !important;
}

.nav-animate::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #c4161c;
    transition: width 0.3s ease;
}

.nav-animate:hover::after {
    width: 100%;
}

/* Buttons */

.btn-primary {
    background-color: #c4161c;
    border: none;
}

.btn-primary:hover {
    background-color: #a01217;
}

.apply-btn {
    background-color: #c4161c;
    border: none;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background-color: #a01217;
    transform: translateY(-2px);
}

/* Cards */

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card h5 {
    color: #c4161c;
}

/* Hero Section */

.hero-section {
    height: 90vh;
    background: linear-gradient(135deg, #111111, #c4161c);
}

.hero h1 {
    font-size: 2.5rem;
}

/* Responsive */

@media (max-width: 768px) {

    .hero-section {
        height: auto;
        padding: 100px 20px;
    }

    .brand-text {
        font-size: 16px;
    }
}

/* Floating CTA */

.floating-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #c4161c;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(196,22,28,0.4);
    z-index: 999;
}

.floating-cta:hover {
    background-color: #a01217;
}

/* Typography */

h1, h2, h3 {
    font-weight: 700;
}

p {
    line-height: 1.7;
}

/* Assessment Instructions Page */

.assessment-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructions-card {
    max-width: 700px;
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.instructions-card h2 {
    font-weight: 700;
    color: #c4161c;
    margin-bottom: 20px;
}

.instructions-card ul {
    padding-left: 20px;
}

.instructions-card li {
    margin-bottom: 12px;
    font-size: 15px;
}

.instructions-header {
    text-align: center;
    margin-bottom: 25px;
}

.instructions-header p {
    color: #555;
}

.start-btn {
    background-color: #c4161c;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
}

.start-btn:hover {
    background-color: #a01217;
    transform: translateY(-2px);
}

.candidate-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.rules-box {
    background: #fff5f5;
    border-left: 4px solid #c4161c;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Responsive */

@media (max-width:768px){

.instructions-card {
    padding:25px;
}

.instructions-card h2{
    font-size:22px;
}

}