/* 
 Theme Name:   ayurvedic-medicine-child
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     ayurvedic-medicine
 Version:      1.0

 /* == Add your own styles below this line ==
--------------------------------------------*/
.entry-content ul, .entry-content ol
 {
    padding-left: 0px!important;
    margin-left: 0;
}



.box-image .single-page-img

 {
    background-image: url(/img/port-sunlight-bg.jpg)!important;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover !important;
    height: 300px;
}
.box-image .single-page-img:after
 {
    background-color: #0000008f;
}



h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  background: linear-gradient(90deg, #315E26, #A5C32D, #315E26);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  margin: 40px 0 25px 0;
  animation: greenGlow 6s linear infinite;
  position: relative;
}

/* Линия под заглавието */
h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 10px auto 0 auto;
  border-radius: 4px;
  background: linear-gradient(90deg, #A5C32D, #315E26);
  box-shadow: 0 2px 6px rgba(49, 94, 38, 0.4);
  animation: lineMove 3s ease-in-out infinite;
}

/* 🌈 Анимации */

/* Движение на градиента в текста */
@keyframes greenGlow {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Пулсиране на линията отдолу */
@keyframes lineMove {
  0%, 100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(1.3);
    opacity: 0.8;
  }
}


.custo-section {
  position: relative;
  overflow: hidden;
  padding: 80px 60px;
  border-radius: 25px;
  background: linear-gradient(135deg, #eafde6, #c9f0c5, #b2dfdb);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
  color: #2c2c2c;
  animation: fadeInSection 1.5s ease-out;
}

.custo-section h2,
.custo-section h3 {
  position: relative;
  text-align: center;
  color: #315E26;
  font-weight: 800;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  animation: titleEntrance 1.2s ease-out;
}

.custo-section h2 {
  margin-bottom: 35px;
}

.custo-section h2::before,
.custo-section h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #315E26, #A5C32D);
  border-radius: 5px;
  animation: glowLine 2.5s infinite alternate;
}

.custo-section h2::before {
  left: 15%;
}

.custo-section h2::after {
  right: 15%;
}

.custo-section h3 {
  color: #4a6d3b;
  margin-top: 40px;
  margin-bottom: 25px;
  animation: titlePop 1.2s ease-out;
}

.custo-section h3::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin: 15px auto 0;
  background: linear-gradient(90deg, #315E26, #A5C32D);
  border-radius: 5px;
  box-shadow: 0 0 15px #A5C32D;
  animation: underlinePulse 2s infinite alternate;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes titlePop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


/* Hover ефект за секцията */
.custo-section:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  transform: scale(1.01);
  transition: 0.6s ease;
}

/* Responsive настройки */
@media (max-width: 768px) {
  .custo-section {
    padding: 50px 25px;
  }

  .custo-section h2 {
    font-size: 2rem;
  }

  .custo-section h3 {
    font-size: 1.5rem;
  }
}


/* ----- Дневен стил за кутиите (card) ----- */
.card {
  background: linear-gradient(180deg, #ffffff, #f8fff2);

  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 8px 20px rgba(49, 94, 38, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  animation: cardAppear 1.2s ease both;
}


.card-body p {
  color: #2c3d26;
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}


/* ---------- Theme variables ---------- */
:root{
  --dark-green: #315E26;
  --mid-green:  #A5C32D;
  --pale-green: #DAF6D6;
  --accent: rgba(165,195,45,0.12);
  --glass: rgba(255,255,255,0.06);
  --radius: 18px;
  --shadow-1: 0 6px 20px rgba(49,94,38,0.18);
  --shadow-2: 0 12px 40px rgba(16,30,10,0.12);
  --text: #073012;
}

/* OPTIONAL: include a nicer heading font (uncomment in HTML <head>)
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;600&display=swap" rel="stylesheet">
*/
.styled-section{
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(49,94,38,0.08) 0%, rgba(165,195,45,0.03) 50%, rgba(218,246,214,0.06) 100%);
  border-radius: var(--radius);
  padding: 20px;
  padding-top: 44px;
  color: var(--text);
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.03);
  border: 1px solid rgba(49,94,38,0.06);
  backdrop-filter: blur(4px);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Hover lift */
.styled-section:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

/* Decorative top ribbon */
.styled-section::before{
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: -10px;
  height: 12px;
  background: linear-gradient(90deg, var(--mid-green), var(--pale-green));
  border-radius: 10px;
  filter: drop-shadow(0 4px 8px rgba(49,94,38,0.12));
  z-index: 2;
  transform-origin: center;
  animation: ribbon-sway 6s ease-in-out infinite;
}

/* Corner ornament (bottom-right) */
.styled-section::after{
  content: "✦";
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 28px;
  color: rgba(165,195,45,0.18);
  transform: rotate(25deg);
  z-index: 1;
  animation: sparkle 4s linear infinite;
  pointer-events: none;
}

/* Title styling + animated underline */
.styled-section h2{
  margin: 0 0 12px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--dark-green);
  position: relative;
  z-index: 3;
  display: inline-block;
  padding-bottom: 8px;
  animation: fadeInUp .9s cubic-bezier(.2,.9,.3,1) both;
}

