/**
 * Modern Pages Styles
 * Beautiful, Responsive Design
 */

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header-modern {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%);
    padding-top: 220px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.page-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.page-header-modern .container {
    position: relative;
    z-index: 2;
}

.page-header-modern h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-header-modern .breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-header-modern .breadcrumb-nav a {
    color: #D4AF37;
    text-decoration: none;
    transition: all 0.3s;
}

.page-header-modern .breadcrumb-nav a:hover {
    color: #fff;
}

.page-header-modern .breadcrumb-nav span {
    color: rgba(255,255,255,0.7);
}

.page-header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.page-header-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ==========================================================================
   Content Cards
   ========================================================================== */
.content-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.content-card-gradient {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #fff;
}

.content-card-gradient h3,
.content-card-gradient h4,
.content-card-gradient h5 {
    color: #D4AF37;
}

.content-card-gradient p {
    color: rgba(255,255,255,0.9);
}

/* ==========================================================================
   Icon Boxes
   ========================================================================== */
.icon-box {
    text-align: center;
    padding: 30px 20px;
}

.icon-box-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    transition: all 0.4s ease;
    position: relative;
}

.icon-box-circle::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed currentColor;
    opacity: 0.3;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.icon-box:hover .icon-box-circle {
    transform: scale(1.1) rotate(5deg);
}

.icon-box h5 {
    color: #1e3a5f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.icon-box p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Feature List
   ========================================================================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover {
    padding-right: 10px;
}

.feature-list .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
    font-size: 18px;
}

.feature-list .text h6 {
    color: #1e3a5f;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
}

.feature-list .text p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title-modern {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-modern .badge {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37, #f59e0b);
    color: #fff;
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title-modern h2 {
    color: #1e3a5f;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title-modern p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================================================
   Team Grid Modern
   ========================================================================== */
.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.team-member-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--member-color, #1e3a5f);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.team-member-card:hover::before {
    transform: scaleX(1);
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.team-member-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #fff;
    position: relative;
}

.team-member-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.2;
}

.team-member-card h6 {
    color: #1e3a5f;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   FAQ Accordion Modern
   ========================================================================== */
.faq-modern {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h5 {
    margin: 0;
    color: #1e3a5f;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.faq-question h5 i {
    color: #D4AF37;
    margin-left: 12px;
    font-size: 20px;
}

.faq-question .arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.faq-item.active .faq-question .arrow {
    background: #1e3a5f;
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px 25px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #666;
    line-height: 1.9;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   Contact Modern
   ========================================================================== */
.contact-info-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 25px;
    padding: 50px 40px;
    color: #fff;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
    font-size: 22px;
    color: #D4AF37;
    transition: all 0.3s;
}

.contact-info-item:hover .contact-info-icon {
    background: #D4AF37;
    color: #1e3a5f;
    transform: rotate(5deg);
}

.contact-info-text h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.contact-info-text p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 15px;
}

.contact-form-card {
    background: #fff;
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.form-group-modern {
    margin-bottom: 25px;
}

.form-group-modern label {
    display: block;
    color: #1e3a5f;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-group-modern input,
.form-group-modern textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: #f9fafb;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30,58,95,0.1);
}

.form-group-modern textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s;
    border: none;
    gap: 10px;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(30,58,95,0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30,58,95,0.4);
}

.btn-gold-modern {
    background: linear-gradient(135deg, #D4AF37 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(212,175,55,0.3);
}

.btn-gold-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212,175,55,0.4);
}

/* ==========================================================================
   Schedule Table Modern
   ========================================================================== */
.schedule-table-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.schedule-table-modern table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table-modern thead {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.schedule-table-modern th {
    color: #fff;
    padding: 20px;
    font-weight: 600;
    font-size: 15px;
}

.schedule-table-modern td {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #555;
}

.schedule-table-modern tbody tr:hover {
    background: #f8f9fa;
}

.schedule-table-modern tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table-modern .day-name {
    font-weight: 700;
    color: #1e3a5f;
}

.schedule-table-modern .highlight-row {
    background: linear-gradient(90deg, #fef3c7, #fef9c3);
}

/* ==========================================================================
   Programs Grid
   ========================================================================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--program-color, #1e3a5f);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.program-card-body {
    padding: 35px 30px;
    text-align: center;
}

.program-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 38px;
    color: #fff;
    position: relative;
}

.program-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed currentColor;
    opacity: 0.3;
}

.program-card h4 {
    color: #1e3a5f;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.program-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Image with Overlay
   ========================================================================== */
.image-modern {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.image-modern:hover img {
    transform: scale(1.05);
}

.image-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(30,58,95,0.1), transparent);
    pointer-events: none;
}

/* ==========================================================================
   Stats Counter
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #D4AF37;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .page-header-modern h1 {
        font-size: 36px;
    }

    .section-title-modern h2 {
        font-size: 28px;
    }

    .content-card {
        padding: 30px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 35px 25px;
    }

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

@media (max-width: 991px) {
    .page-header-modern {
        padding-top: 140px;
        padding-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .page-header-modern {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .page-header-modern h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .page-header-modern .breadcrumb-nav {
        font-size: 14px;
    }

    .section-title-modern h2 {
        font-size: 24px;
    }

    .section-title-modern p {
        font-size: 16px;
    }

    .content-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .team-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .team-member-card {
        padding: 20px 15px;
    }

    .team-member-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

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

    .faq-question {
        padding: 20px;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }

    .schedule-table-modern th,
    .schedule-table-modern td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .btn-modern {
        padding: 14px 30px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 36px;
    }
}
