/*
Theme Name: Adventure Sports Academy Andhra Pradesh
Theme URI: 
Author: ASAAP
Description: A hybrid block-based theme for Adventure Sports Academy Andhra Pradesh.
Version: 1.0.0
Text Domain: asaap
Tags: block-theme, full-site-editing
*/

/* Global Styles & Brand System */
:root {
    --primary: #F15A24; /* Sunset Orange */
    --secondary: #00AEEF; /* Sky Blue */
    --text-base: #42210B; /* Earth Brown */
    --bg-white: #FFFFFF;
    --bg-light: #f4f6f8;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 10px 30px rgba(66, 33, 11, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-base);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Accounts for sticky header */
}

.site-header {
    background-color: #1B4332;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-base);
    transition: var(--transition);
}

.logo-wrapper:hover {
    opacity: 0.8;
}

.logo-img {
    height: 55px;
    width: 55px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 50%;
    border: 3px solid #ef5a24;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-heading);
    line-height: 1;
}

.logo-text br {
    display: none;
}

.logo-text .line-1 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bg-white);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
    white-space: normal; /* Changed to normal to prevent overflow on very small screens */
}

.logo-text .line-2 {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--bg-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    white-space: normal; /* Changed to normal */
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a.link {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--bg-white);
    text-transform: uppercase;
    font-size: 0.95rem;
    min-height: 44px;
    padding: 0 10px;
    white-space: nowrap;
}

.nav-links a.link:hover {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white) !important;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #d94b1a;
    transform: translateY(-2px);
    color: var(--bg-white);
}

.menu-toggle {
    display: none;
    font-size: 30px;
    padding: 15px; /* Increased hit area */
    text-align: center;
    cursor: pointer;
    color: #FFFFFF;
    transition: all 0.2s ease;
    border-radius: 5px;
    user-select: none;
}

.menu-toggle:active {
    background-color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-top: 3px solid var(--primary);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}
.dropdown-content a {
    color: var(--text-base);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.dropdown-content a:hover {
    background-color: rgba(235, 94, 40, 0.05); /* Light orange hover */
    color: var(--primary);
    padding-left: 25px;
}

/* Location Tabs Bar */
.location-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.location-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.location-tab.tab-gandikota {
    background-color: #1B4332;
}
.location-tab.tab-vijayawada {
    background-color: var(--primary);
}
.location-tab:hover {
    filter: brightness(1.1);
}

/* Mobile Nav */
@media (max-width: 992px) {
    .dropdown {
        width: 100%;
    }
    .dropdown-content {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
        border: none;
        animation: none;
    }
    .dropdown.mobile-open .dropdown-content {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1B4332; /* Deep Forest Green */
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
        display: none; /* hidden by default */
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
        animation: slideDownMenu 0.3s ease-out forwards;
        transform-origin: top;
    }
    @keyframes slideDownMenu {
        from { opacity: 0; transform: scaleY(0.9); }
        to { opacity: 1; transform: scaleY(1); }
    }
    .nav-links a.link {
        width: 100%;
        text-align: left;
        padding: 20px 30px;
        color: var(--bg-white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        font-size: 1.1rem;
    }
    .nav-links a.link:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    .nav-container > .btn-primary {
        display: none !important; /* Hide external button on mobile so it doesn't break header layout */
    }
    
    .nav-links .btn-primary {
        margin: 0;
        width: 100%;
        border-radius: 0;
        padding: 20px;
        font-size: 1.2rem;
        background-color: var(--primary);
        text-align: center;
        display: block;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Common Page Banner */
.page-banner {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-base);
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    font-size: 4rem;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
}

.page-banner p.banner-subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Watermark effect */
.page-banner .watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    z-index: 1;
    font-family: var(--font-heading);
    pointer-events: none;
}

.section {
    padding: 60px 20px;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-base);
    position: relative;
    display: inline-block;
    margin-bottom: 20px; /* Reduced margin */
    line-height: 1.2; /* Tighter line height so bottom is predictable */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Closer to text */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

/* 2-Column Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* 3-Column Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 4-Column Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card Styling */
.card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(66, 33, 11, 0.15);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-base);
}

.card-features {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-features li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #666;
    padding-left: 20px;
    position: relative;
}

.card-features li::before {
    content: '■';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 2px;
}

/* Program Card Specifics */
.program-card {
    padding: 2.5rem 2rem;
    align-items: center;
    text-align: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--bg-light);
}

.attribute-list {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
    text-align: left;
    width: 100%;
}

.attribute-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attribute-list li span.icon {
    font-size: 1.2rem;
}

.program-card p.description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-wide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 12px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: auto;
}

.btn-wide:hover {
    background-color: var(--text-base);
    color: var(--bg-white);
}

