/* ============================================
   PGSHF - Punjab Government Servants Housing Foundation
   Responsive Website Stylesheet
   ============================================ */
/*
#40858C teel
#1A75BB Blue
*/


/* CSS Variables */
:root {
  --primary-green: #3f7994;
  --secondary-green: #599bae;
  --light-green: #E7F0F7;
  --accent-green: #4caf50;
  --dark-green: #2a5674;
  --nav-color: #ffffff;
  --gold: #c9a227;
  --light-gold: #f9f3d9;
  --link-color: #1A75BB;
  --link-hover-color:#14588C; 
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #777777;
  --text-white: #ffffff;
  --bg-white: #ffffff;
  --bg-light: #f5f0e6;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

a {
  text-decoration: none;
  color: var(--link-color);
  transition: var(--transition);
}

a:hover {
  color: var(--link-hover-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.top-bar {
  background: linear-gradient(135deg, var(--gold), var(--gold));
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: white;
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  text-decoration: underline;
}

.toll-free {
  font-weight: 600;
  color: white;
}

/* Main Header */
.main-header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.8rem;
  color: #1a5f2a;
  line-height: 1.3;
  font-weight: 700;
}

.logo-text span {
  font-size: 1.3rem;
  color: var(--gold);
  display: block;
}

.govt-emblem {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

/* Navigation */
.main-nav {
  background: var(--primary-green);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
	position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: var(--nav-color);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--gold);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-green);
  min-width: 220px;
  box-shadow: var(--shadow-hover);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-menu li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--nav-color);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li a:hover {
  background: var(--light-green);
  color: var(--primary-green);
  padding-left: 22px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26,117,187,0.1), rgba(26,117,187,0.1));
  display: flex;
  align-items: center;
}

.hero-content {
  color: white;
  max-width: 600px;
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary-green);
  color: white;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #b8941f;
  color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  color: var(--primary-green);
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--primary-green);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--primary-green);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 10px auto 0;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.bg-white {
  background: var(--bg-white);
}

