/* ===================================
   Programs Page Styles
   Al-Alwi International Schools
   =================================== */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Programs Tabs */
.programs-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 30px 0;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 35px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Program Showcase */
.program-showcase {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.program-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    padding: 40px;
    color: white;
    display: flex;
    align-items: center;
    gap: 25px;
}

.program-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-icon i {
    font-size: 2.5rem;
}

.program-info h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.program-info p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.program-body {
    padding: 40px;
}

/* Age & Schedule Info */
.age-schedule-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: #f8fafc;
    border-radius: 12px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.info-item span {
    color: var(--text-color);
    font-weight: 600;
}

/* Curriculum Section */
.curriculum-section {
    margin-bottom: 40px;
}

.curriculum-section h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.curriculum-section h3 i {
    color: var(--primary-blue);
}

.curriculum-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.curriculum-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.curriculum-item:hover {
    background: #e7f0fe;
    transform: translateX(5px);
}

.curriculum-item i {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.curriculum-item-content h4 {
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.curriculum-item-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Subject Cards */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.subject-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.subject-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
}

.subject-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.subject-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.subject-card p {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Teaching Methods */
.methods-section {
    background: #f8fafc;
    padding: 60px 0;
    margin-top: 60px;
}

.methods-header {
    text-align: center;
    margin-bottom: 40px;
}

.methods-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.methods-header p {
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.method-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.method-icon i {
    font-size: 1.8rem;
    color: white;
}

.method-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.method-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Schedule Overview */
.schedule-section {
    padding: 60px 0;
}

.schedule-header {
    text-align: center;
    margin-bottom: 40px;
}

.schedule-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.schedule-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.schedule-card h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 8px;
}

.schedule-card p {
    color: var(--text-color);
    font-weight: 600;
}

.schedule-card span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Why Choose Section */
.why-choose-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    padding: 60px 0;
    color: white;
    text-align: center;
}

.why-choose-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    padding: 30px;
}

.feature-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.cta-section p {
    color: #6b7280;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .program-showcase {
        background: #1e293b;
    }
    
    .program-body {
        background: #1e293b;
    }
    
    .info-item {
        background: #334155;
    }
    
    .info-item span {
        color: #e2e8f0;
    }
    
    .curriculum-section h3 {
        color: #f1f5f9;
    }
    
    .curriculum-item {
        background: #334155;
    }
    
    .curriculum-item-content h4 {
        color: #f1f5f9;
    }
    
    .curriculum-item-content p {
        color: #94a3b8;
    }
    
    .subject-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .subject-card h4 {
        color: #f1f5f9;
    }
    
    .methods-section {
        background: #0f172a;
    }
    
    .methods-header h2 {
        color: #f1f5f9;
    }
    
    .method-card {
        background: #1e293b;
    }
    
    .method-card h3 {
        color: #f1f5f9;
    }
    
    .schedule-section {
        background: #1e293b;
    }
    
    .schedule-header h2 {
        color: #f1f5f9;
    }
    
    .schedule-card {
        background: #0f172a;
    }
    
    .schedule-card p {
        color: #e2e8f0;
    }
    
    .cta-section h2 {
        color: #f1f5f9;
    }
    
    .tab-btn {
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .tab-btn:hover,
    .tab-btn.active {
        background: var(--primary-blue);
        border-color: var(--primary-blue);
        color: white;
    }
}

/* Body dark mode override */
body.dark-mode .program-showcase,
body.dark-mode .program-body {
    background: #1e293b;
}

body.dark-mode .info-item {
    background: #334155;
}

body.dark-mode .info-item span,
body.dark-mode .curriculum-section h3,
body.dark-mode .curriculum-item-content h4,
body.dark-mode .subject-card h4,
body.dark-mode .methods-header h2,
body.dark-mode .method-card h3,
body.dark-mode .schedule-header h2,
body.dark-mode .schedule-card p,
body.dark-mode .cta-section h2 {
    color: #f1f5f9;
}

body.dark-mode .curriculum-item {
    background: #334155;
}

body.dark-mode .curriculum-item-content p,
body.dark-mode .subject-card p,
body.dark-mode .method-card p,
body.dark-mode .schedule-card span,
body.dark-mode .cta-section p {
    color: #94a3b8;
}

body.dark-mode .subject-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .methods-section {
    background: #0f172a;
}

body.dark-mode .method-card {
    background: #1e293b;
}

body.dark-mode .schedule-card {
    background: #0f172a;
}

body.dark-mode .tab-btn {
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .tab-btn:hover,
body.dark-mode .tab-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .program-header {
        flex-direction: column;
        text-align: center;
    }
    
    .program-info h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 20px 50px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .programs-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .program-header {
        padding: 30px 25px;
    }
    
    .program-body {
        padding: 30px 25px;
    }
    
    .age-schedule-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .curriculum-list {
        grid-template-columns: 1fr;
    }
    
    .methods-section,
    .schedule-section,
    .why-choose-section,
    .cta-section {
        padding: 40px 0;
    }
    
    .methods-header h2,
    .schedule-header h2,
    .why-choose-section h2,
    .cta-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .page-hero h1 {
        font-size: 1.6rem;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subject-card {
        padding: 20px 15px;
    }
    
    .subject-card i {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ===================================
   Signature Programs / Showcase Cards
   =================================== */

.signature-programs {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

body.dark-mode .signature-programs {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.programs-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.showcase-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.showcase-card:hover::before {
    transform: scaleX(1);
}

.showcase-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(30, 58, 138, 0.15);
}

.showcase-body {
    padding: 40px 30px;
    text-align: center;
}

.showcase-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.showcase-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    opacity: 0.2;
    z-index: -1;
    transition: all 0.4s ease;
}

.showcase-card:hover .showcase-icon {
    transform: scale(1.1) rotate(5deg);
}

.showcase-card:hover .showcase-icon::after {
    inset: -8px;
    opacity: 0.3;
}

.showcase-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.showcase-body h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.showcase-body > p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #475569;
    font-size: 0.95rem;
    border-bottom: 1px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover {
    padding-left: 8px;
    color: var(--primary-blue);
}

.feature-list li i {
    color: #10b981;
    font-size: 1rem;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.showcase-body .btn {
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.showcase-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.25);
}

/* Dark Mode for Showcase Cards */
body.dark-mode .showcase-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .showcase-card:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

body.dark-mode .showcase-body h3 {
    color: #60a5fa;
}

body.dark-mode .showcase-body > p {
    color: #94a3b8;
}

body.dark-mode .feature-list li {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .feature-list li:hover {
    color: #60a5fa;
}

body.dark-mode .feature-list li i {
    background: rgba(16, 185, 129, 0.2);
}

/* Responsive for Showcase Cards */
@media (max-width: 768px) {
    .programs-showcase {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .showcase-body {
        padding: 30px 25px;
    }
    
    .showcase-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    
    .showcase-icon i {
        font-size: 2rem;
    }
    
    .feature-list {
        text-align: center;
    }
    
    .feature-list li {
        justify-content: center;
    }
}
