/* --- Root Variables --- */
:root {
    --primary: #003366;
    --secondary: #ff6600;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --text: #333;
    --gray: #666;
    --border: #d1d8e0;
    --danger: #e74c3c;
}

/* --- Global Reset --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background-color: var(--light-bg); 
    color: var(--text); 
    overflow-x: hidden; 
}

/* --- Ticker --- */
.ticker {
    background: var(--primary);
    color: white;
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}
.ticker-wrap { display: inline-block; animation: ticker 25s linear infinite; }
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- Header & Logo --- */
header {
    background: var(--white);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0; 
    z-index: 1000;
    height: 80px;
}

.logo { font-size: 1.6rem; font-weight: bold; color: var(--primary); z-index: 1002; }
.logo span { color: var(--secondary); }

/* --- Navigation & Mega Menu --- */
.menu-toggle { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; z-index: 1002; }

nav { height: 100%; }
nav ul.main-nav { display: flex; list-style: none; gap: 10px; height: 100%; align-items: center; }

.nav-item { height: 100%; display: flex; align-items: center; position: static; }
.nav-item > a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 600; 
    font-size: 0.95rem; 
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.mega-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100vw;
    background: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: none;
    grid-template-columns: repeat(3, 1fr) 350px;
    padding: 40px 10%;
    border-bottom: 5px solid var(--secondary);
    z-index: 1100;
}

.nav-item:hover .mega-menu { display: grid; }
.mega-col h4 { color: var(--primary); margin-bottom: 15px; border-left: 4px solid var(--secondary); padding-left: 10px; }
.mega-col ul { list-style: none; }
.mega-col ul li a { 
    text-decoration: none; color: #555; font-size: 0.9rem; padding: 8px 0; 
    display: block; border-bottom: 1px solid #f0f0f0; width: 85%; 
}

/* --- Menu Ad Slider --- */
.menu-ad-slider { background: #f9f9f9; padding: 20px; border-radius: 12px; height: 280px; overflow: hidden; }
.menu-ad-slide { display: none; text-align: center; }
.menu-ad-slide.active { display: block; animation: fadeIn 0.5s; }
.menu-ad-slide img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.menu-ad-slide h5 { color: var(--primary); margin-bottom: 5px; }
.menu-ad-slide p { font-size: 0.8rem; color: #666; }

/* --- Auth Buttons --- */
.auth-btns { display: flex; align-items: center; }
.auth-btns .btn { padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; margin-left: 10px; font-size: 0.9rem; white-space: nowrap; }
.btn-login { border: 2px solid var(--primary); color: var(--primary); }
.btn-reg { background: var(--secondary); color: white; }

/* --- Hero Section & Main Slider --- */
.content-container { margin: 30px 5%; }
.hero-section { display: flex; height: 500px; gap: 25px; }
.main-slider { width: 75%; position: relative; border-radius: 20px; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: 1s; display: flex; align-items: center; padding: 0 8%; background-size: cover; background-position: center; }
.slide.active { opacity: 1; }
.slide::after { content: ""; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to right, rgba(0,0,0,0.8), transparent); }
.slide-content { color: white; max-width: 600px; z-index: 2; }
.slide-content h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 1rem; }