.btn-card {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    margin-top: auto;
    font-family: var(--font-heading);
}

.btn-card:hover {
    border-color: var(--primary);
}

/* Dynamic JS Tabs UI */
.tabs-container {
    margin-bottom: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    background: var(--bg-light);
    color: var(--text-base);
    border: 2px solid transparent;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Masonry Gallery */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background-color: #1B4332;
    color: var(--bg-white);
    /* margin-top: 4rem; removed */
}

.footer-top {
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
}

.footer-grid h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-vertical-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-vertical-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
}

.footer-vertical-logo h3 {
    color: var(--bg-white);
    font-size: 1.2rem;
    line-height: 1.1;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-vertical-logo h4 {
    color: var(--bg-white);
    font-size: 1rem;
    line-height: 1.1;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-brand p {
    color: #e0e0e0;
    margin: 20px 0;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-white);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* --- About Page Specifics --- */
.kicker-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.blockquote-highlight {
    background-color: var(--bg-white);
    border-left: 6px solid var(--text-base); /* Deep forest green */
    padding: 30px 40px;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-base);
    box-shadow: var(--shadow);
    margin: 40px 0;
    position: relative;
    border-radius: 5px;
}

.blockquote-highlight::before {
    content: '"';
    font-size: 5rem;
    color: rgba(27, 67, 50, 0.08);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: var(--font-heading);
}

.timeline-block {
    border-left: 3px solid var(--primary);
    padding-left: 25px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-block::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--bg-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #e0e0e0;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.footer-bottom {
    background-color: #122D22;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* Utility Classes */
.align-items-center {
    align-items: center;
}

@media (min-width: 769px) {
    .row-reverse {
        direction: rtl;
    }
    .row-reverse > * {
        direction: ltr;
    }
}

/* Detail Page Specifics */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    flex-wrap: wrap;
    gap: 20px;
}

.action-bar-left {
    flex: 1;
}

.action-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

.action-bar-right a {
    color: var(--text-base);
}

.action-bar-right a:hover {
    color: var(--primary);
}

.form-box {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-base);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.1);
}

.schedule-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    align-items: center;
}

.schedule-header {
    font-weight: 700;
    color: var(--text-base);
    text-transform: uppercase;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.schedule-row {
    display: contents;
}

.schedule-cell {
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-light);
    color: #555;
}

/* Home Page Modules */
/* 1. Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 10px 0;
    white-space: nowrap;
    box-sizing: border-box;
}
.ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
    font-weight: 600;
    letter-spacing: 1px;
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 2. Program Hover Cards */
.program-hover-card {
    background-color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.program-hover-card .card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: var(--transition);
}
.program-hover-card .card-title {
    color: var(--text-base);
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: var(--transition);
}
.program-hover-card .hover-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--bg-white);
}
.program-hover-card:hover {
    background-color: #1B4332; /* Deep Forest Green */
    transform: translateY(-10px);
}
.program-hover-card:hover .card-title,
.program-hover-card:hover .card-icon {
    color: var(--bg-white);
}
.program-hover-card:hover .hover-content {
    opacity: 1;
    max-height: 200px;
    margin-top: 15px;
}
.program-hover-card .hover-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

/* 3. Event Cards with Date Ribbons */
.event-card {
    position: relative;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.date-ribbon {
    position: absolute;
    top: 15px;
    left: -10px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 8px 20px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 2;
}
.date-ribbon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    border-top: 10px solid #cc491d; /* Darker orange for fold */
    border-left: 10px solid transparent;
}
.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.event-card-content {
    padding: 2rem;
}

/* 4. Testimonial Cards */
.testimonial-card {
    background: rgba(0, 174, 239, 0.1); /* Semi-transparent blue */
    border: 1px solid rgba(0, 174, 239, 0.3);
    border-radius: 8px;
    padding: 3rem 2rem 2rem;
    position: relative;
    margin-top: 40px; /* Space for overlapping profile */
    text-align: center;
}
.profile-overlap {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    object-fit: cover;
}

