/* ================================================
   RESPONSIVE CSS — Amrutha Yoga Ashrama
   Breakpoints:
   - 1024px : Large tablets
   - 768px  : Tablets  
   - 480px  : Mobile phones
   ================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100%;
}

/* ================================================
   HAMBURGER — hidden on desktop always
   ================================================ */

.hamburger {
    display: none !important;
}

/* ================================================
   NAVBAR
   ================================================ */

@media (max-width: 768px) {

    header {
        height: auto;
        min-height: 60px;
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: rgb(247, 245, 245);
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        gap: 0;
        position: relative;
    }

    /* Logo on left */
    .logo {
        flex: 1;
    }

    .logo h2 {
        font-size: 13px;
        margin: 0;
    }

    /* Hamburger on right — show on mobile */
    .hamburger {
        display: block !important;
        background: none;
        border: 1px solid #704214;
        border-radius: 4px;
        font-size: 18px;
        cursor: pointer;
        color: rgb(116, 60, 14);
        padding: 4px 10px;
        line-height: 1.4;
        order: 2;
    }

    /* Nav links — hidden by default on mobile */
    nav ul.hero-txt {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: rgb(247, 245, 245);
        padding: 8px 0;
        border-top: 1px solid #e8e0d8;
        order: 4;
        margin: 0;
    }

    /* Show when open */
    nav ul.hero-txt.open {
        display: flex;
    }

    nav ul.hero-txt li {
        padding: 12px 20px;
        border-bottom: 1px solid #f0e8e0;
        list-style: none;
    }

    nav ul.hero-txt li:last-child {
        border-bottom: none;
    }

    nav ul.hero-txt li a {
        font-size: 15px;
        font-weight: 600;
        color: rgb(116, 60, 14);
        text-decoration: none;
        display: block;
    }

    /* Hide Join Us in navbar on mobile */
    .nav-btn {
        display: none;
    }

    /* Language switcher — sits next to hamburger */
    .language-switcher {
        order: 1;
        margin-right: 10px;
        font-size: 12px;
        gap: 5px;
    }
}


/* ================================================
   HERO SECTION
   ================================================ */

