/* business.css - Combined CSS for Business Directory Pages */
/* Includes styles from both business.css and index.css */

/* ===== ROOT VARIABLES ===== */
:root {
  --teal-primary: #008080;
  --teal-dark: #004d4d;
  --teal-light: #00cccc;
  --orange-primary: #ff7f50;
  --orange-dark: #e65c35;
  --orange-light: #ff9a75;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-medium: #e2e8f0;
  --gray-dark: #2c3e50;
  --cream-bg: #fff8dc;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s ease;
  --border-radius: 12px;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream-bg);
  color: var(--gray-dark);
  line-height: 1.5;
  /* Reduced from 1.7 */
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.body {
  background-color: #fff8dc;
}

body.kannada {
  font-family: 'Noto Sans Kannada', 'Poppins', sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Language content handling */
.en {
  display: block;
}

.kn {
  display: none;
}

body.kannada .en {
  display: none;
}

body.kannada .kn {
  display: block;
}

/* ===== HEADER STYLES ===== */
.page-header {
  margin-bottom: 0;
  height: 75vh;
  min-height: 400px;
  background-image: linear-gradient(90deg, rgba(22, 48, 5, 0.7) 0%, rgba(196, 110, 57, 0.7) 100%), url('business_assets/ss-mall.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  animation: headerZoom 20s ease-in-out infinite;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('business_assets/S.S Gardenia Mall _ Shamanur Road  \ \(1\).JPG') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.header-content {
  max-width: 800px;
  z-index: 2;
  padding: 40px 20px;
  position: relative;
}

.page-header h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
  /* Reduced from 20px */
  animation: fadeInDown 1.2s ease;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 1.3rem;
  margin-bottom: 20px;
  /* Reduced from 30px */
  animation: fadeInUp 1.2s ease;
}

.scroll-indicator {
  animation: bounce 2s infinite;
  margin-top: 20px;
  /* Reduced from 30px */
}

.scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
  margin: 8px auto 0;
  /* Reduced from 10px */
}

/* Sub-header for directory page */
.sub-header {
  text-align: center;
  padding: 1.5rem 1rem;
  /* Reduced from 2rem 1rem */
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--orange-dark) 100%);
  color: white;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.sub-header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  /* Reduced from 15px */
}

.sub-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
  /* Added consistent line height */
}

/* Enhanced Sub-header */
.sub-header {
  text-align: center;
  padding: 1.5rem 1rem;
  /* Reduced from 2rem 1rem */
  background: linear-gradient(135deg, #006666 0%, #e67348 100%);
  color: white;
  position: relative;
}

.sub-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  /* Reduced from 0.8rem */
  font-weight: 700;
}

.sub-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
  /* Added consistent line height */
}

/* ===== DIRECTORY NAVIGATION ===== */
.directory-nav {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--orange-dark) 100%);
  padding: 0.6rem 0;
  /* Reduced from 0.8rem 0 */
  position: relative;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  /* Reduced from 1.5rem */
}

.directory-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.directory-nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  /* Reduced from 0.6rem 1rem */
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.85rem;
  display: block;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.3;
  /* Added consistent line height */
}

.directory-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  border-color: rgba(165, 164, 164, 0.774);
}

/* Enhanced Directory Navigation */
.directory-nav {
  background: linear-gradient(135deg, #006666 0%, #e67348 100%);
  padding: 0.6rem 0;
  /* Reduced from 0.8rem 0 */
  position: relative;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  /* Reduced from 1.5rem */
}

.directory-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.directory-nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  /* Reduced from 0.6rem 1.2rem */
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  border: 1px solid transparent;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  line-height: 1.3;
  /* Added consistent line height */
}

.directory-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== MAIN CONTENT SECTIONS ===== */
.main-content {
  padding: 30px 0;
  /* Reduced from 40px 0 */
}

.business-section {
  padding: 40px 0;
  /* Reduced from 60px 0 */
  scroll-margin-top: 80px;
}

.business-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  /* Reduced from 40px */
  color: var(--teal-dark);
  position: relative;
  line-height: 1.3;
  /* Added consistent line height */
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  /* Reduced from -12px */
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
}

/* ===== BUSINESS GRID LAYOUT ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  /* Reduced from 30px */
  margin-bottom: 30px;
  /* Reduced from 40px */
}

