/* 
 * programs.css
 * CSS styling for the Programs page of the Unlocking the Girl-Child Potential Initiative
 * Uses the established color palette: 
 * - Base background: #EEEAE7
 * - Primary accent: #ED6596
 * - Secondary accent: #C62A7E
 * - Text: #232323
 */

/* ======= Base Styles ======= */
:root {
    --base-bg: #EEEAE7;
    --primary-accent: #ED6596;
    --secondary-accent: #C62A7E;
    --text-color: #232323;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #dddddd;
    --dark-gray: #666666;
    --success: #28a745;
    --coming-soon: #ffc107;
    --closed: #dc3545;
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

a {
    color: var(--secondary-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-accent);
}

.bg-light {
    background-color: var(--base-bg);
}

/* ======= Typography ======= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 60px;
    background: var(--primary-accent);
    border-radius: 2px;
}

section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-accent);
}

p {
    margin-bottom: 1.5rem;
}

/* ======= Buttons ======= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-accent);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-accent);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-accent);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
}

.btn-outline:hover {
    background-color: var(--primary-accent);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ======= Header & Navigation ======= */
#header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 60px;
    border-radius: 0;
}

#main-nav {
    display: flex;
    align-items: center;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

#menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

#nav-links {
    display: flex;
    list-style: none;
}

#nav-links li {
    margin-left: 30px;
}

#nav-links a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

#nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: var(--transition);
}

#nav-links a:hover::after,
#nav-links a.active::after {
    width: 100%;
}

#nav-links a.active {
    color: var(--primary-accent);
}

/* ======= Page Banner ======= */
#page-banner {
    background-color: var(--secondary-accent);
    background-image: linear-gradient(45deg, var(--secondary-accent), var(--primary-accent));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

#page-banner h1 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 3rem;
}

#page-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ======= Programs Navigation ======= */
#programs-nav {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 90px;
    z-index: 900;
}

.program-nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.program-nav-links li {
    margin: 5px 15px;
}

.program-nav-links a {
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    transition: var(--transition);
}

.program-nav-links a:hover {
    background-color: var(--primary-accent);
    color: var(--white);
}

/* ======= Program Sections ======= */
.program-section {
    padding: 80px 0;
}

.program-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
}

.program-content.reverse {
    flex-direction: row-reverse;
}

.program-text,
.program-image {
    flex: 1;
}

.program-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.program-image img:hover {
    transform: scale(1.02);
}

.program-features {
    list-style: none;
    margin-bottom: 2rem;
}

.program-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.program-features i {
    color: var(--primary-accent);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.program-cta {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
}

/* ======= Program Impact ======= */
#program-impact {
    padding: 80px 0;
    background-color: var(--secondary-accent);
    color: var(--white);
    text-align: center;
}

#program-impact h2 {
    color: var(--white);
}

#program-impact h2::after {
    background: var(--white);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-card p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ======= Program Calendar ======= */
#program-calendar {
    padding: 80px 0;
}

.calendar-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.program-schedule {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.program-schedule th {
    background-color: var(--secondary-accent);
    color: var(--white);
    text-align: left;
    padding: 15px;
}

.program-schedule th:first-child {
    border-top-left-radius: 8px;
}

.program-schedule th:last-child {
    border-top-right-radius: 8px;
}

.program-schedule td {
    padding: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.program-schedule tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.program-schedule tr:hover {
    background-color: rgba(237, 101, 150, 0.05);
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.open {
    background-color: var(--success);
    color: var(--white);
}

.status.coming {
    background-color: var(--coming-soon);
    color: var(--text-color);
}

.status.closed {
    background-color: var(--closed);
    color: var(--white);
}

.calendar-cta {
    text-align: center;
    margin-top: 30px;
}

/* ======= Testimonials ======= */
#program-testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    animation: fade 0.5s;
}

.testimonial.active {
    display: block;
}

@keyframes fade {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

.testimonial-content {
    background-color: var(--base-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-content::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 5rem;
    color: rgba(198, 42, 126, 0.1);
    line-height: 1;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.testimonial-author h4 {
    color: var(--secondary-accent);
    margin-bottom: 5px;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

#prev-testimonial, #next-testimonial {
    background: var(--primary-accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#prev-testimonial:hover, #next-testimonial:hover {
    background: var(--secondary-accent);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--medium-gray);
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background-color: var(--primary-accent);
}

/* ======= FAQ Section ======= */
#program-faq {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(237, 101, 150, 0.05);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.faq-toggle {
    background: none;
    border: none;
    color: var(--primary-accent);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px;
}

/* ======= Call to Action ======= */
#programs-cta {
    padding: 80px 0;
    background-image: linear-gradient(45deg, var(--secondary-accent), var(--primary-accent));
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content h2::after {
    background: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-accent);
}

/* ======= Footer ======= */
#footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
    border-radius: 0;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background: var(--primary-accent);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--primary-accent);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-accent);
}

.contact-info a {
    color: var(--medium-gray);
}

.contact-info a:hover {
    color: var(--primary-accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--medium-gray);
}

/* ======= Back to Top Button ======= */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary-accent);
    transform: translateY(-5px);
}

/* ======= Media Queries ======= */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .program-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .program-content.reverse {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    #page-banner {
        padding: 60px 0;
    }
    
    #page-banner h1 {
        font-size: 2.5rem;
    }
    
    .program-section {
        padding: 60px 0;
    }
    
    #menu-toggle {
        display: block;
    }
    
    #nav-links {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    
    #nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    #nav-links li {
        margin: 15px 0;
    }
    
    #programs-nav {
        top: 80px;
    }
    
    .program-nav-links {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .logo img {
        height: 50px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    #page-banner {
        padding: 50px 0;
    }
    
    #page-banner h1 {
        font-size: 2rem;
    }
    
    .program-section {
        padding: 50px 0;
    }
    
    .footer-top {
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-col h3 {
        font-size: 1.1rem;
    }
}

/* ======= Animation & JavaScript Support ======= */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.8s forwards;
}