/* =========================
   GLOBAL RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,body{
    width:100%;
    overflow-x:hidden;
}

body{
    background:#f4f6f9;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Remove Bootstrap Side Gap */
.container,
.container-fluid{
    width:100%;
    max-width:100%;
}

.container-fluid{
    padding-left:0 !important;
    padding-right:0 !important;
}

/* =========================
   TOP HEADER
========================= */
.top-bar{
    background:#001f5b;
    color:#fff;
    font-size:14px;
    padding:10px 0;
}

.top-bar a{
    color:#fff;
    text-decoration:none;
    margin-left:15px;
    transition:.3s;
}

.top-bar a:hover{
    color:#ffc107;
}

/* =========================
   LOGO AREA
========================= */
.logo-section{
    background:#fff;
    padding:15px 0;
    border-bottom:1px solid #eee;
}

.site-logo{
    width:70px;
    height:auto;
}

.site-title{
    font-size:22px;
    font-weight:700;
    color:#002060;
    line-height:1.1;
}

.site-title span{
    color:#d82323;
}

.site-tag{
    font-size:16px;
    color:#555;
}

/* =========================
   SEARCH BAR
========================= */
.search-wrapper{
    background:#fff;
    border:2px solid #0056d6;
    border-radius:30px;
    padding:2px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,86,214,.10);
    max-width: 450px;
    margin: 6px auto;
}

.search-wrapper .form-control{
    border:none;
    height:40px;
    font-size:15px;
    background:transparent;
}

.search-wrapper .form-control:focus{
    box-shadow:none;
}

.btn-search{
    background:#0056d6;
    color:#fff;
    border:none;
    border-radius:30px !important;
    padding:0 20px;
    font-weight:600;
    transition:.3s;
}

.btn-search:hover{
    background:#003da1;
    color:#fff;
}

/* =========================
   LOGIN REGISTER
========================= */
.login-btn{
    border:1px solid #0056d6;
    color:#0056d6;
    border-radius:50px;
    padding:10px 24px;
    font-weight:600;
    transition:.3s;
}

.login-btn:hover{
    background:#0056d6;
    color:#fff;
}

.register-btn{
    background:#dc3545;
    color:#fff;
    border:none;
    border-radius:50px;
    padding:10px 24px;
    font-weight:600;
    box-shadow:0 4px 10px rgba(220,53,69,.20);
}

.register-btn:hover{
    background:#bb2d3b;
    color:#fff;
}

/* =========================
   MAIN MENU
========================= */
.main-menu{
    background:#001f5b;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1020; /* सुनिश्चित करें कि यह अन्य सामग्री के ऊपर रहे */
}