.custom-link {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.custom-link:hover {
  transform: translateY(-5px);
}

.business-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.business-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.business-image {
  height: 200px;
  overflow: hidden;
}

.business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.business-card:hover .business-image img {
  transform: scale(1.1);
}

.business-content {
  padding: 20px;
  /* Reduced from 25px */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.business-content h4 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  /* Reduced from 12px */
  color: var(--teal-dark);
  line-height: 1.3;
  /* Added consistent line height */
}

.business-content p {
  color: var(--gray-dark);
  margin-bottom: 12px;
  /* Reduced from 15px */
  flex-grow: 1;
  line-height: 1.4;
  /* Added consistent line height */
}

.business-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.9rem;
  line-height: 1.3;
  /* Added consistent line height */
}

.location {
  color: var(--teal-primary);
  font-weight: 500;
}

.rating {
  color: var(--orange-primary);
  font-weight: 600;
}

/* ===== DIRECTORY SECTION STYLES ===== */
.directory-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  /* Reduced from 30px */
  margin-bottom: 8px;
  /* Reduced from 10px */
}

.directory-category {
  background: #fff8dc;
  border-radius: var(--border-radius);
  padding: 25px;
  /* Reduced from 30px */
}

.category-header {
  text-align: center;
  margin-bottom: 8px;
  /* Reduced from 10px */
}

.category-title {
  align-items: center;
  font-size: 2.2rem;
  color: var(--teal-dark);
  margin-bottom: 12px;
  /* Reduced from 15px */
  line-height: 1.3;
  /* Added consistent line height */
}

.category-description {
  align-items: center;
  font-size: 1.1rem;
  color: var(--gray-dark);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.4;
  /* Added consistent line height */
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  /* Reduced from 30px */
  margin-bottom: 30px;
  /* Reduced from 40px */
}

/* ===== BUSINESS CARD IN DIRECTORY ===== */
.business-card[itemtype] {
  display: flex;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 20px;
  /* Reduced from 25px */
}

.business-card[itemtype]:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-image {
  flex: 0 0 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.business-card[itemtype]:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  flex: 1;
  padding: 20px;
  /* Reduced from 25px */
  display: flex;
  flex-direction: column;
}

.card-content h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  /* Reduced from 5px */
  color: var(--teal-dark);
  line-height: 1.3;
  /* Added consistent line height */
}

.card-content>p {
  color: var(--gray-dark);
  flex-grow: 1;
  line-height: 1.4;
  /* Added consistent line height */
}

.business-details {
  padding: 0.8rem;
  /* Reduced from 1rem */
  border-radius: 10px;
  border: #00cccc;
  background-color: rgba(0, 139, 139, 0.1);
  margin-bottom: 4px;
  /* Reduced from 5px */
}

.detail-item {
  display: flex;
  margin-bottom: 6px;
  /* Reduced from 8px */
  font-size: 0.95rem;
  line-height: 1.3;
  /* Added consistent line height */
}

.detail-label {
  font-weight: 600;
  min-width: 100px;
  color: var(--teal-dark);
}

.detail-value {
  color: var(--gray-dark);
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  /* Reduced from 20px */
  font-size: 0.9rem;
  line-height: 1.3;
  /* Added consistent line height */
}

.card-info .location {
  color: var(--teal-primary);
  font-weight: 500;
}

.card-info .rating {
  color: var(--orange-primary);
  font-weight: 600;
}

/* ===== DIRECTIONS BUTTON ===== */
.directions-btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.directions-btn {
  display: inline-block;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  color: white;
  padding: 10px 20px;
  /* Reduced from 12px 25px */
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  line-height: 1.3;
  /* Added consistent line height */
}

.directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 128, 128, 0.3);
}

/* ===== EXPLORE BUTTONS ===== */
.section-explore {
  text-align: center;
  margin-top: 30px;
  /* Reduced from 40px */
}

.explore-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  color: var(--white);
  padding: 0.7rem 1.3rem;
  /* Reduced from 0.8rem 1.5rem */
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  line-height: 1.3;
  /* Added consistent line height */
}

.explore-btn:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--orange-dark));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
  padding: 8px 0;
  /* Reduced from 10px 0 */
  background: #fff8dc;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  /* Reduced from 25px */
}

