/* Hero with Timeline Azure Block Styles */
.hero-timeline-azure {
    padding: 80px 0 0;
    position: relative;
}

.hero-timeline-azure .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-timeline-azure .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start; /* Changed from center to align top */
    margin-bottom: 40px;
}

.hero-timeline-azure .hero-left {
    text-align: left;
}

.hero-timeline-azure .hero-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #003a51;
    background: rgba(0, 58, 81, 0.1);
    border: 1px solid rgba(0, 58, 81, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-timeline-azure .hero-pretitle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #008c61;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-timeline-azure .hero-title {
    font-family: "PP Neue Montreal", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #003a51;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-timeline-azure .hero-title span {
    color: #008c61;
}

.hero-timeline-azure .hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: #334e68;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-timeline-azure .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-timeline-azure .hero-buttons:empty {
    display: none;
}

.hero-timeline-azure .hero-buttons .btn {
    min-width: 180px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-timeline-azure .hero-buttons .btn-secondary {
    background-color: #FF7F5C;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-timeline-azure .hero-buttons .btn-secondary:hover {
    background-color: #ff6b47;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Match pricing hero button palette */
.hero-timeline-azure .hero-buttons .btn-green-primary {
    background-color: #00A651; /* standard CTA green */
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 166, 81, 0.2);
}

.hero-timeline-azure .hero-buttons .btn-green-primary:hover {
    background-color: #009f49; /* match global hover */
    box-shadow: 0 6px 12px rgba(0, 166, 81, 0.3);
    transform: translateY(-2px);
}

.hero-timeline-azure .hero-buttons .btn-orange {
    background-color: #FF7F5C;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-timeline-azure .hero-buttons .btn-orange:hover {
    background-color: #ff6b47;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.hero-timeline-azure .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 16px; /* increased size for rotating text */
    color: #003a51;
    margin-top: 12px;
    margin-bottom: 24px; /* ample space above button */
}

.hero-timeline-azure .hero-stats:empty {
    display: none;
}

.hero-timeline-azure .hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0; /* plain text for rotating items */
    background: none;
    border: none;
    border-radius: 0;
}

/* Badge styling only for numeric/value stat */
.hero-timeline-azure .hero-stat.has-value {
    gap: 10px;
    padding: 10px 14px;
    border-radius: 9999px;
    background: rgba(0, 58, 81, 0.06);
    border: 1px solid rgba(0, 58, 81, 0.12);
}

.hero-timeline-azure .hero-stat.has-value::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #008c61, #06b6d4);
    flex-shrink: 0;
}

.hero-timeline-azure .hero-stat-value {
    color: #008c61;
    font-weight: 700;
    font-size: 18px; /* slightly larger value text */
}

.hero-timeline-azure .hero-stat-label {
    font-weight: 500;
}

.hero-timeline-azure .hero-right {
    position: relative;
    padding-top: 20px;
}

.hero-timeline-azure .timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-timeline-azure .azure-card-grid {
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-timeline-azure .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.hero-timeline-azure .timeline-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-timeline-azure .timeline-title {
    font-size: 14px;
    color: #334e68;
    font-weight: 600;
}

.hero-timeline-azure .timeline-subtitle {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
}

.hero-timeline-azure .badge-ai-sre {
    background: #FDF4F2;
    color: #BC3418;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.hero-timeline-azure .timeline-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Grid Layout for Azure Items */
.hero-timeline-azure .azure-grid-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.hero-timeline-azure .azure-grid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Removed default opacity/transform here, handled by JS for initial reveal, 
       but we keep the transitions for the active state toggle */
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid transparent; /* Prepare for border change */
    opacity: 0; /* Hidden initially for JS reveal */
    transform: translateY(10px);
}

/* Active State Styles */
.hero-timeline-azure .azure-grid-item.active {
    background-color: #F0FDF4; /* Light Green Background */
    border-color: #008c61;     /* Green Border */
    box-shadow: 0 4px 12px rgba(0, 140, 97, 0.1);
    transform: scale(1.01) translateY(0);
}

.hero-timeline-azure .azure-grid-item.active .azure-item-title {
    color: #008c61; /* Green title when active */
}

.hero-timeline-azure .azure-grid-item.visited {
    border-color: #008c61;
    background-color: #F8FFFB;
}

.hero-timeline-azure .azure-item-title {
    font-weight: 700;
    font-size: 16px;
    color: #003a51;
    transition: color 0.3s ease;
}

.hero-timeline-azure .azure-item-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

/* Footer Item (Azure-native telemetry) */
.hero-timeline-azure .azure-footer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hero-timeline-azure .azure-footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0284c7; /* Azure Blue */
    margin-top: 6px;
    flex-shrink: 0;
    animation: subtlePulse 3.6s ease-in-out infinite;
}

.hero-timeline-azure .azure-footer-content {
    font-size: 13px;
    color: #003a51;
    font-weight: 500;
}

