/* ===== CLARA SCIENCE ACADEMY - HOME PAGE REDESIGN ===== */
/* Clean, editorial layout. Same info, new structure and visuals. */

:root {
    --home-primary: #0f766e;
    --home-primary-dark: #0d5c56;
    --home-accent: #d97706;
    --home-text: #1f2937;
    --home-text-muted: #6b7280;
    /* Soft off-white and subtle teal tint instead of stark white */
    --home-bg: #f5f6f4;
    --home-bg-alt: #e8f0ef;
    --home-border: #dde5e4;
    --home-card-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --home-card-shadow-hover: 0 10px 25px rgba(0,0,0,0.08);
}

/* ----- Hero wrap: contains background + content ----- */
.home-hero-wrap {
    position: relative;
    min-height: 72vh;
    max-height: 720px;
}

/* ----- Hero background: image slideshow ----- */
.home-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.home-hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.home-hero-bg-slide.active {
    opacity: 1;
    z-index: 1;
}

.home-hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, rgba(15, 118, 110, 0.82) 0%, rgba(19, 78, 74, 0.88) 50%, rgba(13, 92, 86, 0.9) 100%);
    z-index: 2;
}

/* ----- Hero: content on top of image ----- */
.home-hero {
    min-height: 72vh;
    max-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--home-bg), transparent);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.home-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.home-hero .lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.home-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.home-hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    font-size: 0.95rem;
}

.home-hero-feature i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.home-hero-actions p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.home-hero-btn-primary {
    background: #fff;
    color: var(--home-primary);
}

.home-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: var(--home-primary-dark);
}

.home-hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.home-hero-btn-outline:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}

.home-hero-btn-accent {
    background: var(--home-accent);
    color: #fff;
}

.home-hero-btn-accent:hover {
    background: #b45309;
    color: #fff;
    transform: translateY(-2px);
}

/* ----- Sections: alternating bg ----- */
.home-section {
    padding: 4rem 1.5rem;
    background: var(--home-bg);
}

.home-section-alt {
    background: var(--home-bg-alt);
}

