/* =========================================================
   ePanchang - Modern Homepage Redesign
   Inspired by Webstrot Horoscope Light Version
   ========================================================= */

/* ----- CSS Variables / Design Tokens ----- */
:root {
  --primary: #ff7e00;
  --primary-dark: #e06800;
  --primary-light: #ff9a33;
  --primary-glow: rgba(255, 126, 0, 0.25);
  --secondary: #37a4dd;
  --secondary-dark: #0592dc;
  --dark: #1a1a1a;
  --darker: #151515;
  --light-bg: #f5f4f4;
  --white: #ffffff;
  --text-dark: #222222;
  --text-body: #666666;
  --text-muted: #999999;
  --border-color: #e1e1e1;
  --card-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0px 8px 30px 0px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --transition: all 0.3s ease;
  --font-primary: 'Roboto', 'Inter', sans-serif;
  --container-width: 1200px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body.ep-home {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: hidden; }
form, #form1 { overflow-x: hidden; max-width: 100vw; }
.popupmain1, .popupmain2, .popupmain3, .popupmain5,
.signblocker, .Regblocker,
.cnt223 { display: none !important; }
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-dark);
}
img {
  max-width: 100%;
  height: auto;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}
p {
  margin: 0 0 12px;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ep-container {
  max-width: 96%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Section Title Pattern ----- */
.ep-section-title {
  text-align: center;
  margin-bottom: 40px;
}
.ep-section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.ep-section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.ep-section-title p {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 16px;
}

/* =========================================================
   HEADER
   ========================================================= */
.ep-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}
.ep-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.ep-header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}
.ep-logo img {
  height: 38px;
  width: auto;
  transition: var(--transition);
}
.ep-logo:hover img {
  transform: scale(1.03);
}
.ep-header-contact {
  display: flex;
  align-items: center;
  gap: 30px;
}
.ep-header-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-body);
}
.ep-header-contact-item:hover {
  color: var(--primary);
}
.ep-header-contact-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}
.ep-header-contact-item:hover .icon {
  background: var(--primary-dark);
  transform: scale(1.05);
}
.ep-header-contact-item .text-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
}
.ep-header-contact-item .text-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}

/* Mobile Menu Button */
.ep-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.ep-mobile-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}
.ep-mobile-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.ep-mobile-btn.active span:nth-child(2) {
  opacity: 0;
}
.ep-mobile-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.ep-nav {
  background: var(--primary);
  position: sticky;
  top: 75px;
  z-index: 999;
}
.ep-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}
.ep-nav .tabStrip {
  width: 100%;
}
.ep-nav .tabStrip table {
  width: 100%;
  margin: 0;
}
.ep-nav .tabss {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ep-nav .tabss > li {
  position: relative;
  flex-shrink: 0;
}
.ep-nav .tabss > li > a {
  display: block;
  padding: 12px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  transition: var(--transition);
  white-space: nowrap;
}
.ep-nav .tabss > li > a:hover,
.ep-nav .tabss > li.activeTab > a {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
}
/* Dropdown - hidden by default, JS (panchang-menu.js) toggles visibility */
.ep-nav .tabss > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 100;
  border-top: 3px solid var(--primary);
  visibility: hidden;
}
.ep-nav .tabss > li > ul > li {
  border: none;
}
.ep-nav .tabss > li > ul > li > a {
  display: block;
  padding: 10px 20px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition);
  text-transform: none;
}
.ep-nav .tabss > li > ul > li > a:hover {
  background: #fff3e0;
  color: var(--primary);
  padding-left: 26px;
}
.ep-nav .tabss > li > ul li.arrow {
  display: none;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.ep-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
}
.ep-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/personalized_panchang.png') center/cover no-repeat;
  opacity: 0.06;
}
.ep-hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 40px;
}
.ep-hero-content {
  flex: 1;
  max-width: 600px;
}
.ep-hero-welcome {
  display: inline-block;
  background: rgba(255, 126, 0, 0.2);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 126, 0, 0.3);
}
.ep-hero h1 {
  color: var(--white);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.ep-hero h1 span {
  color: var(--primary);
  display: block;
}
.ep-hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.ep-hero-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 126, 0, 0.4);
}
.ep-hero-btn:hover {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 126, 0, 0.3);
  padding: 12px 34px;
}
.ep-hero-hora {
  margin-top: 20px;
  padding: 10px 16px;
  display: inline-block;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}
.ep-hero-hora span {
  color: var(--white) !important;
  font-weight: 600 !important;
}

