/* =============================================
   ABOUT PAGE SPECIFIC STYLES
   ============================================= */

/* About Hero */
.about-hero {
    background: url('../images/page-banner1.jpg.jpeg') no-repeat center center/cover;
    height: 40vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
    padding: 4rem 0;
    background-color: var(--soft);
    text-align: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.about-hero h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 600;
}

/* Story Section */
.story {
    padding: 4rem 0;
}

.story-content h2 {
    margin-bottom: 1.5rem;
}

.story-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Philosophy Section */
.philosophy {
    padding: 4rem 0;
    background-color: var(--soft);
}

.philosophy h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.philosophy-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
}

.philosophy-item h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Mission & Vision Section */
.mission-vision {
    padding: 80px 0;
    background: #f6f8f5;
}

.mv-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.mv-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mv-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.mv-label {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b7a6a;
    margin-bottom: 12px;
}

.mv-box h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #1f2d1f;
}

.mv-box p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
}

.mv-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.mv-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
}

.mv-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6b8f71;
    font-size: 20px;
    line-height: 1;
}

.mv-note {
    padding: 18px;
    border-radius: 12px;
    background: #eef3ee;
    font-size: 15px;
    color: #2f4f2f;
}

/* Experience Section */
.experience {
    padding: 4rem 0;
    background-color: white;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.experience-item {
    padding: 2rem;
    border: 1px solid var(--soft);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.experience-item h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ==============================
   GLOBAL HELPERS
================================ */
.containers {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 1.2rem;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 3rem;
}

/* .btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: #2B8A6A;
    color: #fff;
}

.btn--primary:hover {
    background-color: #226c53;
} */

.services-hero {
    padding: 0.5rem 0 0.2rem;
    /* pehle bahut bada tha */
    text-align: center;
    background: #f6f8f6;
}

.services-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.services-hero p {
    font-size: 1rem;
    color: #555;
}

/* =============================================
   INSTRUCTORS SECTION – CARD LAYOUT (FINAL)
   ============================================= */

/* .card-layout {
    padding: 4rem 0;
} */

/* ---------- CARD ---------- */
.card-layout .program-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;

    margin-bottom: 4rem;
    padding: 2.5rem;

    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    /* content bahar nahi jaayega */
}

/* Alternate background */
.card-layout .program-detail:nth-child(even) {
    background-color: var(--soft);
}

/* Hover effect */
.card-layout .program-detail:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

/* ---------- TEXT CONTENT ---------- */
.card-layout .program-content {
    width: 100%;
}

.card-layout .program-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--accent);
}

.card-layout .program-content h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.1rem;
    color: #4b6b5f;
}

.card-layout .program-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1rem;
}

.card-layout .program-content ul {
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
}

.card-layout .program-content ul li {
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    color: #222;
}

/* ---------- IMAGE ---------- */
.card-layout .program-image {
    width: 100%;
    max-width: 100%;
}

.card-layout .program-image img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* ---------- BUTTON ---------- */
.card-layout .btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-top: 0.8rem;
}

/* ---------- ANIMATION ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.who-for {
    padding: 4rem 0;
    background: var(--soft);
}

.who-grid {
    display: grid;
    gap: 2rem;
}

.who-item {
    background: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.who-item h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* =============================================
   WHAT YOU WILL LEARN – ABOUT PAGE
   ============================================= */
.learn-section {
    padding: 4.5rem 0;
    background: #ffffff;
}

.learn-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
}

.learn-card {
    background: var(--soft);
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.learn-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.learn-card h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.learn-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

/* Tablet */
@media (min-width: 768px) {
    .learn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .learn-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .who-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   RESPONSIVE – ALL MEDIA QUERIES (ONE PLACE)
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
    .card-layout .program-detail {
        gap: 2rem;
        padding: 2rem;
    }

    .card-layout .program-image img {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .card-layout .program-detail {
        grid-template-columns: 1fr;
        padding: 1.8rem;
    }

    .card-layout .program-image {
        order: 1;
    }

    .card-layout .program-content {
        order: 2;
        margin-top: 0.5rem;
    }

    .card-layout .program-image img {
        height: 260px;
    }

    .card-layout .program-content h2 {
        font-size: 1.6rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .card-layout .program-detail {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .card-layout .program-image img {
        height: 270px;
    }

    .card-layout .btn {
        padding: 0.55rem 1.2rem;
        font-size: 0.85rem;
    }
}



/* Team Section */
.team {
    padding: 6rem 0;
    background-color: var(--soft);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.team-member {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.team-member__bio {
    padding: 1.5rem;
}

.team-member h3 {
    color: var(--accent);
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.team-member .role {
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1rem;
    display: block;
}

.team-member .bio-detail {
    font-size: 0.95rem;
    color: #4b5563;
}

/* Facility Section */
.facility {
    padding: 5rem 0;
    background-color: #f6f8f5;
}

.section-subtitle {
    max-width: 620px;
    margin: 0 auto 3.5rem;
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.facility-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.facility-item {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    padding-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.facility-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.facility-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.facility-item h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin: 1.4rem 1.2rem 0.6rem;
    text-align: center;
}

.facility-item p {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    padding: 0 1.4rem;
}

.facility__cta {
    margin-top: 3.8rem;
    text-align: center;
    color: #444;
}

.link-cta {
    margin-left: 6px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.link-cta:hover {
    border-color: var(--accent);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background-color: #95c5b5;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background-color: white;
    color: var(--dark);
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover,
.faq-question.active {
    background-color: #e6f4ea;
    color: var(--accent);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    background-color: white;
    padding: 0 2rem;
    overflow: hidden;
    max-height: 0;
    transition: all 0.3s ease-out;
}

.faq-answer p {
    padding: 1rem 0;
    color: #555;
}

.faq-question.active+.faq-answer {
    padding-bottom: 2rem;
    max-height: 500px;
    /* Arbitrary large height */
}

/* Shared Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* =============================================
   RESPONSIVE QUERIES
   ============================================= */

@media (min-width: 768px) {
    .story {
        display: flex;
        align-items: center;
        gap: 3rem;
    }

    .story-content,
    .story-image {
        flex: 1;
    }

    .philosophy-grid,
    .experience-grid,
    .facility-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mv-wrapper,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .team-member img {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .facility-item img {
        height: 200px;
    }

    .mv-box {
        padding: 30px 25px;
    }
}