.sponsored-slider { width: 25%; background: white; border-radius: 20px; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.sp-badge { background: #fff3e0; color: var(--secondary); font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; font-weight: bold; margin-bottom: 10px; display: inline-block; }

/* --- Feature Cards --- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.feature-card { background: white; padding: 30px 15px; border-radius: 15px; text-align: center; border-top: 5px solid var(--primary); transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; }

/* --- About Section (Responsive Updates) --- */
.about-section { padding: 60px 5%; background: var(--white); margin: 40px 0; border-radius: 12px; }
.about { display: flex; align-items: center; gap: 50px; max-width: 1200px; margin: 0 auto; }
.about-img { 
    flex: 1; height: 450px; background: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=800&q=80');
    background-size: cover !important; background-position: center !important; border-radius: 20px; position: relative; box-shadow: 20px 20px 0px var(--light-bg);
}
.img-overlay { position: absolute; bottom: 20px; left: -20px; background: var(--secondary); color: white; padding: 15px 25px; border-radius: 8px; font-weight: bold; box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 5; }
.about-container { flex: 1; }
.about-subtitle { color: var(--secondary); font-weight: 700; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.about-title { font-size: 2.5rem; color: var(--primary); line-height: 1.2; margin-bottom: 20px; }
.about-title span { color: var(--secondary); }
.about-description { color: var(--gray); line-height: 1.8; font-size: 1.05rem; margin-bottom: 25px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.feature-item { font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.feature-item i { color: var(--secondary); }
.sponsored-by { border-top: 1px solid #eee; padding-top: 20px; }
.sponsored-by p { font-size: 0.8rem; color: #999; margin-bottom: 8px; text-transform: uppercase; }
.bank-partner { display: flex; align-items: center; gap: 12px; color: var(--primary); font-size: 1.2rem; }
.bank-partner i { font-size: 1.5rem; color: #0066b3; }

/* --- Grid & Registration Container (Responsive Updates) --- */
.container { width: 90%; margin: 0 auto; max-width: 1200px; padding: 40px 0; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
[class*="col-"] { padding: 0 15px; width: 100%; }
.col-4 { flex: 0 0 33.33%; max-width: 33.33%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* --- Forms & Cards --- */
.card { 
    background: white; padding: 40px; border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 30px;
}
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary); font-size: 0.9rem; }
label.required::after { content: " *"; color: var(--danger); }

input, select, textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 1rem; outline: none; transition: 0.3s;
}
input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1); }

/* --- Unified Buttons --- */
.btn { padding: 12px 25px; border-radius: 8px; font-weight: bold; cursor: pointer; border: none; transition: 0.3s; text-align: center; display: inline-block; }
.btn-primary { background: var(--primary); color: white; width: 100%; font-size: 1.1rem; }

/* --- Toggle Switch Logic --- */
.toggle-container { text-align: center; margin-bottom: 40px; }
.toggle-btn-group { 
    background: #e2e8f0; padding: 8px; border-radius: 50px; 
    display: inline-flex; gap: 5px; cursor: pointer; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.toggle-option { 
    padding: 10px 24px; border-radius: 40px; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    font-weight: 600; color: #64748b;
}
.toggle-option.active { 
    background: var(--secondary); color: white; box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.section-head { 
    border-left: 4px solid var(--secondary); padding-left: 15px; 
    margin: 30px 0 20px 0; color: var(--primary); text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px;
}

.role-form-section { display: none; }
.role-form-section.active { display: block; animation: fadeIn 0.5s ease; }

/* --- Responsive & Animations --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
    .hero-section { height: auto; flex-direction: column; }
    .main-slider, .sponsored-slider { width: 100%; height: 400px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .mega-menu { grid-template-columns: repeat(3, 1fr); }
    .menu-ad-slider { display: none; }
    .about { gap: 30px; }
}

@media (max-width: 768px) {
    [class*="col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
    .menu-toggle { display: block; }
    nav {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
        background: white; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        padding: 100px 25px; box-shadow: 10px 0 30px rgba(0,0,0,0.1); z-index: 1001; overflow-y: auto;
    }
    nav.active { left: 0; } 
    nav ul.main-nav { flex-direction: column; height: auto; align-items: flex-start; gap: 15px; }
    .nav-item { width: 100%; height: auto; flex-direction: column; align-items: flex-start; }
    .nav-item > a { width: 100%; padding: 15px 0; font-size: 1.1rem; border-bottom: 1px solid #eee; }
    .mega-menu { position: relative; top: 0; width: 100%; display: none; grid-template-columns: 1fr; padding: 10px; box-shadow: none; border: none; }
    .nav-item:hover .mega-menu { display: block; } 
    .mega-col h4 { font-size: 0.9rem; margin-top: 15px; }
    .auth-btns { display: none; }
    
    /* About & Register Mobile Center Optimization */
    .about { flex-direction: column; text-align: center; }
    .about-img { width: 100%; height: 300px; box-shadow: none; order: -1; }
    .about-features { grid-template-columns: 1fr; }
    .feature-item, .bank-partner { justify-content: center; }
    .img-overlay { left: 50%; transform: translateX(-50%); bottom: -15px; width: 80%; text-align: center; }
    
    .card { padding: 30px 15px; }
    .container { width: 95%; }
}