/* Kulsetu (Swajan) - Responsive Web Application Stylesheet */
:root {
  --primary-saffron: #0F766E;
  --saffron-light: #149188;
  --royal-teal: #0F766E;
  --bg-cream: #E6F4F1;
  --surface-white: #FFFFFF;
  --text-primary: #1B3634;
  --text-secondary: #496864;
  --max-width-container: 1280px;
  --grid-gap: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-cream);
  color: var(--text-primary);
  font-family: 'Mukta', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Devanagari / Hindi Matra Safety */
p, span, div, h1, h2, h3, h4, h5, h6, input, textarea, button {
  line-height: 1.65 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Centered Max-Width Container */
.web-app-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Responsive CSS Grid for Web Cards */
.web-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
}

@media (max-width: 1200px) {
  .web-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .web-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .web-app-container {
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .web-card-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .web-app-container {
    padding: 0 12px;
  }
}

/* Flutter Web Canvas & Container Centering */
flutter-view, flt-glass-pane {
  max-width: 100vw;
  margin: 0 auto;
}

/* Anti-Stretching & Overflow Protection */
.web-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #EFE8E0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

/* Media Safety within Web Cards */
.web-card img, .web-card iframe, .web-card video {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}
