/*
Theme Name: Unipon Hospital
Theme URI: https://example.com/
Author: Unipon Hospital
Author URI: https://example.com/
Description: Starter custom WordPress theme based on provided HTML/CSS/JS for Unipon Hospital.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: unipon-hospital
*/

/* Imported fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* --- Start theme CSS (from provided styles.css) --- */
body {
   margin: 0;
    font-family: "Raleway", sans-serif;
 }


 h2 {
    font-size: 2.5rem;
   margin-bottom: 20px;
   font-family: "Libre Baskerville", serif;
   font-weight: 700;
 }


 .cta-button {
   background-color: #d80673;
   color: #fef7fa;
   padding:15px 40px;
   border: none;
   border-radius: 30px;
   font-size: 1rem;
   font-weight: bold;
   text-decoration: none;
   cursor: pointer;
   transition: all 0.3s ease;
   font-family: "Libre Baskerville", serif;
   font-weight: 900;
   letter-spacing: 2px;
   text-transform: uppercase;
 }

 .cta-button:hover {
   background-color: #fef7fa;
   color: #d80673;
 }

 .button2 {
   margin-top: 50px;
 }

.button2:hover{
  background-color: #222222;
  color: #fef7fa;
 }  

header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: padding 0.3s ease, background-color 0.3s ease;
  flex-wrap: wrap;
}

header.shrink {
  padding: 10px 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Logo + hamburger wrapper */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
}

.logo img {
  width: 300px;
  height: auto;
}

header.shrink .logo img {
  width: 200px;
}

/* Hamburger icon */
.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  display: none;
  transition: transform 0.3s;
}

.hamburger span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  left: 0;
  transition: 0.3s ease;
  border-radius: 2px;
}

.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 8px;
}
.hamburger span:nth-child(3) {
  top: 16px;
}

/* Animate hamburger into X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* Nav */
nav {
  display: flex;
  justify-content: center;
}

.nav-list ul{
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}


.nav-list ul li a {
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: #d80673;
  transition: width 0.3s ease;
}

.nav-list ul li a:hover::after {
  width: 100%;
}

.nav-list ul li.active  a::after {
  width: 100%;
}


.nav-list ul li a:hover {
  color: #222222;
}


