* {
    margin: 0;
    padding: 0;
    font-family: "Lato", sans-serif;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth !important;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    max-width: 100%;
}

.header {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #F9EED2 0%, #F4E4B8 100%);
    display: flex;
    align-items: center;
    padding: 0 3%;
    overflow: hidden;
}

/* Navigation Bar */
/* Navigation Bar */
nav {
    display: flex;
    padding: 0.5rem 2rem;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: #152D36; /* Solid color */
    z-index: 100000;
    box-shadow: 0 2px 10px rgba(21, 45, 54, 0.3);
    height: 83px;
}


nav img {
    width: 80px;
    height: 80px;
    border: 2px solid #F7E9CE;
    border-radius: 100px;
    transition: width 0.3s ease, height 0.3s ease;
        vertical-align: middle;
}

.nav-links {
    flex: 1;
    display: flex; /* ADDED */
    flex-direction: column; /* ADDED */
    align-items: flex-start; /* ADDED */
    position: absolute;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 200px;
    padding-top: 20px;
    padding-left: 20px;
    background: #152D36;
    z-index: 100001;
    border-left: 3px solid #BC9A7B;
    transition: right 0.4s ease;
}

.nav-links.active {
    right: 0;
}

.nav-links ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    align-items: flex-start;
    gap: 30px;
}

.nav-links ul li {
    list-style: none;
    padding: 15px 5px;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.nav-links ul li:hover {
    background: rgba(188, 154, 123, 0.2);
    transform: scale(1.05);
}

.nav-links ul li a.active:not([href="index.html"]) {
    color: #BC9A7B !important;
}

.nav-links ul li a {
    color: #F7E9CE;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 17px;
    letter-spacing: 0.25rem;
    transition: color 0.3s ease;
}

.nav-links ul li:hover a {
    color: #BC9A7B;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #BC9A7B;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* Hamburger icon */
nav .fa-solid {
    display: none;
    color: #F7E9CE;
    font-size: 30px;
    cursor: pointer;
    margin-right: 15px;
    padding: 0;
}

/* Close icon inside menu */
.nav-links i.fa-xmark {
    font-size: 30px;
    color: #F7E9CE;
    margin-left: -5px;
    margin-bottom: 40px;
    cursor: pointer;
}

/* Focus styles for accessibility */
.nav-links ul li a:focus {
    outline: 2px solid #BC9A7B;
    outline-offset: 2px;
}

/* Main content layout */
.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.text-content {
    flex: 1;
    color: #152D36;
    max-width: 600px;
    margin-top: 2rem;
}

.text-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    font-family: 'Cinzel';
    color: #152D36;
    cursor: pointer;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.text-content h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #BC9A7B, #81908D);
    margin: 15px 0;
    border-radius: 2px;
    transition: 0.5s;
}

.text-content h1:hover::after {
    width: 200px;
}

.text-content h2 {
    font-size: 2rem;
    color: #1E5A6E;
    font-weight: 100;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display';
}

.text-content p {
    margin: 1rem 0 2.5rem;
    font-size: 1.3rem;
    letter-spacing: .04rem;
    font-weight: 600;
    color: #37525C;
    line-height: 1.6;
    font-style: italic;
}

.highlight {
    background: linear-gradient(100deg, rgba(188, 154, 123, 0), rgba(188, 154, 123, 0.4) 15%, rgba(188, 154, 123, 0.4) 85%, rgba(188, 154, 123, 0));
    color: #152D36; /* Slightly darken the text to ensure contrast */
    padding: 0px 5px;
    margin: 0 -5px; /* Prevent padding from adding extra space */
    border-radius: 4px;
}



/* --- NEW CTA & CHECKPOINTS STYLES START --- */
.cta-container {
    margin-top: -1rem; /* Adjust spacing since the <p> tag has margin-bottom */
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.cta-btn {
    display: inline-block;
    text-decoration: none;
    border: 2px solid #152D36;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.cta-primary {
    background-color: #152D36;
    color: #F7E9CE;
}
.cta-primary:hover {
    background-color: #37525C;
    border-color: #37525C;
    transform: translateY(-2px);
}

.cta-secondary {
    background-color: transparent;
    color: #152D36;
}
.cta-secondary:hover {
    background-color: rgba(21, 45, 54, 0.1);
    transform: translateY(-2px);
}

.cta-checkpoints {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.checkpoint-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #1E5A6E;
    font-weight: 500;
}

.checkpoint-item i {
    color: #1E5A6E;
}
/* --- NEW CTA & CHECKPOINTS STYLES END --- */

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-icons a {
    text-decoration: none;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(21, 45, 54, 0.1);
}

.social-icons a i {
    color: #152D36;
    font-size: 38px;
}

.social-icons a:hover {
    color: #F7E9CE;
    background-color: #BC9A7B;
    transform: translateY(-3px);
}

/* Bento Grid */
.bento-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    height: 500px;
    max-width: 500px;
}

.bento-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(21, 45, 54, 0.2);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(21, 45, 54, 0.3);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

/* Grid layout variations */
.bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
}

