/* ============================================
   SMIS Mayapur — Shared Styles for Sub-Pages
   ============================================ */

/* Page Hero Banners */
.page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sponsor-child-hero {
    background: linear-gradient(135deg, #5E3023 0%, #3A2618 40%, #895737 100%);
}
.sponsor-child-hero .page-hero-overlay {
    background: radial-gradient(ellipse at 70% 50%, rgba(192, 133, 82, 0.25) 0%, transparent 70%);
}

.building-hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8a 40%, #3A2618 100%);
}
.building-hero .page-hero-overlay {
    background: radial-gradient(ellipse at 30% 50%, rgba(44, 95, 138, 0.3) 0%, transparent 70%);
}

.classrooms-hero {
    background: linear-gradient(135deg, #4a2c6a 0%, #6b3fa0 40%, #3A2618 100%);
}
.classrooms-hero .page-hero-overlay {
    background: radial-gradient(ellipse at 60% 50%, rgba(107, 63, 160, 0.25) 0%, transparent 70%);
}

.prasadam-hero {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 40%, #3A2618 100%);
}
.prasadam-hero .page-hero-overlay {
    background: radial-gradient(ellipse at 40% 50%, rgba(76, 175, 80, 0.2) 0%, transparent 70%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.page-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.page-hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Page Sections */
.page-section {
    padding: 80px 0;
}

.page-section.alt-bg {
    background: linear-gradient(to bottom, var(--ivory-cream), var(--light-cream));
}

/* Story Card */
.story-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(94, 48, 35, 0.08);
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    border-left: 6px solid var(--tawny-gold);
}

.story-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tawny-gold), var(--caramel-brown));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(192, 133, 82, 0.3);
}

.story-text h3 {
    font-size: 1.6rem;
    color: var(--espresso-brown);
    margin-bottom: 1rem;
    font-weight: 700;
}

.story-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.quote-text {
    font-style: italic;
    color: var(--caramel-brown);
    font-weight: 600;
    font-size: 1.1rem !important;
    border-left: 3px solid var(--tawny-gold);
    padding-left: 1rem;
    margin-top: 1.5rem !important;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(94, 48, 35, 0.08);
    border: 2px solid var(--peach-beige);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(94, 48, 35, 0.15);
    border-color: var(--tawny-gold);
}

.pricing-card.featured {
    border-color: var(--tawny-gold);
    box-shadow: 0 12px 40px rgba(192, 133, 82, 0.2);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--tawny-gold), var(--caramel-brown));
    color: white;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ivory-cream), var(--peach-beige));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1.5rem;
    color: var(--caramel-brown);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--espresso-brown);
    margin-bottom: 1rem;
    font-weight: 700;
}

.pricing-amount {
    margin-bottom: 1rem;
    line-height: 1;
}

.pricing-amount .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--caramel-brown);
    vertical-align: top;
}

.pricing-amount .amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--espresso-brown);
    background: linear-gradient(135deg, var(--tawny-gold), var(--caramel-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-amount .period {
    font-size: 1rem;
    color: var(--caramel-brown);
    font-weight: 500;
}

.pricing-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.6rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--tawny-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Full Adoption / Premium Card */
.full-adoption-card {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--espresso-brown), #3A2618);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(94, 48, 35, 0.2);
}

.adoption-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    text-align: left;
}

.adoption-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tawny-gold), #FFD700);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--espresso-brown);
    box-shadow: 0 8px 20px rgba(192, 133, 82, 0.4);
}

.adoption-text h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.adoption-text p {
    color: var(--peach-beige);
    line-height: 1.7;
    font-size: 1rem;
}

.adoption-price {
    flex-shrink: 0;
    text-align: center;
}

.adoption-price .currency {
    font-size: 1.2rem;
    color: var(--tawny-gold);
    font-weight: 700;
}

.adoption-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: block;
    line-height: 1.2;
}

.adoption-price .period {
    font-size: 0.9rem;
    color: var(--peach-beige);
    display: block;
}

