/*
Theme Name: Adventure Sports Academy AP
Theme URI: https://asaap.gov.in
Author: ASAAP
Author URI: https://asaap.gov.in
Description: A modern Full Site Editing block theme for the Adventure Sports Academy Andhra Pradesh.
Version: 1.0.0
Text Domain: asaap
Tags: full-site-editing, custom-colors
*/

/* Core CSS */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Base Utility Classes */
.has-text-align-center { text-align: center; }

/* --- Home Page Expansion CSS --- */

/* Highlight Boxes */
.highlight-box {
    background-color: #F5F6F7 !important;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.highlight-box:hover {
    transform: translateY(-5px);
}

/* Our Programs (Hover Flip/Fade) */
.program-hover-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.program-hover-box .wp-block-cover__inner-container {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateY(100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.program-hover-box:hover .wp-block-cover__inner-container {
    transform: translateY(0);
    opacity: 1;
}
.program-hover-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    color: white;
    font-weight: bold;
    font-size: 24px;
}
.program-hover-box:hover .program-hover-title {
    opacity: 0;
}

/* Adventure Gallery Hover */
.gallery-hover-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-hover-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-hover-item:hover img {
    transform: scale(1.1);
}
.gallery-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(31, 78, 121, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    text-align: center;
    z-index: 2;
}
.gallery-hover-item:hover .gallery-hover-overlay {
    opacity: 1;
}

/* Reviews Carousel */
.review-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}
.review-carousel-container {
    display: flex;
    overflow: hidden;
    gap: 20px;
    scroll-behavior: smooth;
}
.review-card {
    flex: 0 0 calc(33.333% - 14px);
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.review-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #E65C1C;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-prev { left: 0; }
.review-next { right: 0; }
.review-nav-btn:hover { background: #1F4E79; }

@media (max-width: 768px) {
    .review-card { flex: 0 0 calc(100% - 0px); }
}

/* Hero Slider Styles */
.hero-slider-container {
    min-height: 1080px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-slider-container > * {
    position: relative;
    z-index: 2;
}
.hero-bg-slider {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1 !important;
    background-color: #333;
}
.hero-bg-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dimming overlay */
    z-index: 2;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
}

.wp-block-columns { margin-left: auto !important; margin-right: auto !important; }

/* --- About Us Page CSS --- */
.kicker-text { color: #4CAF50; font-size: 14px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; display: inline-block; }
.heading-underline { position: relative; display: inline-block; padding-bottom: 10px; margin-bottom: 30px; }
.heading-underline::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background-color: #E65C1C; }
.about-quote-block { background-color: #fdf5f0; border-left: 5px solid #E65C1C; padding: 30px 50px; margin: 40px 0; font-style: italic; font-size: 18px; color: #333; text-align: center; }
.about-quote-author { display: block; margin-top: 15px; font-weight: bold; font-style: normal; color: #333; }
.vision-mission-card { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 100%; text-align: center; }
.vision-card { border-top: 5px solid #4CAF50; }
.mission-card { border-top: 5px solid #4285F4; }
.vm-icon { font-size: 40px; margin-bottom: 20px; }
.core-values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top:40px; }
.core-value-card { background: white; padding: 40px 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); text-align: center; transition: transform 0.3s ease; }
.core-value-card:hover { transform: translateY(-5px); }
.core-value-icon { font-size: 40px; margin-bottom: 20px; }
.core-value-title { color: #1F4E79; margin-bottom: 15px; }
.advisers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding-top: 60px; margin-top:40px; }
.adviser-card { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 0 20px 30px; text-align: center; position: relative; margin-top: 60px; }
.adviser-image-wrapper { width: 120px; height: 120px; margin: -60px auto 20px; border-radius: 50%; overflow: hidden; border: 4px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.adviser-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.adviser-name { color: #1F4E79; font-size: 22px; margin-bottom: 5px; font-weight: bold; }
.adviser-role { color: #E65C1C; font-weight: bold; font-size: 14px; margin-bottom: 5px; }
.adviser-specialty { color: #E65C1C; font-size: 13px; margin-bottom: 15px; }

/* --- Programs Page CSS --- */

/* Tabs Navigation */
.programs-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.tab-btn {
    background-color: transparent;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}
.tab-btn:hover {
    border-color: #2E6B4F;
    color: #2E6B4F;
}
.tab-btn.active {
    background-color: #2E6B4F;
    color: white;
    border-color: #2E6B4F;
}

/* Tab Content Areas */
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-border-orange { border-top: 5px solid #E65C1C; }
.card-border-blue { border-top: 5px solid #1F4E79; }

.program-icon {
    font-size: 35px;
    margin-bottom: 15px;
}
.program-title {
    color: #1F4E79;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Meta Details List */
.program-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}
.program-meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px dashed #eee;
    padding-bottom: 12px;
}
.program-meta li:last-child {
    border-bottom: none;
}
.meta-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: #f0f5f2;
    border-radius: 50%;
    font-size: 12px;
}

.program-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* --- Detail Pages CSS --- */
.detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 0;
}
.detail-main {
    flex: 1 1 65%;
    min-width: 300px;
}
.detail-sidebar {
    flex: 1 1 30%;
    min-width: 300px;
}
.sticky-sidebar {
    position: sticky;
    top: 40px;
}

/* Typography & Content */
.detail-heading {
    color: #1F4E79;
    font-size: 32px;
    margin-bottom: 20px;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 10px;
    display: inline-block;
}
.detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}
.learning-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}
.learning-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #444;
}
.learning-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 2px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #E65C1C;
}
.sidebar-widget.blue-border {
    border-top-color: #1F4E79;
}
.widget-title {
    font-size: 20px;
    color: #1F4E79;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Batches List */
.batch-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.batch-item {
    background: white;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.batch-date {
    font-weight: bold;
    color: #4CAF50;
    font-size: 15px;
}
.batch-status {
    font-size: 12px;
    background: #eef2f7;
    padding: 2px 8px;
    border-radius: 10px;
    color: #1F4E79;
    margin-top: 5px;
    display: inline-block;
}

/* Forms */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.custom-form label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}
.custom-form input, .custom-form select, .custom-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
}
.custom-form input:focus, .custom-form select:focus, .custom-form textarea:focus {
    border-color: #E65C1C;
    outline: none;
}
.submit-btn {
    background-color: #E65C1C;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.submit-btn:hover {
    background-color: #d14c11;
}

/* Action Buttons */
.action-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}
.btn-blue { background: #1F4E79; color: white; }
.btn-green { background: #4CAF50; color: white; }
.action-btn:hover { opacity: 0.9; color: white; }

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}
.media-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Join Us Form CSS --- */
.registration-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}
.form-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #1F4E79;
}
.form-section-title {
    color: #1F4E79;
    font-size: 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}
.form-control:focus {
    border-color: #E65C1C;
    outline: none;
}
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Grids */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Dynamic Table Simulation */
.qualifications-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.qualifications-table th, .qualifications-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.qualifications-table th {
    background-color: #f9f9f9;
    font-size: 14px;
    color: #333;
}
.qualifications-table td input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
}
.qualifications-table td input:focus {
    outline: none;
}
.add-row-btn {
    background: #eef2f7;
    color: #1F4E79;
    border: 1px dashed #1F4E79;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Terms Box */
.terms-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    height: 200px;
    overflow-y: scroll;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.terms-box h4 {
    color: #333;
    margin: 15px 0 5px 0;
}
.terms-box h4:first-child {
    margin-top: 0;
}

/* Submit */
.submit-registration-btn {
    background-color: #E65C1C;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.submit-registration-btn:hover {
    background-color: #d14c11;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .qualifications-table {
        display: block;
        overflow-x: auto;
    }
}

/* --- Gallery & Campus CSS --- */

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn {
    background-color: transparent;
    border: 2px solid #2E6B4F;
    color: #2E6B4F;
    padding: 8px 25px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 30px; /* Pill shape */
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}
.filter-btn:hover, .filter-btn.active {
    background-color: #2E6B4F;
    color: white;
}

/* Photo Gallery Grid */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.photo-item {
    flex: 1 1 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    display: block; /* Default visible */
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.photo-item.hidden {
    display: none;
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.photo-item:hover img {
    transform: scale(1.05);
}

/* Video Cards */
.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
}
.video-card:hover {
    transform: translateY(-5px);
}
.video-thumbnail {
    position: relative;
    height: 220px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.play-btn-overlay {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #E65C1C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(230, 92, 28, 0.4);
    transition: transform 0.2s ease;
}
.video-card:hover .play-btn-overlay {
    transform: scale(1.1);
}
.video-info {
    padding: 25px;
    text-align: center;
}
.video-title {
    color: #1F4E79;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.video-subtitle {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* Section Headings */
.cg-section-title {
    text-align: center;
    color: #1F4E79;
    font-size: 36px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
}
.cg-section-underline {
    width: 80px;
    height: 4px;
    background: #E65C1C;
    margin: 0 auto 40px auto;
}

/* --- Checkmark Lists & Lightbox --- */

.checkmark-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.checkmark-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}
.checkmark-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    color: #1F4E79; /* Dark Blue */
    font-size: 14px;
    background: #eef2f7;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

/* Hide all images except first in target galleries */
.asaap-lightbox-gallery figure:not(:first-child) {
    display: none !important;
}
.asaap-lightbox-gallery figure:first-child {
    cursor: pointer;
    position: relative;
    display: block !important;
    width: 100% !important;
}
.asaap-lightbox-gallery figure:first-child img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.asaap-lightbox-gallery figure:first-child:hover img {
    transform: scale(1.02);
}
.asaap-lightbox-gallery figure:first-child::after {
    content: '📸 View Gallery';
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(31, 78, 121, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.lightbox-modal.active {
    display: flex;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: block;
    margin: 0 auto;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover {
    color: #E65C1C;
}
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
}
.lightbox-prev {
    left: -70px;
}
.lightbox-next {
    right: -70px;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background-color: #E65C1C;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { right: 10px; top: -40px; }
}