.banner {
      position: relative;
      background: url('images/banner.jpg') no-repeat center center/cover;
      height: 70vh;
      min-height: 400px;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      border-bottom: solid 8px #06d8a4;
       overflow: hidden;
    }

    .banner::before {
      content: "";
      position: absolute;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.5); /* Gray overlay */
      z-index: 1;
    }

    .banner-content {
      position: relative;
      z-index: 2;
      max-width: 1400px;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      text-align: left;
      height: 100%;
    }

    .banner-left {
      width: 55%;
    }

    .banner-right {
      width: 40%;
       display: flex;
      align-items: flex-end;
      height: 100%;
    }

    .banner-right img {
      width: 100%;
    }

    .banner h1 {
      font-size: 3rem;
      margin-bottom: 20px;
      font-family: "Libre Baskerville", serif;
      font-weight: 700;
      font-style: normal;
    }

    .banner p {
      font-size: 1.25rem;
      margin-bottom: 50px;
      font-family: "Libre Baskerville", serif;
      font-weight: 400;
      font-style: normal;
    }

    .banner-slider {
      width: 100%;
      height: 70vh;
      min-height: 400px;
      position: relative;
      overflow: hidden;
      background: #f7f7f7;
    }

    /* slide base: all slides stacked, invisible by default */
    .banner.slide {
      position: absolute;
      inset: 0;                   /* top:0; right:0; bottom:0; left:0; */
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;       /* non-active slides shouldn't receive pointer events */
      transition: opacity 1s ease-in-out;
      z-index: 0;
    }

    .banner {
        width: 100%;
        display: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        position: absolute;
        top: 0; left: 0;
    }

    /* active slide: visible and interactive */
    .banner.slide.active {
      opacity: 1;
      pointer-events: auto;
      z-index: 1;
    }

    /* content inside slide stays the same */
    .banner-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 85%;
      margin: auto;
      gap: 20px;
    }

    .banner-left h1 {
        font-size: 50px;
        margin-bottom: 20px;
    }

    .banner-left p {
        font-size: 18px;
        padding-bottom: 40px;
        margin: 0;
    }

    .cta-button {
        padding: 12px 24px;
        background: #0074ff;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        font-weight: 600;
    }

    .banner-right img {
        width: 380px;
        height: auto;
    }

    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.4);
        color: #fff;
        border: none;
        font-size: 24px;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 50%;
        z-index: 10;
    }

    .prev { left: 15px; }
    .next { right: 15px; }

    .nav-btn:hover {
        background: rgba(0,0,0,0.6);
    }

    /* Dots */
    .dots {
        position: absolute;
        width: 100%;
        bottom: 20px;
        text-align: center;
        z-index: 99;
    }

    .dots span {
        height: 12px;
        width: 12px;
        margin: 0 5px;
        background: #fff;
        display: inline-block;
        border-radius: 50%;
        cursor: pointer;
        transition: 0.3s;
    }

    .dots span.active-dot {
        background: #950095;
    }



    .services-section {
      padding: 60px 20px 90px;
      margin: auto;
      text-align: center;
    }

    .contentwarp {
      max-width: 1400px;
      margin: 0 auto;
    }

    .services-section h2 {
      font-size: 2.5rem;
      margin-bottom: 40px;
      color: #333;
    }

    .services-container {
      display: flex;
      gap: 30px;
      justify-content: center;
      flex-wrap: wrap;
      text-align: center;
      margin-bottom: 50px;
      align-items: center;
    }

    .service-item {
      background-color: #fff;
      flex: 1 1 200px;
      padding: 30px 20px;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      text-align: center;
      transition: transform 0.3s ease;
      min-width: 15%;
    }

    .service-item:hover {
      transform: translateY(-5px);
    }

    .service-icon {
      font-size: 40px;
      margin-bottom: 15px;
      color: #06d8a4;
    }

   .service-pic {
      margin-bottom: 15px;
    }

      .service-pic img {
        border-radius: 50px;
      }

    .service-title {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 10px;
      color: #222222;
      font-family: "Libre Baskerville", serif;
      font-weight: 700;
    }

     .service-des {
      font-weight: #000;
      font-weight: bold;
     }


    .service-desc {
      font-size: 0.95rem;
      color: #666;
    }

    .graybg{
      background-color: #fef7fa;
    }

    .textimg {
      padding: 60px 20px;
    }

    .textimg-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1400px;
      gap: 40px;
      margin: 0 auto;
      flex-direction: row;
    }

    .section-content {
      flex: 1 1 50%;
      padding: 20px;
    }

    .textimg h2 {
      font-size: 2rem;
      margin-bottom: 20px;
    }

    .textimg p {
      font-size: 1.1rem;
      line-height: 1.6;
      margin-bottom: 50px;
    }

    .section-image {
      flex: 1 1 50%;
      padding: 20px;
    }

    .section-image img {
      width: 100%;
      border-radius: 10px;
      box-shadow: 0 10px 10px rgba(0,0,0,0.5);
    }

    /* Reverse layout for even sections */
    .textimg-content.reverse {
      flex-direction: row-reverse;
    }

    .testimonial-section {
      padding: 60px 20px;
      max-width: 900px;
      margin: auto;
      background-color: #fff;
      border-radius: 10px;
      text-align: center;
    }

    .testimonial-slider {
      position: relative;
    }

    .testimonial {
      opacity: 0;
      transform: scale(0.98);
      transition: opacity 1s ease, transform 0.5s ease;
      display: none;
      position: relative;
    }

    .testimonial.active {
      display: block;
      opacity: 1;
      transform: scale(1);
      z-index: 2;
    }

    .author-img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 20px;
      border: 3px solid #06d8a4;
    }

    .quote-icon {
      font-size: 40px;
      color: #06d8a4;
      margin-bottom: 15px;
    }

    .testimonial-text {
      font-size: 1.1rem;
      color: #222222;
      margin-bottom: 20px;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }

    .author-name {
      font-weight: bold;
      color: #222222;
    }

    .slider-nav {
      margin-top: 30px;
    }

    .slider-dot {
      display: inline-block;
      width: 12px;
      height: 12px;
      margin: 0 6px;
      background-color: #ccc;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .slider-dot.active {
      background-color: #d80673;
    }


    .video-gallery {
      padding: 60px 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
    }

    .video-gallery h2 {
      width: 100%; 
      text-align: center; 
      font-size: 2rem; 
      margin-bottom: 30px; 
      color: #333;
    }

    .video-thumbnail {
      cursor: pointer;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s;
    }

    .video-thumbnail:hover {
      transform: scale(1.03);
    }

    .video-thumbnail img {
      display: block;
      width: 280px;
      height: 160px;
      object-fit: cover;
    }

    /* Modal styles */
    .video-modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0; top: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.8);
      align-items: center;
      justify-content: center;
    }

    .video-modal.active {
      display: flex;
    }

    .modal-content {
      position: relative;
      width: 90%;
      max-width: 800px;
      background: transparent;
    }

    .modal-content iframe {
      width: 100%;
      height: 450px;
      border: none;
      border-radius: 8px;
    }

    .close-btn {
      position: absolute;
      top: -20px;
      right: -20px;
      background: #fff;
      color: #000;
      border: none;
      border-radius: 50%;
      width: 35px;
      height: 35px;
      font-size: 18px;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }


 .cta-section {
      position: relative;
      background: url('images/cta-bg.jpg') no-repeat center center/cover;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 60px 0;
    }

    .cta-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.6); /* Overlay */
      z-index: 1;
    }

    .cta-content {
      position: relative;
      z-index: 2;
      max-width: 700px;
      padding: 20px;
    }

    .cta-content h2 {
      font-size: 3rem;
      margin-bottom: 20px;
    }

    .cta-content p {
      font-size: 1.2rem;
      margin-bottom: 30px;
      color: #ddd;
    }



  footer {
      background-color: #222;
      color: #ccc;
    }

    .footer-top {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      padding: 40px 20px;
      max-width: 1200px;
      margin: auto;
    }

    .footer-column {
      flex: 1 1 300px;
      padding: 20px;
    }

    .footer-column h3 {
      color: #fff;
      margin-bottom: 15px;
      font-size: 1.2rem;
    }

    .footer-logo {
      font-size: 1.8rem;
      font-weight: bold;
      color: #fff;
    }

    .footer-nav a {
      display: block;
      color: #ccc;
      text-decoration: none;
      margin-bottom: 8px;
      transition: color 0.3s;
    }

    .footer-nav a:hover {
      color: #fff;
    }

    .contact-info p {
      margin: 5px 0;
      font-size: 0.95rem;
    }

    .social-icons a {
      margin-right: 10px;
      color: #ccc;
      font-size: 1.2rem;
      transition: color 0.3s;
    }

    .social-icons a:hover {
      color: #fff;
    }

    .map-container {
      margin-top: 15px;
      border-radius: 8px;
      overflow: hidden;
    }

    .map-container iframe {
      width: 100%;
      height: 150px;
      border: 0;
    }

    .footer-bottom {
      text-align: center;
      padding: 15px;
      background-color: #111;
      color: #aaa;
      font-size: 0.9rem;
    }

    .about-banner {
      height: 50vh;
      text-align: center;
      align-items: center;
      justify-content: center;
      background: url('images/about-banner.jpg') no-repeat center center/cover;
    }

    .internal-banner {
      height: 50vh;
      min-height: 250px;
      text-align: center;
      align-items: center;
      justify-content: center;
      background-repeat: no-repeat;
      background-position: center center;
      background-size: cover;
    }
    
    .internal-banner h1 {
        text-align: center;
        font-size: 50px;
        color: #fff;
        width: 100%;
        background: rgba(0, 0, 0, 0.6);
        padding: 20px;
    }

    .onelinesec .textimg-content{
      display: block;
      text-align: center;
    }
    
    .services-post {
        text-align: left;
    }
    
    .profile {
        flex: initial;
    }


    @media (max-width: 600px) {
      header {
        display: block;
        padding: 10px 20px;
      }

      .hamburger {
        display: block;
      }

      nav {
        display: none;
        width: 100%;
      }

      nav.active {
        display: block;
      }

      .nav-list {
        flex-direction: column;
        padding: 15px 20px;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      }

      .nav-list li {
        margin-bottom: 10px;
      }

      .header-container {
        padding: 15px 20px;
      }

      .banner h1 {
        font-size: 2rem;
      }

      .banner p {
        font-size: 1rem;
      }



      .services-container {
        align-items: center;
      }

      .service-item {
        max-width: 90%;
      }

       .testimonial-text {
        font-size: 1rem;
      }

      .modal-content iframe {
        height: 240px;
      }


      .video-thumbnail img {
        width: 100%;
        height: auto;
      }

      .cta-content p {
        font-size: 1rem;
      }

      .footer-column {
        flex: 1 1 100%;
        text-align: center;
      }

      .footer-nav a {
        display: inline-block;
        margin: 0 10px 10px 10px;
      }

      .social-icons {
        margin-top: 10px;
      }

      .banner-right {
        display: none;
      }

      .banner-left {
        width: 100%;
        text-align: center;
      }

      .textimg-content {
        display: block;
        text-align: center;
      }
    }
