@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --kd-primary: #065F35;
    --kd-secondary: #0a4c2f;
    --kd-accent: #f39c12;
    --kd-light: #f4f7f6;
    --kd-text: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--kd-light);
    color: var(--kd-text);
    overflow-x: hidden;
}

.fade-in-page { animation: fadeIn 0.8s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== NAVBAR ===== */
.navbar { background-color: #fff; padding: 8px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.05); z-index: 1030; }
.navbar-brand { font-weight: 800; color: var(--kd-primary) !important; font-size: 22px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.navbar-brand small { font-size: 9px; display: block; color: #888; font-weight: 500; margin-top: -5px; letter-spacing: 0.5px; }
.nav-link { color: #444; font-weight: 600; margin: 0 4px; font-size: 13px; transition: 0.3s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--kd-primary); }
.btn-login { border: 2px solid var(--kd-primary); color: var(--kd-primary); border-radius: 25px; padding: 6px 20px; font-weight: 600; background: white; transition: all 0.3s; font-size: 13px; text-decoration: none; display: inline-block; white-space: nowrap; margin: 0; }
.btn-login:hover { background-color: var(--kd-primary); color: white !important; }
.btn-register { background-color: var(--kd-primary); color: white !important; border-radius: 25px; padding: 7px 20px; font-weight: 600; border: none; transition: all 0.3s; font-size: 13px; text-decoration: none; display: inline-block; white-space: nowrap; margin: 0; }
.btn-register:hover { background-color: #04472a; }

/* ===== HERO / CAROUSEL ===== */
.hero-custom { height: 620px; position: relative; overflow: hidden; }
.hero-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.85) 42%, rgba(255,255,255,0.25) 75%, transparent 100%);
    z-index: 1;
}
.flag-splash-brush {
    position: absolute; bottom: -20px; right: -20px; width: 620px; height: 260px;
    background: linear-gradient(165deg, transparent 20%, rgba(255,153,51,0.85) 45%, rgba(255,255,255,0.92) 58%, rgba(19,136,8,0.85) 75%);
    transform: rotate(-10deg); filter: blur(8px); z-index: 1; pointer-events: none;
    border-radius: 40px;
}
.hero-content { z-index: 12; position: relative; max-width: 650px; }

.btn-hero-primary { background: #065F35; color: white !important; border-radius: 25px; padding: 12px 32px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 15px rgba(6,95,53,0.3); transition: 0.3s; font-size: 14px; display: inline-block; white-space: nowrap; cursor: pointer; position: relative; z-index: 15; }
.btn-hero-primary:hover { background: #04472a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,95,53,0.4); }
.btn-hero-secondary { background: white; color: #065F35 !important; border: 2px solid #065F35; border-radius: 25px; padding: 10px 30px; font-weight: 700; text-decoration: none; transition: 0.3s; font-size: 14px; display: inline-block; white-space: nowrap; cursor: pointer; position: relative; z-index: 15; }
.btn-hero-secondary:hover { background: #065F35; color: white !important; }

/* ===== HEXAGON GRID (LARGE PREMIUM DESIGN - ZERO OVERLAP) ===== */
.hero-honeycomb-wrapper { z-index: 12; position: relative; }
.hex-card {
    position: absolute;
    width: 125px;
    height: 135px;
    filter: drop-shadow(0px 5px 14px rgba(0,0,0,0.12));
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 15;
    cursor: pointer;
}
.hex-card:hover {
    transform: scale(1.08) translateY(-4px);
    z-index: 25;
    filter: drop-shadow(0px 10px 22px rgba(6,95,53,0.22));
}
.hex-inner {
    width: 100%;
    height: 100%;
    background: #ffffff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #054f2a;
    font-weight: 800;
    font-size: 11.5px;
    line-height: 1.25;
    text-align: center;
    gap: 4px;
    padding: 22px 10px 12px;
    position: relative;
}

/* Top Accent Bars */
.hex-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}
.accent-yellow::before { background: linear-gradient(90deg, #f39c12, #f1c40f); }
.accent-blue::before   { background: linear-gradient(90deg, #2980b9, #3498db); }
.accent-green::before  { background: linear-gradient(90deg, #27ae60, #2ecc71); }

.hex-inner img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ===== DIGITAL INDIA BADGE (Single Clean SVG Container) ===== */
.digital-india-corner {
    position: absolute;
    bottom: 25px;
    right: 35px;
    z-index: 10;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    padding: 6px 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}
.digital-india-corner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ===== CAROUSEL CONTROLS (NON-OVERLAPPING) ===== */
.carousel-control-prev,
.carousel-control-next {
    width: auto !important;
    padding: 0 20px !important;
    pointer-events: none !important;
    z-index: 10 !important;
    opacity: 1 !important;
}
.slider-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #065F35;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
    pointer-events: auto !important;
    cursor: pointer;
}
.slider-arrow:hover {
    background: #065F35;
    color: #ffffff;
    transform: scale(1.1);
}

/* ===== SECTION TITLE ===== */
.section-title { text-align: center; color: var(--kd-primary); font-weight: 800; font-size: 24px; margin-bottom: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ===== OFFER CARDS ===== */
.offer-card { background: #fff; border-radius: 20px; padding: 25px 15px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.04); transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.03); height: 100%; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.offer-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(6,95,53,0.12); border-color: rgba(6,95,53,0.15); }
.offer-card .icon-circle { width: 65px; height: 65px; background: white; border-radius: 50%; box-shadow: 0 3px 10px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.offer-card .icon-circle img { width: 35px; height: 35px; object-fit: contain; }
.offer-card h5 { font-weight: 700; color: #111; font-size: 14px; margin-bottom: 4px; }
.offer-card p { color: #777; font-size: 11px; margin: 0; }

/* ===== GOV LOGO CARDS ===== */
.gov-logo-card { background: #fff; padding: 20px 15px; border-radius: 15px; box-shadow: 0 3px 12px rgba(0,0,0,0.04); transition: all 0.3s; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #eee; }
.gov-logo-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.gov-logo-card img { max-width: 80px; max-height: 80px; object-fit: contain; margin-bottom: 8px; }
.gov-logo-card h6 { font-size: 12px; font-weight: 700; margin: 0; color: #222; text-align: center; }
.gov-logo-card small { font-size: 10px; color: #888; text-align: center; }

/* ===== FOOTER ===== */
footer { background: #111 !important; }
footer p { font-size: 14px; font-weight: 500; }

/* ===== AUTH PAGES ===== */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%); }
.auth-card { background: rgba(255,255,255,0.98); border-radius: 20px; padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 15px 35px rgba(0,0,0,0.12); text-align: center; }
.auth-card h3 { color: var(--kd-primary); font-weight: 800; margin-bottom: 5px; }
.auth-card p { color: #888; font-size: 13px; margin-bottom: 25px; }
.auth-card .logo { font-size: 3rem; color: var(--kd-primary); margin-bottom: 10px; }
.btn-login-main { background-color: #0d6efd; color: white; border: none; border-radius: 20px; padding: 10px; width: 100%; font-weight: 600; transition: 0.3s; cursor: pointer; }
.btn-login-main:hover { background-color: #0b5ed7; }

/* ===== ADMIN DASHBOARD ===== */
.admin-wrapper { display: flex; height: 100vh; overflow: hidden; }
.admin-sidebar { width: 250px; background-color: var(--kd-secondary); color: white; display: flex; flex-direction: column; flex-shrink: 0; }
.admin-sidebar .brand { padding: 18px 20px; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-nav { list-style: none; padding: 12px 0; margin: 0; overflow-y: auto; flex-grow: 1; }
.admin-nav li a { display: flex; align-items: center; gap: 12px; padding: 10px 22px; color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13px; border-left: 3px solid transparent; font-weight: 500; transition: 0.2s; }
.admin-nav li a:hover, .admin-nav li a.active { background-color: rgba(255,255,255,0.08); color: white; border-left-color: var(--kd-accent); }

.admin-main { flex-grow: 1; background-color: #f4f7f6; display: flex; flex-direction: column; overflow-y: auto; }
.admin-header { background: white; padding: 12px 25px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.03); z-index: 10; flex-shrink: 0; }
.admin-search { background: #f4f7f6; border: 1px solid #e0e0e0; padding: 8px 18px; border-radius: 20px; width: 320px; outline: none; font-size: 13px; }
.admin-content { padding: 25px; overflow-y: auto; }

.stat-card { background: white; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.stat-card h3 { color: #111; font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.stat-card p { color: #777; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.trend { font-weight: 600; font-size: 11px; padding: 3px 10px; border-radius: 12px; display: inline-block; }

/* ===== CARD GENERIC ===== */
.card-kd { border: none; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.btn-accent-kd { background-color: var(--kd-accent); color: white; border: none; border-radius: 25px; font-weight: 600; padding: 10px 20px; }