@media (max-width: 768px) {

    .hero {
        height: 75vh;
        min-height: 380px;
        padding-top: 60px;
        background-position: center center;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-content .highlighted {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
        margin: 10px 0;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content .highlighted {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 13px;
    }
}


/* ================================================
   PATANJALI SECTION
   ================================================ */

@media (max-width: 1024px) {

    .patanjali-container {
        gap: 30px;
        padding: 0 20px;
    }

    .patanjali-image {
        width: auto;
        height: auto;
    }
}

@media (max-width: 768px) {

    .patanjali-section {
        padding: 50px 20px;
    }

    .patanjali-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .patanjali-text {
        max-width: 100%;
        width: 100%;
    }

    .patanjali-text h2 {
        font-size: 24px;
    }

    .patanjali-text p {
        font-size: 14px;
    }

    .patanjali-image {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
    }

    .patanjali-image img {
        max-width: 200px;
        width: 60%;
    }

    .patanjali-boxes {
        flex-direction: column;
        gap: 14px;
    }

    .info-box {
        width: 100%;
    }
}


/* ================================================
   OFFERINGS SECTION
   ================================================ */

@media (max-width: 1024px) {

    .offerings {
        padding: 60px 30px;
    }

    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .offerings-grid .card:nth-child(4),
    .offerings-grid .card:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {

    .offerings {
        padding: 50px 16px;
    }

    .offerings-title {
        font-size: 24px;
    }

    .offerings-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .offerings-grid .card:nth-child(4),
    .offerings-grid .card:nth-child(5) {
        grid-column: auto;
    }

    .card {
        padding: 30px 20px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 14px;
    }
}


/* ================================================
   EIGHT LIMBS SECTION
   ================================================ */

@media (max-width: 768px) {

    .limbs-section {
        padding: 50px 12px;
    }

    .limbs-title {
        font-size: 22px;
        padding: 0 8px;
    }

    .limbs-container {
        gap: 14px;
        padding: 14px 4px;
    }

    .limb {
        min-width: 180px;
        padding: 18px;
    }

    .limb h3 {
        font-size: 16px;
    }

    .limb p {
        font-size: 13px;
    }
}


/* ================================================
   SCHEDULE SECTION
   ================================================ */

@media (max-width: 1024px) {

    .schedule-section {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {

    .schedule-section {
        padding: 40px 16px;
    }

    .schedule-header h2 {
        font-size: 22px;
    }

    .schedule-header p {
        font-size: 13px;
    }

    /* Hide table header row */
    .table-header {
        display: none;
    }

    .schedule-table {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    /* Each row becomes a card */
    .table-row {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: rgb(236, 239, 240);
        border-radius: 12px;
        padding: 18px 16px;
        margin-bottom: 14px;
        border-bottom: none;
        font-size: 14px;
    }

    .time {
        font-size: 15px;
    }

    .badge {
        font-size: 13px;
        display: inline-block;
    }

    .table-row a {
        display: inline-block;
        background: #693819;
        color: white !important;
        padding: 8px 20px;
        border-radius: 6px;
        font-size: 13px;
        text-align: center;
        width: fit-content;
        margin-top: 4px;
    }
}


/* ================================================
   VISIT SECTION
   ================================================ */

@media (max-width: 1024px) {

    .visit-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {

    .visit-section {
        padding: 40px 20px;
    }

    .visit-container {
        display: flex !important;
        flex-direction: column;
        gap: 24px;
    }

    .visit-container h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .info-item {
        margin-bottom: 16px;
    }

    .visit-right {
        margin-top: 0 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .map-card {
        max-width: 100%;
        width: 100%;
    }

    .map-card iframe {
        height: 220px;
        width: 100%;
    }
}


/* ================================================
   FOOTER
   ================================================ */

@media (max-width: 768px) {

    .footer {
        padding: 24px 16px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
        margin-bottom: 12px;
    }

    .footer-left {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-links a {
        margin: 0;
        font-size: 13px;
    }

    .copyright {
        font-size: 12px;
    }
}


/* ================================================
   ABOUT PAGE HERO
   ================================================ */

@media (max-width: 768px) {

    .about {
        height: 70vh;
        min-height: 380px;
    }

    .about-content {
        padding: 0 20px;
    }

    .about-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .about-highlight {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .about-subtext {
        font-size: 15px;
    }

    .about-wave {
        height: 50px;
    }
}

@media (max-width: 480px) {

    .about-title {
        font-size: 26px;
    }

    .about-highlight {
        font-size: 16px;
    }
}


/* ================================================
   ABOUT SECTION
   ================================================ */

@media (max-width: 1024px) {

    .about-section {
        padding: 80px 30px;
        height: auto;
    }

    .about-image {
        right: 0;
    }

    .quote-box {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 16px;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .about-section {
        padding: 60px 20px;
        height: auto;
    }

    .about-container {
        flex-direction: column;
        gap: 24px;
    }

    .about-text {
        width: 100%;
    }

    .about-text h2 {
        font-size: 24px;
    }

    .about-text p {
        font-size: 14px;
    }

    .about-stats {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat h3 {
        font-size: 22px;
    }

    .about-image {
        width: 100%;
        right: 0;
        flex: none;
    }

    .about-image img {
        max-width: 100%;
        width: 100%;
        border-radius: 12px;
    }

    .quote-box {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        margin-top: 16px;
        border-radius: 12px;
    }

    .quote-box span {
        margin-left: 10px;
    }
}


/* ================================================
   HEARTS / PROFILE SECTION
   ================================================ */

@media (max-width: 768px) {

    .hearts-section {
        padding: 50px 16px;
    }

    .hearts-header h2 {
        font-size: 20px;
    }

    .hearts-container {
        margin-top: 24px;
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .profile-card {
        width: 100%;
        max-width: 380px;
        padding: 24px 16px;
    }

    /* Always show info on mobile — not just on hover */
    .profile-card .profile-info {
        max-height: none !important;
        opacity: 1 !important;
        margin-top: 10px;
    }

    /* Remove complex hover effects on mobile */
    .hearts-container:hover .profile-card {
        opacity: 1;
        transform: none;
    }

    .hearts-container .profile-card:hover {
        transform: translateY(-4px);
        opacity: 1;
    }
}


/* ================================================
   TESTIMONIALS
   ================================================ */

@media (max-width: 768px) {

    .testimonials-section {
        padding: 50px 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .quote {
        font-size: 14px;
    }
}


/* ================================================
   CONTACT PAGE
   ================================================ */

@media (max-width: 768px) {

    .contact-section {
        padding: 90px 16px 40px;
        align-items: flex-start;
        min-height: auto;
    }

    .contact-container {
        flex-direction: column;
        padding: 24px 16px;
        gap: 24px;
        max-width: 100%;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 20px;
    }

    .contact-info p {
        font-size: 13px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    .contact-form button {
        padding: 13px;
        font-size: 14px;
    }
}


/* ================================================
   GALLERY PAGE
   ================================================ */

@media (max-width: 768px) {

    .gallery-section {
        padding: 80px 14px 40px;
    }

    .gallery-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .tabs {
        gap: 6px;
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .year-filter {
        gap: 8px;
    }

    .year-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .gallery-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-card img,
    .gallery-card video {
        height: 200px;
    }
}


/* ================================================
   REGISTER PAGE
   ================================================ */

@media (max-width: 480px) {

    body {
        padding: 16px;
    }

    .reg-card {
        margin: 0;
        padding: 24px 16px;
    }
}


/* ================================================
   GLOBAL OVERFLOW FIX
   ================================================ */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    section {
        overflow-x: hidden;
    }
}