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

.portfolio-hero {
  position: relative;
  width: 100%;
  overflow: hidden;

  padding: 16px 138px 10px;

  background:
    radial-gradient(circle at 38% 42%, rgb(198 221 244), transparent 30%),
    #f8f8f5;
}

/* CONTAINER */

.portfolio-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

/* =========================================
   TOP AREA
========================================= */

.portfolio-top {
  display: grid;
  grid-template-columns: 50% 50%;

  min-height: 175px;
  margin-top: 100px;
  margin-bottom: 40px;

  align-items: center;
}

/* =========================================
   HEADING
========================================= */

.portfolio-heading {
  padding-left: 22px;
}

.portfolio-label {
  display: block;

  margin-bottom: 1px;

  font-family: "Manrope", sans-serif;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 1.2px;

  color: #1e65ab;
}

.portfolio-heading h1 {
  margin: 0;

  font-family: "Manrope", sans-serif;

  font-size: clamp(42px, 4vw, 61px);

  line-height: 0.98;

  font-weight: 800;

  letter-spacing: -2px;

  color: #1c1e22;
}

.portfolio-heading h1 span {
  display: block;
}

.text-green {
  color: #1e65ab;
}

/* =========================================
   DESCRIPTION
========================================= */

.portfolio-description {
  padding-left: 80px;
  padding-top: 20px;
}

.portfolio-description p {
  margin: 0;

  font-family: "Manrope", sans-serif;

  font-size: 13px;

  line-height: 1.5;

  font-weight: 500;

  color: #35373a;
}

.explore-text {
  position: relative;

  display: inline-block;

  margin-top: 8px;

  padding-bottom: 4px;

  font-family: "Caveat", cursive;

  font-size: 23px;

  font-weight: 500;

  color: #202124;
}

.explore-text::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 1.5px;

  background: #1e65ab;
}

/* =========================================
   DOT PATTERN
========================================= */