.resource-card {
  background: white;
  padding: 8px;
  /* Reduced from 10px */
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.resource-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  /* Reduced from 20px */
  color: white;
  font-size: 1.8rem;
}

.resource-card h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  /* Reduced from 15px */
  color: var(--teal-dark);
  line-height: 1.3;
  /* Added consistent line height */
}

.resource-card p {
  color: var(--gray-dark);
  margin-bottom: 15px;
  /* Reduced from 20px */
  line-height: 1.4;
  /* Added consistent line height */
}

.resource-link {
  color: var(--teal-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.3;
  /* Added consistent line height */
}

.resource-link:hover {
  color: var(--orange-primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 60px 0;
  /* Reduced from 80px 0 */
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  /* Reduced from 20px */
  line-height: 1.3;
  /* Added consistent line height */
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  /* Reduced from 30px */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  /* Added consistent line height */
}

.cta-buttons {
  display: flex;
  gap: 15px;
  /* Reduced from 20px */
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 12px 25px;
  /* Reduced from 15px 30px */
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid white;
  line-height: 1.3;
  /* Added consistent line height */
}

.cta-btn.primary {
  background: white;
  color: var(--teal-primary);
}

.cta-btn.primary:hover {
  background: transparent;
  color: white;
}

.cta-btn.secondary {
  background: transparent;
  color: white;
}

.cta-btn.secondary:hover {
  background: white;
  color: var(--teal-primary);
}

/* ===== ZUDIO STORES SECTION STYLES ===== */
.directory-section {
  margin: 1rem 0;
  /* Reduced from 1.5rem 0 */
  padding: 0 1rem;
  font-family: 'Poppins', sans-serif;
  background-color: #fff8dc;
}

.directory-category {
  background: #fff8dc;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  /* Reduced from 2rem */
  margin-bottom: 1.5rem;
  /* Reduced from 2rem */
  border: 2px solid #e0f2f1;
  transition: all 0.3s ease;
}

.directory-category:hover {
  box-shadow: 0 12px 35px rgba(0, 128, 128, 0.15);
}

.category-header {
  text-align: center;
  margin-bottom: 1.5rem;
  /* Reduced from 2rem */
  padding-bottom: 0.8rem;
  /* Reduced from 1rem */
  position: relative;
}

.category-header::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #008080, #ff7f50);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.category-title {
  color: #2d3748;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  /* Reduced from 0.5rem */
  background: linear-gradient(135deg, #008080, #ff7f50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  /* Added consistent line height */
}

.category-description {
  color: #5c7a7a;
  font-size: 1.1rem;
  line-height: 1.4;
  /* Reduced from 1.5 */
  max-width: 700px;
  margin: 0 auto;
}

/* Business Cards Container */
.business-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.2rem;
  /* Reduced from 1.5rem */
  margin-top: 1.2rem;
  /* Reduced from 1.5rem */
}

/* Business Card Styles */
.business-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 0;
  transition: all 0.3s ease;
  border: 2px solid #e0f2f1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 128, 128, 0.2);
  border-color: #008080;
}

/* Card Layout */
.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.business-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.2rem;
  /* Reduced from 1.5rem */
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Card Content Styles */
.card-content h2 {
  color: #2a4a4a;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  /* Reduced from 1rem */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
  /* Added consistent line height */
}

/* Detail Items */
.detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  /* Reduced from 0.8rem */
  font-size: 0.95rem;
  gap: 0.8rem;
  line-height: 1.3;
  /* Added consistent line height */
}

.detail-label {
  font-weight: 600;
  color: #008080;
  min-width: 90px;
  font-size: 0.9rem;
}

.detail-value {
  color: #2a4a4a;
  font-weight: 500;
  flex: 1;
  line-height: 1.3;
  /* Reduced from 1.4 */
}

/* Business Details */
.business-details {
  background: rgba(0, 128, 128, 0.05);
  border-radius: 10px;
  padding: 0.8rem;
  /* Reduced from 1rem */
  margin: 0.8rem 0;
  /* Reduced from 1rem 0 */
  border-left: 4px solid #008080;
}

/* Card Info */
.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.8rem;
  /* Reduced from 1rem */
  border-top: 1px solid #e2e8f0;
}