.main-menu .nav-link{
    color:#fff !important;
    padding:12px 10px !important;
    font-size: 15px;
    white-space: nowrap;
    font-weight:600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-menu .nav-link i {
    margin-right: 5px;
}

.main-menu .nav-link:hover,
.active-menu{
    background:#e31b23 !important;
    color:#fff !important;
    border-bottom-color: #ffc107;
}

/* Dropdown Improvement */
.main-menu .dropdown-menu {
    border: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.main-menu .dropdown-item {
    font-weight: 500;
    padding: 8px 20px;
    transition: 0.2s;
}

.main-menu .dropdown-item:hover {
    background: #f8f9fa;
    color: #d82323;
    padding-left: 25px;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    padding: 30px 0;
   
}

.hero-banner{
    background:#fff;
    padding:0;
    border-radius:15px;
    box-shadow:0 0 20px rgba(0,0,0,.08);
    height: 350px;
    overflow:hidden;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner h1{
    font-size:58px;
    font-weight:800;
    line-height:1.2;
    color:#222;
}

.hero-banner span{
    color:#dc3545;
}

.hero-banner p{
    font-size:22px;
    color:#555;
}

.hero-banner .btn{
    padding:12px 30px;
    border-radius:10px;
    font-weight:600;
}

.update-box{
    background:#fff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    height:100%;
    border-top: 5px solid #d82323;
    transition: 0.3s;
}

.update-box h3{
    font-size:20px;
    font-weight:700;
    color:#001f5b;
    margin-bottom:20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.update-list-container {
    height: 220px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for the list */
.update-list-container::-webkit-scrollbar {
    width: 4px;
}
.update-list-container::-webkit-scrollbar-thumb {
    background: #d82323;
    border-radius: 10px;
}

.update-item {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14.5px;
    font-weight: 500;
    transition: 0.3s;
}

.update-item:hover {
    color: #d82323;
    padding-left: 5px;
}

.new-tag {
    background: #ffc107;
    color: #000;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 8px;
    text-transform: uppercase;
}

.pulse-badge {
    font-size: 10px;
    text-transform: uppercase;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0px rgba(220, 53, 69, 0.7); }
    100% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
}

/* =========================
   Important Links
========================= */
.quick-boxes {
    padding: 20px 0;
}

.quick-icons-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    scrollbar-width: none; /* Firefox */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    overflow: hidden;
}

.quick-icons-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.quick-card{
    background: transparent;
    padding:20px 10px;
    text-align:center;
    transition:.3s;
    height:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    border-right: 1px solid #f1f5f9;
    min-width: 120px; /* Ensure cards have a minimum width to prevent them from becoming too narrow */
    cursor: pointer;
}

.quick-card:hover{
    transform:translateY(-5px);
}

.quick-icons-scroll .col-auto:last-child .quick-card {
    border-right: none;
}

.icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: 0.3s;
}

.quick-card:hover .icon-circle {
    transform: scale(1.1);
}

.icon-circle i {
    font-size: 24px;
}

.quick-card h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    transition: color 0.3s; /* Add transition for text color */
}

.quick-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

.quick-card:hover h6 {
    color: #d82323; /* Change text color on hover */
}

.main-cards{
    padding:30px 0;
}
/* =========================
   PORTAL CARDS IMPROVEMENTS
========================= */
.portal-card{
    background: #ffffff;
    padding:20px;
    border-radius:15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    height:100%;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.portal-card h4{
    margin-bottom: 18px;
    font-size: 19px;
    font-weight:700;
    color: #0f172a;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.portal-list-item {
    margin-bottom: 5px;
}

.portal-list-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    color: #475569 !important;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    text-decoration: none;
}

.portal-list-link i {
    font-size: 20px;
    margin-right: 8px;
    color: #94a3b8;
    transition: 0.2s;
}

.portal-list-link:hover {
    background: #fff1f1;
    color: #d82323 !important;
    padding-left: 15px;
}

.portal-list-link:hover i {
    color: #d82323;
    transform: translateX(3px);
}

.view-more-link {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b !important;
    transition: 0.3s;
}

.view-more-link:hover {
    color: #d82323 !important;
    letter-spacing: 1px;
}

/* Category Specific Border Colors */
.card-services { border-top: 4px solid #ffc107; }
.card-pdf { border-top: 4px solid #dc3545; }
.card-yojana { border-top: 4px solid #198754; }
.card-docs { border-top: 4px solid #0d6efd; }
.card-links { border-top: 4px solid #212529; }

/* =========================
   STATS
========================= */
.stats-section{
    background: linear-gradient(135deg, #001f5b 0%, #012a68 100%);
    color:#fff;
    padding: 50px 0;
    font-size: 26px;
    font-weight: 700;
    margin-top: 40px;
    border-top: 5px solid #ffc107;
}

.stats-section .col-md-2, .stats-section .col-md-3 {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stats-section .col:last-child {
    border-right: none;
}

/* =========================
   FOOTER
========================= */
footer{
    background:#001f4d;
    color:#fff;
    padding:30px 0;
}

footer a{
    color:#fff;
    text-decoration:none;
}

footer a:hover{
    color:#ffc107;
}

/* =========================
   MOBILE
========================= */
@media(max-width:768px){

    .site-title{
        font-size:18px;
    }

    .logo-section {
        text-align: center;
    }

    .hero-banner{
        padding:0;
        height: 180px;
    }

    .hero-banner h1{
        font-size:34px;
    }

    .hero-banner p{
        font-size:16px;
    }

    .top-bar{
        text-align:center;
    }

    .update-box{
        margin-top:20px;
    }

    .main-menu .nav-link{
        padding:12px !important;
    }
}