/* ========================================
   MEERUT METRO WEBSITE - CLEAN DESIGN
   Clean, Professional, Compact Design
   Updated & Mobile Optimized
   ======================================== */


/* ========================================
   ROOT VARIABLES
   ======================================== */

:root {

  /* Teal Theme */
  --primary-purple: #009D7C;
  --primary-dark: #007A5E;
  --primary-light: #00C9A7;

  /* Pastel Card Backgrounds */
  --card-pink: #E0F7F4;
  --card-blue: #D1F2EB;
  --card-green: #E8F5E9;
  --card-yellow: #FFF9E6;
  --card-purple: #E8F8F5;
  --card-orange: #D5F4EC;

  /* Action Colors */
  --btn-blue: #009D7C;
  --btn-purple: #00B894;
  --btn-green: #4CAF50;
  --btn-red: #F44336;
  --btn-cyan: #00D2A0;
  --btn-orange: #FF9800;

  /* Grayscale */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;

  /* Functional Colors */
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
  --info: #009D7C;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Roboto', 'Helvetica', 'Arial', sans-serif;

  /* Compact Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.25rem;
  --spacing-2xl: 1.5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.375rem;

  /* Subtle Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 50px;
}


/* ========================================
   RESET
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}


/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.9375rem;
}

p {
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ========================================
   BUTTON / FORM RESET
   ======================================== */

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

input,
select,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
}


/* ========================================
   CONTAINER
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-purple);
  margin: var(--spacing-sm) auto 0;
  border-radius: var(--radius-sm);
}


/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-blue);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--btn-green);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #45a049;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary-purple);
  border: 1.5px solid var(--primary-purple);
}

.btn-outline:hover {
  background: var(--primary-purple);
  color: white;
}


/* ========================================
   CARD
   ======================================== */

.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}


/* ========================================
   BADGES
   ======================================== */

.badge {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--gray-200);
  color: var(--gray-700);
}

.badge-success {
  background: #E8F5E9;
  color: var(--success);
}

.badge-warning {
  background: #FFF3E0;
  color: var(--warning);
}

.badge-info {
  background: var(--card-blue);
  color: var(--info);
}


/* ========================================
   HEADER
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-purple);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  font-size: 1.125rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  list-style: none;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-weight: 400;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link.active {
  color: var(--white);
  font-weight: 500;
}

.nav-link.active::after {
  width: 80%;
}


/* ========================================
   SEARCH
   ======================================== */

.search-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.125rem;
}

.search-icon:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}


/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
}


/* ========================================
   HERO
   ======================================== */

.hero {
  background-image:
    linear-gradient(
      rgba(0, 157, 124, 0.85),
      rgba(0, 122, 94, 0.85)
    ),
    url('images/header.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 1.5rem 0;
  min-height: 350px;

  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.98;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}


/* ========================================
   ROUTE FINDER
   ======================================== */

.route-finder-form {
  background: white;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  max-width: 650px;
  margin: 0 auto;
}

.form-title {
  color: var(--gray-900);
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
  text-align: center;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-select,
.form-input {
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  background: white;
  transition: all var(--transition-base);
  color: var(--gray-800);
}

.form-select:focus,
.form-input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(0, 157, 124, 0.12);
  outline: none;
}


/* ========================================
   QUICK LINKS
   ======================================== */

.quick-links {
  padding: var(--spacing-xl) 0;
  background: var(--gray-50);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.quick-link-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid var(--gray-200);
}

.quick-link-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-purple);
}

.quick-link-card:nth-child(1) {
  background: var(--card-pink);
}

.quick-link-card:nth-child(2) {
  background: var(--card-blue);
}

.quick-link-card:nth-child(3) {
  background: var(--card-green);
}

.quick-link-card:nth-child(4) {
  background: var(--card-yellow);
}

.quick-link-card:nth-child(5) {
  background: var(--card-purple);
}

.quick-link-card:nth-child(6) {
  background: var(--card-orange);
}

.quick-link-card:nth-child(7) {
  background: var(--card-pink);
}

.quick-link-card:nth-child(8) {
  background: var(--card-blue);
}

.quick-link-icon {
  font-size: 1.75rem;
}

.quick-link-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
}

.quick-link-desc {
  font-size: 0.75rem;
  color: var(--gray-600);
}


/* ========================================
   METRO OVERVIEW
   ======================================== */

.metro-overview {
  background: white;
  padding: var(--spacing-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  background: linear-gradient(
    135deg,
    var(--primary-purple),
    var(--primary-dark)
  );

  color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.overview-content {
  max-width: 900px;
  margin: 0 auto;
}

.overview-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: var(--spacing-md);
}


/* ========================================
   NEWS SECTION
   ======================================== */

.news-section {
  background: var(--gray-50);
  padding: var(--spacing-xl) 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.news-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid var(--gray-200);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-purple);
}

