/* landingpage.css - Updated with Better Mobile Responsiveness */
:root {
    --primary: #1e3a8a;
    --secondary: #0d0d0e;
    --accent: #0284c7;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --light: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(30, 58, 138, 0.08);
    --glow: rgba(14, 165, 233, 0.12);
    --info-blue: #0891b2;
    --warning-orange: #f59e0b;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
}

/* ===== NAVBAR ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--border);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1.2rem 5%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-emblem-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-emblem-img:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.logo-text h1:first-child {
    color: var(--text-light);
    font-weight: 600;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.8rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.7rem 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-nav {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.25);
}

.cta-nav:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.35);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    padding: 0.7rem 0;
}

.dropbtn::after {
    content: "▾";
    font-size: 1em;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    /* ← was 'transparent' on mobile */
    min-width: 240px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    margin-top: 12px;
    padding: 0.6rem 0;
}

.dropdown-content a {
    color: var(--text);
    padding: 0.9rem 1.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
    padding-left: 2rem;
}

.dropdown-content a::before {
    content: "→";
    margin-right: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-content a:hover::before {
    opacity: 1;
}

@media (min-width: 969px) {
    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown:hover .dropbtn::after {
        transform: rotate(180deg);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: auto;
    padding: 8rem 5% 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: white;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.content-login-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.welcome-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 30px var(--shadow);
    text-align: left;
    transition: transform 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}

.welcome-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.welcome-card h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--primary);
}

.welcome-card p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: justify;
    font-size: 0.92rem;
}

.welcome-card .more-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    font-size: 0.92rem;
}

.welcome-card .more-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.welcome-card .more-link:hover::after {
    width: 100%;
}

.welcome-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.8rem 0 1rem;
}

.welcome-card ul {
    list-style: none;
    padding-left: 0;
}

.welcome-card ul li {
    padding: 0.4rem 0;
    color: var(--text);
    position: relative;
    padding-left: 1.8rem;
    font-size: 0.92rem;
}

.welcome-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 0.95rem;
    width: 22px;
    height: 22px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.2);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.4rem;
    font-family: "Outfit", sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
}

/* Login Section - Fixed for Mobile */
.login-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.login-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.login-box:hover {
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}

.login-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.back-button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0.5rem 0;
    margin-bottom: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    font-weight: 500;
}

.back-button:hover {
    color: var(--secondary);
}

.login-type-selector {
    display: flex;
    /* gap: 0.9rem; */
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    padding: 0.5rem 0.9rem;
    /* border: 1px solid var(--border);
    border-radius: 6px; */
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary);
    background: rgba(30, 58, 138, 0.05);
}

.radio-option input[type="radio"] {
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}

.radio-option span {
    font-weight: 500;
}

.radio-option input[type="radio"]:checked+span {
    color: var(--primary);
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--light);
    transition: all 0.3s ease;
    font-family: "Inter", sans-serif;
    margin-bottom: 0.5rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: var(--surface);
}

.form-group select {
    cursor: pointer;
    color: var(--text-light);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* Password Group */
.password-group {
    position: relative;
}

.password-group input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    color: var(--text-light);
    transition: color 0.2s;
    outline: none;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--primary);
}

.toggle-password.showing {
    color: var(--primary);
}

/* Captcha */
.captcha-group {
    margin: 0.9rem 0;
}

.captcha-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.captcha-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    align-items: center;
}

.captcha-image {
    flex: 1;
    background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
    border: 1px solid var(--border);
    padding: 0.9rem;
    border-radius: 8px;
    font-family: "Courier New", monospace;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.3rem;
    text-align: center;
    color: var(--text);
    /* text-decoration: line-through; */
    font-style: italic;
    transform: skew(-5deg);
}

.refresh-captcha-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-captcha-btn:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}

.link-like {
    background: none;
    border: none;
    padding: 0;
    margin: 0 2px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}

.link-like:hover {
    color: var(--secondary);
}

/* Login Button */
.btn-login-submit {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.btn-login-submit:active {
    transform: translateY(0);
}

/* Forgot PIN */
.forgot-pin-link {
    text-align: center;
    margin: 0.9rem 0;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Login Links */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.login-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Info Sections */
.info-sections {
    padding: 3rem 5%;
    background: var(--surface);
}

.info-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.info-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.8rem;
    align-items: start;
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
    border-color: var(--primary);
}

.info-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--info-blue), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    box-shadow: 0 8px 25px var(--glow);
    flex-shrink: 0;
    color: white;
}

