/* =========================
   ROOT VARIABLES
========================= */

:root{

--primary:#2563eb;
--primary-dark:#1d4ed8;

--secondary:#0f172a;

--success:#22c55e;
--danger:#ef4444;

--white:#ffffff;

--bg:#f8fafc;
--surface:#ffffff;

--border:#e5e7eb;

--text:#1e293b;
--text-light:#64748b;

--shadow:
0 10px 30px rgba(0,0,0,.08);

--radius:18px;

--transition:.3s ease;

}

/* =========================
   RESET
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{

font-family:'Inter',sans-serif;

background:var(--bg);

color:var(--text);

overflow-x:hidden;

}

/* =========================
   ANNOUNCEMENT BAR
========================= */

.announcement-bar{

background:
linear-gradient(
135deg,
#1e3a8a,
#2563eb
);

color:#fff;

height:42px;

display:flex;
align-items:center;

}

.announcement-wrapper{

display:flex;
align-items:center;

gap:20px;

height:42px;

}

.announcement-left{

font-size:14px;
font-weight:600;

white-space:nowrap;

}

.announcement-left i{

margin-right:8px;

}

.announcement-marquee{

flex:1;

font-size:14px;

}

.announcement-right a{

color:#fff;

text-decoration:none;

font-weight:600;

}

/* =========================
   HEADER
========================= */

.main-header{

position:sticky;

top:0;

z-index:9999;

backdrop-filter:blur(18px);

background:
rgba(255,255,255,.90);

border-bottom:
1px solid rgba(255,255,255,.3);

box-shadow:
0 4px 25px rgba(0,0,0,.05);

}

/* =========================
   NAVBAR
========================= */

.navbar{

min-height:88px;

}

/* =========================
   LOGO
========================= */

.logo-box{

width:58px;
height:58px;

border-radius:16px;

display:flex;
align-items:center;
justify-content:center;

font-size:26px;
font-weight:800;

color:#fff;

background:
linear-gradient(
135deg,
#2563eb,
#60a5fa
);

box-shadow:
0 10px 25px rgba(37,99,235,.3);

}

.logo-title{

font-size:20px;

font-weight:800;

color:var(--secondary);

line-height:1.1;

}

.logo-subtitle{

font-size:12px;

color:var(--text-light);

}

/* =========================
   SEARCH BOX
========================= */

.header-search{
    width:280px;
    margin-left:15px;
}

.search-box{

position:relative;

display:flex;

align-items:center;

background:#fff;

border:
1px solid var(--border);

border-radius:50px;

overflow:hidden;

transition:var(--transition);

}

.search-box:hover{

box-shadow:
0 8px 25px rgba(37,99,235,.12);

}

.search-box i{

position:absolute;

left:18px;

color:#94a3b8;

font-size:16px;

}

.search-box input{

width:100%;

height:50px;

padding-left:48px;

padding-right:120px;

border:none;

outline:none;

font-size:14px;

}

.search-box button{

position:absolute;

right:4px;

height:42px;

padding:0 24px;

border:none;

border-radius:40px;

background:var(--primary);

color:#fff;

font-weight:600;

}

/* =========================
   NAV LINKS
========================= */

.navbar-nav{

gap:4px;

}
.navbar-collapse{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
}
@media(max-width:1400px){

.header-search{
    display:none !important;
}

}

.nav-link{

 font-size:14px;
    padding:12px 10px !important;

color:var(--text)!important;

padding:
14px 18px !important;

border-radius:10px;

transition:var(--transition);

}

.nav-link:hover{

background:#eff6ff;

color:var(--primary)!important;

}

.nav-link.active{

color:var(--primary)!important;

}

/* =========================
   HEADER ACTIONS
========================= */

.header-actions{

display:flex;

align-items:center;

gap:10px;

}

/* Theme */

.theme-btn,
.notification-btn{

width:46px;
height:46px;

border:none;

background:#fff;

border-radius:50%;

box-shadow:
0 5px 15px rgba(0,0,0,.08);

transition:var(--transition);

}

.theme-btn:hover,
.notification-btn:hover{

transform:translateY(-2px);

}

/* Badge */

.badge-dot{

position:absolute;

width:10px;
height:10px;

background:red;

border-radius:50%;

margin-left:-6px;

margin-top:-6px;

}

/* Login */

