/* Shakarganj Modernized Gateway Stylesheet */
:root {
  /* Exact Matching Typography */
  --font-serif: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', 'Palatino', 'Georgia', serif;
  --font-heading-alt: 'Cinzel', serif;
  --font-sans: 'Inter', sans-serif;

  /* Classic Theme Colors matching original screenshot */
  --header-bg: #004D18;
  --header-text: #E5C365;
  --header-info-text: #FFFFFF;
  --header-icon: #E5C365;

  --body-bg: #E4E8E5;
  --card-circle-bg: #FFFFFF;
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 40px rgba(0, 77, 24, 0.18), 0 0 30px rgba(0, 77, 24, 0.12);

  --label-color: #004D18;
  --hint-color: #55705E;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--body-bg);
  color: var(--label-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Top Dark Green Header Bar */
.top-header-bar {
  background-color: var(--header-bg);
  padding: 18px 0;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header-title {
  font-family: var(--font-serif);
  color: var(--header-text);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.header-info-group {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  color: var(--header-info-text);
}

.info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.info-item i {
  color: var(--header-icon);
  font-size: 1.1rem;
}

.info-item a {
  color: var(--header-info-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-item a:hover {
  color: var(--header-icon);
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.portals-container {
  max-width: 1200px;
  width: 100%;
}

.portals-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: flex-start;
  justify-items: center;
}

/* Individual Entity Card */
.entity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 100%;
  max-width: 240px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.entity-card:hover {
  transform: translateY(-10px);
}

/* Circular Logo Badge */
.circle-badge-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 24px;
}

.badge-ring-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease;
  filter: blur(8px);
}

.glow-green {
  background: conic-gradient(from 0deg, rgba(0, 77, 24, 0.4), rgba(52, 211, 153, 0.4), rgba(0, 77, 24, 0.4));
}

.glow-red {
  background: conic-gradient(from 0deg, rgba(229, 25, 28, 0.4), rgba(245, 158, 11, 0.4), rgba(229, 25, 28, 0.4));
}

.glow-slate {
  background: conic-gradient(from 0deg, rgba(58, 71, 80, 0.4), rgba(148, 163, 184, 0.4), rgba(58, 71, 80, 0.4));
}

.glow-multi {
  background: conic-gradient(from 0deg, #E5191C, #F59E0B, #006827, #E5191C);
}

.entity-card:hover .badge-ring-glow {
  opacity: 1;
}

.circle-badge {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: var(--card-circle-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  transition: all 0.35s ease;
  padding: 16px;
  overflow: hidden;
}

.entity-card:hover .circle-badge {
  box-shadow: var(--card-shadow-hover);
  background-color: #FFFFFF;
}

/* Individual Image Fitting */
.logo-img {
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.logo-img-sml {
  max-width: 110px;
  max-height: 125px;
}

.logo-img-food {
  max-width: 145px;
  max-height: 85px;
}

.logo-img-ssri {
  max-width: 140px;
  max-height: 80px;
}

.logo-img-sf {
  max-width: 110px;
  max-height: 125px;
}

.entity-card:hover .logo-img {
  transform: scale(1.08);
}

/* Entity Typography - Exact Serif Match */
.entity-label {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--label-color);
  text-align: center;
  margin-bottom: 6px;
  transition: color 0.25s ease;
}

.entity-link-hint {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hint-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.75;
  transition: all 0.25s ease;
}

.entity-card:hover .entity-link-hint {
  opacity: 1;
  transform: translateY(2px);
}

/* Responsive Scaling */
@media (max-width: 1024px) {
  .portals-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }
}

@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .header-info-group {
    flex-direction: column;
    gap: 10px;
  }

  .portals-row {
    grid-template-columns: 1fr;
  }

  .circle-badge-wrapper {
    width: 160px;
    height: 160px;
  }
}