/* Icon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.icon-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(94, 48, 35, 0.08);
    border: 2px solid var(--peach-beige);
    transition: all 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(94, 48, 35, 0.15);
    border-color: var(--tawny-gold);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
}

.icon-circle.green { background: linear-gradient(135deg, #4CAF50, #2E7D32); box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3); }
.icon-circle.blue { background: linear-gradient(135deg, #2196F3, #1565C0); box-shadow: 0 6px 15px rgba(33, 150, 243, 0.3); }
.icon-circle.orange { background: linear-gradient(135deg, #FF9800, #F57C00); box-shadow: 0 6px 15px rgba(255, 152, 0, 0.3); }
.icon-circle.pink { background: linear-gradient(135deg, #E91E63, #C2185B); box-shadow: 0 6px 15px rgba(233, 30, 99, 0.3); }
.icon-circle.purple { background: linear-gradient(135deg, #9C27B0, #6A1B9A); box-shadow: 0 6px 15px rgba(156, 39, 176, 0.3); }
.icon-circle.teal { background: linear-gradient(135deg, #00BCD4, #0097A7); box-shadow: 0 6px 15px rgba(0, 188, 212, 0.3); }

.icon-card h4 {
    font-size: 1.2rem;
    color: var(--espresso-brown);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.icon-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Improvement Grid (Classrooms page) */
.improvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2.5rem;
}

.improvement-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(94, 48, 35, 0.08);
    position: relative;
    border: 2px solid var(--peach-beige);
    transition: all 0.4s ease;
}

.improvement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(94, 48, 35, 0.15);
    border-color: var(--tawny-gold);
}

.improvement-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--peach-beige), var(--ivory-cream));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--espresso-brown);
}

.improvement-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--tawny-gold), var(--caramel-brown));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(192, 133, 82, 0.3);
}

.improvement-card h3 {
    font-size: 1.5rem;
    color: var(--espresso-brown);
    margin-bottom: 1rem;
    font-weight: 700;
}

.improvement-card > p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.improvement-list {
    list-style: none;
    padding: 0;
}

.improvement-list li {
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.improvement-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--tawny-gold);
    font-weight: bold;
}

/* Impact Stats Row */
.impact-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.impact-stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(94, 48, 35, 0.1);
    border: 2px solid var(--peach-beige);
    transition: all 0.3s ease;
}

.impact-stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--tawny-gold);
}

.impact-stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tawny-gold), var(--caramel-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.impact-stat-label {
    font-size: 1rem;
    color: var(--caramel-brown);
    font-weight: 600;
}

/* Render Gallery (Building page) */
.render-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.render-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(94, 48, 35, 0.12);
    transition: transform 0.3s ease;
}

.render-card:hover {
    transform: translateY(-5px);
}

.render-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.render-caption {
    padding: 2rem 2.5rem;
}

.render-caption h3 {
    font-size: 1.4rem;
    color: var(--espresso-brown);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.render-caption p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
}

/* Challenge Card (Flooding) */
.challenge-section {
    padding: 0 0 80px;
}

.challenge-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFF3E0, #FFECB3);
    border-radius: 20px;
    padding: 2.5rem;
    border-left: 6px solid #FF9800;
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.15);
}

.challenge-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.challenge-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.challenge-content h3 {
    font-size: 1.5rem;
    color: #E65100;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.challenge-content p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

/* Page CTA Section */
.page-cta {
    background: linear-gradient(135deg, var(--espresso-brown), #3A2618);
    padding: 80px 0;
    text-align: center;
}

.page-cta h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-cta p {
    font-size: 1.15rem;
    color: var(--peach-beige);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .page-hero-content h1 {
        font-size: 2.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .improvement-grid {
        grid-template-columns: 1fr;
    }

    .adoption-content {
        flex-direction: column;
        text-align: center;
    }

    .adoption-text {
        text-align: center;
    }

    .render-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 350px;
    }

    .page-hero-content {
        padding: 60px 20px;
    }

    .page-hero-content h1 {
        font-size: 2rem;
    }

    .page-hero-content p {
        font-size: 1rem;
    }

    .page-section {
        padding: 60px 0;
    }

    .story-card {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .story-icon {
        margin: 0 auto;
    }

    .challenge-content {
        flex-direction: column;
        text-align: center;
    }

    .challenge-icon {
        margin: 0 auto;
    }

    .icon-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .impact-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .render-image {
        height: 220px;
    }

    .page-cta h2 {
        font-size: 1.8rem;
    }

    .full-adoption-card {
        padding: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-hero-content h1 {
        font-size: 1.7rem;
    }

    .page-hero-badge {
        font-size: 0.8rem;
        padding: 4px 14px;
    }

    .pricing-amount .amount {
        font-size: 2.2rem;
    }

    .adoption-price .amount {
        font-size: 2rem;
    }

    .impact-stat-number {
        font-size: 2.2rem;
    }

    .impact-stats-row {
        grid-template-columns: 1fr;
    }

    .improvement-card {
        padding: 1.5rem;
    }
}