/* Hero Service Icons */
.ep-hero-services {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.ep-hero-service {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-decoration: none;
  min-width: 200px;
}
.ep-hero-service:hover {
  background: rgba(255, 126, 0, 0.15);
  border-color: var(--primary);
  transform: translateX(-5px);
}
.ep-hero-service .svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ep-hero-service .svc-label {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

/* =========================================================
   AD SECTIONS
   ========================================================= */
.ep-ad-section {
  padding: 20px 0;
  text-align: center;
}

/* =========================================================
   HOME LANGUAGE CARDS
   ========================================================= */
.ep-home-lang-grid {
  max-width: 80%;
  margin: 0 auto 48px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ep-home-lang-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e8e0d5;
  box-shadow: 0 2px 12px rgba(26,10,46,0.05);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.ep-home-lang-card:hover {
  border-color: #ff7e00;
  box-shadow: 0 6px 24px rgba(255,126,0,0.12);
  transform: translateY(-3px);
}
.ep-home-lang-card .hl-flag {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.ep-home-lang-card .hl-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1a0a2e;
  margin: 0 0 2px;
}
.ep-home-lang-card .hl-info span {
  font-size: 12px;
  color: #999;
}
@media (max-width: 991px) {
  .ep-home-lang-grid { max-width: 95%; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .ep-home-lang-grid { max-width: 100% !important; padding: 0 12px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ep-home-lang-card { padding: 14px; gap: 10px; border-radius: 10px; }
  .ep-home-lang-card .hl-flag { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
  .ep-home-lang-card .hl-info h4 { font-size: 14px; }
}
@media (max-width: 479px) {
  .ep-home-lang-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 8px; }
  .ep-home-lang-card { padding: 12px 10px; gap: 8px; }
  .ep-home-lang-card .hl-flag { width: 36px; height: 36px; font-size: 14px; border-radius: 8px; }
  .ep-home-lang-card .hl-info h4 { font-size: 13px; }
  .ep-home-lang-card .hl-info span { font-size: 11px; }
}

/* =========================================================
   CARDS SECTION
   ========================================================= */
/* ----- Cards Section ----- */
.ep-cards-section {
  padding: 40px 0;
  background: #faf6f0;
}
.ep-cards-grid {
  max-width: 80%;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.ep-cards-grid .ep-card {
  flex-direction: column !important;
  border-left: 5px solid #6b2fa0 !important;
  border-right: 1px solid #e8e0d5 !important;
}
.ep-cards-grid .ep-card:nth-child(even) {
  flex-direction: column !important;
  border-left: 5px solid #ff7e00 !important;
  border-right: 1px solid #e8e0d5 !important;
}
.ep-cards-grid .ep-card .ep-card-img {
  flex: none;
  width: 100%;
  max-height: 220px;
  overflow: hidden;
}
.ep-cards-grid .ep-card .ep-card-img .card-image {
  min-height: 200px;
  height: 220px;
}
.ep-cards-grid .ep-card .ep-card-content {
  text-align: center;
  align-items: center;
}
.ep-cards-grid .ep-card:nth-child(even) .ep-card-content {
  text-align: center;
  align-items: center;
}
.ep-cards-grid .ep-card:nth-child(even) .ep-card-header {
  flex-direction: row;
}
/* Row 1 forms grid stays 3-column */
.ep-cards-grid--forms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ----- Card Base — Classic Vedic Design ----- */
.ep-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(26,10,46,0.08);
  transition: all 0.35s ease;
  border: 1px solid #e8e0d5;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-left: 5px solid #6b2fa0;
}
.ep-card:nth-child(even) {
  flex-direction: row-reverse;
  border-left: 1px solid #e8e0d5;
  border-right: 5px solid #ff7e00;
  background: #fdfaf6;
}
.ep-card:hover {
  box-shadow: 0 10px 40px rgba(26,10,46,0.14);
  transform: translateY(-4px);
}

/* ----- Card Image Side ----- */
.ep-card-img {
  flex: 0 0 36%;
  position: relative;
  overflow: hidden;
}
.ep-card-img .card-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ep-card:hover .ep-card-img .card-image {
  transform: scale(1.06);
}

/* ----- Card Content Side ----- */
.ep-card-content {
  flex: 1;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.ep-card:nth-child(even) .ep-card-content {
  align-items: flex-end;
  text-align: right;
}

/* ----- Card Header ----- */
.ep-card-header {
  background: transparent;
  padding: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ep-card:nth-child(even) .ep-card-header {
  flex-direction: row-reverse;
}
.ep-card-header .card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6b2fa0, #8b45c0);
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.ep-card:nth-child(even) .ep-card-header .card-icon {
  background: linear-gradient(135deg, #ff7e00, #ff9a33);
}
.ep-card-header h3 {
  color: #1a0a2e;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

/* ----- Card Body ----- */
.ep-card-body {
  padding: 10px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ep-card-body > p,
.ep-card-content > p {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.ep-card-body .card-desc,
.ep-card-content .card-desc {
  color: #999;
  font-size: 13px;
  line-height: 1.6;
  margin: 4px 0 20px;
  font-weight: 400;
}
.ep-card-body .card-note {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  margin: 10px 0;
}

/* ----- Panchang card special ----- */
.ep-card .panchang-data {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-body);
}
.ep-card .panchang-data a {
  color: #6b2fa0;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(107,47,160,0.3);
}
.ep-card .panchang-data a:hover {
  text-decoration-color: #6b2fa0;
}
.ep-card .panchang-data lable {
  color: #ff7e00 !important;
  font-weight: 700;
}

/* ----- Card Image (for form cards / Row 1) ----- */
.ep-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  border: none;
  box-shadow: 0 4px 16px rgba(26,10,46,0.1);
  transition: all 0.3s ease;
}
.ep-card:hover .card-image {
  box-shadow: 0 8px 24px rgba(26,10,46,0.15);
}

/* ----- Card CTA Button ----- */
.ep-card .ep-btn,
.ep-card-content .ep-btn {
  display: inline-block;
  text-align: center;
  background: linear-gradient(135deg, #6b2fa0, #8b45c0);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
  transition: all 0.3s ease;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(107,47,160,0.25);
}
.ep-card:nth-child(even) .ep-btn,
.ep-card:nth-child(even) .ep-card-content .ep-btn {
  background: linear-gradient(135deg, #ff7e00, #ff9a33);
  box-shadow: 0 4px 15px rgba(255,126,0,0.25);
}
.ep-card .ep-btn:hover,
.ep-card-content .ep-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107,47,160,0.35);
  color: #fff;
}
.ep-card:nth-child(even) .ep-btn:hover,
.ep-card:nth-child(even) .ep-card-content .ep-btn:hover {
  box-shadow: 0 6px 20px rgba(255,126,0,0.35);
}

/* ----- Form Cards (Row 1) — column layout ----- */
.ep-cards-grid--forms .ep-card {
  flex-direction: column;
  border-left: 5px solid #6b2fa0;
  border-right: 1px solid #e8e0d5;
  background: #fff;
}
.ep-cards-grid--forms .ep-card .ep-card-content { align-items: center; text-align: center; }
.ep-cards-grid--forms .ep-card:nth-child(even) {
  flex-direction: column;
  border-right: 1px solid #e8e0d5;
  border-left: 5px solid #6b2fa0;
  background: #fff;
}
.ep-cards-grid--forms .ep-card-header {
  padding: 24px 24px 10px;
}
.ep-cards-grid--forms .ep-card-body {
  padding: 10px 24px 24px;
}
.ep-cards-grid--forms .ep-card .ep-btn {
  display: block;
  width: auto;
  text-align: center;
}

/* ----- Form Inputs ----- */
.ep-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}
.ep-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ep-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,126,0,0.12);
}
.ep-input::placeholder {
  color: #999;
}
select.ep-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fff;
  padding-right: 32px;
}
.ep-form-row {
  display: flex;
  gap: 8px;
}
.ep-form-row > * {
  flex: 1;
  min-width: 0;
}
.card-form {
  background: transparent;
  border-radius: 14px;
  padding: 16px;
  border: none;
}

/* ----- Buttons ----- */
.ep-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--primary);
  transition: var(--transition);
  width: 100%;
  margin-top: 12px;
}
.ep-btn:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 126, 0, 0.3);
}
.ep-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.ep-btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* =========================================================
   ZODIAC SIGNS SECTION
   ========================================================= */
.ep-zodiac {
  background: var(--light-bg);
  padding: 60px 0;
  position: relative;
}
.ep-zodiac-inner {
  max-width: 96%;
  margin: 0 auto;
  padding: 0 20px;
}
.ep-zodiac-title {
  text-align: center;
  margin-bottom: 50px;
}
.ep-zodiac-title h2 {
  font-size: 34px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.ep-zodiac-title h2 strong {
  font-weight: 900;
}
.ep-zodiac-title h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.ep-zodiac-title p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 14px;
}

/* Grid: left signs | center wheel | right signs */
.ep-zodiac-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.ep-zodiac-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each zodiac item */
.ep-zodiac-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}
.ep-zodiac-item:hover {
  background: rgba(255, 126, 0, 0.06);
  transform: translateX(4px);
}
.ep-zodiac-right .ep-zodiac-item:hover {
  transform: translateX(-4px);
}
.ep-zodiac-right .ep-zodiac-item {
  text-align: right;
  justify-content: flex-end;
}