.portfolio-dots {
  position: absolute;

  top: -20px;
  right: -25px;

  width: 260px;
  height: 260px;

  opacity: 0.5;

  background-image: radial-gradient(#7c8c2b 1.2px, transparent 1.2px);

  background-size: 8px 8px;

  transform: rotate(-12deg);

  -webkit-mask-image: linear-gradient(to left, #000, transparent);

  mask-image: linear-gradient(to left, #000, transparent);
}

/* =========================================
   SERVICE TABS
========================================= */

.service-tabs {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  width: 100%;

  min-height: 105px;

  border: 1px solid #d8d8d1;

  border-radius: 13px 13px 0 0;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.35);
}

/* =========================================
   SERVICE CARD
========================================= */

.service-card {
  position: relative;

  display: flex;

  align-items: center;

  gap: 17px;

  min-width: 0;

  padding: 18px 17px;

  border-right: 1px solid #d9d9d2;

  cursor: pointer;

  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.service-card:last-child {
  border-right: none;
}

/* =========================================
   ACTIVE CARD
========================================= */

.service-card.active {
  background: linear-gradient(135deg, #0c0d0d, #181919);
}

/* =========================================
   ICON
========================================= */

.service-icon {
  width: 54px;
  height: 54px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 19px;

  background: rgb(57 63 255 / 10%);

  color: #738221;

  transition: 0.3s ease;
}

.service-icon svg {
  width: 25px;
  height: 25px;

  stroke: rgb(255 255 255);

  stroke-width: 1.7;

  stroke-linecap: round;

  stroke-linejoin: round;
}

/* ACTIVE ICON */

.service-card.active .service-icon {
  color: #1e65ab;

  background: linear-gradient(135deg, #1e65ab, #1e65ab);

  box-shadow: 0 8px 22px rgba(23, 74, 228, 0.28);
}

/* =========================================
   SERVICE INFO
========================================= */

.service-info {
  flex: 1;
  min-width: 0;
}

.number {
  display: block;

  margin-bottom: 4px;

  font-size: 11px;

  color: #484a4e;
}

.service-card.active .number {
  color: #cfcfcf;
}

.service-info h3 {
  margin: 0 0 4px;

  font-family: "Manrope", sans-serif;

  font-size: 15px;

  font-weight: 800;

  letter-spacing: 0.2px;

  color: #24262a;

  white-space: nowrap;
}

.service-card.active h3 {
  color: #ffffff;
}

.service-info p {
  margin: 0;

  font-family: "Manrope", sans-serif;

  font-size: 11px;

  font-weight: 500;

  line-height: 1.45;

  color: #55575b;
}

.service-card.active p {
  color: #d4d4d4;
}

/* =========================================
   ARROW
========================================= */

.service-arrow {
  width: 27px;
  height: 27px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  border: 1px solid #1e65ab;

  background: transparent;

  color: #1e65ab;

  font-size: 17px;

  cursor: pointer;

  transition: all 0.3s ease;
}

.service-card.active .service-arrow {
  color: #1e65ab;
  border-color: #1e65ab;
}

/* HOVER */

.service-card:not(.active):hover {
  background: #ebf7ff;
}

.service-card:hover .service-arrow {
  background: #1e65ab;
  color: #ffffff;

  transform: translateX(3px);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {
  .portfolio-top {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-heading h1 {
    font-size: 48px;
  }

  .service-tabs {
    grid-template-columns: repeat(2, 1fr);

    border-radius: 12px;
  }

  .service-card:nth-child(2) {
    border-right: none;
  }

  .service-card:nth-child(-n + 2) {
    border-bottom: 1px solid #d9d9d2;
  }
}

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

@media (max-width: 700px) {
  .portfolio-hero {
    padding: 35px 15px 15px;
  }

  .portfolio-top {
    grid-template-columns: 1fr;

    min-height: auto;

    gap: 25px;

    padding-bottom: 25px;
  }

  .portfolio-heading {
    padding-left: 0;
  }

  .portfolio-description {
    padding: 0;
  }

  .portfolio-heading h1 {
    font-size: 46px;
  }

  .portfolio-description p br {
    display: none;
  }

  .portfolio-dots {
    width: 180px;
    height: 220px;

    opacity: 0.25;
  }

  .service-tabs {
    grid-template-columns: 1fr;

    border-radius: 12px;
  }

  .service-card {
    min-height: 95px;

    border-right: none !important;

    border-bottom: 1px solid #d9d9d2;
  }

  .service-card:last-child {
    border-bottom: none;
  }
}

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

@media (max-width: 430px) {
  .portfolio-heading h1 {
    font-size: 38px;
  }

  .service-info h3 {
    white-space: normal;
  }

  .service-icon {
    width: 48px;
    height: 48px;
  }

  .explore-text {
    font-size: 20px;
  }
}
/* =========================================
   SOCIAL MEDIA SECTION
========================================= */

.social-media-section {
  width: 100%;
  padding: 25px 38px 25px;
  background: #f8f8f5;
}

.social-media-container {
  width: 100%;
  max-width: 1450px;
  padding-left: 88px;
  padding-right: 88px;
  margin: 0 auto;
}

/* =========================================
   HEADER
========================================= */

.social-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 20px;
}

.social-heading {
  display: flex;
  align-items: center;
  gap: 14px;

  position: relative;
}

.social-heading::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 220px;
  height: 1px;

  background: #1e65ab;
}

.social-heading span {
  font-size: 20px;
  font-weight: 700;

  color: #1e65ab;
}

.social-heading h2 {
  margin: 0;

  font-size: 25px;
  font-weight: 800;

  color: #202124;
}

.social-header-right {
  display: flex;
  align-items: center;
  gap: 35px;
}

.social-header-right p {
  margin: 0;

  font-size: 14px;

  color: #33363a;
}

/* NAVIGATION */

.slider-nav {
  display: flex;
  gap: 12px;
}

.slider-nav button {
  width: 38px;
  height: 38px;

  border-radius: 50%;

  border: 1px solid #d8dacb;

  background: transparent;

  color: #1e65ab;

  font-size: 18px;

  cursor: pointer;

  transition: 0.3s ease;
}

.slider-nav button:hover {
  background: #1e65ab;
  color: #fff;
}

/* =========================================
   TABS WRAPPER
========================================= */

.social-tabs-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  row-gap: 12px;
  column-gap: 20px;
}

@media (max-width: 900px) {
  .social-tabs-wrapper {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   ROW
========================================= */

.social-row {
  display: contents;
}

/* =========================================
   CATEGORY CARD
========================================= */

.social-category-card {
  grid-column: 1;
  min-height: 135px;

  display: flex;
  align-items: center;

  gap: 15px;

  padding: 20px 15px;

  border: 1px solid #deded6;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.35);
  
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-row:not(.active) .social-category-card {
  border-radius: 14px;
}

.social-row.active .social-category-card {
  border-radius: 14px;
  background: linear-gradient(135deg, #0c0d0d, #181919);
  border-color: transparent;
}

.category-icon {
  width: 55px;
  height: 55px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: linear-gradient(135deg, #fcb03b, #fcb03b);

  color: #ffffff;

  font-size: 28px;
}

.category-content h3 {
  margin: 0 0 6px;

  font-size: 15px;

  font-weight: 800;

  color: #25272b;
  transition: color 0.3s ease;
}

.social-row.active .category-content h3 {
  color: #ffffff;
}

.category-content p {
  margin: 0 0 14px;

  font-size: 11px;

  line-height: 1.5;

  color: #55585d;
  transition: color 0.3s ease;
}

.social-row.active .category-content p {
  color: #d4d4d4;
}

.category-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  text-decoration: none;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.6px;

  color: #fe9d0c;
}

/* =========================================
   SLIDER
========================================= */

.social-slider {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;

  overflow: hidden;

  border-radius: 14px;
}

.social-row:not(.active) .social-slider {
  display: none;
}

@media (max-width: 900px) {
  .social-slider {
    grid-column: 1;
    grid-row: auto;
  }
}

.social-track {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

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

.social-post {
  position: relative;

  width: 150px;
  height: 135px;

  flex-shrink: 0;

  overflow: hidden;

  border-radius: 5px;

  background: #e8e6de;
}

.social-post img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.social-post:hover img {
  transform: scale(1.08);
}

/* OVERLAY */

.image-post::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 70%);

  pointer-events: none;
}

/* TEXT */

.post-text {
  position: absolute;

  z-index: 2;

  left: 14px;
  top: 18px;

  font-size: 14px;

  line-height: 1.45;

  font-weight: 600;

  color: #24262a;
}

.post-text.light {
  color: #ffffff;
}

/* TEXT ONLY POST */

.text-post {
  display: flex;
  align-items: center;

  padding: 20px;

  background: linear-gradient(135deg, #f4f1e8, #ddd8ca);
}

.text-post span {
  font-size: 16px;

  line-height: 1.55;

  font-weight: 500;

  color: #24262a;
}

/* =========================================
   EXPLORE BUTTON
========================================= */

.social-explore-btn {
  display: flex;
  justify-content: center;

  margin-top: 14px;
}

.social-explore-btn a {
  display: inline-flex;

  align-items: center;

  gap: 15px;

  padding: 13px 25px;

  border-radius: 30px;

  text-decoration: none;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.5px;

  color: #ffffff;

  background: linear-gradient(90deg, #1e65ab, #1e65ab);

  box-shadow: 0 10px 25px rgba(100, 115, 25, 0.15);

  transition: 0.3s ease;
}

.social-explore-btn a:hover {
  transform: translateY(-3px);

  box-shadow: 0 15px 30px rgba(100, 115, 25, 0.25);
}

/* =========================================
   PAID CAMPAIGNS SECTION
========================================= */

.featured-campaigns {
  width: 100%;
  padding: 70px 0;
  background:
    radial-gradient(
      circle at 45% 30%,
      rgba(210, 225, 242, 0.8),
      transparent 50%
    ),
    #f5f6f7;
  overflow: hidden;
}

.campaign-wrapper {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 55px;

  display: grid;
  grid-template-columns: 340px 1fr 55px;
  gap: 40px;
  align-items: center;
}

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

.campaign-intro {
  padding-bottom: 10px;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #3d6794;
  margin-bottom: 14px;
}

.campaign-intro h2 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #243247;
  margin-bottom: 20px;
}

.campaign-intro h2 span {
  display: block;
  color: #376aa2;
}

.campaign-intro p {
  font-size: 14px;
  line-height: 1.75;
  color: #617084;
  margin-bottom: 22px;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;

  padding: 14px 25px;
  border-radius: 30px;

  background: linear-gradient(135deg, #3975b7, #1e5e9f);

  color: #ffffff;
  text-decoration: none;

  font-size: 13px;
  font-weight: 600;

  box-shadow: 0 8px 18px rgba(38, 100, 160, 0.2);

  transition: all 0.3s ease;
}

.explore-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 12px 25px rgba(38, 100, 160, 0.3);
}

.explore-btn span {
  font-size: 18px;
}

/* =========================================
   CAMPAIGN SLIDER
========================================= */

.campaign-slider {
  width: 100%;
  overflow: hidden;
}

.campaign-track {
  display: flex;
  gap: 20px;

  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================
   CAMPAIGN CARD
========================================= */

.campaign-card {
  min-width: 315px;
  max-width: 315px;

  background: rgba(255, 255, 255, 0.82);

  border-radius: 16px;

  overflow: hidden;

  border: 1px solid rgba(210, 220, 230, 0.7);

  box-shadow: 0 15px 35px rgba(45, 75, 105, 0.08);

  transition: all 0.35s ease;
}

.campaign-card:hover {
  transform: translateY(-7px);

  box-shadow: 0 20px 45px rgba(45, 75, 105, 0.15);
}

/* =========================================
   CARD IMAGE
========================================= */

.campaign-image {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.campaign-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  display: block;

  transition: transform 0.6s ease;
}

.campaign-card:hover .campaign-image img {
  transform: scale(1.07);
}

/* IMAGE OVERLAY */

.image-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(12, 40, 32, 0.82),
    rgba(0, 0, 0, 0.08)
  );
}

.purple-overlay {
  background: linear-gradient(
    90deg,
    rgba(37, 22, 70, 0.85),
    rgba(37, 22, 70, 0.08)
  );
}

/* =========================================
   PLATFORM BADGE
========================================= */

.platform-badge {
  position: absolute;

  top: 12px;
  left: 13px;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 7px 14px;

  border-radius: 20px;

  background: rgb(252 176 59);

  backdrop-filter: blur(10px);

  font-size: 10px;
  font-weight: 600;

  color: #ffffff;

  z-index: 2;
}

.meta-icon {
  font-size: 22px;
  line-height: 10px;

  color: #2563b9;
}

.google-icon {
  font-size: 14px;
  color: #4285f4;
}

/* =========================================
   IMAGE TEXT
========================================= */

.image-title {
  position: absolute;

  left: 17px;
  bottom: 14px;

  color: #ffffff;

  z-index: 2;
}

.image-title h3 {
  font-size: 16px;
  line-height: 1.08;

  font-weight: 600;
  color: #ffffff;

  margin-bottom: 7px;

  letter-spacing: -0.4px;
}

.image-title span {
  font-size: 8px;

  font-weight: 700;

  letter-spacing: 1px;

  opacity: 0.9;
}

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

.card-content {
  padding: 12px 16px 16px;
}

.card-content h4 {
  font-size: 13px;
  font-weight: 700;

  color: #35455a;

  margin-bottom: 7px;
}

.card-content p {
  min-height: 48px;

  font-size: 11px;
  line-height: 1.45;

  color: #657487;
}

/* =========================================
   CAMPAIGN STATS
========================================= */

.campaign-stats {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  margin-top: 14px;
}

.stat {
  text-align: center;

  padding: 0 7px;

  border-right: 1px solid #d7dfe7;
}

.stat:last-child {
  border-right: none;
}

.stat strong {
  display: block;

  color: #2e5f95;

  font-size: 17px;
  font-weight: 700;

  margin-bottom: 5px;
}

.stat span {
  display: block;

  color: #6f7d8d;

  font-size: 9px;

  white-space: nowrap;
}

/* =========================================
   SLIDER NAVIGATION
========================================= */

.slider-navigation {
  display: flex;
  flex-direction: column;

  gap: 12px;

  align-items: center;
}

.nav-btn {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  border: 1px solid #cdd8e2;

  background: rgba(255, 255, 255, 0.65);

  color: #315b85;

  font-size: 18px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;

  box-shadow: 0 5px 15px rgba(50, 80, 110, 0.05);
}

.nav-btn:hover {
  background: #2f69a3;
  color: #ffffff;

  transform: scale(1.08);
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1200px) {
  .campaign-wrapper {
    grid-template-columns: 290px 1fr;
    padding: 0 35px;
  }

  .slider-navigation {
    grid-column: 1 / -1;

    flex-direction: row;

    justify-content: center;
  }

  .campaign-intro h2 {
    font-size: 34px;
  }
}

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

@media (max-width: 768px) {
  .featured-campaigns {
    padding: 50px 0;
  }

  .campaign-wrapper {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    padding: 0 18px;

    gap: 28px;
  }

  .campaign-intro {
    text-align: center;
  }

  .campaign-intro h2 {
    font-size: 34px;
  }

  .campaign-intro p {
    font-size: 13px;
  }

  .campaign-slider {
    width: 100%;
  }

  .campaign-card {
    min-width: 290px;
    max-width: 290px;
  }

  .slider-navigation {
    flex-direction: row;
    justify-content: center;
  }
}

/* Generic case study content panels */
.case-study-content {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.36s ease,
    transform 0.36s ease,
    visibility 0.36s;
}

.case-study-content.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ensure featured-campaigns spacing works for added sections */
.featured-campaigns {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Minor adjustments for campaign cards in SEO/Web sections */
.campaign-card {
  min-width: 300px;
  max-width: 320px;
}
.social-post {
  position: relative;
  overflow: hidden;
}

.social-post .youtube-short {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 100%;
  height: 177.78%;

  transform: translate(-50%, -50%);

  border: none;
  pointer-events: none;
}

.social-post .post-text {
  position: relative;
  z-index: 2;
}
.reel-post::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 60%);
  z-index: 1;
}

/* =========================================
   CUSTOM PLAY/PAUSE BUTTON
========================================= */
.custom-play-pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
  transition: all 0.3s ease;
}

.custom-play-pause-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(1.05);
}
