/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --nmc-blue: #003366;    /* Official Navy Blue */
    --nmc-orange: #ff9933;  /* Saffron */
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --text-color: #333;
    --border-color: #ddd;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Mukta', sans-serif; }

body 
{ background-color: var(--light-bg); 
   color: var(--text-color); 
   line-height: 1.6; 
}

/* =========================================
   2. HEADER & TOP BAR
   ========================================= */
.top-bar { 
   background: #eee; 
   padding: 5px 20px; 
   text-align: right; 
   font-size: 12px; 
   border-bottom: 1px solid var(--border-color);
}

.header 
{
 background: var(--white);
  padding: 15px 50px;
   display: flex;
    align-items: center;
     border-bottom: 4px solid var(--nmc-orange); 
}

.header img {
 height: 80px;
 margin-right: 20px; 
}

.header h1 {
 color: var(--nmc-blue);
 font-size: 28px;
line-height: 1.2; 
}
.header h1 small {
 font-size: 16px;
 color: #555;
 display: block;
 margin-top: 5px;
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
.navbar {
 background-color: var(--nmc-blue);
  position: sticky; top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

.navbar ul {
 list-style: none;
 display: flex;
 flex-wrap: wrap;
  padding: 0 20px; 
}

.navbar ul li {
 position: relative; 
}
.navbar ul li a {
 display: block;
  color: var(--white);
   text-decoration: none;
    padding: 12px 15px;
     font-size: 16px;
      font-weight: 500;
       transition: 0.3s; 
}

/* Hover & Active */
.navbar ul li a:hover, .navbar ul li a.active-link {
 background-color: var(--nmc-orange);
  color: black; 
}

/* Dropdown */
.navbar ul li ul {
 display: none;
  position: absolute;
   background-color: var(--white); width: 220px; top: 100%; left: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
     border-top: 3px solid var(--nmc-orange);
      padding: 0; 
}

.navbar ul li ul li {
 width: 100%;
  border-bottom:
   1px solid #eee;
}

.navbar ul li ul li a {
 color: black;
 padding: 10px;
 font-size: 15px; 
}

.navbar ul li ul li a:hover {
 background-color: #f0f0f0;
 color: var(--nmc-blue); 
}

.navbar ul li:hover > ul {
 display: block; 
}

/* =========================================
   4. HOME PAGE ELEMENTS
   ========================================= */
.news-ticker {
 background: #222;
  color: white;
  padding: 8px;
 display: flex;
 align-items: center; 
}

.news-label {
 background: var(--nmc-orange);
  color: black;
   padding: 2px 10px;
    font-weight: bold;
     margin-right: 10px;
      white-space: nowrap;
}

/* Hero Section */
.hero {
 background: linear-gradient(rgba(0,51,102,0.7), rgba(0,51,102,0.7)), url('images/img.jpg');
 background-size: cover;
 background-position: center;
 height: 400px; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.hero h2 { font-size: 40px; text-shadow: 2px 2px 4px black; margin-bottom: 20px; }
.btn-main { background: var(--nmc-orange); color: black; padding: 10px 20px; text-decoration: none; font-weight: bold; border-radius: 4px; display: inline-block; }

/* Grids & Cards */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.section-title { color: var(--nmc-blue); border-left: 5px solid var(--nmc-orange); padding-left: 15px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: white; padding: 20px; border: 1px solid #ddd; border-top: 3px solid var(--nmc-blue); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.card h3 { color: var(--nmc-blue); margin-bottom: 10px; }

/* =========================================
   5. FORM ELEMENTS (Grievance Page)
   ========================================= */
.form-container { max-width: 900px; margin: 40px auto; padding: 30px; background: white; border-top: 5px solid var(--nmc-blue); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.form-title { color: var(--nmc-blue); margin-bottom: 25px; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: bold; color: #333; }
input[type="text"], input[type="email"], select, textarea, input[type="file"] { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--nmc-orange); outline: none; }
.btn-submit { background-color: var(--nmc-blue); color: white; padding: 12px 30px; border: none; font-size: 18px; cursor: pointer; border-radius: 4px; transition: 0.3s; width: 100%; }
.btn-submit:hover { background-color: var(--nmc-orange); color: black; }

/* =========================================
   6. STATUS PAGE & SEARCH
   ========================================= */
.search-box { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); max-width: 800px; margin: 50px auto; text-align: center; }
.search-input-group { display: flex; justify-content: center; }
.search-input-group input { width: 70%; border-radius: 5px 0 0 5px; border: 2px solid var(--nmc-blue); }
.btn-search { width: 25%; padding: 12px; font-size: 18px; background: var(--nmc-blue); color: white; border: 2px solid var(--nmc-blue); border-radius: 0 5px 5px 0; cursor: pointer; }
.btn-search:hover { background: var(--nmc-orange); border-color: var(--nmc-orange); color: black; }

.result-box { max-width: 800px; margin: 30px auto; display: none; }
table { width: 100%; background: white; border-collapse: collapse; margin-top: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
th, td { border: 1px solid #ddd; padding: 15px; text-align: left; }
th { background-color: var(--nmc-blue); color: white; }
.status-badge { padding: 5px 10px; border-radius: 15px; font-size: 14px; font-weight: bold; }
.status-badge.pending { background: #ffeeba; color: #856404; }

/* =========================================
   7. SCHEMES
   ========================================= */
.scheme-card { background: white; border-left: 5px solid var(--nmc-orange); padding: 25px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.scheme-card h3 { color: var(--nmc-blue); font-size: 22px; margin-bottom: 10px; }
.btn-details { display: inline-block; margin-top: 15px; background: var(--nmc-blue); color: white; padding: 8px 15px; text-decoration: none; font-size: 14px; border-radius: 4px; }
.btn-details:hover { background: var(--nmc-orange); color: black; }

/* =========================================
   8. FOOTER
   ========================================= */
footer { background: var(--nmc-blue); color: white; padding: 40px 0; margin-top: 50px; }
.footer-content { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 20px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 20px; font-size: 14px; }

/* Mobile */
@media (max-width: 768px) {
    .navbar ul { flex-direction: column; }
    .navbar ul li ul { position: relative; width: 100%; box-shadow: none; border-top: none; border-left: 3px solid var(--nmc-orange); }
    .grid-3, .footer-content { grid-template-columns: 1fr; }
    .header { flex-direction: column; text-align: center; padding: 15px; }
    .header img { margin: 0 0 10px 0; }
    .hero h2 { font-size: 28px; }
    .search-input-group { flex-direction: column; gap: 10px; }
    .search-input-group input, .btn-search { width: 100%; border-radius: 4px; }
}