/* Dotted connector line + end dot */
.ep-zodiac-left .ep-zodiac-item::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  width: 40px;
  border-top: 2px dashed #c0c0c0;
}
.ep-zodiac-left .ep-zodiac-item::before {
  content: '';
  position: absolute;
  right: -46px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #aaa;
  border-radius: 50%;
  z-index: 2;
}
.ep-zodiac-right .ep-zodiac-item::after {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  width: 40px;
  border-top: 2px dashed #c0c0c0;
}
.ep-zodiac-right .ep-zodiac-item::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #aaa;
  border-radius: 50%;
  z-index: 2;
}

/* Orange circle icon */
.ep-zodiac-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 126, 0, 0.3);
  transition: all 0.3s ease;
}
.ep-zodiac-item:hover .ep-zodiac-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(255, 126, 0, 0.4);
}

/* Sign name & date */
.ep-zodiac-info {
  display: flex;
  flex-direction: column;
}
.ep-zodiac-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}
.ep-zodiac-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Center wheel */
.ep-zodiac-center {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ep-zodiac-center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.1));
}

/* Responsive - Tablet */
@media (max-width: 991px) {
  .ep-zodiac-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .ep-zodiac-center {
    grid-column: 1 / -1;
    margin: 0 auto;
    width: 220px;
    height: 220px;
    order: -1;
  }
  .ep-zodiac-left .ep-zodiac-item::after,
  .ep-zodiac-right .ep-zodiac-item::before {
    display: none;
  }
  .ep-zodiac-right .ep-zodiac-item {
    text-align: left;
    justify-content: flex-start;
    flex-direction: row-reverse;
  }
}

/* Responsive - Mobile */
@media (max-width: 575px) {
  .ep-zodiac {
    padding: 40px 0;
  }
  .ep-zodiac-title h2 {
    font-size: 26px;
  }
  .ep-zodiac-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ep-zodiac-center {
    width: 180px;
    height: 180px;
    margin-bottom: 10px;
  }
  .ep-zodiac-right .ep-zodiac-item {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
  }
  .ep-zodiac-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .ep-zodiac-name {
    font-size: 15px;
  }
  .ep-zodiac-date {
    font-size: 12px;
  }
  .ep-zodiac-item {
    padding: 10px 12px;
    gap: 12px;
  }
}

