:root {
--primary-color: #0b3c6f;
--secondary-color: #d89b00;
--light-bg: #f4f8fc;
--text-dark: #1f2d3d;
}

body { background: var(--light-bg); color: var(--text-dark); user-select:none;}

.logo-img { height: 58px; width: auto; object-fit: contain; }
.brand-text { line-height: 1.1; }
.site-title {
font-size: 1.8rem;
font-weight: 800;
color: white;
letter-spacing: 1px;
}
.site-title span {
color: var(--secondary-color);
}
.site-subtitle {
font-size: 0.95rem;
font-weight: 600;
color: #f8d978;
text-transform: uppercase;
letter-spacing: 0.5px;
}
@media (max-width: 768px) {
.logo-img { height: 45px; }
.site-title { font-size: 1.2rem; }
.site-subtitle { font-size: 0.7rem; }
}
.carousel-item img { height:400px; object-fit:cover; }
.quiz-card:hover { transform:translateY(-5px); transition:0.3s; }
.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu {
top: 0; left: 100%; margin-top: -1px;
}
.navbar {
background: linear-gradient(90deg, var(--primary-color), #144f8a) !important;
}
.btn-warning {
background: var(--secondary-color);
border: none;
color: white;
}
.btn-warning:hover {
background: #b67f00;
}
.text-primary, .btn-outline-primary {
color: var(--primary-color) !important;
border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
background: var(--primary-color);
color: white !important;
}
footer {
background: linear-gradient(180deg, #0a2f57, #081f39);
color: white;
}
footer a { color:#d1d9e6; text-decoration:none; }
footer a:hover { color:white; }

.quiz-title{
        text-align: center;
        font-size: 2.5rem;
        font-weight: bold;
        color: #b30000;
        text-transform: uppercase;
        letter-spacing: 3px;
        margin: 10px 0;
        text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    }

    .subject-title{
        text-align: center;
		background: linear-gradient(180deg, #0a2f57, #081f39);
        color: #fff; /* dark blue */
        font-weight: 700;
        padding: 12px 0;
        border-top: 3px solid #cca402;
        border-bottom: 3px solid #cca402;
        margin: 20px auto;
        width: 100%;
    }

#questionText {
    color: navy;
    font-weight: 600;
}
.option-btn{width:100%;text-align:left;margin-bottom:10px; color: #000 !important;}
.option-btn:hover {
    color: #fff !important;
}
.correct{background:#d1e7dd!important;border-color:#198754!important}
.wrong{background:#f8d7da!important;border-color:#dc3545!important}
.blink-note {
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.custom-navbar {
    background: linear-gradient(90deg, #0b3c6f, #145da0);
    z-index: 9999;
}
.navbar-nav .nav-link {
border:1px;
    color: #fff !important;
    border-radius: 6px;
	padding-right:2px;
}
/* Top navbar links */
.navbar-nav .nav-link:hover {
    background-color: #437a7d;
    color: #fff !important;
    border-radius: 6px;
}

/* Dropdown items */
.dropdown-item:hover {
    background-color: #437a7d;
    color: #fff !important;
    border-radius: 6px;
}
.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Arrow icon */
.dropdown-submenu > a::after {
    content: "\f285"; 
    font-family: "bootstrap-icons";
    font-size: 12px;
    margin-left: 10px;
    transition: 0.3s;
    opacity: 0.7;
}

/* Hover effect on arrow */
.dropdown-submenu > a:hover::after {
    transform: translateX(4px);
    opacity: 1;
}
.dropdown-item,
.nav-link {
    transition: all 0.2s ease;
}
.dropdown-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Push arrow to the extreme right */
.dropdown-menu .dropdown-toggle::after {
    margin-left: auto;
}

/* Optional: spacing tweak */
.dropdown-menu .dropdown-toggle {
    padding-right: 20px;
}
/* Mega menu background */
.dropdown-mega .dropdown-menu {
    width: 100%;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

/* Section headings */
.dropdown-mega h5 {
    font-weight: 600;
    color: #0b3c6f;
    margin-bottom: 15px;
}

/* List items */
.list-group-item {
    border: none;
    padding: 8px 0;
    font-size: 14px;
    background: transparent;
    transition: 0.2s;
}

.list-group-item:hover {
    color: #437a7d;
    padding-left: 5px;
}

/* Cards */
.dropdown-mega .card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    transition: 0.3s;
}

.dropdown-mega .card:hover {
    transform: translateY(-5px);
}

/* Images */
.dropdown-mega img {
    border-radius: 8px;
}
.dropdown-mega a {
    text-decoration: none;
}
/* Thumbnail grid */
.quiz-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
}

.quiz-thumb img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.quiz-thumb:hover {
    color: #437a7d;
}
footer a {
    color: #ffcc00 !important; /* default white */
    text-decoration: none;
}

footer a:hover {
    color: #ffffff !important;  /* yellow on hover */
}
.swal-mobile {
    border-radius: 12px !important;
}

@media (max-width: 576px) {
    .swal2-popup {
        width: 90% !important;
        font-size: 14px !important;
        padding: 1rem !important;
    }

    .swal2-title {
        font-size: 18px !important;
    }

    .swal2-html-container {
        font-size: 14px !important;
        line-height: 1.5;
    }

    .swal2-confirm {
        width: 100% !important;
        font-size: 16px !important;
    }
}
@media (max-width: 576px) {
    .swal2-actions button {
        width: 100% !important;
        margin: 5px 0 !important;
    }
}