.bg-green {
  background: var(--light-green);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--secondary-green);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-card .icon {
  width: 50px;
  height: 50px;
  background: var(--light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--primary-green);
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* ============================================
   CONTENT GRID
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.content-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: white;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.card-body ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.card-body ul li:last-child {
  border-bottom: none;
}

.card-body ul li a {
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body ul li a::before {
  content: '›';
  color: var(--gold);
  font-weight: bold;
  font-size: 1.2rem;
}

.card-body ul li a:hover {
  color: var(--primary-green);
  padding-left: 5px;
}

/* ============================================
   NEWS & UPDATES
   ============================================ */
.news-section {
  background: var(--bg-white);
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.news-list {
  space-y: 15px;
}

.news-item {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  margin-bottom: 15px;
  transition: var(--transition);
}

.news-item:hover {
  background: var(--light-green);
}

.news-date {
  font-size: 0.8rem;
  color: var(--secondary-green);
  font-weight: 600;
  margin-bottom: 5px;
}

.news-item h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.news-item p {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.news-item a {
  color: var(--link-color);
  font-weight: 600;
}

/* Downloads Sidebar */
.downloads-sidebar {
  background: var(--light-green);
  padding: 25px;
  border-radius: var(--radius-lg);
}

.downloads-sidebar h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.downloads-sidebar ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.downloads-sidebar ul li a {
  color: var(--text-medium);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.downloads-sidebar ul li a::before {
  content: '↓';
  color: var(--secondary-green);
}

/* Downloads page */

    .download-category {
      margin-bottom: 40px;
    }
    .download-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 20px;
      background: var(--bg-white);
      border-radius: var(--radius);
      margin-bottom: 10px;
      box-shadow: var(--shadow);
      transition: var(--transition);
    }
    .download-item:hover {
      box-shadow: var(--shadow-hover);
      transform: translateX(5px);
    }
    .download-info h4 {
      color: var(--primary-green);
      margin-bottom: 5px;
      font-size: 1rem;
    }
    .download-info p {
      color: var(--text-light);
      font-size: 0.85rem;
    }
    .download-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: var(--primary-green);
      color: white;
      border-radius: var(--radius);
      font-weight: 600;
      font-size: 0.85rem;
      transition: var(--transition);
      border: none;
      cursor: pointer;
    }
    .download-btn:hover {
      background: var(--gold);
      color: white;
    }
    .download-btn svg {
      width: 16px;
      height: 16px;
    }

/* ============================================
   HOUSING SCHEMES
   ============================================ */
.schemes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.scheme-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.scheme-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.scheme-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.scheme-card h4 {
  padding: 15px;
  color: var(--primary-green);
  font-size: 1rem;
}

.scheme-card .status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.status-active {
  background: var(--light-green);
  color: var(--primary-green);
}

.status-upcoming {
  background: var(--light-gold);
  color: #8a6d0b;
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 20px 15px 15px;
  font-weight: 600;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
  background: linear-gradient(135deg, #fff3cd, #ffeeba);
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  padding: 15px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.announcement-bar .icon {
  font-size: 1.5rem;
  color: #856404;
}

.announcement-bar p {
  color: #856404;
  font-size: 0.9rem;
}

.announcement-bar a {
  color: #856404;
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
  background: var(--bg-white);
  padding: 50px 0;
  min-height: 500px;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.content-wrapper-form {
  max-width: 600px;
  margin: 0 auto;

  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 100%;
}

.content-wrapper h2 {
  color: var(--primary-green);
  margin: 30px 0 15px;
  font-size: 1.4rem;
}

.content-wrapper h3 {
  color: var(--secondary-green);
  margin: 20px 0 10px;
  font-size: 1.1rem;
}

.content-wrapper p {
  margin-bottom: 15px;
  color: var(--text-medium);
  text-align: justify;
}

.content-wrapper ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.content-wrapper ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-medium);
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--primary-green);
  color: white;
  font-weight: 600;
}

.data-table tr:hover {
  background: var(--light-green);
}

/* Management Cards */
.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.manager-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 15px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: var(--transition);
}

.manager-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.manager-photo {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid var(--light-green);
}

.manager-info h3 {
  color: var(--primary-green);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.manager-info .designation {
  color: var(--secondary-green);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.manager-info p {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 5px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  color: white;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--gold);
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
}

.login-box {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 400px;
}

.login-box h2 {
  text-align: center;
  color: var(--primary-green);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-green);
  box-shadow: 0 0 0 3px rgba(46,139,62,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

/* Admin Dashboard */
.admin-body {
  background: var(--bg-light);
}

.admin-sidebar {
  width: 260px;
  background: var(--dark-green);
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  color: white;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 1000;
}

.admin-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.admin-sidebar-header h3 {
  color: var(--gold);
  font-size: 1.1rem;
}

.admin-sidebar-header p {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 5px;
}

.admin-nav {
  padding: 15px 0;
}

.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  transition: var(--transition);
}

.admin-nav li a:hover,
.admin-nav li a.active {
  background: rgba(255,255,255,0.1);
  color: white;
  border-left: 3px solid var(--gold);
}

.admin-main {
  margin-left: 260px;
  min-height: 100vh;
}

.admin-header {
  background: var(--bg-white);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header h2 {
  font-size: 1.3rem;
  color: var(--primary-green);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-content {
  padding: 30px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green);
}

.stat-card .label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Admin Tables */
.admin-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit {
  background: #e3f2fd;
  color: #1976d2;
}

.btn-edit:hover {
  background: #1976d2;
  color: white;
}

.btn-delete {
  background: #ffebee;
  color: #c62828;
}

.btn-delete:hover {
  background: #c62828;
  color: white;
}

.btn-add {
  background: var(--light-green);
  color: var(--primary-green);
  padding: 10px 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.btn-add:hover {
  background: var(--primary-green);
  color: white;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--primary-green);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Alert Messages */
.alert {
  padding: 12px 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-success {
  background: var(--light-green);
  color: var(--primary-green);
  border: 1px solid var(--secondary-green);
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    transform: translateX(-100%);
  }
  
  .admin-sidebar.active {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 32%;
    left: 0;
    right: 0;
    background: var(--primary-green);
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100; /* Places menu above the hero section */
  }
  
  .nav-menu.active {
    max-height: 500px; /* Allows full height for menu + expanded dropdowns */
    overflow-y: auto;   /* Enables scrolling if menu content exceeds screen height */
  }
  
  .nav-menu > li > a {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.1);
    display: none;
  }
  
  .nav-menu li:hover .dropdown-menu {
    display: block;
  }
  
  .hero-section {
    height: 300px;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .header-content {
    flex-wrap: wrap;
  }
  .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.logo-text h1 {
  font-size: 1.6rem;
  color: var(--primary-green);
  line-height: 1.3;
  font-weight: 700;
}
.logo-text span {
  font-size: 1.2rem;
  color: var(--text-medium);
  display: block;
}
  .govt-emblem {
    display: none;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .manager-card {
    flex-direction: column;
    text-align: center;
  }
  
  .manager-photo {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  .hero-section {
    height: 120px;
  }  

  .hero-content h2 {
    font-size: 1.32rem;
  }

.logo-text h1 {
  font-size: 1.4rem;
  color: var(--primary-green);
  line-height: 1.0;
  font-weight: 700;
}
.logo-text span {
  font-size: 1.0rem;
  color: var(--text-medium);
  display: block;
}
  
  .features-grid,
  .content-grid,
  .schemes-grid {
    grid-template-columns: 1fr;
  }
  
  .login-box {
    padding: 25px;
    margin: 15px;
  }
}
@media (max-width: 360px) {
  .hero-section {
    height: 100px;
  }  

.logo-text h1 {
  font-size: 1.2rem;
  color: var(--primary-green);
  line-height: 1.0;
  font-weight: 700;
}
.logo-text span {
  font-size: 0.8rem;
  color: var(--text-medium);
  display: block;
}
}


/* Print Styles */
@media print {
  .main-header,
  .main-nav,
  .main-footer,
  .admin-sidebar,
  .admin-header {
    display: none;
  }
  
  .admin-main {
    margin-left: 0;
  }
}