.location {
  color: #5c7a7a;
  font-size: 0.9rem;
  line-height: 1.3;
  /* Reduced from 1.4 */
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
}

.rating {
  color: #ff7f50;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 127, 80, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* Directions Button */
.directions-btn-container {
  margin-top: 0.8rem;
  /* Reduced from 1rem */
  text-align: center;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #008080, #ff7f50);
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  /* Reduced from 0.8rem 1.5rem */
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
  width: 100%;
  line-height: 1.3;
  /* Added consistent line height */
}

.directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 128, 128, 0.4);
  background: linear-gradient(135deg, #006666, #e67348);
}

/* Enhanced Status Indicators */
.status-open {
  color: #008080;
  font-weight: 600;
  background: rgba(0, 128, 128, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.85rem;
}

.status-closed {
  color: #ff7f50;
  font-weight: 600;
  background: rgba(255, 127, 80, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.85rem;
}

/* Price Styling */
.price {
  color: #ff7f50;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Category Tags */
.category-tag {
  background: linear-gradient(135deg, #008080, #00a0a0);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

/* ===== ENHANCED TABLE STYLES ===== */
.table-container {
  margin-top: 30px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--white);
  overflow-x: auto;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.table-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  border-radius: 16px 16px 0 0;
}

/* ---------------- TITLE ENHANCEMENT ---------------- */
.table-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-align: center;
  margin-bottom: 20px;
  text-transform: capitalize;
  position: relative;
  line-height: 1.3;
  padding: 0 20px;
}

.table-title::before {
  content: '📊';
  margin-right: 12px;
  font-size: 1.4rem;
}

.table-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  margin: 10px auto 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 128, 128, 0.3);
}

/* ---------------- ENHANCED TABLE DESIGN ---------------- */
.supermarket-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: var(--white);
}

/* Header Gradient with Depth */
.supermarket-table thead {
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--orange-primary) 100%);
  color: var(--white);
  position: relative;
}

.supermarket-table thead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal-light), var(--orange-light));
}

/* Header Cells with Icon Support */
.supermarket-table th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.85rem;
  padding: 18px 16px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.3;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.supermarket-table th:last-child {
  border-right: none;
}

.supermarket-table th:hover {
  transform: translateY(-1px);
}

.supermarket-table th::before {
  margin-right: 8px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Table Cells with Enhanced Styling */
.supermarket-table td {
  padding: 16px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.4;
  border-bottom: 1px solid var(--gray-medium);
  transition: all 0.3s ease;
  position: relative;
}

/* Zebra Striping with Subtle Colors */
.supermarket-table tbody tr:nth-child(even) {
  background: linear-gradient(135deg, rgba(0, 128, 128, 0.03) 0%, rgba(255, 127, 80, 0.03) 100%);
}

.supermarket-table tbody tr:nth-child(odd) {
  background: var(--white);
}

/* Enhanced Hover Effect */
.supermarket-table tbody tr {
  transition: all 0.4s ease;
  position: relative;
}

.supermarket-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(0, 128, 128, 0.1) 0%, rgba(255, 127, 80, 0.1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 128, 128, 0.15);
  border-left: 4px solid var(--teal-primary);
  margin: 4px 0;
}

.supermarket-table tbody tr:hover td {
  border-color: transparent;
  color: var(--teal-dark);
  font-weight: 500;
}

/* First and Last Column Styling */
.supermarket-table td:first-child,
.supermarket-table th:first-child {
  padding-left: 20px;
  font-weight: 600;

}

.supermarket-table td:last-child,
.supermarket-table th:last-child {
  padding-right: 20px;
}

/* Special Cell Styling */
.supermarket-table td.highlight {
  background: linear-gradient(135deg, var(--teal-light), var(--orange-light));
  color: var(--white);
  font-weight: 700;
  position: relative;
}

.supermarket-table td.highlight::before {
  content: '⭐';
  margin-right: 6px;
}

