@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #242a3a;
  --text-primary: #f8f9fa;
  --text-secondary: #b4b8c4;
  --text-muted: #8a8e98;
  --accent-primary: #6366f1;
  --accent-secondary: #ec4899;
  --accent-tertiary: #14b8a6;
  --border-color: #2d3142;
  --success: #10b981;
  --error: #ef4444;
  --maxw: 1280px;
  --brand-name-color: var(--accent-tertiary);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.9rem; }

p {
  margin: 0;
  color: var(--text-secondary);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Sticky header with modern glass effect */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -1px;
  color: var(--brand-name-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.brand:hover {
  transform: scale(1.05);
}

/* Brand name color consistency */
#brandName, #headerBrandName, #footerBrandName, #aboutBrandName {
  color: var(--brand-name-color) !important;
}

/* Header brand name in white */
.site-header #headerBrandName {
  color: white !important;
}

.brand-highlight {
  color: var(--brand-name-color);
}

.brand-logo {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

/* Modern navigation with smooth underlines */
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: hidden;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

.nav a:hover, .nav a[aria-current], .nav a.current {
  color: var(--text-primary);
}

.nav a:hover::after, .nav a[aria-current]::after, .nav a.current::after {
  width: 100%;
}

.nav a[aria-current],
.nav a.current {
  font-weight: 600;
  color: var(--accent-primary) !important;
}

main {
  min-height: calc(100vh - 180px);
  padding-top: 1.5rem;
}

/* Hero section with enhanced visuals */
.hero {
  padding: 0.8rem 0 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Welcome badge with modern styling */
.welcome-banner {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid var(--accent-primary);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.welcome-word {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Brand heading with enhanced gradient */
.brand-heading {
  font-size: clamp(4rem, 6vw, 6rem);
  line-height: 1.1;
  margin: 0.5rem 0 0.5rem;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.1s both, gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle {
  color: var(--accent-tertiary);
  margin: 1.5rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.lede {
  max-width: 700px;
  margin: 1.5rem auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.cta-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Modern buttons with hover effects */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
  color: var(--text-primary);
  text-decoration: none;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn.primary:hover {
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6);
}

.btn {
  border: 2px solid var(--accent-primary);
}

.btn:hover {
  background: var(--accent-primary);
  color: white;
}

/* Content sections with improved spacing */
.about-content, .blog-list, .page-hero, .services, .featured-posts {
  padding: 2rem 0;
}

/* Quotes page specific styling */
.featured-posts {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  min-height: 80vh;
}

.featured-posts .container {
  max-width: 1200px;
}

.blog-list .container {
  max-width: 1400px;
}

.featured-posts h2 {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

/* Quote cards styling */
.quote-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: var(--accent-primary);
  opacity: 0.3;
  font-family: 'Dancing Script', cursive;
  line-height: 1;
}

.quote-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
}

.quote-card .quote-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  padding-left: 2rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.quote-card .quote-title {
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-primary);
  display: inline-block;
  width: 100%;
}

.quote-card .quote-author {
  font-size: 1rem;
  color: var(--accent-secondary);
  font-weight: 600;
  text-align: right;
  margin: 1rem 0 0 0;
  padding-right: 1rem;
}

/* Quotes page grid layout */
#quotesBlocks.grid.two {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Responsive quote cards */
@media (max-width: 768px) {
  .featured-posts h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  #quotesBlocks.grid.two {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quote-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .quote-card::before {
    font-size: 3rem;
    top: 0.8rem;
    left: 1rem;
  }

  .quote-card .quote-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .quote-card .quote-text {
    font-size: 1.1rem;
    padding-left: 1.5rem;
  }

  .quote-card .quote-author {
    font-size: 0.9rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 600px) {
  .featured-posts {
    padding: 1rem 0;
  }

  .featured-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .quote-card {
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 12px;
  }

  .quote-card::before {
    font-size: 2.5rem;
    top: 0.5rem;
    left: 0.8rem;
  }

  .quote-card .quote-title {
    font-size: 1.3rem !important;
    margin-bottom: 0.6rem;
  }

  .quote-card .quote-text {
    font-size: 1rem;
    padding-left: 1.2rem;
    margin-bottom: 1rem;
  }

  .quote-card .quote-author {
    font-size: 0.85rem;
    text-align: left;
    margin-top: 0.5rem;
  }
}

/* Logo page specific styling */
.services .grid.two .card:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.services .grid.two .card:first-child img {
  max-width: 200px;
  height: auto;
}

.blog-list h2, .about-content h2, .contact h2, .services h2, .featured-posts h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  margin-top: -0.8rem;
  position: relative;
}

.blog-list h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.about-content {
  text-align: left;
}

.about-content p {
  text-align: justify;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* Modern grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.five {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.five {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid.two,
  .grid.three,
  .grid.five {
    grid-template-columns: 1fr;
  }
}

/* Modern cards with enhanced hover effects */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
  transform: translateY(-8px);
}

/* Core team card styles */
.card h3 {
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
  line-height: 1.2;
}

/* Larger team member names */
#teamGrid .card h3 {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  margin: 1.2rem 0 0.8rem !important;
}

.card p strong {
  color: #00ffff;
  font-weight: 600;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
}

.card p {
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

/* Post cards with modern layout */
.post-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
  box-shadow: 0 24px 48px rgba(99, 102, 241, 0.25);
  border-color: var(--accent-primary);
  transform: translateY(-12px);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover img {
  transform: scale(1.05);
}

.post-card h3 {
  margin: 1.2rem 1.2rem 0.6rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.post-card .meta {
  margin: 0 1.2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.post-card .excerpt {
  margin: 0.8rem 1.2rem 0;
  margin-bottom: 0 !important;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  overflow-y: auto;
}

.post-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  margin-top: auto;
}

.author-info {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  flex-shrink: 1;
}

/* Obituary cards with improved styling */
.obituary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 320px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 1rem;
}

.obituary-card:hover {
  box-shadow: 0 24px 48px rgba(236, 72, 153, 0.15);
  border-color: var(--accent-secondary);
  transform: translateY(-10px);
}

.obituary-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.obituary-card:hover img {
  transform: scale(1.05);
}

.obituary-card h3 {
  margin: 1.2rem 1.2rem 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.obituary-card .meta {
  margin: 0 1.2rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.obituary-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  margin-top: auto;
}

.obituary-card .excerpt {
  margin: 0.8rem 1.2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  overflow-y: auto;
}

.obituary-layout {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.obituary-article-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.obituary-article-layout img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

#obituaryContent p {
  font-size:15px;
  line-height: 1.6;
}

.post-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .obituary-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  .post-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .obituary-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .obituary-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .obituary-article-layout {
    flex-direction: column;
  }
  .obituary-article-layout img {
    max-width: 100%;
  }
  #obituaryContent p {
    font-size: 16px;
  }
  .post-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #obituaryContent p {
    font-size: 14px;
  }
}

/* Video cards with modern styling */
.video-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-card a {
  display: block;
  text-decoration: none;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover img {
  transform: scale(1.08);
}

.page-hero {
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  margin-top: -0.3rem;
  text-align: center;
}

input, textarea, select {
  width: 100%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background: var(--bg-secondary);
}

/* Modern footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  background: var(--bg-secondary);
  margin-top: 6rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.social {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.social a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-color);
}

.social a:hover {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.social img {
  height: 20px;
  width: 20px;
  display: block;
  filter: brightness(0.8);
}

.social a:hover img {
  filter: brightness(1.2);
}

/* Modern modal with enhanced styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal[hidden] {
  display: none;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.modal-close:hover {
  color: var(--accent-secondary);
  background: rgba(236, 72, 153, 0.1);
  border-color: var(--accent-secondary);
}

.modal-article h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.2rem;
  line-height: 1.3;
}

.modal-article .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.tags-container {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tags-container .tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-content {
  margin-top: 2rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* Article page styles */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.article-page h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
  text-align: center;
  font-family: 'Noto Sans Malayalam', 'Chilanka', 'Meera', 'Rachana', sans-serif;
}

.article-meta {
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.article-meta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-author {
  font-weight: 600;
  color: #ffff99;
  font-size: 0.9rem;
}

.article-details {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.article-date, .article-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.article-whatsapp {
  margin: 2rem 0;
  text-align: center;
}

.article-cover {
  margin: 2rem 0;
  text-align: center;
}

.article-cover img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-content h2, .article-content h3, .article-content h4 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.article-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

/* Responsive design improvements */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .brand-heading {
    font-size: 2.8rem;
  }

  .blog-list h2, .about-content h2 {
    font-size: 2.2rem;
  }

  .nav {
    gap: 1.8rem;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .modal-content {
    padding: 2rem;
  }

  .modal-article h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 1030px) and (min-width: 770px) {
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 0.5rem 0;
  }

  .nav a {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }

  .site-header {
    padding: 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }

  .site-header {
    padding: 0.5rem 0;
  }

  .site-header .container {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    align-items: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    order: 3;
    width: 100%;
  }

  .nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }

  .brand {
    font-size: 1.1rem;
    gap: 0.6rem;
  }

  .brand-logo {
    height: 1.8rem;
    width: 1.8rem;
  }

  .hero {
    padding: 4rem 0 2rem;
  }

  .brand-heading {
    font-size: 3.5rem !important;
    margin: 1.5rem 0 1rem;
  }

  .subtitle {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  .lede {
    font-size: 0.8rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-row .btn {
    width: auto;
  }

  .btn {
    width: 100%;
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 0.8rem;
  }

  .whatsapp-community-btn {
    width: auto;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
  }

  .whatsapp-community-btn img {
    width: 20px;
    margin-right: 8px;
  }

  .blog-list h2, .about-content h2, .contact h2 {
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem;
  }

  .about-content p {
    text-align: left;
    font-size: 0.95rem;
  }

  .post-card {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .post-card h3 {
    font-size: 1rem;
    margin: 0.8rem 0.8rem 0.4rem;
  }

  .post-card .meta {
    font-size: 0.75rem;
    margin: 0 0.8rem 0.5rem;
  }

  .post-card .excerpt {
    font-size: 0.85rem;
    margin: 0.5rem 0.8rem 1rem;
  }

  .post-card .card-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .author-info {
    text-align: center;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .card-footer .btn {
    width: auto;
  }

  .article-meta-content {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .article-meta {
    font-size: 0.7rem;
  }

  .article-author {
    font-size: 0.8rem;
  }

  .article-date, .article-type {
    font-size: 0.7rem;
  }

  .blog-list h2, .featured-posts h2, .services h2, #logoDetails h2, .contact h2 {
    font-size: 1.5rem !important;
  }

  /* Larger team member names on mobile */
  #teamGrid .card h3 {
    font-size: 1.6rem !important;
    margin: 1rem 0 0.6rem !important;
  }

  .modal-content {
    padding: 1.5rem;
    max-width: 100%;
    max-height: 90vh;
  }

  .modal-article h2 {
    font-size: 1.3rem;
  }

  .article-content {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: 1rem;
    right: 1rem;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .site-footer p {
    font-size: 0.85rem;
  }

  .social {
    gap: 1rem;
  }

  h1 { font-size: 1.2rem !important; }
  h2 { font-size: 1rem !important; }
  h3 { font-size: 0.85rem !important; }
  h4 { font-size: 0.8rem !important; }
  h5 { font-size: 0.75rem !important; }
  h6 { font-size: 0.7rem !important; }

  .page-hero h1 {
    font-size: 1.5rem !important;
  }

}

@media (max-width: 900px) {
  .container {
    padding: 0 1.2rem;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .brand-heading {
    font-size: 2.2rem !important;
    margin: 1.2rem 0 0.8rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .lede {
    font-size: 0.9rem;
  }

  .blog-list h2, .about-content h2 {
    font-size: 2rem !important;
  }

  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .obituary-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 1.5rem 0 1rem;
  }

  .brand-heading {
    font-size: 2.8rem !important;
    margin: 1.2rem 0 1rem;
  }

  .subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 1rem 0;
  }

  .lede {
    font-size: 0.8rem;
    line-height: 1.7;
    margin: 1rem auto;
  }

  .btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.75rem;
  }

  .whatsapp-community-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }

  .whatsapp-community-btn img {
    width: 14px;
    margin-right: 4px;
  }

  .cta-row {
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .blog-list h2, .about-content h2 {
    font-size: 1.6rem !important;
    margin-bottom: 1.5rem;
  }

  /* Smaller team member names on very small screens */
  #teamGrid .card h3 {
    font-size: 1.4rem !important;
    margin: 0.8rem 0 0.5rem !important;
  }

  h1 { font-size: 1rem !important; }
  h2 { font-size: 0.9rem !important; }
  h3 { font-size: 0.8rem !important; }
  h4 { font-size: 0.75rem !important; }
  h5 { font-size: 0.7rem !important; }
  h6 { font-size: 0.65rem !important; }

  .page-hero h1 {
    font-size: 1.2rem !important;
  }

  .post-card h3 {
    font-size: 0.8rem;
    margin: 0.6rem 0.6rem 0.3rem;
  }

  .post-card .meta {
    font-size: 0.65rem;
    margin: 0 0.6rem 0.4rem;
  }

  .post-card .excerpt {
    font-size: 0.7rem;
    margin: 0.4rem 0.6rem 0.8rem;
  }

  .lede {
    font-size: 0.8rem;
  }

  .card {
    padding: 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .modal-article h2 {
    font-size: 0.9rem;
  }

  .article-content {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .modal-article .meta {
    font-size: 0.7rem;
  }

  .tags-container {
    gap: 0.6rem;
  }

  .tags-container .tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .article-content {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .social {
    gap: 0.8rem;
  }

  .social a {
    width: 36px;
    height: 36px;
  }

  .social img {
    height: 18px;
    width: 18px;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }
}


/* Responsive iframe for contact form */
iframe {
  max-width: 100%;
  height: auto;
  min-height: 600px;
}

@media (max-width: 768px) {
  iframe {
    min-height: 500px;
  }
}

@media (max-width: 600px) {
  iframe {
    min-height: 300px;
  }
}

/* Filter buttons responsiveness */
.filter-btn {
  flex: none;
  min-width: 70px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* WhatsApp community button styling */
.whatsapp-community-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.whatsapp-community-btn img {
  width: 18px;
  margin-right: 6px;
}

/* Watch button responsiveness */
.watch-btn img {
  height: 44px;
  width: auto;
}

@media (max-width: 768px) {
  .watch-btn img {
    height: 36px;
  }
}

@media (max-width: 600px) {
  .watch-btn img {
    height: 32px;
  }
}


/* Responsive select elements */
select {
  font-size: 0.9rem;
  padding: 0.5rem;
}

@media (max-width: 600px) {
  select {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
}

/* Responsive labels */
label {
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  label {
    font-size: 0.8rem;
  }
}

@media (min-width: 1367px) {
  .container {
    padding: 0 12rem;
  }
}

/* Advertisement Styles - Updated for dark theme */
.sidebar-ad {
  position: fixed;
  top: calc(50% + 40px);
  transform: translateY(-50%);
  width: 160px;
  height: 280px;
  z-index: 101;
}

.left-ad {
  left: 20px;
}

.right-ad {
  right: 20px;
}

.ad-banner.vertical {
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  border-radius: 10px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.ad-banner.vertical:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
}

.ad-banner.vertical img {
  width: 200%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  transform: rotate(90deg);
}

.left-ad .ad-banner.vertical img {
  transform: rotate(-90deg);
}

.ad-banner.vertical p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.mobile-ads {
  display: block;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 2rem 0;
}

.mobile-ads .grid {
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ad-banner.horizontal {
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 16 / 9;
}

.ad-banner.horizontal:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2);
  transform: translateY(-4px);
}

.ad-banner.horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.ad-banner.horizontal p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

@media (max-width: 1400px) {
  .sidebar-ad {
    width: 140px;
    height: 240px;
  }
  .sidebar-ad.left-ad {
    left: 10px;
  }
  .sidebar-ad.right-ad {
    right: 10px;
  }
}

@media (max-width: 1024px) {
  .sidebar-ad {
    width: 120px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .sidebar-ad {
    display: none;
  }
  .mobile-ads {
    display: block;
  }
}

@media (max-width: 1400px) {
  .sidebar-ad {
    display: none;
  }
  .mobile-ads {
    display: block;
  }
}

@media (min-width: 1367px) {
  .mobile-ads {
    display: none;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .mobile-ads .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mobile-ads .grid > :nth-child(4) {
    grid-column: 2;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .mobile-ads .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .mobile-ads .grid {
    grid-template-columns: 1fr;
  }
  .mobile-ads {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .filter-buttons {
    gap: 4px;
  }

  .filter-btn {
    width: auto;
    min-width: 60px;
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 600px) {
  .filter-buttons {
    gap: 3px;
  }

  .filter-btn {
    width: auto;
    min-width: 50px;
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .filter-buttons {
    gap: 1px;
  }

  .filter-btn {
    width: auto;
    min-width: 40px;
    padding: 0.2rem 0.3rem;
    font-size: 0.6rem;
  }

  .whatsapp-community-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }

  .whatsapp-community-btn img {
    width: 12px;
    margin-right: 3px;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact page styling */
.contact strong {
  color: white;
}

.contact a {
  text-decoration: none;
}

.contact a span {
  color: white !important;
}