.btn-login{

padding:
11px 24px;

font-weight:600;

border-radius:12px;

border:
1px solid var(--primary);

color:var(--primary);

background:#fff;

}

/* Register */

.btn-register{

padding:
11px 24px;

font-weight:600;

border-radius:12px;

background:var(--primary);

color:#fff;

border:none;

}

/* Start Test */

.start-test-btn{

padding:
12px 26px;

font-weight:700;

border-radius:14px;

background:
linear-gradient(
135deg,
#2563eb,
#3b82f6
);

color:#fff;

border:none;

box-shadow:
0 10px 25px rgba(37,99,235,.25);

}

/* =========================
   PROFILE
========================= */

.profile-btn{

display:flex;

align-items:center;

gap:10px;

padding:
8px 14px;

background:#fff;

border:none;

border-radius:14px;

box-shadow:
0 4px 12px rgba(0,0,0,.08);

}

.profile-avatar{

width:38px;
height:38px;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

font-weight:700;

color:#fff;

background:
linear-gradient(
135deg,
#2563eb,
#60a5fa
);

}

/* =========================
   DROPDOWN
========================= */

.dropdown-menu{

border:none;

border-radius:18px;

padding:12px;

box-shadow:
0 20px 40px rgba(0,0,0,.12);

}

/* =========================
   MOBILE
========================= */

.mobile-actions{

display:flex;

align-items:center;

gap:10px;

}

.search-btn-mobile{

width:45px;
height:45px;

border-radius:50%;

background:#fff;

border:none;

box-shadow:
0 5px 15px rgba(0,0,0,.08);

}

.navbar-toggler{

font-size:30px;

}

/* =========================
   OFFCANVAS
========================= */

.offcanvas{

width:300px;

}

.mobile-nav{

list-style:none;

padding:0;

}

.mobile-nav li{

margin-bottom:10px;

}

.mobile-nav a{

display:block;

padding:14px;

border-radius:12px;

text-decoration:none;

color:var(--text);

font-weight:600;

background:#f8fafc;

}

.mobile-buttons{

margin-top:25px;

}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){

.header-search{
display:none;
}

}

@media(max-width:992px){

.logo-title{
font-size:18px;
}

.logo-box{

width:50px;
height:50px;

}

}

@media(max-width:576px){

.logo-subtitle{
display:none;
}

.logo-title{
font-size:16px;
}

.announcement-right{
display:none;
}

}
/* ===================================
   MEGA MENU PRO
=================================== */

.mega-dropdown{
position:static;
}

.mega-menu{

width:100%;

left:0 !important;
right:0 !important;

margin-top:18px !important;

padding:30px;

border:none;

border-radius:22px;

background:
rgba(255,255,255,.98);

backdrop-filter:blur(20px);

box-shadow:
0 30px 60px rgba(0,0,0,.12);

opacity:0;
visibility:hidden;

display:block;

transform:
translateY(20px);

transition:.35s ease;

}

.mega-dropdown:hover .mega-menu{

opacity:1;
visibility:visible;

transform:
translateY(0);

}

.mega-menu h6{

font-size:15px;

font-weight:800;

margin-bottom:15px;

color:var(--secondary);

}

.mega-menu a{

display:block;

padding:10px 12px;

border-radius:12px;

text-decoration:none;

color:var(--text);

font-size:14px;

font-weight:500;

transition:.25s;

margin-bottom:5px;

}

.mega-menu a:hover{

background:#eff6ff;

color:var(--primary);

padding-left:18px;

}

/* ===================================
   NAVBAR SCROLL EFFECT
=================================== */

.main-header.scrolled{

background:
rgba(255,255,255,.96);

backdrop-filter:
blur(22px);

box-shadow:
0 12px 35px rgba(0,0,0,.08);

}

/* ===================================
   BUTTON ANIMATIONS
=================================== */

.btn-register,
.start-test-btn{

position:relative;

overflow:hidden;

}

.btn-register::before,
.start-test-btn::before{

content:"";

position:absolute;

width:0;

height:100%;

left:0;
top:0;

background:
rgba(255,255,255,.18);

transition:.4s;

}

.btn-register:hover::before,
.start-test-btn:hover::before{

width:100%;

}

.btn-register:hover,
.start-test-btn:hover{

transform:
translateY(-2px);

}

/* ===================================
   LOGO EFFECT
=================================== */

