/* === Phase2 Structural Styles === */
/* Features Grid Enhancements */
.feature-card{border:4px solid transparent;transition:border-color .3s,transform .3s;}
.feature-card:nth-child(1){border-color:var(--brand-gold);} 
.feature-card:nth-child(2){border-color:var(--brand-emerald);} 
.feature-card:nth-child(3){border-color:var(--brand-orchid);} 
.feature-card:nth-child(4){border-color:var(--brand-blue);} 
.feature-card:nth-child(5){border-color:var(--brand-gold);} 
.feature-card:nth-child(6){border-color:var(--brand-emerald);} 
.feature-card:hover{transform:translateY(-6px);border-color:#0000;}

/* === Stats Section === */
.stats-section {
    background-color: var(--edu-paper);
    padding: 3rem 0;
    border-bottom: 1px solid var(--edu-line);
}

.stat-card {
    background: white;
    padding: 1.5rem 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-time::after { background-color: var(--edu-light-blue); }
.stat-align::after { background-color: var(--edu-gold); }
.stat-teachers::after { background-color: var(--edu-green); }
.stat-plans::after { background-color: #8b5cf6; /* purple */}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0;
}

/* === Features Section === */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb !important;
    transition: transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--edu-light-blue);
}

.feature-card:nth-child(3n+1)::before {
    background: var(--edu-light-blue);
}

.feature-card:nth-child(3n+2)::before {
    background: var(--edu-gold);
}

.feature-card:nth-child(3n+3)::before {
    background: var(--edu-green);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--edu-paper);
    color: var(--edu-blue);
}

.feature-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* === How It Works Section === */
.timeline {
    position: relative;
    padding: 3rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
    transform: translateX(-50%);
}

.step {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--edu-line);
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform .3s, box-shadow .3s;
    overflow: visible;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.step-content {
    position: relative;
    padding-top: 15px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--edu-gold);
    color: var(--edu-ink);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.testimonials-dark {
    background-color: var(--edu-blue);
    color: var(--edu-chalk);
    padding: 4rem 0;
    position: relative;
}

.testimonials-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--edu-gold);
    opacity: 0.5;
}

.testimonials-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--edu-gold);
    opacity: 0.5;
}

.testimonials-dark .section-badge {
    color: var(--edu-chalk);
    background-color: rgba(255, 255, 255, 0.2);
}

.testimonials-dark h2 {
    color: white;
}

.testimonials-dark .lead {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.testimonial-subtitle {
    color: var(--edu-light-gold) !important;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.testimonial-card {
    background-color: white;
    color: #0f172a;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: 100%;
}
@media(min-width:768px){
  .timeline-item{width:50%;}
  .timeline-item:nth-child(odd){padding-right:3rem;text-align:right;}
  .timeline-item:nth-child(even){padding-left:3rem;text-align:left;left:50%;}
  .timeline-item::before{content:"";position:absolute;top:20px;right:-12px;width:20px;height:20px;background:#fff;border:4px solid var(--brand-blue);border-radius:50%;}
  .timeline-item:nth-child(even)::before{left:-12px;right:auto;}
}

/* Testimonials Dark Variant */
.testimonials-dark{background:var(--brand-blue);color:#fff;padding:6rem 0;}
.testimonials-dark .section-header h2,
.testimonials-dark .section-header p{color:#fff;}
.testimonials-dark .testimonial-card{background:#fff;color:var(--gray-800);}

/* Footer Styles */
.footer {
    background-color: var(--edu-light);
    border-top: 3px solid var(--edu-gold);
}

.footer-brand img {
    max-height: 40px;
}

.footer-heading {
    font-weight: 700;
    color: var(--edu-blue);
    font-size: 1.15rem;
}

.footer-link {
    color: var(--edu-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--edu-gold);
}

.footer .social-links a {
    transition: color 0.2s ease;
}

.footer .social-links a:hover {
    color: var(--edu-gold) !important;
}

.footer .input-group .form-control {
    border: 1px solid var(--edu-line);
    border-right: none;
}

.footer .input-group .btn-primary {
    background-color: var(--edu-gold);
    border-color: var(--edu-gold);
}

.footer .input-group .btn-primary:hover {
    background-color: var(--edu-gold-dark);
    border-color: var(--edu-gold-dark);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .footer {
        text-align: center;
    }
    
    .footer .social-links {
        margin-bottom: 2rem;
        justify-content: center;
        display: flex;
    }
}