/* Status Indicators */
.status-available {
  color: var(--teal-primary);
  font-weight: 600;
  background: rgba(0, 128, 128, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  font-size: 0.85rem;
}

.status-unavailable {
  color: var(--orange-primary);
  font-weight: 600;
  background: rgba(255, 127, 80, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  font-size: 0.85rem;
}

/* Price Styling */
.price-cell {
  font-weight: 700;
  color: var(--orange-dark);
  position: relative;
}

.price-cell::before {
  content: '₹';
  margin-right: 2px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Rating Stars */
.rating-stars {
  color: var(--orange-primary);
  font-weight: 600;
}

.rating-stars::before {
  content: '★★★★★';
  letter-spacing: 2px;
  font-size: 1.1rem;
}

/* Action Buttons in Table */
.table-action-btn {
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.table-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
  background: linear-gradient(135deg, var(--teal-dark), var(--orange-dark));
}

/* Table Footer */
.supermarket-table tfoot {
  background: linear-gradient(135deg, rgba(0, 128, 128, 0.05) 0%, rgba(255, 127, 80, 0.05) 100%);
  font-weight: 700;
}

.supermarket-table tfoot td {
  border-top: 2px solid var(--teal-primary);
  border-bottom: none;
  color: var(--teal-dark);
  font-size: 1rem;
}

/* Responsive Table Improvements */
@media (max-width: 768px) {
  .table-container {
    padding: 15px;
    margin-top: 20px;
  }

  .table-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .supermarket-table th,
  .supermarket-table td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  .supermarket-table th::before {
    display: none;
  }

  .supermarket-table td:first-child,
  .supermarket-table th:first-child {
    padding-left: 12px;
  }

  .supermarket-table td:last-child,
  .supermarket-table th:last-child {
    padding-right: 12px;
  }
}

/* Animation for table rows */
@keyframes tableRowEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.supermarket-table tbody tr {
  animation: tableRowEnter 0.5s ease-out;
}

.supermarket-table tbody tr:nth-child(1) {
  animation-delay: 0.1s;
}

.supermarket-table tbody tr:nth-child(2) {
  animation-delay: 0.2s;
}

.supermarket-table tbody tr:nth-child(3) {
  animation-delay: 0.3s;
}

.supermarket-table tbody tr:nth-child(4) {
  animation-delay: 0.4s;
}

.supermarket-table tbody tr:nth-child(5) {
  animation-delay: 0.5s;
}

/* Scrollbar Styling for Table Container */
.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, var(--teal-dark), var(--orange-dark));
}

/* ===== RESOURCE PAGE STYLES ===== */

/* Resource Section Base */
.resource-section {
  margin-bottom: 1.5rem;
  /* Reduced from 2rem */
  padding: 2rem;
  /* Reduced from 2.5rem */
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border-left: 2px solid var(--teal-primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.resource-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.resource-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.resource-section:hover::before {
  transform: scaleX(1);
}

/* Resource Header */
.resource-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
  /* Reduced from 1.5rem */
  padding-bottom: 0.8rem;
  /* Reduced from 1rem */
  border-bottom: 2px solid var(--gray-medium);
}

.resource-header i {
  font-size: 2.2rem;
  color: var(--teal-primary);
  margin-right: 1.2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-bg);
  border-radius: 50%;
  transition: var(--transition);
}

.resource-header:hover i {
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  color: var(--white);
  transform: rotate(5deg) scale(1.1);
}

.resource-header h2 {
  color: var(--teal-dark);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  line-height: 1.3;
  /* Added consistent line height */
}

.resource-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  /* Reduced from -8px */
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  border-radius: 2px;
}

/* Resource Content */
.resource-content h3 {
  color: var(--teal-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  /* Reduced from 1.2rem */
  font-weight: 600;
  line-height: 1.3;
  /* Added consistent line height */
}

.resource-content h4 {
  color: var(--teal-dark);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem 0;
  /* Reduced from 1.8rem 0 1rem 0 */
  font-weight: 600;
  position: relative;
  padding-left: 15px;
  line-height: 1.3;
  /* Added consistent line height */
}

.resource-content h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  
  border-radius: 50%;
}

.resource-content p {
  color: var(--gray-dark);
  margin-bottom: 1rem;
  /* Reduced from 1.2rem */
  line-height: 1.4;
  /* Reduced from 1.6 */
  font-size: 1rem;
}

.resource-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  /* Reduced from 2rem */
}

.resource-content li {
  padding: 0.6rem 0 0.6rem 2rem;
  /* Reduced from 0.8rem 0 0.8rem 2.5rem */
  position: relative;
  color: var(--gray-dark);
  line-height: 1.4;
  /* Reduced from 1.6 */
  transition: var(--transition);
  border-radius: 8px;
}