/* Image overlay for better text readability */
.bento-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(21, 45, 54, 0.1), rgba(188, 154, 123, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover::after {
    opacity: 1;
}


/* Floating Meditation Circle - Background Decoration */
.meditation-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.50;
}

.meditation-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #BC9A7B 0%, #81908D 100%);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(21, 45, 54, 0.1);
}

.meditation-circle::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border: 1px solid rgba(188, 154, 123, 0.2);
    border-radius: 50%;
    top: -10%;
    left: -10%;
}

.meditation-figure {
    width: 200px;
    height: 200px;
    fill: #152D36;
    opacity: 0.8;
    z-index: 2;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(188, 154, 123, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(188, 154, 123, 0.2);
}

.floating-element:nth-child(1) { 
    top: 15%; 
    left: 20%; 
}
.floating-element:nth-child(2) { 
    top: 25%; 
    right: 15%; 
}
.floating-element:nth-child(3) { 
    bottom: 25%; 
    left: 15%; 
}
.floating-element:nth-child(4) { 
    bottom: 15%; 
    right: 20%; 
}

.floating-element svg {
    width: 30px;
    height: 30px;
    fill: #152D36;
    opacity: 0.9;
}

/* Alternative positioning - Bottom Left */
.meditation-background.bottom-left {
    top: auto;
    bottom: 10%;
    right: auto;
    left: 5%;
    opacity: 0.12;
}

/* Desktop styles */
@media(min-width: 1024px) {
    .nav-links {
        position: static;
        height: auto;
        width: auto;
        background: none;
        padding: 0;
        border: none;
        text-align: right;
        display: flex !important;
        flex: 1;
        align-items: center;
        justify-content: flex-end;
        transition: none;
    }
    
    .nav-links ul {
        flex-direction: row;
        gap: 0;
    }

    .nav-links ul li {
        display: inline-block;
        padding: 8px 35px;
        font-size: 17px;
        cursor: pointer;
        border-radius: 10px;
        transition: all 0.3s;
    }

    nav .fa-solid {
        display: none;
    }
}

/* Mobile Styles */
@media(max-width: 1023.9px) {

    nav {
        height: 83px;
        padding: 0.5rem 0;
    }

    nav img {
        width: 75px;
        height: 75px;
        object-fit: cover;
        border-radius: 50%;
        margin-left: 10px;
        transition: width 0.3s ease, height 0.3s ease;
    }

    nav .fa-solid {
        display: block;
    }

    .nav-links ul li {
        font-size: 14px;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .text-content h1 {
        font-size: 3.5rem;
    }
    .text-content h1::after{
        margin: 15px auto;
    }

    .text-content h2 {
        font-size: 2rem;
    }

    .bento-grid {
        width: 100%;
        height: 400px;
        grid-template-rows: auto;
    }

    .meditation-background {
        width: 400px;
        height: 400px;
        opacity: 0.30;
    }

    .meditation-figure {
        width: 120px;
        height: 120px;
    }

    .floating-element {
        width: 40px;
        height: 40px;
    }

    .floating-element svg {
        width: 20px;
        height: 20px;
    }

    .header {
        min-height: 100vh;
        padding: 2rem 3%;
    }

    
    /* --- NEW RESPONSIVE STYLES --- */
    .cta-buttons {
        justify-content: center;
    }
    .cta-checkpoints {
        justify-content: center;
        gap: 10px 15px; /* row-gap column-gap */
    }
    .checkpoint-item {
        flex-basis: calc(50% - 15px); /* Creates 2x2 grid */
        justify-content: center;
    }
    .social-icons {
    justify-content: center;  /* center icons horizontally */
    }
}

@media (max-width: 700px) {
    .text-content h1 {
        font-size: 2.8rem;
    }

    .text-content h2 {
        font-size: 1.8rem;
    }

    .bento-grid {
        width: 100%;
        height: 350px;
    }

    .header {
        padding: 1rem 2%;
    }

    .meditation-background {
        width: 300px;
        height: 300px;
        opacity: 0.25;
    }

    .cta-buttons {
        flex-direction: column; /* Stack buttons on smaller screens */
        align-items: center;
    }
    .cta-btn {
        width: 80%;
        max-width: 300px;
    }
    .checkpoint-item {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 519.9px) {
    .text-content h1 {
        font-size: 2.5rem;
    }

    .text-content h2 {
        font-size: 1.6rem;
    }

    .text-content p {
        font-size: 1.1rem;
    }

    .bento-grid {
        max-width: 430px;
        height: 300px;
        gap: 10px;
    }
}

@media (max-width: 456.9px) {
    .text-content h1 {
        font-size: 2.2rem;
    }

    .text-content h2 {
        font-size: 1.4rem;
    }

    .content-wrapper {
        gap: 2rem;
    }
}

@media (max-width: 319.9px) {
    .text-content h1 {
        font-size: 2rem;
    }

    .text-content h2 {
        font-size: 1.2rem;
    }

    .bento-grid {
        max-width: 250px;
        height: 250px;
    }
}



/* ---------PROGRAMME DETAILS (COURSES)-------- */

.programme-details-section {
            /* background-color: #FAF0E6; Light linen background */
            background: rgba(252, 246, 240, 0.4);
            padding: 5rem 2rem;
            font-family: 'Georgia', serif;
            color: #3D2F29; /* Deep brown text color */
        }

        .programme-details-container {
            max-width: 1100px;
            margin: 0 auto;
        }

        .programme-details-title {
            text-align: center;
            font-family: 'Cinzel', serif;
            font-size: 2.8rem;
            font-weight: 400;
            color: #4B3931; /* Slightly lighter brown for title */
            margin-bottom: 3rem;
            letter-spacing: 1px;
        }

        /* --- Interactive Panel Layout --- */
        .programme-details-interactive-panel {
            display: grid;
            grid-template-columns: 1fr 2.5fr; /* Menu on left, content on right */
            gap: 3rem;
            align-items: flex-start;
        }

        

        /* Left Column: Navigation Menu */
        .programme-details-menu-item {
            list-style: none;
            padding: 0;
            margin: 0;
            position: sticky; /* Sticks to the top on scroll */
            top: 2rem;
        }

        .programme-details-menu-item button {
            background: none;
            border: none;
            font-family: 'Lora', serif;
            font-size: 1.35rem;
            color: #3D2F29;
            text-align: left;
            padding: 1rem 0;
            width: 100%;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.3s ease, color 0.3s ease;
            border-bottom: 2px solid transparent;
        }

        .programme-details-menu-item button:hover {
            opacity: 1;
        }

        .programme-details-menu-item button.active {
            opacity: 1;
            font-weight: bold;
            color: #4B3931;
            border-bottom-color: #C8B1A2; /* Muted gold accent */
        }

        /* ADD THIS ENTIRE CSS BLOCK */

.programme-details-principles {
    margin-top: 2.5rem; /* Adds space below the menu */
    padding-top: 1.5rem; /* Adds space above the text */
    border-top: 1px solid #e0d9cf; /* A subtle separator line */
}

.programme-details-principles h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #4B3931;
    margin-bottom: 0.75rem;
}

.programme-details-principles p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3D2F29;
    opacity: 0.8;
}

        /* Right Column: Dynamic Content */
        .programme-details-content-display {
            position: relative;
            border-radius: 1.2rem;
            background: linear-gradient(135deg, #E6E8E0, #F2E0BF);
        }

        .programme-details-content-block {
            /* All blocks are layered on top of each other */
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            visibility: hidden;
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0.5s;
        }

        .programme-details-content-block.active {
            position: relative; /* Takes up space in the layout */
            visibility: visible;
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0s;
        }

        .programme-details-illustration {
            border-radius: 12px;
            margin-bottom: 2rem;
            aspect-ratio: 16 / 9; /* Ensures 16:9 ratio */
            overflow: hidden; /* Contains the image within the rounded corners */
        }

        .programme-details-illustration img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* This makes the image fill the container without stretching */
            display: block; /* Removes any extra space below the image */
        }

        .programme-details-content-block h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.8rem;
            margin-bottom: 0.75rem;
            color: #4B3931;
        }

        .programme-details-tags {
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: #152d36;
        }
        
        .programme-details-tags span {
            display: inline-block;
            margin-right: 0.75rem;
        }

        .programme-details-content-block p {
            font-size: 1.1rem;
            line-height: 1.7;
            text-align: left;
            color: #3B3B3B;
            margin-bottom: 2rem;
        }

        .programme-details-learn-more {
            display: inline-block;
            background-color: #4B3931;
            color: #FAF0E6;
            padding: 0.8rem 1.8rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        .programme-details-learn-more:hover {
            background-color: #3D2F29;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        /* --- Responsive Styles --- */
        @media (max-width: 768px) {
            .programme-details-interactive-panel {
                grid-template-columns: 1fr; /* Stack into a single column */
            }
            .programme-details-principles {
                display: none;
            }
            .programme-details-menu {
                position: relative; /* Un-stick the nav */
                display: flex; /* Make nav horizontal */
                justify-content: space-around;
                margin-bottom: 2rem;
                border-bottom: 1px solid #e0d9cf;
            }
            .programme-details-menu-item button {
                font-size: 1rem;
                padding: 0.5rem;
                border-bottom-width: 3px;
            }
        }






/* ------GAL-section-------------- */

.GAL-PAGE{
    width: 100%;
    max-width: 100%;
    /* overflow-x: hidden; */
    padding-left: 8%;
    padding-right: 8%;
    padding-top: 5vh;   
    padding-bottom: 5vh; 
    box-sizing: border-box;
    background: linear-gradient(135deg, #CACEBE, #E0C08F);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    display: flex; /* Flexbox to center content vertically */
    align-items: center; /* Vertical centering of the content */
    justify-content: center; /* Horizontal centering */
    min-height: auto; 
}

.g-row{
    display: flex;
    height: 88%;
    align-items: center;
    max-width: 100%;
}

.g-col{
    flex-basis: 50%;
    padding: 20px;
    max-width: 100%;
}
.g-col h1{
    color: #1E5A6E;
    font-size: 4rem;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.g-col p{
    color: #152D36;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 20px;
    
}

.g-col h1 ~ p{
    font-size: 1.3rem;
    line-height: 1.5rem;
    font-weight: lighter;
    margin-bottom: 20px;
}
/* Glassmorphism style for the button inside GAL-PAGE */
.GAL-PAGE .g-col button {
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #152D36;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px rgba(30, 90, 110, 0.25);
}

/* Hover effect */
.GAL-PAGE .g-col button:hover {
    background: rgba(255, 255, 255, 0.3); /* Slightly more opaque on hover */
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Active/focus state */
.GAL-PAGE .g-col button:active {
    background: rgba(255, 255, 255, 0.1); /* Darker glass effect on click */
}

.cardG{
    width: 200px;
    height: 230px;
    display: inline-block;
    border-radius: 10px;
    padding: 15px 25px;
    box-sizing: border-box;
    cursor: pointer;
    margin: 10px 15px;
    transition: transform 0.5s;
    background-position: center ;
    background-size: cover;
}

.cardG h5{
    color: #FFE5B4;
    font-size: medium;
    text-shadow: 1px 1px #333;
}



.cardG p{
    color: #F5F5DC;
}


.cardG:hover{
    transform: translateY(-10px);
}

.c1{
    background-image: linear-gradient(rgba(120, 94, 77, 0.2), rgba(80, 64, 60, 0.5)), url(images/P1.jpg);
}

.c2{
    background-image: linear-gradient(rgba(120, 94, 77, 0.2), rgba(80, 64, 60, 0.5)), url(images/P21.jpg);
}
.c3{
    background-image: linear-gradient(rgba(120, 94, 77, 0.2), rgba(80, 64, 60, 0.5)), url(images/P13.jpg);
}
.c4{
    background-image: linear-gradient(rgba(120, 94, 77, 0.2), rgba(80, 64, 60, 0.5)), url(images/P31.jpg);
}

@media screen and (min-width: 850px) and (max-width: 1212px) {
    .g-row {
      flex-direction: row;
      justify-content: space-between; /* Space items evenly */
      width: 100%; 
    }
  
    .g-col {
      width: 50%;
      flex-basis: 48%; 
        max-width: 100%; 
        box-sizing: border-box; 
    }
  
    h1 {
      font-size: 28px;
    }
  
    .g-col:last-child {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
  
    .cardG {
      margin-bottom: 0;
      width: 100%; 
        margin-bottom: 0;
        max-width: 100%; 
        box-sizing: border-box;
    }
}


@media screen and (min-width: 855px) {
    .g-row {
      flex-direction: row;
    }
  
    .g-col {
      width: 50%;
    }
  
    h1 {
      font-size: 28px;
    }
  
    .g-col:last-child {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
  
    .cardG {
      margin-bottom: 0;
    }
  }
  
  /* Medium screens (new breakpoint) */
  @media screen and (min-width: 601px) and (max-width: 850px) {
    .g-row {
      flex-direction: column;
      width: 100%;
    }
  
    .g-col {
      width: 100%;
      max-width: 100%;
    }
  
    .g-col:last-child {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }
  
    .cardG {
      width: calc(50% - 15px); /* 2 cards per row with some gap */
      margin: 10px 0;
    }
  }
  
  /* Small screens */
  /* Small screens */
@media only screen and (max-width: 600px) {
    .g-row {
        flex-direction: column;
    }

    .g-col {
        width: 100%;
    }

    /* --- START OF CHANGES --- */
    
    /* 1. Style the new swipe container */
    .GalPage-swipe-container {
        display: flex; /* Arrange cards in a row */
        overflow-x: auto; /* Allow horizontal scrolling */
        scroll-snap-type: x mandatory; /* Enable horizontal snapping */
        padding: 20px 0; /* Add some vertical padding */
        
        /* Hide the scrollbar for a cleaner look */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .GalPage-swipe-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, and Opera */
    }

    /* 2. Style the cards for the carousel */
    .cardG {
        flex: 0 0 80%; /* Don't grow, don't shrink, base width is 80% of the viewport */
        width: 80%;
        margin: 0 10px; /* Add horizontal margin instead of vertical */
        scroll-snap-align: center; /* Snap each card to the center */
    }

    /* Add some space for the first and last cards */
    .cardG:first-child {
        margin-left: 5%;
    }
    .cardG:last-child {
        margin-right: 5%;
    }

    /* --- END OF CHANGES --- */

    .GAL-PAGE {
        height: auto;
        /* The min-height is no longer necessary, but can be kept */
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

  /* Additional responsive adjustments */
  @media only screen and (max-width: 400px) {
    .g-col h1 {
      font-size: 2rem;
    }
  
    .g-col p {
      font-size: 0.9rem;
    }
  
    .cardG {
      height: 200px;
    }
  }

/* ---------ABOUT-------- */

.course {
    position: relative;
    box-sizing: border-box;
    padding: 100px 20px; 
    color: #333333; 
    text-align: center;
    background: linear-gradient(to bottom, #E8E7DB 0%, #FFFFFF 70%);
    background-attachment: fixed; 
}

.course h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color:  #152D36 ;
    font-family: 'Cinzel', serif;
    font-weight: bolder;
}

.course p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color:  #333333;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.course-image {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 15px;
}

.course-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 calc(25% - 40px);
    margin: 20px;
    padding: 20px;
    background: linear-gradient(
        to bottom right,
        rgba(188, 154, 123, 0.2), /* lion/20 */
        rgba(212, 211, 193, 0.3), /* bone/30 */
        rgba(129, 144, 141, 0.2)  /* battleship-gray/20 */
    );
    border: 1px solid rgba(188, 154, 123, 0.4);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.course-col:hover {
    transform: scale(1.05); 
    background-color: rgba(255,255,255,0.4);
}

.course-col h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #152D36;
    font-family: auto;
}

.course-col p {
    font-size: 1rem;
    line-height: 1.6;
}

.details-card {
    margin: 30px auto;
    width: 100%;
    max-width: 1200px;
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
    border-radius: 4px;
    background: linear-gradient(to bottom right, #F7E9CE, rgba(212, 211, 193, 0.5), #F7E9CE);
    display: flex;
    gap: 5px;
    padding: .4em;
    overflow: hidden;
}

.card-section {
    height: 100%;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
    transition: all .5s;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-section:hover {
    flex: 5;
}

.card-section p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(19 13 13 / 21%);
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
    box-sizing: border-box;
    transition: all .5s;
}

.card-section p span {
    min-width: 20em;
    padding: .5em;
    text-align: center;
    transition: all .5s;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: .1em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

@media (max-width: 720px) {
    .details-card {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .card-section {
        height: 150px;
    }

    .card-section:hover {
        flex: 8;
    }

    .card-section p span {
        transform: none;
    }
}

@media (min-width: 769px) {
    .card-section p span {
        transform: rotate(-90deg);
    }

    .card-section:hover p span {
        transform: rotate(0);
    }
}

.cta-box {
  background-color: #152D36;
  max-width: 1100px;
  margin: 50px auto;
  padding: 40px 50px;
  border-radius: 15px;
  
  /* Main layout: separates text from button */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px; 
}

.cta-content {
  flex: 1 1 500px; /* Allows the text part to take more space */
  text-align: left; /* Ensures left alignment */
}

.cta-heading {
  /* Aligns the icon and the heading text */
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.cta-heading i {
  font-size: 1.5rem;
  color: #BC9A7B; /* Accent color for the icon */
  flex-shrink: 0; /* Prevents icon from shrinking */
}

.cta-heading h4 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0; /* Remove default margin */
  text-align: left; /* Explicit left alignment */
}

.cta-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #E8E7DB;
  margin: 0; /* Remove default margin */
  /* Replace fixed padding with margin to align with heading text */
  margin-left: calc(1.5rem + 15px); /* Icon width + gap */
  text-align: left; /* Explicit left alignment */
}

.cta-action {
  flex-shrink: 0;
}

.learn-more-btn {
  display: flex; /* Aligns the text and arrow inside the button */
  align-items: center;
  gap: 10px;
  background-color: #F7E9CE;
  color: #152D36;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .cta-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 30px 25px;
    gap: 25px;
  }
  
  .cta-content {
    flex: none;
    text-align: left; /* Keep content left-aligned even when container is centered */
  }
  
  .cta-content p {
    margin-left: calc(1.5rem + 15px); /* Maintain alignment with heading */
  }
  
  .cta-action {
    align-self: center; /* Centers the button */
  }
  
  .cta-heading h4 {
    font-size: 1.75rem; /* Slightly smaller on mobile */
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .cta-box {
    padding: 25px 20px;
    margin: 30px auto;
  }
  
  .cta-content p {
    font-size: 1rem;
    /* On very small screens, remove the left margin for better readability */
    margin-left: 0;
    margin-top: 10px;
  }
  
  .cta-heading {
    justify-content: flex-start; /* Keeps icon and heading aligned left */
  }
  
  .cta-heading h4 {
    font-size: 1.5rem;
  }
}




@media (max-width: 768px) {
    .course {
        padding: 70px 10px;
    }

    .row {
        flex-direction: column;
    }

    .course-col {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    .course h1 {
        font-size: 2.8rem;
    }

    .course h1 + p {
        font-size: 1.4rem;
    }
    .course-col:hover , .details-box:hover{
        transform: none;
    }
    .slider-nav button, .slider-nav button:hover {
        background-color: #BCA89C !important;
    }
    .course-image {
        height: 250px; 
    }
}



/* ===== GENERAL SECTION STYLING ===== */
.intro {
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(
        to bottom right,
        #F7E9CE, /* Champagne */
        rgba(212, 211, 193, 0.5), /* Bone with 50% opacity */
        #F7E9CE /* Champagne */
    );
}

/* ===== NEW: TWO-COLUMN LAYOUT CONTAINER ===== */
.intro-container {
    display: flex;
    gap: 2.5rem; /* Increased gap for better spacing */
    align-items: flex-start;
    max-width: 1200px; /* Constrain the max width for large screens */
    margin: 0 auto;
}

/* ===== LEFT COLUMN: GURU PROFILE ===== */
.guru-profile-column {
    flex: 1;
    text-align: center;
    max-width: 380px;
    position: sticky; /* Makes the profile sticky on scroll */
    top: 2rem;
}

.intro h1 {
    text-align: center;
    margin-bottom: 2.6rem;
    color: #152D36;
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    letter-spacing: 2px;
}

.guru-profile {
    margin-bottom: 2rem;
}

.guru-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 4px 20px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
}

/* ===== NEW: GURU PILLARS (ICON BAR) ===== */
.guru-pillars {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(21, 45, 54, 0.2);
    border-bottom: 1px solid rgba(21, 45, 54, 0.2);
}

.pillar {
    text-align: center;
}

.pillar i {
    font-size: 2rem;
    color: #37525C;
    margin-bottom: 0.5rem;
}

.pillar p {
    font-size: 0.9rem;
    color: #5A2A27;
    font-weight: 600;
}

/* ===== RIGHT COLUMN: BENTO GRID ===== */
.motives-bento-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Make first and last cards span 2 columns */
.motives-bento-grid .card-container:first-child,
.motives-bento-grid .card-container:nth-child(6) { /* Target the 6th card specifically */
    grid-column: span 2;
}

/* ===== CARD STYLING (YOUR ORIGINAL CSS, WITH MINOR TWEAKS) ===== */
.card-container {
    width: 100%; /* Changed from fixed width to be responsive */
    height: 300px; /* You can adjust this value */
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.motive-card {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
    position: relative;
}

.front-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.motive-title {
    font-size: 24px;
    font-weight: 700;
    opacity: 1;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4); /* Added a subtle background for readability */
    color: #fff;
    border-radius: 5px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.motive-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Changed from 98% to cover fully */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    background: linear-gradient(to top, rgba(90, 42, 39, 0.9), rgba(90, 42, 39, 0.5)); /* A more cohesive gradient */
    color: #ffffff;
    padding: 20px;
    line-height: 1.5;
    border-radius: 10px;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.motive-content .heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff; /* White for better contrast on the new gradient */
}
.motive-content p {
    color: #F7E9CE; /* Champagne color for subtext */
}

.motive-card:hover .motive-content {
    transform: translateY(0);
}

.motive-card:hover .front-content {
    transform: translateY(-30%);
}

.motive-card:hover .motive-title {
    opacity: 0;
}


/* ===== RESPONSIVENESS ===== */
@media screen and (max-width: 992px) {
    .guru-profile-column {
        position: static; /* Remove sticky behavior on smaller screens */
    }
}

@media screen and (max-width: 768px) {
    .intro-container {
        flex-direction: column;
        align-items: center;
    }

    .guru-profile-column {
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .motives-bento-grid {
        grid-template-columns: 1fr; /* Stack cards in a single column */
        width: 100%;
        max-width: 400px;
    }

    /* Reset card spanning on mobile */
    .motives-bento-grid .card-container:first-child,
    .motives-bento-grid .card-container:nth-child(6) {
        grid-column: span 1;
    }
}

/* --- CINEMATIC TESTIMONIAL SECTION --- */
        .testimonials-cinematic {
            position: relative;
            width: 100%;
            min-height: 65vh; /* Full viewport height */
            display: flex;
            border-radius: 1.5rem;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            color: #ffffff;
            /* Default background color and smooth transition */
            background-color: #162429;
            transition: background-color 0.8s cubic-bezier(0.7, 0, 0.3, 1);
        }

        /* Background pseudo-element is no longer needed for this effect */

        .testimonials-story-slider {
            position: relative;
            width: 100%;
            max-width: 1100px;
            padding: 2rem;
            z-index: 2;
        }

        .testimonials-story-slide {
            /* All slides are layered on top of each other */
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            padding: 2rem;
            box-sizing: border-box;
            
            /* Hidden by default */
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s 0.6s;
        }

        .testimonials-story-slide.active {
            /* The active slide is visible */
            position: relative; /* Takes up space in the layout */
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s 0s;
        }

        .testimonials-story-content {
            display: grid;
            grid-template-columns: 1fr 1.5fr; /* Photo column, text column */
            gap: 3rem;
            align-items: center;
        }
        
        /* The 16:9 student photo */
        .testimonials-student-photo {
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        }

        .testimonials-student-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .testimonials-quote-content blockquote {
            font-size: 2rem;
            font-style: italic;
            font-weight: 400;
            line-height: 1.5;
            margin: 0 0 1.5rem 0;
            text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
        }

        .testimonials-quote-content cite {
            font-size: 1.2rem;
            color: antiquewhite;
            font-style: normal;
            font-weight: 700;
            font-family: 'Cinzel', serif;
        }

        /* Navigation Buttons */
        .testimonials-nav {
            position: absolute;
            bottom: 3rem;
            right: 3rem;
            display: flex;
            gap: 1rem;
            z-index: 3;
        }

        .testimonials-nav-button {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #ffffff;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }
        @media (hover: hover) {
    .testimonials-nav-button:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
}

        /* --- RESPONSIVE STYLES --- */
        @media (max-width: 768px) {
            .testimonials-story-content {
                grid-template-columns: 1fr; /* Stack columns on mobile */
                text-align: center;
            }
            .testimonials-student-photo {
                max-width: 300px;
                margin: 0 auto 2rem auto; /* Center the photo */
            }
            .testimonials-quote-content blockquote {
                font-size: 1.25rem;
            }
            .testimonials-nav {
                bottom: 1.5rem;
                left: 50%;
                transform: translateX(-50%);
                right: auto;
            }
        }



/* Contact Us Section Styles */
.contact-us-section {
    background: linear-gradient(135deg, #FCF6F0, #F7EDD1);
    padding: 40px;
    scroll-margin-top: 100px;
}

.contact-us-section h1 {
    text-align: center;
    color: #3E2F2B;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
}

.contact-us-section p {
    text-align: center;
    font-size: 1.4rem;
    color: #7B5E57;
    margin-bottom: 30px;
}

/* Button for Google Form */
.form-button-container {
    text-align: center;
    margin-bottom: 40px;
}

.btn-google-form {
    background-color: #7b2c2e;
    color: #C4B29C;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-google-form:hover {
    background-color: #594545;
}

/* Social Media Icons */
.social {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social a {
    font-size: 2rem;
    color: #7B5E57;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social a:hover {
    transform: scale(1.2);
    color: #3E2F2B;
}

/* Google Maps Embed */
.map-container {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px; 
    background-color: rgba(255, 255, 255, 0.2); 
    text-align: center; 
    display: block;
}

.map-container h2 {
    font-size: 1.8rem;
    color: #3E2F2B;
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
}

.map-container p {
    font-size: 1.2rem;
    color: #7B5E57;
    margin-bottom: 20px;
}

.map-container iframe {
    width: 80%;
    height: 300px; 
    border-radius: 8px; 
    border: none; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin: 0 auto;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #152D36, #37525C);
    color: #F5F5F5;
    padding: 40px 0;
    font-family: 'Cinzel', serif;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #FFD580;
}

.footer-recent, .footer-faq, .footer-about {
    margin-bottom: 40px;
}

/* Recent Events Styles */
.footer-recent ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.footer-recent li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.event-date {
    display: inline-block;
    width: 50px;
    text-align: center;
    background-color: #FFD580;
    color:  #152D36;
    padding: 2px 5px;
    margin-right: 10px;
    flex-shrink: 0;
}

.footer-recent p {
    margin: 0;
}

.know-more-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #FFD580;
    color: #152D36;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.know-more-btn:hover {
    background-color: #FFFFFF;
}

/* FAQ Styles */
.footer-faq details {
    margin-bottom: 15px;
}

.footer-faq summary {
    cursor: pointer;
    transition: color 0.3s;
}

.footer-faq summary:hover {
    color: #FFD580;
}

.footer-faq p {
    margin-top: 10px;
    padding-left: 20px;
}

/* About Section Styles */
.footer-about p {
    margin-bottom: 10px;
}

.icon-foot {
    margin-right: 10px;
    color: #FFD580;
    font-size: 1.1em;
    vertical-align: middle;
}


/* Social Media Styles */
.footer-social {
    text-align: center;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.social-icon a {
    color: #FFD580;
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
}

.social-icon a:hover {
    color: #FFF;
    transform: scale(1.2);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 3px solid #FFD580;
    padding-top: 20px;
}

.footer-bottom p {
    margin: 10px;
    color: #FFD580;
}


@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .know-more-btn{
        transition: none;
    }

}


/* ABOUT PAGE STYLE  */
main {
    padding: 2rem 1rem;
    background: rgba(252, 246, 240, 0);
}

main h1, main h2 {
    font-family: 'Playfair Display', serif;
    color: #4B3931; 
    margin-bottom: 1.5rem;
    text-align: center;
}

main p {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: #152D36;
    text-align: center;
}

.section-divider {
    width: 40%;
    margin: 3rem auto;
    height: 2px;
    border: none;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    main p {
        width: 90%;
    }

    .section-divider {
        width: 80%;
    }
}

/* first section  */
.about-intro {
    height: 80vh;
    background-image: url('images/P4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #F1E8D5;
    position: relative;
}

.about-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.content h1{
    color: #ddc1a7;
}
.content p{
    color: #ffffff;
}
h2{
    font-size: 2.5rem;
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.ashram-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature i, .feature img {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.feature img{
    height: 6rem;
    border-radius: 50%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1rem;
    }

    .ashram-features {
        flex-direction: column;
        gap: 1rem;
    }
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2rem;
  }

  .mission-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
  }

  .mission-item img {
    width: 120px;
    border-radius: 2rem;
    height: 120px;
    margin-bottom: 1rem;
  }

  .mission-item h3 {
    font-size: 1.5rem;
    color: #1E5A6E;
    margin-bottom: 0.5rem;
  }

  .mission-item p {
    font-style: italic;
    font-family: monospace;
    font-size: 1rem;
  }

  @media (max-width: 768px) {
    .mission-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .mission-item:not(:nth-child(2n))::after {
      content: none;
    }
  }

.about-teachings{
    text-align: center;
}
.about-teachings img{
width: 100px;
border-radius: 2rem;
height: 100px;
margin-bottom: 1rem;
}

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 2rem;
}

.principle {
background-color:#96695e;
padding: 2rem;
border-radius: 8px;
text-align: center;
cursor: pointer;
transition: transform 0.3s ease;
}

.principle:hover {
transform: translateY(-10px);
}

.principle h3 {
font-size: 1.8rem;
font-family: 'Playfair Display', serif;
color: #fffaf1;
margin-bottom: 1rem;
}

.principle p {
font-size: 1rem;
color: #ffffff;
}
.principle a{
    color: #000000;
}
@media (min-width: 710px) and (max-width: 945px) {
    .principles {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  

.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
background-color: #e4e2dd;
margin: 20% auto;
padding: 2rem;
border-radius: 8px;
max-width: 600px;
}

.modal-content h3{
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #96695e;
}
.modal-content p{
    color: #545454;
}

.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}

.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}

.lineages-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .lineages-intro {
    text-align: center;
  }
  
  .lineages-read-more {
    display: inline-flex;
    align-items: center;
    background-color: #cadbc0;
    color: #303030;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .lineages-arrow {
    margin-left: 5px;
    margin-top: -8px;
  }
  
  .lineages-expanded {
    display: none;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .lineages-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .lineages-text,
  .lineages-image {
    flex: 1;
  }
  
  .lineages-image img {
    width: 40%;
    border-radius: 7rem;
    height: auto;
  }
  
  @media (min-width: 768px) {
    .lineages-block {
      flex-direction: row;
      align-items: center;
    }
  
    .lineages-block:nth-child(even) {
      flex-direction: row-reverse;
    }
  }

  @keyframes slideInUp {
    from {
      transform: translate3d(0, 100%, 0);
      visibility: hidden;
    }
  
    to {
      transform: translate3d(0, 0, 0);
      visibility: visible;
    }
  }
  
  .animate__slideInUp {
    animation-name: slideInUp;
    animation-duration: 1s;
    animation-fill-mode: both;
  }


  .Ashram-Life-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 2rem;
}

/* Second row layout for large screens */
.Ashram-Life-row:nth-child(3) {
    flex-direction: row; /* Ensures Image LEFT, Text RIGHT for second row */
}

.Ashram-Life-text {
    flex: 1;
}

.Ashram-Life-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.Ashram-Life-row p{
    text-align: left;
}

.Ashram-Life-image img {
    max-width: 40%;
    border-radius: 7rem;
    height: auto;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .Ashram-Life-row {
        flex-direction: column;
        text-align: center;
    }
    
    .Ashram-Life-text {
        margin-bottom: 1rem;
    }
    
    .Ashram-Life-image {
        margin: 0 0 2rem;
    }
    
    /* Ensure second row maintains text->image order on mobile */
    .Ashram-Life-row:nth-child(3) {
        flex-direction: column;
    }
    
    .Ashram-Life-row:nth-child(3) .Ashram-Life-text {
        order: -1; /* Brings text before image in second row */
    }
}

.Ashram-About-offers {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}




.Ashram-About-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.Ashram-About-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* This is the key change - alternate row content order */
.Ashram-About-row:nth-child(4),
.Ashram-About-row:nth-child(8) {
    flex-direction: row;
}

.Ashram-About-textBox {
    flex: 1;
    padding: 2rem;
}

.Ashram-About-textBox h3 {
    font-size: 1.75rem;
    color: #1E5A6E;
    margin: 0;
}
.Ashram-About-textBox p{
    color: #152d36;
    margin-top: 2rem;
    text-align: left;
}

.Ashram-About-imageBox {
    flex: 1;
    height: 300px;
}

.Ashram-About-imageBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .Ashram-About-row {
        flex-direction: column !important; 
    }
    
    .Ashram-About-textBox,
    .Ashram-About-imageBox {
        width: 100%;
    }
    
    .Ashram-About-textBox {
        text-align: center;
    }
    .Ashram-About-textBox p{
        text-align: center;
    }
}



.About-Course-container {
    background-color: #152D36;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 42rem;
    margin: 2rem auto;
}

.About-Course-content {
    text-align: center;
}

.About-Course-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.About-Course-questions {
    margin-bottom: 1.5rem;
}
.About-Course-questions p{
    text-align: left;
    color: wheat;
}

.About-Course-benefits {
    list-style: none;
    color: whitesmoke;
    padding: 0;
    margin: 1rem auto;
    max-width: 28rem;
    text-align: left;
}

.About-Course-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.About-Course-benefits i {
    color: white;
    font-size: 1.2rem;
}
.About-Course-benefits span {
    font-size: 1.2rem;
}

.About-Course-button {
    display: inline-block;
    background-color: #ffd580;
    color: #152d36;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.About-Course-button:hover {
    background-color: whitesmoke;
}