/* ==========================================================================
   AMRUT KUMBH PARV – NASHIK TRIMBAKESHWAR SIMHASTHA 2027–2028
   OFFICIAL SOCIAL MEDIA & INFORMATION PORTAL
   Theme: Official Sacred Simhastha Palette | Saffron, Maroon, Gold & Deep Navy
   Fonts: Marcellus, Catamaran, Noto Sans Devanagari, Tiro Devanagari Marathi
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Official Amrut Kumbh Parv Brand Palette */
  --primary-saffron: #DA6310;
  --saffron-light: #FF7A1A;
  --saffron-subtle: #FFF4EB;
  --saffron-glow: rgba(218, 99, 16, 0.22);

  --sacred-maroon: #7E1817;
  --maroon-dark: #5A0E0D;
  --maroon-light: #A3201F;
  --maroon-subtle: #FDF2F1;
  --maroon-glow: rgba(126, 24, 23, 0.18);

  --godavari-blue: #31ABFA;
  --godavari-blue-subtle: #EFF8FF;
  
  --primary-navy: #0B1F3A;
  --navy-dark: #061324;
  --navy-light: #16365C;
  --navy-subtle: #F0F6FF;

  /* Social Media Original Brand Colors */
  --brand-instagram-grad: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --brand-twitter: #000000;
  --brand-facebook: #1877F2;
  --brand-linkedin: #0A66C2;

  /* Surfaces & Backgrounds */
  --bg-page: #FAF5EE;
  --bg-card: #FFFFFF;
  --bg-card-alt: #FCFAFA;
  --border-light: #E8EEF5;
  --border-card: #CBD5E1;
  --border-warm: #F2E4D4;

  /* Typography Colors */
  --text-dark: #0B1F3A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Official Typography */
  --font-display: 'Marcellus', 'DM Serif Display', Georgia, serif;
  --font-sans: 'Catamaran', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-devanagari: 'Noto Sans Devanagari', 'Tiro Devanagari Marathi', sans-serif;
  --font-spiritual: 'Rozha One', 'Yatra One', var(--font-devanagari);

  /* Shadows */
  --shadow-card: 0 24px 50px -12px rgba(11, 31, 58, 0.12), 0 10px 20px -4px rgba(218, 99, 16, 0.08);
  --shadow-sm: 0 2px 6px rgba(11, 31, 58, 0.04);
  --shadow-hover: 0 12px 28px -4px rgba(11, 31, 58, 0.12), 0 4px 10px rgba(218, 99, 16, 0.08);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 245, 230, 0.7) 0%, rgba(250, 245, 238, 0.94) 100%),
    url('images/backgroundimg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.6;
  padding: 2.5rem 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* --- Page Container --- */
.page-container {
  width: 100%;
  max-width: 1060px;
  margin: auto;
}

/* --- Institutional White Card --- */
.institutional-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: visible;
  position: relative;
  padding: 2.5rem 2.75rem 2.25rem;
  animation: cardEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
  backdrop-filter: blur(10px);
}

/* Top Accent Bar: Official Saffron, Sacred Gold & Deep Maroon */
.top-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(
    90deg,
    var(--primary-saffron) 0%,
    var(--saffron-light) 30%,
    #F39C12 50%,
    var(--sacred-maroon) 80%,
    var(--primary-navy) 100%
  );
}

/* ==========================================================================
   HEADER & PROMINENT FITTED LOGO
   ========================================================================== */
.college-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 520px;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth);
}

.logo-link:hover {
  transform: scale(1.025);
}

/* Main Top Emblem Logo */
.complete-college-logo {
  width: 100%;
  height: auto;
  max-height: 220px;
  max-width: 420px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(218, 99, 16, 0.15));
  transition: transform var(--transition-smooth);
}

.affiliation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: var(--font-devanagari);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  background-color: var(--saffron-subtle);
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(218, 99, 16, 0.22);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-saffron);
  box-shadow: 0 0 8px var(--primary-saffron);
  flex-shrink: 0;
}

/* ==========================================================================
   OFFICIAL PORTAL WEBSITE BUTTON
   ========================================================================== */
.website-section {
  margin-bottom: 2rem;
}

.official-website-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.65rem;
  background: linear-gradient(135deg, #E06714 0%, #C35109 45%, #7E1817 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid rgba(218, 99, 16, 0.3);
  box-shadow: 0 8px 22px rgba(218, 99, 16, 0.25);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.official-website-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFE5B4, #FFD166, #FFE5B4);
  opacity: 0.95;
}

.official-website-button:hover {
  background: linear-gradient(135deg, #EA721F 0%, #DA6310 45%, #8B1A19 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(218, 99, 16, 0.35);
  color: #FFFFFF;
}

.website-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.official-website-button:hover .website-btn-icon {
  background-color: #FFFFFF;
  color: var(--primary-saffron);
  transform: scale(1.1) rotate(15deg);
}

.website-btn-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.website-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.website-domain {
  font-size: 0.8125rem;
  color: #FFEADB;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.website-btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.16);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.official-website-button:hover .website-btn-arrow {
  background-color: #FFFFFF;
  color: var(--sacred-maroon);
  padding-right: 1.1rem;
}

/* ==========================================================================
   4 LOGOS & OFFICIAL SOCIAL CHANNELS SECTION (SHOWN IN 1 ROW)
   ========================================================================== */
.four-logos-section {
  background: #FFFFFF;
  border: 1px solid #EFE4D6;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem 1.5rem;
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.04), 0 1px 3px rgba(218, 99, 16, 0.05);
  position: relative;
  margin-bottom: 1.75rem;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 248, 238, 0.6) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* 4 Logos Columns Grid (Strictly 1 Row on Desktop) */
