/* ======================================================
  SOCIAL PAGE – ELITE GLOBAL VERSION
  Fully Scoped – Premium – Global Device Optimized
  Author: Amit Ku Yadav
====================================================== */

/* ================= HERO ================= */

.page-social .social-hero {
  padding: 200px 8% 160px 8%;
  max-width: 950px;
  position: relative;
}

.page-social .social-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 800;
  margin-bottom: 28px;
}

.page-social .social-tagline {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 650px;
  opacity: 0.85;
  margin-bottom: 40px;
}

.page-social .social-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(4,106,56,0.2), transparent 70%);
  z-index: -1;
}

/* ================= HERO BUTTONS ================= */

.page-social .hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.page-social .hero-btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.3s ease;
}

.page-social .hero-btn.primary {
  background: var(--brand-green);
  color: #fff;
}

.page-social .hero-btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(4,106,56,0.35);
}

.page-social .hero-btn.secondary {
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
}

.page-social .hero-btn.secondary:hover {
  background: var(--brand-green);
  color: #fff;
}

/* ================= CONTENT ================= */

.page-social .social-content {
  padding: 0 8% 140px 8%;
}

.page-social section {
  margin-bottom: 120px;
}

.page-social section h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
}

/* ================= GLASS ================= */

.page-social .social-overview.glass,
.page-social .social-note.glass {
  padding: 60px;
  border-radius: 28px;
}

.page-social .social-overview p,
.page-social .social-note p {
  max-width: 720px;
  line-height: 1.8;
}

/* ================= PLATFORM CARDS ================= */

.page-social .life-card {
  padding: 45px;
  border-radius: 26px;
  transition: 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--card-text);
  box-shadow: var(--card-shadow);
}

.page-social .life-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

.page-social .life-action {
  margin-top: auto;
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* ================= SOCIAL POSTS ================= */

.page-social .social-posts {
  margin-top: 120px;
}

.page-social .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* CARD BASE */

.page-social .post-card {
  border-radius: 22px;
  overflow: hidden;
  transition: 0.35s ease;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--card-text);
  box-shadow: var(--card-shadow);
}

.page-social .post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* HEADER */

.page-social .post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-social .post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.page-social .post-header span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ================= IMAGE SYSTEM (GLOBAL FIX) ================= */

.page-social .post-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Universal image behavior */

.page-social .post-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  max-height: 100%;
}

/* Platform specific ratios */

.page-social .youtube-post .post-image {
  aspect-ratio: 16 / 9;
}

.page-social .instagram-post .post-image {
  aspect-ratio: 1 / 1;
}

.page-social .facebook-post .post-image {
  aspect-ratio: 4 / 3;
}

/* Ultra-wide protection */

@media (min-width: 1600px) {
  .page-social .post-image {
    max-height: 650px;
  }
}

/* Small mobile optimization */

@media (max-width: 480px) {
  .page-social .post-image {
    max-height: 420px;
  }
}

/* ================= ACTIONS ================= */

.page-social .post-actions {
  padding: 12px 18px;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* CAPTION */

.page-social .post-caption {
  padding: 14px 18px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= YOUTUBE PLAY ================= */

.page-social .youtube-thumb {
  position: relative;
}

.page-social .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 50px;
  background: #ff0000;
  border-radius: 12px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.page-social .yt-play::before {
  content: "";
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.page-social .youtube-post:hover .yt-play {
  transform: translate(-50%, -50%) scale(1.1);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .page-social .social-hero {
    padding: 140px 6% 100px 6%;
  }

  .page-social .social-content {
    padding: 0 6% 100px 6%;
  }

  .page-social .post-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-social .post-card {
    border-radius: 18px;
  }

  .page-social .post-caption {
    font-size: 0.9rem;
  }

}
