/* home.css */

/* Carousel Styles */
.sustainability-carousel-wrapper {
    width: 100%;
    max-width: 1400px;
    /* margin: 0 auto; */
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.sustainability-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.sustain-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    animation: fade 1s ease-in-out;
}

.sustain-slide.active {
    display: block;
    position: relative;
}

.sustain-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 5px;
}

.sustain-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 1;
    border-radius: 5px;
    pointer-events: none;
}

.sustain-caption {
    z-index: 2;
}

.sustain-caption {
    position: absolute;
    bottom: 10%;
    left: 10%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px 30px;
    border-radius: 5px;
    max-width: 80%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sustain-caption h2 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    font-weight: bold;
}

.sustain-caption p {
    font-size: 1.2rem;
    margin: 0;
}

.sustain-prev,
.sustain-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.sustain-prev {
    left: 20px;
}

.sustain-next {
    right: 20px;
}

.sustain-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.sustain-dots span {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background 0.3s;
}

.sustain-dots span.active {
    background-color: #fff;
}

/* Text Alignment Utility */
.text-center {
    text-align: center;
}

/* Image Styling */
.full-width-img {
    max-width: 100%;
    border-radius: 5px;
}

/* Flex Layout */
.flex-wrap-spaced {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Box Styles */
.green-box {
    flex: 1;
    min-width: 280px;
    color: white;
    padding: 30px;
    background: linear-gradient(135deg, #004d40 0%, #00796b 100%);
    border-radius: 5px;
    position: relative;
    z-index: 3;
}

.contact-frameworks-section {
    position: relative;
    z-index: 3;
}

/* Typography */
.planet-b-heading {
    font-size: 2.5rem;
    color: var(--wp--preset--color--primary);
    font-weight: bold;
}

.planet-b-heading span {
    color: var(--wp--preset--color--secondary);
}

.planet-b-desc {
    font-size: 1.2rem;
    margin-top: 10px;
}

.inner-content {
    position: relative;
    z-index: 1;
    max-width: 80%;
    margin: 0 auto;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtext {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccece5;
}

.climate-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-link {
    position: relative;
    display: inline-block;
    background: #ffffff;
    color: #004d40;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.btn-link:hover {
    background: #ccece5;
    transform: translateY(-2px);
}

.page-link {
    position: relative;
    color: #fff !important;
    /* text-decoration: none; */
    transition: color 0.3s ease, text-decoration 0.3s ease;
    z-index: 2;
}

.page-link:hover {
    color: #a3e3d3 !important;
    text-decoration: underline;
}

/* Modern Vital Signs Section */
.vital-heading {
    font-size: 2rem;
    margin: 1.5rem auto !important;
    color: #2e7d32;
    text-align: center;
}

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

.vital-signs-section-modern {
    position: relative;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 20px 20px;
    overflow: hidden;
    border-radius: 5px;
}

.vital-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 20%, rgba(46, 125, 50, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 80% 60%, rgba(0, 77, 62, 0.06) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.vital-signs-grid-modern {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    z-index: 2;
    margin-top: 10px;
}

.vital-card-modern {
    background: white;
    border-left: 4px solid #2e7d32;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.vital-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.vital-card-modern h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004d40;
    margin: 0.5rem 0;
}

.vital-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2e7d32;
}

.trend-icon {
    margin-left: 6px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Optional: Add smooth fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.events-list {
  list-style: none !important;
  padding-left: 0;
  margin-bottom: 16px;
}

.events-list li {
  margin-bottom: 12px;
  font-size: 1.05em;
  line-height: 1.5;
}

.events-list a {
  text-decoration: none;
  color: #fff;
  transition: color 0.2s;
}

.events-list a:hover {
  text-decoration: underline;
}

.events-footer {
  margin-top: 12px;
}

.events-link {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s;
}

.events-link:hover {
  text-decoration: underline;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-featured-content {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Default: Desktop - 3 columns */
.home-featured-content > .wp-block-column {
	flex: 1 1 calc(33.333% - 1rem);
	box-sizing: border-box;
}

/* Tablet and below: 1 column */
@media (max-width: 1024px) {
	.home-featured-content > .wp-block-column {
		flex: 1 1 100%;
	}
}