.info-icon.warning {
    background: linear-gradient(135deg, var(--warning-orange), #fb923c);
}

.info-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.info-content p {
    color: var(--text);
    line-height: 1.6;
    text-align: justify;
    font-size: 0.92rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius);
    width: 90%;
    max-width: 420px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.3rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    color: var(--danger);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text);
    background: var(--light);
}

.modal-body {
    padding: 1.8rem;
    text-align: center;
}

.modal-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

#modalMessage {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
}

.modal-footer {
    padding: 1.3rem;
    text-align: right;
    border-top: 1px solid var(--border);
}

.modal-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-content {
    padding: 2.5rem 5% 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.footer-brand-text h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.4;
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.88rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.disclaimer-section {
    border-bottom: 1px solid #fbbf24;
    border-top: 1px solid #fbbf24;
    text-align: center;
}

.disclaimer-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.05em;
}

.disclaimer-content p {
    color: #78350f;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 800px;
}

.nic-footer {
    background: var(--light);
    border-top: 1px solid var(--border);
    padding: 1.2rem 5%;
}

.nic-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nic-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nic-content p {
    color: var(--text);
    font-size: 0.88rem;
    margin: 0;
}

.nic-content strong {
    color: var(--primary);
    font-weight: 600;
}

.nic-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.nic-link:hover {
    color: var(--primary);
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.4);
}

#scrollTopBtn:active {
    transform: translateY(0);
}