/* =========================================================
   FEATURES SECTION (Salient Features)
   ========================================================= */
.ep-features {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.ep-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/personalized_panchang.png') center/cover no-repeat;
  opacity: 0.05;
}
.ep-features-inner {
  max-width: 96%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.ep-features-title {
  text-align: center;
  margin-bottom: 40px;
}
.ep-features-title h2 {
  color: var(--white);
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}
.ep-features-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.ep-features-title p {
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  font-size: 16px;
}
.ep-features-list {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
}
.ep-features-list ul {
  list-style: none;
  padding: 0;
}
.ep-features-list ul li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ep-features-list ul li:last-child {
  border-bottom: none;
}
.ep-features-list ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--primary);
  font-size: 14px;
}
.ep-features-list ul li a {
  color: var(--primary-light);
  font-weight: 500;
}
.ep-features-list ul li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* =========================================================
   CUSTOMER SPEAK / TESTIMONIAL
   ========================================================= */
.ep-testimonial {
  padding: 30px 0;
  max-width: 96%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.ep-testimonial-inner {
  background: linear-gradient(135deg, #e06800 0%, #ff7e00 50%, #ff9a33 100%);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ep-testimonial-badge {
  background: var(--white);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ep-testimonial-text {
  flex: 1;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  min-width: 200px;
}
.ep-testimonial-text marquee {
  color: var(--white);
}
.ep-testimonial-more {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: var(--transition);
}
.ep-testimonial-more:hover {
  background: var(--white);
  color: var(--primary);
}

/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */
.ep-bottom-nav {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1854 100%);
  padding: 40px 0 30px;
}
.ep-bottom-nav-inner {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
}
.ep-bottom-nav h1 {
  color: #fff !important;
  text-align: center;
  font-size: 24px !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  font-weight: 700;
}
/* Override existing nav.reds styles */
.ep-bottom-nav nav.reds {
  background: transparent;
  border: none;
  width: 100%;
}
.ep-bottom-nav nav.reds > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  background: none;
  border: none;
}
.ep-bottom-nav nav.reds > ul > li {
  position: relative;
  border: none;
  float: none;
}
.ep-bottom-nav nav.reds > ul > li > a {
  display: block;
  padding: 12px 20px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: none !important;
}
.ep-bottom-nav nav.reds > ul > li > a:hover {
  color: #ff9a33;
}
.ep-bottom-nav nav.reds > ul > li > ul {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 8px 0;
  z-index: 100;
  border-bottom: 3px solid #6b2fa0;
  display: none;
  visibility: visible !important;
}
.ep-bottom-nav nav.reds > ul > li:hover > ul {
  display: block;
}
/* Hide the arrow pseudo-elements from old JS */
.ep-bottom-nav nav.reds li.arrow,
.ep-nav .tabss li.arrow {
  display: none;
}
/* Hide dropdown indicator from old JS */
.ep-bottom-nav span.dropdown,
.ep-nav span.dropdown {
  display: none;
}
.ep-bottom-nav nav.reds > ul > li > ul > li {
  border: none;
}
.ep-bottom-nav nav.reds > ul > li > ul > li > a {
  display: block;
  padding: 10px 20px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
  background: none !important;
  text-shadow: none;
}
.ep-bottom-nav nav.reds > ul > li > ul > li > a:hover {
  background: #f8f0ff !important;
  color: #6b2fa0;
  padding-left: 26px;
}
.ep-bottom-nav .wrapper {
  margin: 0 auto;
  width: 100% !important;
  margin-top: 0 !important;
}
.ep-bottom-nav span.dropdown {
  display: none;
}

/* =========================================================
   FOOTER — Classic Vedic Theme
   ========================================================= */
.ep-footer {
  background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 48px 0 0;
}
.ep-footer-inner {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
}
.ep-footer .footerBlk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}
.ep-footer .footerLt {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
.ep-footer .footerLtTi {
  color: #ff9a33;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  position: relative;
  padding: 0;
}
.ep-footer .footerLt hr {
  border: none;
  border-top: 2px solid #6b2fa0;
  width: 40px;
  margin: 0 0 16px;
}
.ep-footer .footerLt ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ep-footer .footerLt ul li {
  margin-bottom: 8px;
}
.ep-footer .footerLt ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}
.ep-footer .footerLt ul li a:hover {
  color: #ff9a33;
  transform: translateX(4px);
}
.ep-footer .footerLtTi div[style] {
  display: none !important;
}
.ep-footer-disclaimer {
  background: rgba(0,0,0,0.3);
  padding: 16px 20px;
  text-align: center;
}
.ep-footer-disclaimer .footerdesclimer {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  line-height: 1.6;
  max-width: 80%;
  margin: 0 auto;
}

/* =========================================================
   SEO CONTENT
   ========================================================= */
.ep-seo-content {
  max-width: 96%;
  margin: 0 auto;
  padding: 40px 20px;
}
.ep-seo-content h2 {
  font-size: 22px;
  color: var(--text-dark);
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-bg);
  position: relative;
}
.ep-seo-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}
.ep-seo-content p, .ep-seo-content em, .ep-seo-content strong {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.8;
}
.ep-seo-content a {
  color: var(--primary);
  font-weight: 500;
}

/* =========================================================
   CTA / BANNER IMAGES
   ========================================================= */
.ep-cta-banner {
  text-align: center;
  padding: 20px 0;
}
.ep-cta-banner img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.ep-cta-banner img:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