/* 5. Latest News */
.news-split-left {
    border-left: 8px solid var(--primary);
    padding-left: 30px;
}
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-list li {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}
.news-badge {
    display: inline-block;
    background-color: var(--text-base); /* Dark blue/brown */
    color: var(--bg-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Multi-Step Form Specifics */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step-dot {
    width: 35px;
    height: 35px;
    background: #ddd;
    color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-dot.active {
    background: var(--primary);
    color: var(--bg-white);
}

.step-dot.completed {
    background: var(--text-base);
    color: var(--bg-white);
}

.btn-secondary {
    display: inline-block;
    background-color: #ddd;
    color: var(--text-base);
    padding: 12px 24px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #ccc;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    cursor: pointer;
}

/* Join.html Registration Form Specifics */
.dynamic-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.dynamic-table th, .dynamic-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}
.dynamic-table th {
    background-color: var(--bg-light);
    font-size: 0.9rem;
}
.dynamic-table input {
    width: 100%;
    border: none;
    padding: 5px;
    background: transparent;
}
.dynamic-table input:focus {
    outline: 1px solid var(--primary);
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Drag and Drop Upload Zones */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background-color: rgba(235, 94, 40, 0.05); /* very light orange */
}
.upload-zone input[type="file"] {
    display: none;
}
.upload-zone .icon {
    font-size: 2rem;
    color: #888;
    margin-bottom: 10px;
}
.file-chip {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 15px;
}
.file-chip span {
    margin-right: 10px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-chip button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
}

/* Scrollable Terms Box */
.terms-box {
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-height: 250px;
    overflow-y: scroll;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.terms-box h4 {
    color: var(--text-base);
    margin-bottom: 10px;
}



/* Program Filter Tabs */
.program-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.program-tab {
    padding: 12px 25px;
    background-color: var(--bg-white);
    color: #1B4332;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.program-tab.active, .program-tab:hover {
    background-color: #1B4332;
    color: var(--bg-white);
    border-color: #1B4332;
}
.program-content {
    display: none;
    transition: opacity 0.3s ease;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 25px;
    border: 2px solid #1B4332;
    border-radius: 50px;
    background-color: var(--bg-white);
    color: #1B4332;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.filter-btn.active, .filter-btn:hover {
    background-color: #1B4332;
    color: var(--bg-white);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.video-card {
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
}
.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.video-card:hover img {
    opacity: 0.7;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 48px;
    background-color: var(--primary);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    padding-left: 5px; /* Offset for play triangle visually */
}
.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}
.video-title {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--bg-white);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Responive Grids */
@media (max-width: 992px) {
    .dropdown {
        width: 100%;
    }
    .dropdown-content {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
        border: none;
        animation: none;
    }
    .dropdown.mobile-open .dropdown-content {
        display: block;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .masonry-grid {
        column-count: 2;
    }
    .page-banner h1 {
        font-size: 3rem;
    }
    .page-banner .watermark {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .masonry-grid {
        column-count: 1;
    }
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    /* Footer Mobile Responsiveness */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-brand p, .footer-contact p {
        word-wrap: break-word;
        white-space: normal;
        text-align: left;
    }
    .footer-brand, .footer-links, .footer-contact {
        text-align: left;
    }
    
    /* Campus Block Mobile Stack (Image Top) */
    .campus-block {
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    /* Schedule Mobile Stack */
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .schedule-header {
        display: none;
    }
    
    .schedule-row {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--bg-light);
        gap: 10px;
    }
    
    .schedule-cell {
        padding: 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .schedule-cell::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-base);
    }
}


/* Anchor Scroll Margin */
section, .section {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
    }
    .profile-sidebar {
        position: static !important;
        margin-bottom: 30px;
    }
    .profile-content .card ul {
        grid-template-columns: 1fr !important;
    }
    .profile-content > div:last-child {
        grid-template-columns: 1fr !important;
    }
}

/* FAQ Accordion Styles */
.faq-details {
    background: #FFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-summary {
    padding: 20px;
    font-weight: bold;
    color: #1A3C34;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hide default triangle in many browsers */
}
.faq-summary::-webkit-details-marker {
    display: none; /* Hide default triangle in WebKit */
}
.faq-summary::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-details[open] .faq-summary::after {
    transform: rotate(180deg);
}
.faq-content {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.6;
}

/* --- Mobile Grid Stacking (Master Audit) --- */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }
    .masonry-grid {
        column-count: 1 !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

/* Mobile: make ALL page banners shorter */
@media (max-width: 768px) {
  .page-banner,
  .page-banner.hero-70vh,
  .page-banner.hero-80vh {
    height: auto !important;
    min-height: 200px !important;     /* adjust */
    padding: 70px 16px !important;    /* adjust */
    background-position: center !important;
    background-size: cover !important;
  }

  .page-banner h1 {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }
}

/* Keep HOME page banner/hero as it is (bigger) */
@media (max-width: 768px) {
  body.home .page-banner,
  body.front-page .page-banner {
    min-height: 70vh !important;      /* keep home tall */
    padding: 0 !important;
  }
}



/* --- Utility Classes (Master Audit) --- */
.hero-70vh { min-height: 70vh !important; }
.hero-80vh { min-height: 80vh !important; }
.bg-overlay-dark { background-color: rgba(0,0,0,0.6) !important; background-blend-mode: overlay !important; }
.bg-overlay-primary { background-color: #1B4332 !important; background-blend-mode: multiply !important; }

/* Feature Boxes Pattern */
.asaap-feature-box {
    background-color: #fff;
    border-top: 4px solid #ef5a24;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.asaap-feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* --- Premium Feature List --- */
ul.premium-feature-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 20px;
}
ul.premium-feature-list li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444444;
    line-height: 1.5;
    display: flex;
    align-items: center;
}
ul.premium-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    background-color: rgba(27, 67, 50, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* Getting to Gandikota Travel Section */
.asaap-travel-section {
    position: relative;
    isolation: isolate;
}

.asaap-address-pin {
    border-left: 3px solid var(--primary);
    padding: 2px 0 2px 14px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #555;
    margin-bottom: 18px;
}
.asaap-address-pin strong {
    display: block;
    color: var(--text-base);
    font-size: 1.1rem;
}

.asaap-transport-note {
    padding: 16px 18px;
    background: #1B4332;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 3px solid var(--primary);
    margin-top: 22px;
}
.asaap-transport-note a {
    color: var(--primary);
    font-weight: 700;
}

/* Custom Travel Table */
.is-style-asaap-travel-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(1px);
    margin-bottom: 10px;
}
.is-style-asaap-travel-table figcaption {
    text-align: left;
    font-size: 0.86rem;
    color: #666;
    padding-bottom: 10px;
}
.is-style-asaap-travel-table th,
.is-style-asaap-travel-table td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    vertical-align: baseline;
    border-top: none;
    border-left: none;
    border-right: none;
}
.is-style-asaap-travel-table thead th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--text-base);
    border-bottom: 2px solid var(--text-base);
    padding-top: 10px;
}
.is-style-asaap-travel-table tbody th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: var(--text-base);
    white-space: nowrap;
}
.is-style-asaap-travel-table td:nth-child(2) {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.is-style-asaap-travel-table td:nth-child(3) {
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    font-weight: 700;
}
.is-style-asaap-travel-table td:nth-child(4) {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.45;
}
.is-style-asaap-travel-table tbody tr:last-child th,
.is-style-asaap-travel-table tbody tr:last-child td {
    border-bottom: none;
}
.is-style-asaap-travel-table tbody tr:hover {
    background: rgba(241, 90, 36, 0.05);
}

@media (max-width: 600px) {
    .is-style-asaap-travel-table table,
    .is-style-asaap-travel-table tbody,
    .is-style-asaap-travel-table tr {
        display: block;
        background: none;
    }
    .is-style-asaap-travel-table thead {
        display: none;
    }
    .is-style-asaap-travel-table tbody tr {
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(0,0,0,0.08);
        margin-bottom: 12px;
        padding: 14px 16px;
    }
    .is-style-asaap-travel-table tbody th {
        display: block;
        width: auto;
        padding: 0 0 8px;
        border: none;
        font-size: 1.5rem;
    }
    .is-style-asaap-travel-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 6px 0;
        border: none;
        font-size: 0.95rem;
    }
    .is-style-asaap-travel-table tbody td::before {
        color: #666;
        font-size: 0.82rem;
        font-weight: normal;
    }
    .is-style-asaap-travel-table tbody td:nth-child(2)::before { content: "Distance"; }
    .is-style-asaap-travel-table tbody td:nth-child(3)::before { content: "By road"; }
    .is-style-asaap-travel-table tbody td:nth-child(4)::before { content: "Nearest hub"; }
    
    .is-style-asaap-travel-table tbody td:nth-child(4) {
        text-align: right;
    }
}

/* Safety Curriculum Pattern */
.safety-card .safety-no {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}
.safety-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.65;
}

/* Updates Grid Post Date */
.asaap-post-date {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}
.asaap-post-date a {
    color: #ffffff;
    text-decoration: none;
}

/* Updates Grid Read More */
.wp-block-post-excerpt__more-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ef5a24 !important;
    text-decoration: none;
}

/* Premium Search Bar */
.wp-block-search__button {
    background-color: #ef5a24 !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 10px 30px !important;
    font-weight: bold !important;
    border: none !important;
    transition: all 0.3s ease;
}
.wp-block-search__button:hover {
    background-color: #d94b1a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(239, 90, 36, 0.3);
}
.wp-block-search__input {
    border: 1px solid #e0e0e0 !important;
    border-radius: 30px !important;
    padding: 10px 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}
.wp-block-search__input:focus {
    border-color: #1b4332 !important;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.1) !important;
    outline: none !important;
}

/* Category Toggle Buttons Premium Look */
.wp-block-button__link[href*="category_name="] {
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.wp-block-button__link[href*="category_name="]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.footer-legal { margin-top: 8px; font-size: 0.85rem; }
.footer-legal a { color: inherit; text-decoration: underline; }