/* Validation Styles */
.is-invalid {
    border-color: var(--danger) !important;
    background: #fff5f5 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE RESPONSIVENESS - UPDATED ===== */
@media (max-width: 968px) {

    /* Navigation - Mobile */
    nav {
        padding: 1rem 5%;
        height: 70px;
    }

    .logo-emblem-img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 10px;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        align-items: center;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 2rem;
        width: 100%;
        text-align: center;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropbtn {
        justify-content: center;
        width: 100%;
        padding: 0.8rem 2rem;
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border);
        background: var(--surface);
        border-radius: var(--radius);
        display: none;
        width: 100%;
        min-width: auto;
        margin-top: 0.5rem;
        padding: 0.4rem 0;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 0.8rem 2rem;
        justify-content: center;
    }

    .dropdown-content a:hover {
        padding-left: 2rem;
    }

    .cta-nav {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        margin: 1rem auto;
        display: block;
        max-width: 200px;
    }

    /* Hero Section - Mobile */
    .hero {
        padding: 5.5rem 4% 1.5rem;
    }

    .content-login-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .login-section {
        position: static;
        order: 1;
        /* Make login appear first on mobile */
        margin-bottom: 1.5rem;
    }

    .welcome-section {
        order: 2;
        /* Make content appear after login on mobile */
    }

    /* Cards - Mobile */
    .welcome-card,
    .login-box,
    .info-card {
        padding: 1.5rem;
    }

    .welcome-card h2 {
        font-size: 1.3rem;
    }

    .welcome-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Login Box Mobile Optimization */
    .login-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .login-title {
        font-size: 1.1rem;
    }

    .login-type-selector {
        gap: 0.5rem;
    }

    .radio-option {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .form-group input,
    .form-group select {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .btn-login-submit {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Info Cards - Mobile */
    .info-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .info-icon {
        margin: 0 auto;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .info-content h3 {
        font-size: 1.1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    /* Stats - Mobile */
    .stats {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Info Sections - Mobile */
    .info-sections {
        padding: 2rem 4%;
    }

    .info-grid {
        gap: 1.5rem;
    }

    /* Footer - Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 4% 1rem;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .footer-brand-logo {
        height: 40px;
    }

    .footer-links h4 {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    /* Disclaimer - Mobile */
    .disclaimer-section {
        padding: 1rem 4%;
    }

    .disclaimer-content h4 {
        font-size: 11px;
        margin-bottom: 0.6rem;
    }

    .disclaimer-content p {
        font-size: 10px;
        line-height: 1.4;
    }

    /* NIC Footer - Mobile */
    .nic-footer {
        padding: 1rem 4%;
    }

    .nic-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .nic-logo {
        height: 35px;
    }

    .nic-content p {
        font-size: 0.82rem;
    }

    /* Modal - Mobile */
    .modal-content {
        width: 95%;
        max-width: 350px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-icon {
        font-size: 2.5rem;
    }

    #modalMessage {
        font-size: 1rem;
    }

    /* Scroll to Top - Mobile */
    #scrollTopBtn {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }

    #services {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 480px) {

    /* Extra Small Screens */
    nav {
        padding: 0.8rem 4%;
        height: 65px;
    }

    .logo-emblem-img {
        height: 45px;
    }

    .logo-text h1 {
        font-size: 10px;
    }

    .logo-text p {
        font-size: 0.65rem;
    }

    .hero {
        padding: 5rem 3% 1rem;
    }

    .content-login-grid {
        gap: 1.5rem;
    }

    .welcome-card,
    .login-box,
    .info-card {
        padding: 1.2rem;
    }

    .welcome-card h2 {
        font-size: 1.2rem;
    }

    .stats {
        padding: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .login-type-selector {
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-option {
        width: 100%;
        justify-content: center;
    }

    .captcha-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .captcha-image {
        width: 100%;
        padding: 0.8rem;
        font-size: 1.1rem;
    }

    .refresh-captcha-btn {
        width: 100%;
        height: 40px;
    }

    .login-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Footer Small Screen Adjustments */
    .footer-content {
        padding: 1.5rem 3% 1rem;
    }

    .footer-links ul li {
        margin-bottom: 0.4rem;
    }

    .disclaimer-section {
        padding: 0.8rem 3%;
    }

    /* Mobile Menu Improvement */
    .nav-links {
        padding-top: 80px;
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    .dropbtn {
        padding: 0.7rem 1.5rem;
    }

    .dropdown-content a {
        padding: 0.7rem 1.5rem;
    }

    #main-refresh-captcha2.refresh-captcha-btn.link-like {
        padding: 2px 4px;
        margin: 0 3px;
        display: inline-block;
        min-height: 24px;
        line-height: 1.2;
    }

    .form-text.text-muted {
        padding: 0 0.5rem;
    }

    #services {
        scroll-margin-top: 70px;
    }

    .radio-option {
        border: 1px solid var(--border);
        border-radius: 6px;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Role Form Animation */
.role-form {
    animation: fadeIn 0.3s ease-out;
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Fix for input zoom on iOS */
@media screen and (max-width: 968px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents zoom on focus in iOS */
    }

    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Ensure all containers fit within viewport */
    .hero-content,
    .content-login-grid,
    .login-box,
    .welcome-card,
    .info-card {
        max-width: 100%;
    }
}

/* Captcha Help Text Styles */
.form-text.text-muted {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-light) !important;
    text-align: center;
    line-height: 1.4;
}

/* For mobile responsiveness */
@media (max-width: 968px) {
    .form-text.text-muted {
        font-size: 0.78rem;
        margin-top: 0.4rem;
    }
}

/* Replace this specific rule */
#main-refresh-captcha2.refresh-captcha-btn.link-like {
    background: none;
    border: none;
    color: var(--primary);
    font-size: inherit;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin: 0 2px;
    display: inline;
    vertical-align: baseline;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* With this general class rule */
.refresh-captcha-btn.link-like {
    background: none !important;
    border: none !important;
    color: var(--primary) !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 2px !important;
    display: inline !important;
    vertical-align: baseline !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
    min-height: 0 !important;
    line-height: inherit !important;
    border-radius: 0 !important;
}

.refresh-captcha-btn.link-like:hover {
    color: var(--secondary) !important;
    text-decoration: none !important;
}

.refresh-captcha-btn.link-like:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2) !important;
    border-radius: 3px !important;
}

.refresh-captcha-btn.link-like:active {
    color: var(--primary) !important;
    transform: translateY(1px) !important;
}

/* Add some spacing around the text */
.form-text.text-muted.mt-1 {
    margin-top: 0.5rem !important;
}

/* Text center alignment */
.form-text.text-muted.text-center {
    text-align: center;
    display: block;
    width: 100%;
}

#services {
    scroll-margin-top: 120px;
}