.hero-timeline-azure .azure-logo-container {
    display: inline-flex;
    align-items: center;
}

.hero-timeline-azure .azure-logo-img {
    height: 32px;
    width: auto;
    opacity: 0.8;
}

@keyframes subtlePulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 0.6; }
}

/* Active state for footer item */
.hero-timeline-azure .azure-footer-item.active .azure-footer-content {
    color: #0284c7;
    font-weight: 700;
}

.hero-timeline-azure .azure-footer-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 6px;
}

.hero-timeline-azure .azure-footer-item.active {
    background: #E0F2FE;
}

/* Quote Section */
.hero-timeline-azure .azure-quote-section {
    margin-top: 60px;
    padding: 60px 0;
    background: #FAFAFA;
    border-top: 1px solid #EAEAEA;
    border-bottom: 1px solid #EAEAEA;
}

.hero-timeline-azure .quote-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.hero-timeline-azure .quote-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.hero-timeline-azure .quote-author-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #EAEAEA;
}

.hero-timeline-azure .quote-text-wrapper {
    flex: 1;
}

.hero-timeline-azure .quote-text {
    font-size: 18px;
    line-height: 1.6;
    color: #334e68;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

/* Highlight quote text */
.hero-timeline-azure .quote-text::before {
    content: '';
    position: absolute;
    left: -10px;
    right: 10px;
    top: 4px;
    bottom: 4px;
    background: #DBEAFE;
    z-index: -1;
    transform: skewX(-10deg);
    opacity: 0.5;
}

.hero-timeline-azure .quote-author-name {
    display: block;
    font-weight: 700;
    color: #003a51;
    font-size: 16px;
    margin-bottom: 4px;
}

.hero-timeline-azure .quote-author-title {
    display: block;
    font-size: 14px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-timeline-azure .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-timeline-azure .hero-left {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-timeline-azure .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-timeline-azure .hero-buttons,
    .hero-timeline-azure .hero-stats {
        justify-content: center;
    }
    
    .hero-timeline-azure .hero-pretitle {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-timeline-azure .hero-title {
        font-size: 36px;
    }
    
    .hero-timeline-azure .azure-grid-items {
        grid-template-columns: 1fr;
    }
    
    .hero-timeline-azure .quote-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Improved Text Animation for Subtitle (Blur In) --- */
.hero-timeline-azure .animated-subtitle {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.hero-timeline-azure .sub-text,
.hero-timeline-azure .sub-arrow {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(4px);
    animation: blurIn 0.8s ease forwards;
}

/* Stagger delays */
.hero-timeline-azure .sub-text.step-1 { animation-delay: 0.2s; }
.hero-timeline-azure .sub-arrow:nth-child(2) { animation-delay: 0.4s; }
.hero-timeline-azure .sub-text.step-2 { animation-delay: 0.6s; }
.hero-timeline-azure .sub-arrow:nth-child(4) { animation-delay: 0.8s; }
.hero-timeline-azure .sub-text.step-3 { animation-delay: 1.0s; }

@keyframes blurIn {
    0% { opacity: 0; filter: blur(8px); transform: translateY(4px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* --- Testimonial Slider Styles --- */
.hero-timeline-azure .testimonial-slider-wrapper {
    min-height: 200px;
    position: relative;
}

.hero-timeline-azure .testimonial-loading {
    text-align: center;
    color: #64748b;
    padding: 40px;
    font-style: italic;
}

.hero-timeline-azure .testimonial-slider .quote-content {
    display: flex !important; /* Slick sets display: block */
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    outline: none;
}

/* Responsive testimonial layout */
@media (max-width: 768px) {
    .hero-timeline-azure .testimonial-slider .quote-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Slick Dots Customization */
.hero-timeline-azure .slick-dots {
    bottom: -40px;
}

.hero-timeline-azure .slick-dots li button:before {
    font-size: 10px;
    color: #003a51;
    opacity: 0.25;
}

.hero-timeline-azure .slick-dots li.slick-active button:before {
    color: #008c61;
    opacity: 1;
}

/* Slick Arrows */
.hero-timeline-azure .slick-prev,
.hero-timeline-azure .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hero-timeline-azure .slick-prev:hover,
.hero-timeline-azure .slick-next:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero-timeline-azure .slick-prev:before,
.hero-timeline-azure .slick-next:before {
    color: #003a51;
    opacity: 1;
    font-size: 20px;
}

.hero-timeline-azure .slick-prev { left: -40px; }
.hero-timeline-azure .slick-next { right: -40px; }

@media (max-width: 1200px) {
    .hero-timeline-azure .slick-prev { left: -20px; }
    .hero-timeline-azure .slick-next { right: -20px; }
}

@media (max-width: 768px) {
    .hero-timeline-azure .slick-prev,
    .hero-timeline-azure .slick-next {
        display: none !important;
    }
}