.news-image {
  width: 100%;
  height: 160px;
  background: linear-gradient(
    135deg,
    var(--primary-purple),
    var(--primary-light)
  );
}

.news-content {
  padding: var(--spacing-md);
}

.news-date {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: var(--spacing-xs);
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-900);
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.read-more {
  color: var(--primary-purple);
  font-weight: 500;
  font-size: 0.875rem;
}


/* ========================================
   ARTICLE / POST CONTENT
   ======================================== */

.post-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-800);
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content img {
  border-radius: var(--radius-md);
}

.post-content a {
  color: var(--primary-dark);
  font-weight: 500;
}

.post-content a:hover {
  color: var(--primary-purple);
  text-decoration: underline;
}


/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link {
  color: var(--gray-300);
  transition: all var(--transition-base);
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--white);
  padding-left: var(--spacing-xs);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.875rem;
}


/* ========================================
   ROUTE RESULT PAGE
   ======================================== */

.route-header {
  background: linear-gradient(
    135deg,
    var(--primary-purple),
    var(--primary-dark)
  );

  color: white;
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-lg);
}

.route-summary {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--gray-200);
}

.route-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.route-stat {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.route-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-purple);
}

.route-stat-label {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-top: var(--spacing-xs);
}

.station-list {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.station-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  border-left: 3px solid var(--primary-purple);
  margin-bottom: var(--spacing-sm);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.station-item:hover {
  background: var(--gray-100);
}

.station-number {
  width: 32px;
  height: 32px;
  background: var(--primary-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.station-info h4 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.station-info p {
  font-size: 0.8125rem;
  color: var(--gray-600);
}


/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
  padding: var(--spacing-sm) 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.breadcrumbs a {
  color: var(--primary-purple);
}


/* ========================================
   TABLES
   ======================================== */

.table-responsive {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background: var(--primary-purple);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  font-weight: 500;
  font-size: 0.875rem;
}

td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--gray-200);
}

tr:hover {
  background: var(--gray-50);
}


/* ========================================
   FLOATING TOC
   ======================================== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .footer-section {
    margin-bottom: var(--spacing-md);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;

    background: var(--primary-purple);

    flex-direction: column;
    padding: var(--spacing-md);

    box-shadow: var(--shadow-lg);

    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;

    transition: all var(--transition-base);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    padding: var(--spacing-sm);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Better mobile quick links */
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .quick-link-card {
    min-height: 90px;
    padding: 0.65rem;
  }

  .quick-link-icon {
    font-size: 1.5rem;
  }

  .quick-link-title {
    font-size: 0.82rem;
  }

  .quick-link-desc {
    font-size: 0.72rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .post-content {
    font-size: 16px;
    line-height: 1.72;
  }

  .footer {
    padding-bottom: var(--spacing-md);
  }
}


/* ========================================
   APP PAGE
   ======================================== */

.app-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}


/* ========================================
   APP PAGE MOBILE
   ======================================== */

@media (max-width: 768px) {

  .app-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-screenshots-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .app-screenshots-grid .card {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }
}


/* ========================================
   VERY COMPACT MOBILE
   ======================================== */

@media (max-width: 768px) {

  .section {
    padding: var(--spacing-md) 0;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .card {
    padding: var(--spacing-sm);
  }

  .route-finder-form {
    padding: var(--spacing-sm);
  }

  .form-select,
  .form-input {
    padding: 0.5rem 0.75rem;
  }

  h1 {
    font-size: 1.35rem !important;
  }

  h2 {
    font-size: 1.15rem !important;
  }

  h3 {
    font-size: 1rem !important;
  }

  .hero-title {
    font-size: 1.75rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: var(--spacing-md) !important;
  }

  .stat-card {
    padding: var(--spacing-md);
  }

  .stat-number {
    color: white;
    font-size: 1.25rem !important;
  }

  .stat-label {
    font-size: 0.75rem !important;
  }

  .footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
  }
}


/* ========================================
   SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-link-card {
    min-height: 84px;
  }

  .app-features-grid {
    grid-template-columns: 1fr;
  }

  .post-content {
    font-size: 15.5px;
    line-height: 1.7;
  }
}


/* ========================================
   EXTRA SMALL DEVICES
   ======================================== */

@media (max-width: 360px) {

  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .quick-links-grid {
    gap: 0.4rem;
  }

  .quick-link-card {
    padding: 0.5rem;
  }

  .quick-link-title {
    font-size: 0.78rem;
  }

  .quick-link-desc {
    font-size: 0.68rem;
  }

  .hero-title {
    font-size: 1.55rem !important;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
  }
}


/* ========================================
   FINAL SMALL FIXES
   ======================================== */

.stat-number {
  color: #FFFFFF;
}

.stat-card .stat-number {
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.form-select:focus,
.form-input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(0, 157, 124, 0.12);
}

.table-responsive table {
  min-width: 500px;
}

.post-content table {
  min-width: 500px;
}