/* =========================================================
   HIDDEN POPUPS & LEGACY OVERRIDES
   ========================================================= */
/* Keep popup styling working */
.popupmain2, .popupmain3 {
  z-index: 2000;
}
.cnt223 {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
}

/* jQuery UI Overrides */
.ui-autocomplete {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--card-shadow) !important;
  border: 1px solid var(--border-color) !important;
}
.ui-menu-item a {
  padding: 8px 14px !important;
}
.ui-datepicker {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--card-shadow-hover) !important;
}

/* ASP.NET controls */
.gradient-button, input[type="submit"] {
  background: var(--primary) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 24px !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}
.gradient-button:hover, input[type="submit"]:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px) !important;
}

/* Old wrapper/container overrides */
.wrapper {
  width: auto !important;
  margin-top: 0 !important;
}
.container {
  max-width: 96%;
  margin: 0 auto;
  padding: 0 20px;
  width: auto;
}
fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

/* Location search inputs */
.locsearch {
  width: 100% !important;
}

/* =========================================================
   RESPONSIVE DESIGN - ALL DEVICES
   ========================================================= */

/* --- Large Desktop (1200px+) --- handled by default styles above */

/* --- Small Desktop / Laptop (992px - 1199px) --- */
@media (max-width: 1199px) {
  .ep-nav .tabss > li > a {
    padding: 12px 8px;
    font-size: 11px;
  }
  .ep-hero h1 {
    font-size: 40px;
  }
  .ep-hero-desc {
    font-size: 16px;
  }
  .ep-cards-grid {
    gap: 20px;
  }
  .ep-card-img {
    flex: 0 0 35%;
  }
}

