/**
 * Shine Healthcare - Custom Page Sections CSS
 * 
 * This file contains styles for custom page block sections
 * @package Shine_Healthcare
 */

/* ========================================================================
   Page Block Sections Base
   ======================================================================== */
.page-section {
  position: relative;
  overflow: hidden;
}

.page-section-inner {
  position: relative;
  z-index: 2;
}

/* ========================================================================
   Hero Banner Section
   ======================================================================== */
.hero-banner-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.hero-banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 150, 190, 0.9),
    rgba(24, 77, 156, 0.9)
  );
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  animation: fadeInUp 1s ease;
}

.hero-banner-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-banner-content p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-banner-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================================
   Info Cards Section
   ======================================================================== */
.info-cards-section {
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-card-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  transition: all 0.4s ease;
}

.info-card:hover .info-card-icon {
  transform: rotateY(360deg);
}

.info-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.info-card p {
  color: var(--text-gray);
  line-height: 1.8;
}

.info-card-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.info-card-link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* ========================================================================
   Content Grid Section
   ======================================================================== */
.content-grid-section {
  background: var(--light-bg);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

.content-grid-item {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.content-grid-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.content-grid-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.content-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-grid-item:hover .content-grid-image img {
  transform: scale(1.15);
}

.content-grid-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
}

.content-grid-body {
  padding: 30px;
}

.content-grid-category {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.content-grid-title {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.content-grid-description {
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.content-grid-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.content-grid-link {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.content-grid-link:hover {
  color: var(--secondary-color);
}

/* ========================================================================
   Two Column Section
   ======================================================================== */
.two-column-section {
  padding: 100px 0;
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 60px;
  align-items: center;
}

.two-column-content h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.two-column-content p {
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.two-column-features {
  list-style: none;
  margin: 30px 0;
}

.two-column-features li {
  padding: 12px 0;
  padding-left: 35px;
  position: relative;
  color: var(--text-gray);
}

.two-column-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.two-column-image {
  position: relative;
}

.two-column-image img {
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.two-column-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: var(--box-shadow-hover);
  text-align: center;
}

.two-column-badge-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.two-column-badge-text {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* ========================================================================
   Stats Counter Section
   ======================================================================== */
.stats-counter-section {
  background: linear-gradient(
    135deg,#89c02d,#96bf50);
  color: var(--white);
  padding: 0px 0;
  position: relative;
}

.stats-counter-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
  background-size: 100px 100px;
  opacity: 0.3;
}

.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.stat-counter-item {
  text-align: center;
  padding: 20px;
}

.stat-counter-icon {
  font-size: 3rem;
  margin-top: 20px;
  margin-bottom: -20px;
  opacity: 0.9;
}

.stat-counter-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0px;
  color: var(--white);
}

.stat-counter-label {
  font-size: 1.1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================================================
   Accordion Section
   ======================================================================== */
.accordion-section {
  background: var(--light-bg);
}

.accordion-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--box-shadow-hover);
}

.accordion-header {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: var(--transition);
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover {
  background: rgba(37, 150, 190, 0.05);
}

.accordion-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 30px;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 0 30px 25px;
}

.accordion-content p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ========================================================================
   Pricing Table Section
   ======================================================================== */
.pricing-table-section {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  background: var(--light-bg);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  border: 3px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow-hover);
  background: var(--white);
}

.pricing-card.featured {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  transform: scale(1.05);
  border-color: var(--secondary-color);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warning-color);
  color: var(--text-dark);
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.pricing-card.featured .pricing-title {
  color: var(--white);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.pricing-card.featured .pricing-price {
  color: var(--white);
}

.pricing-currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-gray);
}

.pricing-card.featured .pricing-period {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-features {
  list-style: none;
  margin: 30px 0;
  padding: 30px 0;
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
}

.pricing-card.featured .pricing-features {
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-features li {
  padding: 12px 0;
  color: var(--text-gray);
}

.pricing-card.featured .pricing-features li {
  color: var(--white);
}

.pricing-button {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}

.pricing-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
  color: var(--white);
}

.pricing-card.featured .pricing-button {
  background: var(--white);
  color: var(--primary-color);
}

/* ========================================================================
   Timeline Section
   ======================================================================== */
.timeline-section {
  background: var(--light-bg);
  padding: 100px 0;
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  z-index: 2;
}

/* ========================================================================
   CTA Banner Section
   ======================================================================== */
.cta-banner-section {
  background: linear-gradient(
      135deg,
      rgba(37, 150, 190, 0.95),
      rgba(24, 77, 156, 0.95)
    ),
    url("../images/cta-bg.jpg") center/cover fixed;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.3) 100%);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
}

.cta-banner-content h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta-banner-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================================
   Responsive Styles
   ======================================================================== */
@media (max-width: 768px) {
  .hero-banner-content h1 {
    font-size: 2rem;
  }

  .info-cards-grid,
  .content-grid,
  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 60px;
  }

  .timeline-content {
    width: 100%;
    margin-left: 0 !important;
  }

  .timeline-dot {
    left: 30px;
  }

  .cta-banner-content h2 {
    font-size: 2rem;
  }

  .two-column-grid {
    gap: 30px;
  }
}

/* ========================================================================
   Animation Classes
   ======================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