.resource-content li:hover {
  background: var(--cream-bg);
  padding-left: 2.2rem;
}

.resource-content li::before {
  content: '✓';
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal-primary);
  font-weight: bold;
  font-size: 1.1rem;
  transition: var(--transition);
}

.resource-content li:hover::before {
  color: var(--orange-primary);
  transform: translateY(-50%) scale(1.2);
}

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  /* Reduced from 1.5rem */
  margin-top: 1.5rem;
  /* Reduced from 2rem */
}

.resource-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 1.5rem;
  /* Reduced from 2rem */
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.resource-card:hover::before {
  left: 100%;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.resource-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.2rem;
  /* Reduced from 1.5rem */
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition);
}

.resource-card:hover .resource-icon {
  transform: rotate(10deg) scale(1.1);
}

.resource-card h4 {
  color: var(--teal-dark);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  /* Reduced from 1rem */
  font-weight: 600;
  line-height: 1.3;
  /* Added consistent line height */
}

.resource-card p {
  color: var(--gray-dark);
  margin-bottom: 1.2rem;
  /* Reduced from 1.5rem */
  font-size: 0.95rem;
  line-height: 1.4;
  /* Reduced from 1.5 */
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  line-height: 1.3;
  /* Added consistent line height */
}

.resource-link:hover {
  color: var(--orange-primary);
  gap: 0.8rem;
}

.resource-link i {
  transition: var(--transition);
}

.resource-link:hover i {
  transform: translateX(3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

@keyframes headerZoom {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }

  .page-header p {
    font-size: 1.1rem;
  }

  .business-grid,
  .directory-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    /* Reduced from 25px */
  }

  .business-card[itemtype] {
    flex-direction: column;
  }

  .card-image {
    flex: 0 0 200px;
  }

  .section-title {
    font-size: 2rem;
  }

  .sub-header h1 {
    font-size: 2rem;
  }

  .sub-header p {
    font-size: 1rem;
  }

  .directory-nav ul {
    flex-direction: wrap;
    gap: 0.1rem;
  }

  .directory-nav a {
    padding: 0.5rem 0.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .resource-section {
    padding: 1.5rem;
    /* Reduced from 2rem */
  }

  .resource-header {
    flex-direction: column;
    text-align: center;
  }

  .resource-header i {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .business-cards-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    /* Reduced from 1.2rem */
  }

  .card-content {
    padding: 1rem;
    /* Reduced from 1.2rem */
  }

  .category-title {
    font-size: 1.8rem;
  }

  .category-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    height: 60vh;
    min-height: 300px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .business-content,
  .card-content {
    padding: 15px;
    /* Reduced from 20px */
  }

  .section-title {
    font-size: 1.8rem;
  }

  .sub-header {
    padding: 1rem;
    /* Reduced from 1.5rem 1rem */
  }

  .sub-header h1 {
    font-size: 1.8rem;
  }

  .sub-header p {
    font-size: 0.9rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--teal-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --teal-primary: #000080;
    --teal-dark: #000040;
    --orange-primary: #ff4500;
    --orange-dark: #cc3700;
  }
}

/* ===== PRINT STYLES ===== */
@media print {

  .directory-nav,
  .scroll-indicator,
  .directions-btn {
    display: none;
  }

  .business-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }

  body {
    background: white;
    color: black;
  }
}

/* ===== SPECIFIC SECTION SPACING OPTIMIZATIONS ===== */

/* For sections with only 2 cards - reduce spacing further */
.business-section:has(.business-grid:only-child),
.business-section:has(.directory-grid:only-child),
.business-section:has(.business-cards-container:only-child) {
  padding: 25px 0;
  /* Reduced from 40px 0 */
}

.business-section:has(.business-grid:only-child) .section-title,
.business-section:has(.directory-grid:only-child) .section-title,
.business-section:has(.business-cards-container:only-child) .section-title {
  margin-bottom: 20px;
  /* Reduced from 30px */
}

