﻿/* =====================================
   ABOUT ASHRAM SECTION
===================================== */

.about-ashram-section {
    width: 100%;
    padding: 80px 20px;
    background: #1a1a2e;
}

.about-ashram-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 35px;
    align-items: start;
}

/* IMAGE */

.about-ashram-image {
    width: 100%;
}

    .about-ashram-image img {
        width: 100%;
        height:500px;
        display: block;
        border-radius: 15px;
        object-fit: cover;
        transition: .5s;
    }

    .about-ashram-image:hover img {
        transform: scale(1.02);
    }

/* CONTENT */

.about-ashram-content {
    color: #fff;
}

.sub-badge {
    display: inline-block;
    color: #e63329;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.about-ashram-content h2 {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 15px;
}



.about-ashram-content p {
    color: rgba(255,255,255,.85);
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 18px;
}

/* =====================================
   GALLERY SECTION
===================================== */

.gallery-section {
    width: 100%;
    padding: 60px 20px;
    background: #f8fafc;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

    .gallery-header h2 {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 12px;
    }

    .gallery-header .header-line {
        width: 50px;
        height: 3px;
        background: #e63329;
        margin: 0 auto;
        border-radius: 2px;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(26,26,46,.05);
    aspect-ratio: 4/3;
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .5s;
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,.85), rgba(230,51,41,.2));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .3s;
}

    .gallery-overlay span {
        color: #fff;
        border: 1px solid #fff;
        padding: 8px 18px;
        border-radius: 6px;
    }

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* =====================================
   CONTACT SECTION
===================================== */

.contact-section {
    width: 100%;
    padding: 60px 20px;
    background: #f4f7f6;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.03);
}

.contact-form-container {
    padding: 50px;
}

    .contact-form-container h2 {
        font-size: 32px;
        color: #1a1a2e;
        margin-bottom: 10px;
    }

.contact-subtitle {
    color: #64748b;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #e63329;
            box-shadow: 0 0 0 3px rgba(230,51,41,.10);
        }

.full-width {
    margin-top: 20px;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-submit {
    background: #e63329;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
}

    .btn-submit:hover {
        background: #cb281f;
    }

.btn-reset {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
}

    .btn-reset:hover {
        background: #e63329;
    }

/* RIGHT PANEL */

.contact-info {
    background: #1a1a2e;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
}

.icon-box {
    width: 46px;
    height: 46px;
    background: #fdf2f2;
    color: #e63329;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-content h3 {
    color: #1a1a2e;
    margin-bottom: 5px;
}

.info-content p,
.info-content a {
    color: #475569;
    text-decoration: none;
}

/* =====================================
   RESPONSIVE
===================================== */

@media(max-width:992px) {

    .about-ashram-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:600px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container,
    .contact-info {
        padding: 25px;
    }

    .about-ashram-content h2 {
        font-size: 28px;
    }
}

/* ==========================================================================
   Gallery Section Design - Responsive 3-Column Grid
   ========================================================================== */

.gallery-section {
    width: 100%;
    padding: 60px 20px;
    background-color: #f8fafc; /* Clean background similar to image_155641.jpg */
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Area styling */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

    .gallery-header h2 {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a2e; /* Deep dark tone */
        letter-spacing: -0.5px;
        margin-bottom: 12px;
    }

    .gallery-header .header-line {
        width: 50px;
        height: 3px;
        background-color: #e63329; /* Accent red line */
        margin: 0 auto;
        border-radius: 2px;
    }

/* Gallery Grid Framework */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exact 3-column setup */
    gap: 24px;
}

/* Grid Card Items with Animations */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.05);
    aspect-ratio: 4 / 3; /* Matches the perspective image proportions */
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

/* Interactive Hover States */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.85), rgba(230, 51, 41, 0.2));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .gallery-overlay span {
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.5px;
        border: 1.5px solid #ffffff;
        padding: 8px 18px;
        border-radius: 6px;
        transform: translateY(15px);
        transition: transform 0.3s ease;
    }

.gallery-item:hover img {
    transform: scale(1.08); /* Fluid zoom animation */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

    .gallery-item:hover .gallery-overlay span {
        transform: translateY(0);
    }

/* ==========================================================================
   Responsive View Breakpoints
   ========================================================================== */

/* Tablets and iPads */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on intermediate screens */
        gap: 20px;
    }

    .gallery-header h2 {
        font-size: 24px;
    }
}

/* Mobile Devices */
@media (max-width: 600px) {
    .gallery-section {
        padding: 40px 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Full width stacked cards on small phones */
        gap: 16px;
    }

    .gallery-header h2 {
        font-size: 22px;
    }
}

























/* ==========================================================================
   Contact Section - Exact Clone of image_14e5e1.png Layout
   ========================================================================== */

.contact-section {
    width: 100%;
    padding: 60px 20px;
    background-color: #f4f7f6;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Form gets more space, matching the image */
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden; /* Clips the right panel border-radius */
}

/* --- Left Side: Form Elements --- */
.contact-form-container {
    padding: 50px;
}

    .contact-form-container h2 {
        font-size: 32px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 8px;
    }

.contact-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        font-size: 13px;
        font-weight: 600;
        color: #1a1a2e;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 14px;
        color: #1a1a2e;
        background-color: #ffffff;
        transition: all 0.2s ease-in-out;
    }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #94a3b8;
        }

        /* Interactive Input Focus State matching red highlight boundary */
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #e63329;
            box-shadow: 0 0 0 3px rgba(230, 51, 41, 0.1);
        }

.full-width {
    margin-bottom: 28px;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Form Action Buttons */
.form-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-submit {
    background-color: #e63329; /* Vibrant Red */
    color: #ffffff;
}

    .btn-submit:hover {
        background-color: #cb281f;
        transform: translateY(-1px);
    }

.btn-reset {
    background-color: #1a1a2e; /* Deep Navy Dark */
    color: #ffffff;
}

    .btn-reset:hover {
        background-color: #e63329;
        color:#ffff;
        transform: translateY(-1px);
    }


/* --- Right Side: Dark Information Panel --- */
.contact-info {
    background-color: #1a1a2e; /* Exact Slate Panel Fill */
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff; /* Contrast Clean Card Structure */
    padding: 24px;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .info-card:hover {
        transform: scale(1.02);
    }

.icon-box {
    width: 46px;
    height: 46px;
    background: #fdf2f2; /* Light red tint background */
    color: #e63329; /* Accent Red Core Icon */
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.info-content p,
.info-content a {
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    line-height: 1.5;
}

    .info-content a:hover {
        color: #e63329;
    }


/* ==========================================================================
   Responsive UI Engine
   ========================================================================== */

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 40px;
    }
}

@media (max-width: 600px) {
    .contact-form-container {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-info {
        padding: 30px 20px;
    }
}
