/* Madhya Pradesh Event Management - Rajasthani theme */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: #1a0f0f;
  background-color: #fffaf3;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin-bottom: 1.25rem;
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #1f1515;
  max-width: 75ch;
}

p:last-child {
  margin-bottom: 0;
}

.container > p,
section p {
  max-width: 100%;
}

.container > section > .container > p {
  max-width: 75ch;
}

ul, ol {
  margin-bottom: 1.25rem;
  margin-top: 0;
  padding-left: 1.5rem;
}

ul:last-child, ol:last-child {
  margin-bottom: 0;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #1f1515;
}

ul li, ol li {
  padding-left: 0.25rem;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.875rem;
  line-height: 1.3;
  font-weight: 600;
  color: #0f0808;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--maroon);
}

h2:first-child {
  margin-top: 0;
}

h3 {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  color: #2c1a1a;
}

h3:first-child {
  margin-top: 0;
}

a {
  color: #c0392b;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

a:hover {
  color: #a03020;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:focus {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}

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

/* Handle broken images gracefully */
img[src=""],
img:not([src]) {
  display: none;
}

/* Fallback styling for broken images */
img[onerror] {
  position: relative;
}

img[onerror]::after {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  border-radius: 4px;
  color: #666;
  font-size: 0.875rem;
  text-align: center;
  z-index: 1;
  max-width: 90%;
}

.container {
  width: min(1200px, 96%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container > section,
section > .container {
  max-width: 100%;
}

/* Optimal reading width for text content */
.container > p,
section .container > p {
  max-width: 70ch;
}

article p,
.card p {
  max-width: 100%;
}

:root {
  --saffron: #f39c12;
  --maroon: #8e1b1b;
  --gold: #f7d98b;
  --cream: #fff8e6;
  --dark: #2c1a1a;
}

body {
  background-image: radial-gradient(circle at 0 0, rgba(243, 156, 18, 0.1), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(142, 27, 27, 0.12), transparent 55%);
}

.site-header {
  background: linear-gradient(90deg, var(--maroon), #b42222);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}

.top-bar {
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  color: #ffffff;
}

.top-bar a {
  color: #ffffff;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f7d98b, #f39c12);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a0303;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.site-tagline {
  font-size: 0.85rem;
  color: #fff4d6;
  font-weight: 500;
}

.primary-cta {
  background: var(--saffron);
  color: #1a0f0f;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--gold);
  transition: background 0.2s ease, transform 0.2s ease;
}

.primary-cta:hover {
  background: #e67e22;
  color: #0f0808;
  transform: translateY(-1px);
  text-decoration: none;
}

.main-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.main-nav a:hover,
.main-nav li.active > a {
  background-color: rgba(0, 0, 0, 0.25);
}

/* Dropdown submenu styling */
.main-nav > .container > ul > li {
  position: relative;
}

.main-nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: #6c0505;
  min-width: 240px;
  max-width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  pointer-events: auto;
  margin-top: 0;
  padding: 0;
  list-style: none;
}

/* Third level submenu (cascading) */
.main-nav li ul li {
  position: relative;
}

.main-nav li ul li ul {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 2px;
  min-width: 220px;
  background: #8e1b1b;
  z-index: 1001;
  pointer-events: auto;
}

.main-nav li ul li:hover > ul {
  display: flex;
}

/* Arrow indicator for items with submenus */
.main-nav li ul li:has(> ul) > a::after {
  content: " ▶";
  float: right;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 0.5rem;
}

/* Scrollbar styling for dropdown menus */
.main-nav li ul::-webkit-scrollbar {
  width: 8px;
}

.main-nav li ul::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.main-nav li ul::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.main-nav li ul::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Show submenu on hover */
.main-nav > .container > ul > li:hover > ul {
  display: flex;
}

/* Show third-level submenu on hover */
.main-nav li ul li:hover > ul {
  display: flex;
}

/* Keep submenu visible when hovering over it */
.main-nav li:hover > ul {
  display: flex;
}

.main-nav li ul a {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1002;
  display: block;
  width: 100%;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.main-nav li ul a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.main-nav li ul a:active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Ensure clickable area is properly defined */
.main-nav li ul li {
  pointer-events: auto;
  width: 100%;
  display: block;
}

.main-nav li ul li a {
  width: 100%;
  box-sizing: border-box;
  display: block;
  pointer-events: auto;
  cursor: pointer;
}

/* Bridge gap between parent menu and submenu */
.main-nav > .container > ul > li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  z-index: 999;
  pointer-events: none;
}

.hero {
  background-image: linear-gradient(to right, rgba(142, 27, 27, 0.9), rgba(243, 156, 18, 0.9)),
    url("../images/hero-rajasthani-folk-dance.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 2.5rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
  margin-top: 0;
  line-height: 1.2;
}

.hero h1 span {
  color: #fff4a0;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #ffffff;
  max-width: 75ch;
  font-weight: 400;
}

/* Hero section links - high visibility on dark background */
.hero a,
.hero-lead a,
.hero p a,
.hero-inner a,
.hero-inner p a {
  color: #fff4a0 !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  background: rgba(255, 244, 160, 0.1);
  padding: 2px 4px;
  margin: 0 -4px;
  border-radius: 4px;
}

.hero a:hover,
.hero-lead a:hover,
.hero p a:hover,
.hero-inner a:hover,
.hero-inner p a:hover {
  color: #ffffff !important;
  text-decoration-color: #fff4a0;
  background: rgba(255, 244, 160, 0.25);
  text-decoration-thickness: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1rem;
}

.secondary-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 2px solid #fff4d6;
  color: #fff4d6;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #ffffff;
}

.hero-note {
  font-size: 0.9rem;
  color: #fff4c0;
  line-height: 1.6;
  margin-top: 0.75rem;
  font-weight: 400;
}

.hero-note a {
  color: #fff4a0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero-note a:hover {
  color: #ffffff;
  text-decoration-color: #fff4a0;
}

.hero-right {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  border: 1px solid rgba(255, 232, 181, 0.7);
}

.hero-right .hero-note {
  color: #fff4c0;
}

.hero-right h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.hero-right ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

.hero-right ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 400;
}

.hero-right h3 {
  color: #ffffff;
  font-weight: 600;
}

section {
  padding: 2.5rem 0;
}

section:first-of-type {
  padding-top: 2rem;
}

section:last-of-type {
  padding-bottom: 3rem;
}

/* Better spacing for content sections */
section .container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.page-hero {
  background: linear-gradient(135deg, rgba(142, 27, 27, 0.95), rgba(243, 156, 18, 0.95));
  color: #fff;
  padding: 2rem 0 1.5rem;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
  margin-top: 0;
  line-height: 1.3;
}

.page-hero p {
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: 1.05rem;
  color: #ffffff;
  max-width: 75ch;
  font-weight: 400;
}

.page-hero h1 {
  color: #ffffff;
  font-weight: 700;
}

.page-hero a,
.page-hero p a {
  color: #fff4a0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.page-hero a:hover,
.page-hero p a:hover {
  color: #ffffff;
  text-decoration-color: #fff4a0;
  background: rgba(255, 244, 160, 0.15);
  padding: 0 2px;
  margin: 0 -2px;
  border-radius: 3px;
}

.page-hero p:last-child {
  margin-bottom: 0;
}

.breadcrumbs {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 1.7rem;
  color: var(--maroon);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.section-heading p {
  max-width: 70ch;
  margin: 0.75rem auto 0;
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1f1515;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: rgba(255, 248, 230, 0.95);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(190, 108, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
  color: var(--maroon);
  line-height: 1.3;
  font-weight: 600;
}

.card p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #1f1515;
}

.card a {
  color: #b03020;
  font-weight: 600;
}

.card a:hover {
  color: #8e1b1b;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.video-card h2 {
  font-size: 1rem;
  margin-top: 0.6rem;
  color: var(--maroon);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(190, 108, 0, 0.4);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.site-footer {
  background: #2c1a1a;
  color: #fef5e7;
  padding: 2rem 0 1rem;
  margin-top: 1.5rem;
}

.site-footer h3 {
  color: #fff4d6;
  font-weight: 600;
}

.site-footer p {
  color: #fef5e7;
}

.site-footer a {
  color: #fff4d6;
  font-weight: 500;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h3 {
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.footer-grid p {
  margin-bottom: 0.5rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #fef5e7;
}

.footer-grid ul li a {
  color: #fef5e7;
}

.footer-grid ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  color: #fef5e7;
}

/* Improve text readability on all devices */
strong, b {
  font-weight: 600;
  color: #0f0808;
}

em, i {
  font-style: italic;
}

/* Better spacing for nested content */
.container > * + * {
  margin-top: 1.5rem;
}

/* Improve list readability */
ul ul, ol ol, ul ol, ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Better blockquote styling if used */
blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--saffron);
  font-style: italic;
  color: #2c1a1a;
  line-height: 1.7;
}

/* Image Slider/Carousel Styles */
.image-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #000;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.6s ease-in-out;
  height: 100%;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #ffffff;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.slider-caption h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-caption p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--maroon);
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #ffffff;
  border-color: var(--saffron);
  transform: scale(1.2);
}

.slider-section {
  padding: 3rem 0;
  background: linear-gradient(to bottom, #fffaf3, #fff8e6);
}

.slider-section .section-heading {
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .slider-container {
    height: 400px;
  }

  .slider-caption {
    padding: 1.5rem 1rem 1rem;
  }

  .slider-caption h3 {
    font-size: 1.25rem;
  }

  .slider-caption p {
    font-size: 0.9rem;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .slider-nav.prev {
    left: 10px;
  }

  .slider-nav.next {
    right: 10px;
  }

  .slider-dots {
    bottom: 15px;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 600px) {
  .slider-container {
    height: 300px;
  }

  .slider-caption h3 {
    font-size: 1.1rem;
  }

  .slider-caption p {
    font-size: 0.85rem;
  }
}

/* Villa Gallery Styles */
.villa-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.villa-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.villa-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.villa-gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.villa-gallery-item:hover img {
  transform: scale(1.05);
}

.villa-gallery-caption {
  padding: 1rem;
  background: #fff;
  text-align: center;
  font-weight: 600;
  color: var(--maroon);
  font-size: 0.95rem;
  border-top: 2px solid var(--gold);
}

@media (max-width: 900px) {
  .villa-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .villa-gallery-item img {
    height: 240px;
  }
}

@media (max-width: 600px) {
  .villa-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .villa-gallery-item img {
    height: 250px;
  }
}

/* Content Images Styles */
.content-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 1.5rem auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.content-image-left {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 300px;
}

.content-image-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 300px;
}

.content-image-center {
  margin: 1.5rem auto;
  display: block;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 1rem;
}

.card-with-image {
  padding: 0;
  overflow: hidden;
}

.card-with-image .card-content {
  padding: 1.5rem 1.25rem;
}

.inline-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem 1.5rem 1rem 0;
  float: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .content-image-left,
  .content-image-right,
  .inline-image {
    float: none;
    margin: 1rem auto;
    display: block;
    max-width: 100%;
  }

  .content-image {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3,
  .footer-grid,
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .branding {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  /* Better mobile readability */
  body {
    font-size: 1rem;
    line-height: 1.75;
  }

  p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.875rem;
  }

  .card {
    padding: 1.25rem 1rem;
  }

  .card h3 {
    font-size: 1.15rem;
  }
}