/* For sections with exactly 2 cards in grid */
.business-grid:has(.business-card:nth-child(2):last-child),
.directory-grid:has(.business-card:nth-child(2):last-child),
.business-cards-container:has(.business-card:nth-child(2):last-child) {
  gap: 20px;
  /* Reduced from 25px */
  margin-bottom: 20px;
  /* Reduced from 30px */
}

/* Compact layout for 2-card sections */
.compact-section .business-card {
  margin-bottom: 15px;
  /* Reduced from 20px */
}

.compact-section .business-content {
  padding: 15px;
  /* Reduced from 20px */
}

.compact-section .card-content {
  padding: 15px;
  /* Reduced from 20px */
}

/* Ensure consistent font family across all elements */
* {
  font-family: inherit;
}

/* Force font consistency */
body,
body *:not(.fa):not(.fas):not(.far):not(.fab):not([class*="icon"]) {
  font-family: 'Poppins', sans-serif !important;
}

body.kannada *:not(.fa):not(.fas):not(.far):not(.fab):not([class*="icon"]) {
  font-family: 'Noto Sans Kannada', 'Poppins', sans-serif !important;
}

.directory-section {
  display: none;
}

.directory-section.active {
  display: block;
}

/* Optional: active nav link highlight */
.directory-nav a.active {
  background: var(--teal-primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  transition: 0.3s ease;
}

/* ---------------- ROOT COLORS ---------------- */
:root {
  --teal-primary: #008080;
  --teal-dark: #004d4d;
  --teal-light: #00cccc;
  --orange-primary: #ff7f50;
  --orange-dark: #e65c35;
  --orange-light: #ff9a75;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-medium: #e2e8f0;
  --gray-dark: #2c3e50;
  --cream-bg: #fff8dc;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s ease;
}

/* ---------------- GLOBAL ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream-bg);
  color: var(--gray-dark);
  line-height: 1.7;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Smooth scroll bar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--teal-primary), var(--orange-primary));
  border-radius: 6px;
}

::-webkit-scrollbar-track {
  background: #ddd;
}

/* ---------------- HEADER ---------------- */
header {
  text-align: center;
  padding: 2rem 5rem;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--orange-dark) 100%);
  color: white;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.lead {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.note {
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------------- CONTROLS ---------------- */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  padding: 20px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  align-items: center;
}

#search {
  flex: 1;
  min-width: 250px;
  padding: 12px 20px;
  border: 2px solid var(--gray-medium);
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
}

#search:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.2);
}

#filterCat,
#sort {
  padding: 12px 20px;
  border: 2px solid var(--gray-medium);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

#filterCat:focus,
#sort:focus {
  outline: none;
  border-color: var(--teal-primary);
}

#clear {
  padding: 12px 25px;
  background: var(--orange-primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

#clear:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
}

/* ---------------- CATEGORY HEADERS ---------------- */
.category-head {
  margin: 50px 0 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--teal-primary);
}

.category-head h2 {
  font-size: 2rem;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.category-head small {
  font-size: 1rem;
  color: var(--gray-dark);
  opacity: 0.8;
}

/* ---------------- GRID & CARDS ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  color: var(--white);
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 15px;
}

.meta {
  flex: 1;
}

.meta h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.cat {
  font-size: 0.9rem;
  opacity: 0.9;
}

.card-body {
  padding: 20px;
  flex: 1;
}

.desc {
  margin-bottom: 20px;
  color: var(--gray-dark);
}

.info {
  margin-bottom: 20px;
}

.info div {
  margin-bottom: 8px;
  display: flex;
}

.info strong {
  min-width: 80px;
  color: var(--teal-dark);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: var(--gray-light);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--teal-dark);
  font-weight: 500;
}

.card-footer {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.btn {
  flex: 1;
  padding: 10px 15px;
  text-align: center;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn.primary {
  background: var(--teal-primary);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--teal-dark);
}

.btn.secondary {
  background: var(--gray-light);
  color: var(--teal-dark);
}

.btn.secondary:hover {
  background: var(--gray-medium);
}

/* ---------------- ANIMATIONS ---------------- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  header h1 {
    font-size: 2.4rem;
  }

  .category-head h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  #search,
  #filterCat,
  #sort,
  #clear {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .wrap {
    padding: 0 15px;
  }

  header {
    padding: 30px 0;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .category-head h2 {
    font-size: 1.6rem;
  }

  .card-header {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
