/* Pages Stylesheet - Additional styles for inner pages */

/* === Alerts === */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* === Courses Page === */
.courses-section {
    background: var(--light-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.course-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
}

.course-header h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.age-group {
    font-size: 1.1rem;
    opacity: 0.9;
}

.course-body {
    padding: 30px 25px;
    flex-grow: 1;
}

.course-body h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.course-body ul {
    list-style: none;
}

.course-body ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.course-body ul li i {
    color: var(--success);
    margin-top: 3px;
}

.course-duration {
    margin-top: 20px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
}

.course-duration i {
    color: var(--accent-color);
    margin-right: 8px;
}

.course-footer {
    padding: 0 25px 30px;
}

.course-footer .btn {
    width: 100%;
    padding: 12px;
}

/* === Course Features === */
.course-features {
    background: var(--white);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-item h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* === Booking Page === */
.booking-section {
    background: var(--light-color);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.booking-info {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.booking-info h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.info-list {
    margin: 30px 0;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    color: var(--success);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.info-item h3 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--gray);
    line-height: 1.6;
}

.trial-benefits {
    margin-top: 30px;
    padding: 25px;
    background: var(--light-color);
    border-radius: 10px;
}

.trial-benefits h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.trial-benefits ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trial-benefits ul li i {
    color: var(--accent-color);
}

.booking-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.booking-form-container h2 {
    color: var(--dark-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

/* === Forms === */
.booking-form,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* === Contact Page === */
.contact-section {
    background: var(--light-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info-box h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.contact-info-box > p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    margin: 30px 0;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-color);
}

.contact-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-detail-item .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail-item .info h3 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-detail-item .info p {
    color: var(--gray);
    line-height: 1.6;
}

.social-connect {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--light-color);
}

.social-connect h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form-box h2 {
    color: var(--dark-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

/* === Map Section === */
.map-section {
    background: var(--white);
    padding: 60px 0;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.map-note {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    margin-top: 15px;
}

/* === FAQ Page === */
.faq-section {
    background: var(--light-color);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: var(--transition);
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 25px 25px;
    color: var(--gray);
    line-height: 1.8;
}

/* === Gallery Page === */
.gallery-section {
    background: var(--light-color);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    color: var(--white);
    font-size: 3rem;
}

/* === Testimonials Page === */
.testimonials-section {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light-color);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: rgba(231, 76, 60, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-info h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.rating {
    color: var(--accent-color);
    margin-top: 5px;
}

/* === Gallery Page === */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 12px 25px;
    background: var(--white);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-section {
    padding: 60px 0;
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: var(--white);
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-item.hide {
    display: none;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.gallery-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.gallery-placeholder h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.gallery-placeholder p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-upload-info {
    margin-top: 40px;
}

.info-box {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-box i {
    font-size: 2rem;
    color: #2196f3;
    flex-shrink: 0;
}

.info-box h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-box p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-box ol {
    margin-left: 20px;
    color: var(--gray);
    line-height: 2;
}

.info-box ol li {
    margin-bottom: 8px;
}

.info-box code {
    background: rgba(0, 0, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--dark-color);
}

/* === Responsive Design === */
@media (max-width: 968px) {
    .booking-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .booking-info {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .info-box {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .booking-form-container,
    .contact-form-box,
    .booking-info,
    .contact-info-box {
        padding: 30px 20px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .course-card {
        margin-bottom: 20px;
    }

    .gallery-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-box {
        padding: 20px;
    }

    .info-box h3 {
        font-size: 1.2rem;
    }
}