/* --- Tablet Landscape / Small Laptop (768px - 991px) --- */
@media (max-width: 991px) {
  /* Show mobile menu button, hide contact */
  .ep-mobile-btn {
    display: block;
  }
  .ep-header-contact {
    display: none;
  }
  .ep-header-inner {
    height: 65px;
  }

  /* Mobile Slide-in Nav */
  .ep-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1001;
    transition: left 0.3s ease;
    padding-top: 70px;
  }
  .ep-nav.nav-open {
    left: 0;
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
  }
  .ep-nav .tabss {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .ep-nav .tabss > li {
    flex-shrink: 1;
  }
  .ep-nav .tabss > li > a {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: normal;
  }
  .ep-nav .tabss > li > a:hover,
  .ep-nav .tabss > li.activeTab > a {
    border-radius: 0;
    background: rgba(255,255,255,0.1);
  }
  .ep-nav .tabss > li > ul {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0,0,0,0.2);
    border-top: none;
    display: none;
    visibility: visible !important;
    min-width: auto;
  }
  .ep-nav .tabss > li.sub-open > ul {
    display: block !important;
    visibility: visible !important;
  }
  .ep-nav .tabss > li > ul > li > a {
    color: rgba(255,255,255,0.8);
    padding: 10px 20px 10px 40px;
    font-size: 13px;
  }
  .ep-nav .tabss > li > ul > li > a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding-left: 44px;
  }
  .ep-nav .tabStrip,
  .ep-nav .tabStrip table,
  .ep-nav .tabStrip table tbody,
  .ep-nav .tabStrip table tr,
  .ep-nav .tabStrip table td {
    display: block;
    width: 100%;
  }

  /* Mobile overlay when nav is open */
  .ep-nav.nav-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: -1;
  }

  /* Hero */
  .ep-hero {
    padding: 60px 0 50px;
  }
  .ep-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .ep-hero-content {
    max-width: 100%;
  }
  .ep-hero h1 {
    font-size: 34px;
  }
  .ep-hero-btn {
    margin: 0 auto;
  }
  .ep-hero-hora {
    margin: 16px auto 0;
  }
  .ep-hero-services {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .ep-hero-service {
    min-width: 150px;
    padding: 10px 16px;
  }

  /* Cards: wide layout adjustments */
  .ep-cards-grid {
    max-width: 90%;
    gap: 20px;
  }
  .ep-cards-grid--forms {
    grid-template-columns: repeat(2, 1fr);
  }
  .ep-card-img {
    flex: 0 0 35%;
  }
  .ep-bottom-nav-inner { max-width: 95%; }
  .ep-footer-inner { max-width: 95%; }
  .ep-footer-disclaimer .footerdesclimer { max-width: 95%; }
  .ep-card-header h3 {
    font-size: 18px;
  }
  .ep-card .ep-btn,
  .ep-card-content .ep-btn {
    font-size: 12px;
    padding: 12px 18px;
    letter-spacing: 0.5px;
  }

  /* Features */
  .ep-features-list {
    padding: 20px 24px;
  }
  .ep-features-list ul li {
    font-size: 14px;
  }

  /* Footer: 3 columns on tablet */
  .ep-footer .footerBlk {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* Bottom nav */
  .ep-bottom-nav nav.reds > ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ep-bottom-nav nav.reds > ul > li > a {
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Testimonial */
  .ep-testimonial-inner {
    padding: 16px 20px;
  }
}

/* --- Tablet Portrait (576px - 767px) --- */
@media (max-width: 767px) {
  /* Hero */
  .ep-hero {
    padding: 50px 0 40px;
  }
  .ep-hero h1 {
    font-size: 28px;
  }
  .ep-hero-desc {
    font-size: 15px;
  }
  .ep-hero-services {
    gap: 10px;
  }
  .ep-hero-service {
    min-width: 140px;
    padding: 10px 14px;
    gap: 10px;
  }
  .ep-hero-service .svc-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .ep-hero-service .svc-label {
    font-size: 13px;
  }

  /* Cards: stack vertically on mobile */
  .ep-cards-grid {
    gap: 18px;
    max-width: 100% !important;
    padding: 0 12px;
  }
  .ep-cards-grid--forms {
    grid-template-columns: 1fr;
  }
  .ep-cards-section {
    padding: 24px 0;
  }
  .ep-card {
    flex-direction: column !important;
    border-radius: 14px;
    border-left: 5px solid #6b2fa0 !important;
    border-right: 1px solid #e8e0d5 !important;
    background: #fff !important;
  }
  .ep-card:nth-child(even) {
    background: #fdfaf6 !important;
    border-right: 1px solid #e8e0d5 !important;
    border-left: 5px solid #ff7e00 !important;
  }
  .ep-card:nth-child(even) .ep-card-content {
    align-items: center;
    text-align: center;
  }
  .ep-card:nth-child(even) .ep-card-header {
    flex-direction: row;
  }
  /* Force all sections full width on mobile */
  .ep-container,
  .ep-hero-inner,
  .ep-features-inner,
  .ep-bottom-nav-inner,
  .ep-footer-inner,
  .ep-seo-content,
  .ep-footer-disclaimer .footerdesclimer { max-width: 100% !important; padding-left: 14px; padding-right: 14px; }
  .ep-testimonial-inner { max-width: 100%; }
  .ep-cards-grid--forms { max-width: 100% !important; }
  .ep-card-img {
    flex: none;
    width: 100%;
    max-height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
  }
  .ep-card-img .card-image {
    min-height: 200px;
    height: 220px;
    border-radius: 0;
  }
  .ep-card-content {
    padding: 20px;
    text-align: center;
    align-items: center;
  }
  .ep-card-header {
    padding: 0 0 10px;
    justify-content: center;
  }
  .ep-card-header h3 {
    white-space: normal;
    font-size: 19px;
  }
  .ep-card-body {
    padding: 8px 20px 22px;
    text-align: center;
  }
  .ep-card-body > p,
  .ep-card-content > p {
    min-height: auto;
    font-size: 14px;
  }
  .ep-card .card-image {
    height: 220px;
    border-radius: 10px;
  }
  .ep-card-body .card-desc,
  .ep-card-content .card-desc {
    font-size: 14px;
  }
  .ep-card .ep-btn,
  .ep-card-content .ep-btn {
    display: block;
    white-space: normal;
    font-size: 14px;
    padding: 14px 24px;
    letter-spacing: 0.8px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  /* Form card inputs full width on mobile */
  .ep-cards-grid--forms .ep-card-header {
    padding: 20px 20px 10px;
  }
  .ep-cards-grid--forms .ep-card-body {
    padding: 8px 20px 20px;
  }

  /* Buttons */
  .ep-btn {
    padding: 12px 22px;
    font-size: 13px;
  }

  /* Form rows stack on smaller tablets */
  .ep-form-row {
    flex-wrap: wrap;
  }
  .ep-form-row > * {
    flex: 1 1 calc(33.33% - 6px);
    min-width: 80px;
  }

  /* SEO content */
  .ep-seo-content {
    padding: 30px 15px;
  }
  .ep-seo-content h2 {
    font-size: 20px;
  }
  .ep-seo-content p, .ep-seo-content em, .ep-seo-content strong {
    font-size: 14px;
  }

  /* Footer: 2 columns */
  .ep-footer .footerBlk {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Bottom nav stacked */
  .ep-bottom-nav nav.reds > ul {
    flex-direction: column;
    align-items: center;
  }
  .ep-bottom-nav nav.reds > ul > li > a {
    padding: 10px 16px;
  }
  .ep-bottom-nav nav.reds > ul > li > ul {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border-bottom: none;
    background: rgba(255,255,255,0.05);
  }
  .ep-bottom-nav nav.reds > ul > li > ul > li > a {
    text-align: center;
    padding: 8px 16px;
    color: rgba(255,255,255,0.5);
  }

  /* Testimonial stacked */
  .ep-testimonial-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Ad sections */
  .ep-ad-section ins {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* CTA banner */
  .ep-cta-banner img {
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  /* Features */
  .ep-features {
    padding: 40px 0;
  }
  .ep-features-title h2 {
    font-size: 24px;
  }
  .ep-features-list {
    padding: 16px;
  }
  .ep-features-list ul li {
    font-size: 13px;
    padding-left: 28px;
  }
}

/* --- Mobile Large (480px - 575px) --- */
@media (max-width: 575px) {
  .ep-header-inner {
    height: 58px;
    padding: 0 12px;
  }
  .ep-logo img {
    height: 40px;
  }
  .ep-hero {
    padding: 40px 0 30px;
  }
  .ep-hero h1 {
    font-size: 24px;
  }
  .ep-hero-welcome {
    font-size: 12px;
    padding: 5px 14px;
  }
  .ep-hero-desc {
    font-size: 14px;
    line-height: 1.6;
  }
  .ep-hero-btn {
    padding: 12px 28px;
    font-size: 13px;
  }
  .ep-hero-services {
    gap: 8px;
  }
  .ep-hero-service {
    min-width: 130px;
    padding: 8px 12px;
  }
  .ep-hero-service .svc-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .ep-hero-service .svc-label {
    font-size: 12px;
  }

  /* Cards — compact mobile */
  .ep-cards-grid {
    max-width: 100% !important;
    padding: 0 8px;
    gap: 14px;
  }
  .ep-cards-grid--forms { max-width: 100% !important; }
  .ep-container,
  .ep-hero-inner,
  .ep-features-inner,
  .ep-bottom-nav-inner,
  .ep-footer-inner,
  .ep-seo-content { max-width: 100% !important; padding-left: 10px; padding-right: 10px; }
  .ep-card {
    border-radius: 10px;
  }
  .ep-card-img {
    max-height: 200px;
    border-radius: 10px 10px 0 0;
  }
  .ep-card-content {
    padding: 16px;
  }
  .ep-card-header {
    padding: 0 0 8px;
    gap: 10px;
  }
  .ep-card-header .card-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .ep-card-header h3 {
    white-space: normal;
    font-size: 17px;
  }
  .ep-card-body {
    padding: 6px 16px 20px;
  }
  .ep-card-body > p,
  .ep-card-content > p {
    min-height: auto;
    font-size: 13px;
    line-height: 1.7;
  }
  .ep-card-img .card-image {
    min-height: 170px;
    height: 200px;
  }
  .ep-card .card-image {
    height: 200px;
    border-radius: 8px;
  }
  .ep-card-body .card-desc,
  .ep-card-content .card-desc {
    font-size: 13px;
  }
  .ep-card .ep-btn,
  .ep-card-content .ep-btn {
    display: block;
    white-space: normal;
    padding: 12px 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    width: 100%;
  }
  /* Form inputs prevent iOS zoom */
  .ep-input {
    font-size: 16px;
  }
  .card-form {
    padding: 14px;
  }

  /* Form rows fully stacked */
  .ep-form-row {
    flex-direction: column;
    gap: 6px;
  }
  .ep-form-row > * {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .ep-input {
    padding: 11px 12px;
    font-size: 16px;
  }

  /* Section titles */
  .ep-section-title h2,
  .ep-features-title h2 {
    font-size: 22px;
  }

  /* Bottom nav */
  .ep-bottom-nav {
    padding: 30px 0 20px;
  }
  .ep-bottom-nav h1 {
    font-size: 20px !important;
  }

  /* Footer single column */
  .ep-footer .footerBlk {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ep-footer {
    padding: 40px 0 0;
  }
  .ep-footer .footerLtTi {
    font-size: 15px;
  }

  /* Disclaimer */
  .ep-footer-disclaimer {
    padding: 12px 15px;
  }
  .ep-footer-disclaimer .footerdesclimer {
    font-size: 12px;
  }
}

/* --- Mobile Small (320px - 479px) --- */
@media (max-width: 479px) {
  .ep-header-inner {
    height: 54px;
    padding: 0 10px;
  }
  .ep-logo img {
    height: 36px;
  }
  .ep-hero {
    padding: 30px 0 25px;
  }
  .ep-hero h1 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .ep-hero h1 span {
    font-size: 22px;
  }
  .ep-hero-welcome {
    font-size: 11px;
    padding: 4px 12px;
    margin-bottom: 12px;
  }
  .ep-hero-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .ep-hero-btn {
    padding: 10px 22px;
    font-size: 12px;
  }
  .ep-hero-services {
    flex-direction: column;
    align-items: stretch;
  }
  .ep-hero-service {
    min-width: auto;
    width: 100%;
  }

  /* Cards — smallest mobile */
  .ep-cards-section {
    padding: 12px 0;
  }
  .ep-cards-grid {
    max-width: 100% !important;
    padding: 0 6px;
    gap: 12px;
  }
  .ep-cards-grid--forms { max-width: 100% !important; }
  .ep-container,
  .ep-hero-inner,
  .ep-features-inner,
  .ep-bottom-nav-inner,
  .ep-footer-inner,
  .ep-seo-content { max-width: 100% !important; padding-left: 8px; padding-right: 8px; }
  .ep-card {
    border-radius: 8px;
  }
  .ep-card-img {
    max-height: 180px;
    border-radius: 8px 8px 0 0;
  }
  .ep-card-content {
    padding: 12px;
  }
  .ep-card-header {
    padding: 0 0 6px;
    gap: 8px;
  }
  .ep-card-header .card-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .ep-card-header h3 {
    white-space: normal;
    font-size: 15px;
  }
  .ep-card-body {
    padding: 4px 12px 16px;
  }
  .ep-card-body > p,
  .ep-card-content > p {
    font-size: 12px;
    min-height: auto;
    margin-bottom: 10px;
  }
  .ep-card-img .card-image {
    min-height: 150px;
    height: 180px;
  }
  .ep-card .card-image {
    height: 180px;
    border-radius: 6px;
  }
  .ep-card-body .card-desc,
  .ep-card-content .card-desc {
    font-size: 12px;
    margin: 8px 0;
  }
  .ep-card .ep-btn,
  .ep-card-content .ep-btn {
    display: block;
    white-space: normal;
    padding: 11px 16px;
    font-size: 12px;
    letter-spacing: 0.3px;
    width: 100%;
  }
  .ep-btn {
    padding: 10px 18px;
    font-size: 12px;
  }
  .card-form {
    padding: 12px;
  }

  /* Form inputs */
  .ep-input {
    padding: 10px 10px;
    font-size: 16px;
  }
  .ep-form-label {
    font-size: 12px;
  }

  /* Features */
  .ep-features {
    padding: 30px 0;
  }
  .ep-features-title h2 {
    font-size: 20px;
  }
  .ep-features-list ul li {
    font-size: 12px;
    padding: 10px 0 10px 26px;
  }
  .ep-features-list ul li::before {
    font-size: 12px;
    top: 12px;
  }

  /* Testimonial */
  .ep-testimonial {
    padding: 20px 10px;
  }
  .ep-testimonial-inner {
    padding: 14px 16px;
    border-radius: var(--radius-md);
  }
  .ep-testimonial-badge {
    font-size: 12px;
    padding: 6px 14px;
  }
  .ep-testimonial-text {
    font-size: 13px;
    min-width: 150px;
  }

  /* SEO */
  .ep-seo-content {
    padding: 20px 10px;
  }
  .ep-seo-content h2 {
    font-size: 18px;
    margin-top: 20px;
  }
  .ep-seo-content p, .ep-seo-content em, .ep-seo-content strong {
    font-size: 13px;
    line-height: 1.7;
  }

  /* Bottom nav */
  .ep-bottom-nav {
    padding: 24px 0 16px;
  }
  .ep-bottom-nav h1 {
    font-size: 18px !important;
  }
  .ep-bottom-nav nav.reds > ul > li > a {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* --- Extra Small (below 320px) --- */
@media (max-width: 319px) {
  .ep-header-inner {
    height: 50px;
  }
  .ep-logo img {
    height: 32px;
  }
  .ep-hero h1 {
    font-size: 20px;
  }
  .ep-hero-desc {
    font-size: 12px;
  }
  .ep-card-content {
    padding: 10px;
  }
  .ep-card-header {
    padding: 0 0 4px;
    gap: 6px;
  }
  .ep-card-header .card-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .ep-card-header h3 {
    white-space: normal;
    font-size: 14px;
  }
  .ep-card-body {
    padding: 4px 10px 12px;
  }
  .ep-card-body > p,
  .ep-card-content > p {
    min-height: auto;
    font-size: 11px;
  }
  .ep-card-img {
    max-height: 150px;
  }
  .ep-card-img .card-image {
    min-height: 130px;
    height: 150px;
  }
  .ep-card .card-image {
    height: 140px;
    border-radius: 6px;
  }
  .ep-card .ep-btn,
  .ep-card-content .ep-btn {
    display: block;
    white-space: normal;
    padding: 10px 14px;
    font-size: 11px;
    width: 100%;
  }
  .ep-btn {
    font-size: 11px;
    padding: 8px 14px;
  }
  .card-form {
    padding: 10px;
  }
}

/* --- Touch device improvements --- */
@media (hover: none) and (pointer: coarse) {
  .ep-card:hover {
    transform: none;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  }
  .ep-card:hover .card-image,
  .ep-card:hover .ep-card-img .card-image {
    transform: none;
  }
  .ep-hero-service:hover {
    transform: none;
  }
  .ep-btn:hover {
    transform: none;
  }
  .ep-card .ep-btn:hover,
  .ep-card-content .ep-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: none;
  }
  /* Increase tap targets */
  .ep-nav .tabss > li > a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .ep-bottom-nav nav.reds > ul > li > a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ep-input {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  select.ep-input {
    min-height: 48px;
    font-size: 16px;
  }
  .ep-card .ep-btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- Landscape phone fix --- */
@media (max-height: 500px) and (orientation: landscape) {
  .ep-hero {
    padding: 30px 0 20px;
  }
  .ep-hero h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .ep-hero-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .ep-hero-services {
    flex-direction: row;
    gap: 8px;
  }
  .ep-hero-service {
    min-width: auto;
    padding: 6px 10px;
  }
  .ep-nav {
    padding-top: 10px;
  }
  .ep-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* --- Print styles --- */
@media print {
  .ep-header, .ep-nav, .ep-hero-services, .ep-ad-section,
  .ep-mobile-btn, .ep-bottom-nav, .ep-testimonial,
  .ep-cta-banner, .ep-back-top {
    display: none !important;
  }
  .ep-hero {
    background: #fff !important;
    padding: 20px 0;
  }
  .ep-hero h1, .ep-hero-desc {
    color: #000 !important;
  }
  .ep-card {
    border: 1px solid #ccc;
    background: #fff !important;
    break-inside: avoid;
    box-shadow: none !important;
  }
  .ep-card::before, .ep-card::after {
    display: none !important;
  }
  .ep-card-header h3, .ep-card-body > p, .ep-card-body .card-desc {
    color: #333 !important;
    text-shadow: none !important;
  }
  .ep-footer {
    background: #fff !important;
  }
  .ep-footer .footerLt ul li a {
    color: #333 !important;
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}
.ep-card {
  animation: fadeInUp 0.6s ease-out both;
}
.ep-card:nth-child(2) {
  animation-delay: 0.15s;
}
.ep-card:nth-child(3) {
  animation-delay: 0.3s;
}
.ep-card::after {
  animation: shimmer 4s ease-in-out infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Back to Top (if needed) */
.ep-back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 126, 0, 0.4);
  transition: var(--transition);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
}
.ep-back-top.visible {
  opacity: 1;
  visibility: visible;
}
.ep-back-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  color: var(--white);
}

/* Hide sign-in / login elements from header */
#userlogin,
.signblocker,
.signin,
.btn-login {
  display: none !important;
}