.logo-box{

position:relative;

overflow:hidden;

}

.logo-box::after{

content:"";

position:absolute;

top:-100%;
left:-100%;

width:250%;
height:250%;

background:
linear-gradient(
45deg,
transparent,
rgba(255,255,255,.4),
transparent
);

transform:rotate(25deg);

animation:
shine 6s linear infinite;

}

@keyframes shine{

100%{
top:100%;
left:100%;
}

}

/* ===================================
   SEARCH EFFECT
=================================== */

.search-box:focus-within{

border-color:#60a5fa;

box-shadow:
0 0 0 5px rgba(37,99,235,.08);

}

/* ===================================
   PROFILE DROPDOWN
=================================== */

.profile-btn{

cursor:pointer;

transition:.3s;

}

.profile-btn:hover{

transform:
translateY(-2px);

}

.dropdown-item{

padding:12px 16px;

border-radius:12px;

font-size:14px;

font-weight:500;

transition:.25s;

}

.dropdown-item:hover{

background:#eff6ff;

color:var(--primary);

}

.dropdown-item i{

margin-right:10px;

}

/* ===================================
   NOTIFICATION
=================================== */

.notification-btn{

position:relative;

}

.badge-dot{

top:10px;
right:10px;

position:absolute;

animation:
pulse 1.5s infinite;

}

@keyframes pulse{

0%{
transform:scale(1);
}

50%{
transform:scale(1.4);
}

100%{
transform:scale(1);
}

}

/* ===================================
   MOBILE NAV
=================================== */

.mobile-nav a{

transition:.25s;

}

.mobile-nav a:hover{

background:#eff6ff;

color:var(--primary);

padding-left:20px;

}

/* ===================================
   DARK MODE
=================================== */

body.dark-mode{

--bg:#0f172a;
--surface:#1e293b;

--text:#f8fafc;
--text-light:#cbd5e1;

--border:#334155;

background:#0f172a;

color:#f8fafc;

}

body.dark-mode .main-header{

background:
rgba(15,23,42,.90);

}

body.dark-mode .search-box,
body.dark-mode .theme-btn,
body.dark-mode .notification-btn,
body.dark-mode .profile-btn{

background:#1e293b;

border-color:#334155;

}

body.dark-mode .search-box input{

background:#1e293b;

color:#fff;

}

body.dark-mode .nav-link{

color:#f8fafc !important;

}

body.dark-mode .nav-link:hover{

background:#1e293b;

}

body.dark-mode .mega-menu{

background:
rgba(30,41,59,.98);

}

body.dark-mode .mega-menu a{

color:#e2e8f0;

}

body.dark-mode .dropdown-menu{

background:#1e293b;

}

body.dark-mode .dropdown-item{

color:#e2e8f0;

}

body.dark-mode .offcanvas{

background:#0f172a;

color:#fff;

}

body.dark-mode .mobile-nav a{

background:#1e293b;

color:#fff;

}

/* ===================================
   PREMIUM GLASS CARDS
=================================== */

.glass-card{

background:
rgba(255,255,255,.6);

backdrop-filter:blur(18px);

border:
1px solid rgba(255,255,255,.4);

border-radius:24px;

}

body.dark-mode .glass-card{

background:
rgba(30,41,59,.5);

}

/* ===================================
   SCROLLBAR
=================================== */

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#f1f5f9;

}

::-webkit-scrollbar-thumb{

background:#94a3b8;

border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

background:#64748b;

}

/* ===================================
   LARGE SCREEN OPTIMIZATION
=================================== */

@media(min-width:1600px){

.container-fluid{

max-width:1500px;

}

.nav-link{

font-size:16px;

}

}

/* ===================================
   TABLET
=================================== */

@media(max-width:992px){

.header-actions{

display:none;

}

.mega-menu{

display:none !important;

}

}

/* ===================================
   SMALL MOBILE
=================================== */

@media(max-width:420px){

.logo-box{

width:42px;
height:42px;

font-size:20px;

}

.logo-title{

font-size:15px;

}

.navbar{

min-height:74px;

}

.search-btn-mobile{

width:40px;
height:40px;

}

}

/* ===================================
   SMOOTH TRANSITIONS
=================================== */

a,
button,
input,
.nav-link,
.dropdown-item{

transition:
all .25s ease;

}