/* ==========================================================================
   SINGLE PORTFOLIO PAGE STYLES (single-portfolio.php)
   ========================================================================== */

.single-portfolio {
  background: #fff;
}

/* Common Section Styles */
.section-heading {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 30px 0;
  line-height: 1.3;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.portfolio-hero {
  padding: 80px 0 60px;
  background: #fff;
  text-align: center;
}

.portfolio-hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 60px 0;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-hero-image {
  margin: 0 auto;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero Buttons */
.portfolio-hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.portfolio-hero-buttons .btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portfolio-hero-buttons .btn-primary {
  background: #1a1f36;
  color: #fff;
  border: 2px solid #1a1f36;
}

.portfolio-hero-buttons .btn-primary:hover {
  background: #0f1320;
  border-color: #0f1320;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 31, 54, 0.3);
}

.portfolio-hero-buttons .btn-secondary {
  background: #fff;
  color: #1a1a1a;
  border: 2px solid #e5e5e5;
}

.portfolio-hero-buttons .btn-secondary:hover {
  background: #f8f9fa;
  border-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Two-Column Hero Layout */
.portfolio-hero--two-column {
  text-align: center;
}

.portfolio-hero--two-column .portfolio-hero-title {
  margin-bottom: 50px;
}

.portfolio-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-hero-image-col .portfolio-hero-image {
  margin: 0;
  max-width: 100%;
}

.portfolio-hero-content-col {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 10px;
}

.portfolio-hero-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.portfolio-hero-description {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.portfolio-hero-description p {
  margin-bottom: 16px;
}

.portfolio-hero-description p:last-child {
  margin-bottom: 0;
}

.portfolio-hero--two-column .portfolio-hero-buttons {
  justify-content: center;
  margin-top: 50px;
}

/* Two-Column Hero Responsive */
@media (max-width: 900px) {
  .portfolio-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portfolio-hero-content-col {
    text-align: center;
    padding-top: 0;
  }

  .portfolio-hero--two-column .portfolio-hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .portfolio-hero-grid {
    gap: 30px;
  }

  .portfolio-hero-subtitle {
    font-size: 18px;
  }

  .portfolio-hero-description {
    font-size: 14px;
  }
}

/* ==========================================================================
   Overview Section
   ========================================================================== */
.portfolio-overview {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.overview-content {
  max-width: 900px;
  margin: 0 auto;
}

.overview-text {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 50px;
}

.overview-text p {
  margin-bottom: 20px;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 25px 30px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.meta-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.meta-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: capitalize;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.portfolio-process {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.process-intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.process-intro-text p {
  margin-bottom: 20px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  padding: 30px 40px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.process-step:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.step-description {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* ==========================================================================
   Looker Studio Embeds Section
   ========================================================================== */
.portfolio-looker-reports {
  padding: 80px 0;
  background: #fff;
}

.portfolio-looker-reports .section-heading {
  text-align: center;
}

.looker-intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.looker-intro-text p {
  margin-bottom: 20px;
}

.looker-report-section {
  margin-bottom: 80px;
}

.looker-report-section:last-child {
  margin-bottom: 0;
}

.looker-embed-container {
  position: relative;
  width: 100%;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.looker-embed-container iframe {
  width: 100% !important;
  min-height: 600px;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.portfolio-faq {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.portfolio-faq .section-heading {
  text-align: center;
}

.faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: #f8f9fa;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-toggle {
  font-size: 24px;
  font-weight: 300;
  color: #1c2444;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px 25px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 15px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Portfolio Navigation (Previous/Next)
   ========================================================================== */
.portfolio-navigation {
  padding: 60px 0;
  background: #fff;
}

.portfolio-nav-links {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 425px;
  margin: 0 auto;
}

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  flex: 0 1 auto;
  min-width: 180px;
}

.nav-link.prev-project {
  align-items: flex-start;
}

.nav-link.next-project {
  align-items: flex-end;
  margin-left: auto;
}

.nav-link:hover {
  background: #f8f9fa;
  border-color: #003d5c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.nav-arrow {
  font-size: 16px;
  color: #003d5c;
  line-height: 1;
}

.nav-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nav-title {
  font-size: 13px;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.portfolio-cta {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.cta-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 50px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cta-heading {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.cta-subheading {
  font-size: 16px;
  font-weight: 400;
  color: #999;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.cta-text {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin: 0 0 30px 0;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
  .portfolio-hero-title {
    font-size: 48px;
  }

  .section-heading {
    font-size: 28px;
  }

  .cta-heading {
    font-size: 36px;
  }

  .portfolio-slider-wrapper {
    padding: 0 50px;
  }

  .portfolio-nav {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 60px 0 40px;
  }

  .portfolio-hero-title {
    font-size: 38px;
    margin-bottom: 40px;
  }

  .portfolio-hero-buttons {
    gap: 12px;
    margin-top: 30px;
  }

  .portfolio-hero-buttons .btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .portfolio-overview,
  .portfolio-process,
  .portfolio-looker-reports,
  .portfolio-section,
  .portfolio-faq,
  .portfolio-navigation {
    padding: 60px 0;
  }

  .looker-embed-container iframe {
    min-height: 500px;
  }

  .looker-report-section {
    margin-bottom: 60px;
  }

  .portfolio-cta {
    padding: 60px 0;
  }

  .cta-content {
    padding: 50px 40px;
  }

  .section-heading {
    font-size: 26px;
  }

  .cta-heading {
    font-size: 28px;
  }

  .cta-subheading {
    font-size: 15px;
  }

  .cta-text {
    font-size: 15px;
  }

  .project-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .meta-item {
    padding: 20px 25px;
  }

  .process-step {
    padding: 25px 30px;
  }

  .step-title {
    font-size: 18px;
  }

  .portfolio-slider-wrapper {
    padding: 0 40px;
  }

  .portfolio-slide {
    gap: 15px;
    flex-direction: column;
  }

  .portfolio-item {
    width: 100%;
  }

  .portfolio-prev,
  .portfolio-next {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .portfolio-nav {
    top: 35%;
  }
}

@media (max-width: 640px) {
  .portfolio-hero-title {
    font-size: 32px;
  }

  .section-heading {
    font-size: 24px;
  }

  .cta-heading {
    font-size: 26px;
  }

  .cta-content {
    padding: 45px 30px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-slide {
    flex-direction: column;
  }

  .portfolio-slider-wrapper {
    padding: 0 30px;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    padding: 40px 0 30px;
  }

  .portfolio-hero-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .portfolio-hero-image {
    border-radius: 8px;
  }

  .portfolio-hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
  }

  .portfolio-hero-buttons .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .portfolio-overview,
  .portfolio-process,
  .portfolio-looker-reports,
  .portfolio-section,
  .portfolio-faq,
  .portfolio-navigation {
    padding: 40px 0;
  }

  .looker-embed-container {
    border-radius: 6px;
  }

  .looker-embed-container iframe {
    min-height: 400px;
  }

  .looker-report-section {
    margin-bottom: 50px;
  }

  .looker-report-section:last-child {
    margin-bottom: 0;
  }

  .portfolio-cta {
    padding: 40px 0;
  }

  .cta-content {
    padding: 40px 20px;
    border-radius: 8px;
  }

  .section-heading {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .cta-heading {
    font-size: 22px;
  }

  .cta-subheading {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .cta-text {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .overview-text,
  .looker-intro-text,
  .process-intro-text {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .meta-item {
    padding: 16px 18px;
  }

  .meta-label {
    font-size: 13px;
  }

  .meta-value {
    font-size: 14px;
  }

  .process-step {
    padding: 20px;
    border-radius: 8px;
  }

  .step-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .step-description {
    font-size: 14px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 14px;
  }

  .faq-toggle {
    font-size: 22px;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .faq-item.active .faq-answer {
    padding: 16px 18px;
  }

  .faq-answer p {
    font-size: 14px;
  }

  .portfolio-nav-links {
    flex-direction: column;
    gap: 12px;
  }

  .nav-link {
    max-width: 100%;
    min-width: 100%;
    padding: 14px 16px;
  }

  .nav-link.next-project {
    margin-left: 0;
  }

  .nav-title {
    font-size: 14px;
  }

  .nav-arrow {
    font-size: 18px;
  }

  .portfolio-slider-wrapper {
    padding: 0 20px;
  }

  .portfolio-header {
    padding: 0 10px;
  }

  .portfolio-header h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .portfolio-slide {
    gap: 15px;
  }

  .portfolio-title {
    padding: 12px 15px;
    font-size: 14px;
  }

  .portfolio-prev,
  .portfolio-next {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .portfolio-nav {
    padding: 0 5px;
    top: 30%;
  }

  .view-more-wrapper {
    margin-top: 35px;
  }

  .btn-view-more {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    max-width: 280px;
  }
}

.portfolio-section {
  padding: 60px 0;
  background: #f8f9fa;
  overflow: hidden;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.portfolio-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.portfolio-subheading {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.portfolio-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.portfolio-slide {
  display: flex !important;
  gap: 20px;
  padding: 0 10px;
}

.portfolio-item {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  width: 100%;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-title {
  padding: 15px 20px;
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.3;
}

.portfolio-nav {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
  padding: 0 15px;
}

.portfolio-prev,
.portfolio-next {
  background: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  pointer-events: all;
  color: #333;
  font-size: 14px;
}

.portfolio-prev:hover,
.portfolio-next:hover {
  background: #1c2444;
  color: #fff;
  transform: scale(1.1);
}

.portfolio-slider {
  overflow: hidden;
}

.portfolio-slider .slick-track {
  display: flex;
  align-items: stretch;
}

.portfolio-slider .slick-dots {
  bottom: -50px;
  display: flex !important;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.portfolio-slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.portfolio-slider .slick-dots li button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  font-size: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-slider .slick-dots li.slick-active button {
  background: var(--accent);
  transform: scale(1.3);
}

.portfolio-slider .slick-prev,
.portfolio-slider .slick-next {
  display: none !important;
}

.view-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

.btn-view-more {
  display: inline-block;
  padding: 12px 30px;
  background: #1c2444;
  color: #fff !important;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(28, 36, 68, 0.25);
}

.btn-view-more:hover {
  background: #141a33;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 36, 68, 0.35);
  color: #fff !important;
}