.four-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 2rem;
}

/* Individual Logo Column */
.logo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.85rem 1rem;
  position: relative;
  transition: transform var(--transition-fast);
}

/* Subtle Vertical Divider between Columns */
.logo-column:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 8%;
  right: 0;
  bottom: 6%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(226, 232, 240, 0.8) 15%,
    rgba(218, 99, 16, 0.25) 50%,
    rgba(226, 232, 240, 0.8) 85%,
    transparent 100%
  );
}

/* Emblem Graphic at Top of Each Column */
.logo-emblem-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 105px;
  margin-bottom: 0.85rem;
}

.column-emblem {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(218, 99, 16, 0.16));
  transition: transform var(--transition-smooth);
}

.logo-column:hover .column-emblem {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(218, 99, 16, 0.24));
}

/* Column Header Information */
.column-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
  width: 100%;
}

.column-location {
  font-family: var(--font-devanagari);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2A1810;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

.column-title {
  font-family: 'Noto Serif Devanagari', 'Rozha One', 'Tiro Devanagari Marathi', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #7E1817;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0.15rem 0 0.35rem;
  white-space: nowrap;
}

.column-tagline {
  font-family: 'Tiro Devanagari Marathi', 'Noto Sans Devanagari', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4A3525;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.youth-tagline {
  font-family: 'Catamaran', 'Marcellus', sans-serif;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0F172A;
  text-transform: uppercase;
}

/* Vertical Stack of Social Media Handles */
.column-social-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  max-width: 200px;
}

.social-row-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  background-color: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-row-link:hover {
  background-color: #F8FAFC;
  border-color: #E2E8F0;
  transform: translateX(3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Individual Social Icon Badges Matching Original Image */
.social-mini-badge {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast);
}

.social-row-link:hover .social-mini-badge {
  transform: scale(1.1);
}

/* Instagram Gradient Badge */
.ig-badge {
  background: var(--brand-instagram-grad);
  box-shadow: 0 2px 6px rgba(225, 48, 108, 0.28);
}

/* Facebook Blue Badge */
.fb-badge {
  background-color: var(--brand-facebook);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.28);
}

/* YouTube Red Badge */
.yt-badge {
  background-color: #FF0000;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.28);
}

/* LinkedIn Blue Badge */
.li-badge {
  background-color: var(--brand-linkedin);
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(10, 102, 194, 0.28);
}

/* X (Twitter) Black Badge */
.x-badge {
  background-color: #000000;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

/* Website Globe Blue Badge */
.web-badge {
  background-color: #0284C7;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
}

/* Social Handle Text */
.social-handle-text {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  line-height: 1.2;
}

.social-row-link:hover .social-handle-text {
  color: var(--primary-saffron);
}

/* ==========================================================================
   SHARED CHANNELS BAR (LINKEDIN, X, WEBSITE - SHOWN IN ORIGINAL IMAGE 2)
   ========================================================================== */
.shared-channels-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding: 1.25rem 1rem 0.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  margin-top: 0.5rem;
}

.shared-channel-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.shared-channel-item:hover {
  background-color: #FFFFFF;
  border-color: var(--primary-saffron);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 99, 16, 0.12);
}

.shared-channel-text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1;
}

.shared-channel-item:hover .shared-channel-text {
  color: var(--primary-saffron);
}

/* ==========================================================================
   PORTAL FOOTER & COPYRIGHT
   ========================================================================== */
.portal-footer {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.copyright-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   ENTRANCE ANIMATION
   ========================================================================== */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
/* Medium Devices / Tablets */
@media (max-width: 900px) {
  .institutional-card {
    padding: 2rem 1.5rem 1.75rem;
  }

  .four-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }

  /* Adjust divider lines for 2x2 grid */
  .logo-column:nth-child(1)::after,
  .logo-column:nth-child(3)::after {
    display: block;
  }

  .logo-column:nth-child(2)::after,
  .logo-column:nth-child(4)::after {
    display: none;
  }

  .shared-channels-bar {
    gap: 1rem;
  }
}

/* Small Devices / Phones */
@media (max-width: 580px) {
  body {
    padding: 1.25rem 0.5rem;
  }

  .institutional-card {
    padding: 1.5rem 1rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .complete-college-logo {
    max-height: 160px;
    max-width: 320px;
  }

  .affiliation-badge {
    font-size: 0.74rem;
    padding: 0.35rem 0.75rem;
  }

  .official-website-button {
    padding: 1rem 1.15rem;
    gap: 0.85rem;
  }

  .website-label {
    font-size: 1rem;
  }

  .website-btn-arrow span {
    display: none;
  }

  .website-btn-arrow {
    padding: 0.45rem;
  }

  .four-logos-section {
    padding: 1.5rem 0.75rem 1.25rem;
  }

  .four-logos-grid {
    grid-template-columns: 1fr;
    row-gap: 2.25rem;
  }

  .logo-column::after {
    display: none !important;
  }

  .column-title {
    font-size: 1.45rem;
  }

  .shared-channels-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-top: 1rem;
  }

  .shared-channel-item {
    justify-content: center;
  }
}