/* Animated accent underline */
.styled-section h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 6px;
  width: 60%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--mid-green), var(--pale-green));
  box-shadow: 0 6px 16px rgba(165,195,45,0.12);
  transform-origin: left;
  animation: grow-underline 1s ease both;
}

/* Paragraph */
.styled-section p{
  margin: 12px 0 18px 0;
  line-height: 1.55;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: rgba(7,48,18,0.92);
  font-weight: 400;
  animation: fadeInUp .9s .12s cubic-bezier(.2,.9,.3,1) both;
}

/* Styled list container */
.styled-list{
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* For wider screens make it two columns */
@media (min-width: 880px){
  .styled-list{
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }
}

/* Each list item as a card */
.styled-list li{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(218,246,214,0.02));
  border-radius: 12px;
  padding: 12px 14px 12px 52px;
  position: relative;
  box-shadow: 0 6px 18px rgba(16,30,10,0.06);
  border: 1px solid rgba(49,94,38,0.04);
  overflow: hidden;
  font-weight: 500;
  color: rgba(7,48,18,0.95);
  min-height: 56px;
  display: flex;
  align-items: center;
  transition: transform .28s ease, box-shadow .28s ease;
  animation: fadeInLeft .7s both;
}

/* hover effect on each list item */
.styled-list li:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(16,30,10,0.12);
}

/* Emoji icon circle left */
.styled-list li::before{
  content: "🕰️";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(180deg, var(--mid-green), var(--dark-green));
  color: #fff;
  box-shadow: 0 6px 18px rgba(49,94,38,0.18);
  z-index: 4;
  transition: transform .3s ease;
}

/* Use different emoji per list position for variety */
.styled-list li:nth-child(1)::before{ content: "🧑‍🏭"; }   /* 1884 */
.styled-list li:nth-child(2)::before{ content: "🌾"; }     /* 1887 land purchase */
.styled-list li:nth-child(3)::before{ content: "🏠"; }     /* 1888 first residents */
.styled-list li:nth-child(4)::before{ content: "🏫"; }     /* 1891–1914 expansions */
.styled-list li:nth-child(5)::before{ content: "🖼️"; }     /* 1922 Lady Lever Art Gallery */
.styled-list li:nth-child(6)::before{ content: "🤝"; }     /* 1930 merger */
.styled-list li:nth-child(7)::before{ content: "🏛️"; }     /* 1978 conservation area */
.styled-list li:nth-child(8)::before{ content: "🌿"; }     /* Present Day trust */

/* subtle bounce on the emoji when hovering the item */
.styled-list li:hover::before{
  transform: translateY(-50%) scale(1.06) rotate(-6deg);
}

/* small date highlight (if dates are in the start of the li) */
.styled-list li strong{
  color: var(--dark-green);
  margin-right: 8px;
  font-weight: 700;
  display: inline-block;
}

/* small decorative dashed stripe along right edge */
.styled-list li::after{
  content: "";
  position: absolute;
  right: 8px;
  top: 10%;
  width: 4px;
  height: 80%;
  background: repeating-linear-gradient(180deg, rgba(165,195,45,0.18) 0 6px, rgba(49,94,38,0.02) 6px 12px);
  border-radius: 4px;
  opacity: .55;
  pointer-events: none;
}

/* ---------- Keyframes ---------- */

@keyframes ribbon-sway{
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(2px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes sparkle{
  0% { opacity: .3; transform: scale(.98) rotate(25deg); }
  50% { opacity: .9; transform: scale(1.08) rotate(25deg); }
  100% { opacity: .3; transform: scale(.98) rotate(25deg); }
}

@keyframes grow-underline{
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes fadeInUp{
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft{
  0% { opacity: 0; transform: translateX(-18px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* subtle left-right slow float for the whole section's ornament */
@keyframes float-slow{
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* tiny pop for emoji on load */
.styled-list li::before{
  animation: pop-in .6s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes pop-in{
  0% { transform: translateY(-50%) scale(.6); opacity: 0; }
  60% { transform: translateY(-50%) scale(1.08); opacity: 1; }
  100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* Accessibility focus state */
.styled-list li:focus-within,
.styled-list li:focus{
  outline: 3px solid rgba(165,195,45,0.16);
  outline-offset: 6px;
}

/* small responsive tweaks */
@media (max-width: 520px){
  .styled-section{ padding: 20px; border-radius: 12px; }
  .styled-list li{ padding-left: 48px; font-size: .95rem; }
  .styled-section h2{ font-size: 1.5rem; }
}


a {
    color: rgb(61 165 10);
    text-decoration: underline;
}


.mainheadclose-sticky {
  background-color: #d2dfce;
}

@media (max-width: 768px) {
  h1{
    font-size: 28px!important;
  }
  h2{
    font-size: 26px!important;
  }
  h3{
    font-size: 24px!important;
  }
}