.home-section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.home-section-subtitle {
    font-size: 1.1rem;
    color: var(--home-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* ----- About: two columns ----- */
.home-about-text .lead {
    font-size: 1.25rem;
    color: var(--home-text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.home-about-text p {
    color: var(--home-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.home-stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.home-stat-card {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--home-card-shadow);
    transition: box-shadow 0.2s;
}

.home-stat-card:hover {
    box-shadow: var(--home-card-shadow-hover);
}

.home-stat-card i {
    font-size: 2rem;
    color: var(--home-primary);
}

.home-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--home-text);
}

.home-stat-label {
    font-size: 0.9rem;
    color: var(--home-text-muted);
    margin: 0;
}

.home-campus-card {
    background: linear-gradient(145deg, var(--home-primary) 0%, var(--home-primary-dark) 100%);
    border-radius: 16px;
    padding: 2rem;
    color: #fff;
    height: 100%;
}

.home-campus-card h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home-campus-card .subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.home-campus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-campus-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.home-campus-list li i {
    color: rgba(255,255,255,0.9);
}

/* ----- Feature cards grid ----- */
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.home-feature-card {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.home-feature-card:hover {
    box-shadow: var(--home-card-shadow-hover);
    transform: translateY(-2px);
}

.home-feature-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--home-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.home-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 0.5rem;
}

.home-feature-card p {
    font-size: 0.95rem;
    color: var(--home-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ----- Program cards ----- */
.home-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.home-program-card {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.home-program-card:hover {
    box-shadow: var(--home-card-shadow-hover);
    border-color: var(--home-primary);
}

.home-program-card .icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--home-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.home-program-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 0.5rem;
}

.home-program-card p {
    font-size: 0.9rem;
    color: var(--home-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ----- Technology section ----- */
.home-tech-content p {
    color: var(--home-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.home-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-tech-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--home-text);
}

.home-tech-list li i {
    color: var(--home-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.home-tech-stack {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.home-tech-stack h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.home-tech-stack .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.home-tech-stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--home-bg-alt);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--home-text);
}

.home-tech-stack-item i {
    font-size: 1.5rem;
    color: var(--home-primary);
}

.home-tech-badge {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--home-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ----- Leadership / testimonials ----- */
.home-leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.home-leadership-card {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    transition: box-shadow 0.2s;
}

.home-leadership-card:hover {
    box-shadow: var(--home-card-shadow-hover);
}

.home-leadership-card .quote-icon {
    color: var(--home-border);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.home-leadership-card .content {
    font-size: 0.95rem;
    color: var(--home-text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.home-leadership-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-leadership-card .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--home-bg-alt);
    color: var(--home-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.home-leadership-card .author-name {
    font-weight: 700;
    color: var(--home-text);
    margin: 0 0 0.15rem 0;
}

.home-leadership-card .author-role {
    font-size: 0.85rem;
    color: var(--home-text-muted);
    margin: 0;
}

/* ----- Contact ----- */
.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.home-contact-card {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
}

.home-contact-card:hover {
    box-shadow: var(--home-card-shadow-hover);
}

.home-contact-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--home-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 1rem;
}

.home-contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 0.5rem;
}

.home-contact-card p,
.home-contact-card a {
    font-size: 0.9rem;
    color: var(--home-text-muted);
    margin: 0;
    text-decoration: none;
}

.home-contact-card a:hover {
    color: var(--home-primary);
}

.home-office-hours {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.home-office-hours h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-office-hours .row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--home-border);
    font-size: 0.95rem;
}

.home-office-hours .row-item:last-child {
    border-bottom: none;
}

.home-office-hours .row-item.closed {
    color: var(--home-text-muted);
}

/* ----- CTA strip ----- */
.home-cta {
    background: linear-gradient(165deg, var(--home-primary) 0%, var(--home-primary-dark) 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: #fff;
}

.home-cta h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.home-cta .lead {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.home-cta .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.home-cta .btn-light {
    background: #fff;
    color: var(--home-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.home-cta .btn-light:hover {
    background: #f1f5f9;
    color: var(--home-primary-dark);
}

.home-cta .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.home-cta .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

/* ----- Modals: keep structure, light restyle ----- */
#contactModal .modal-header {
    background: var(--home-primary) !important;
}

#contactModal .text-success {
    color: var(--home-primary) !important;
}

#contactModal .contact-icon-wrapper i,
#contactModal .btn-success {
    color: var(--home-primary) !important;
}

/* ----- Updates modal: match home redesign ----- */
.home-updates-modal {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.home-updates-header {
    background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-primary-dark) 100%) !important;
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.home-updates-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.home-updates-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.home-updates-body {
    background: var(--home-bg) !important;
    color: var(--home-text);
    padding: 1.5rem 1.75rem;
}

.home-updates-intro {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.home-updates-intro-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--home-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.home-updates-intro-title {
    font-weight: 700;
    color: var(--home-text);
    font-size: 1rem;
}

.home-updates-intro .updates-intro-text {
    font-size: 0.95rem;
    color: var(--home-text-muted);
    line-height: 1.6;
}

#updateModal .update-sections {
    margin-top: 1rem;
}

#updateModal .update-section {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--home-primary);
}

#updateModal .update-section h6 {
    font-weight: 700;
    color: var(--home-text);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

#updateModal .update-section ul li {
    font-size: 0.9rem;
    color: var(--home-text-muted);
    line-height: 1.6;
}

#updateModal .update-section .bi,
#updateModal .update-section .fas {
    color: var(--home-primary);
}

#updateModal .modal-footer {
    background: var(--home-bg-alt) !important;
    border-top: 1px solid var(--home-border);
    padding: 1rem 1.5rem;
}

#updateModal .modal-footer .btn-primary {
    background: var(--home-primary) !important;
    border-color: var(--home-primary) !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}

#updateModal .modal-footer .btn-primary:hover {
    background: var(--home-primary-dark) !important;
    border-color: var(--home-primary-dark) !important;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
        padding: 3rem 1rem;
    }
    .home-hero-features {
        flex-direction: column;
        align-items: center;
    }
    .home-stat-cards {
        grid-template-columns: 1fr;
    }
    .home-section {
        padding: 3rem 1rem;
    }
}
