/* =========================================
   HOME PAGE SECTIONS (Modular) - FULL CSS
   ========================================= */

/* --- 1. MISSION SECTION (Desktop) --- */
.chairy-mission-section { 
    padding: 100px 0; 
    background-color: #ffffff; 
}

.chairy-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 बराबर कॉलम */
    gap: 60px;
    align-items: center;
}

.chairy-mission-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0px #f39c12; /* ऑरेंज शैडो इफ़ेक्ट */
    display: block;
}

.chairy-section-tag {
    color: #f39c12;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.chairy-mission-heading {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.chairy-mission-text p { 
    font-size: 1.1rem; 
    color: #555; 
    margin-bottom: 25px; 
    line-height: 1.8; 
}

.chairy-text-link {
    color: #2c3e50;
    text-decoration: underline;
    text-decoration-color: #f39c12;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block; /* Crucial fix for cutting */
}
.chairy-text-link:hover { color: #f39c12; }


/* --- 2. LATEST WORK SECTION (Projects Desktop) --- */
.chairy-projects-section { 
    padding: 80px 0 100px 0; 
    background-color: #f9f9f9; 
    text-align: center; 
}

.chairy-projects-main-heading {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.chairy-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* फ्लेक्सिबल कार्ड्स */
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.chairy-project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden; /* Prevent content spill */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    width: 100%; /* Important for grid placement */
}
.chairy-project-card:hover { transform: translateY(-10px); }

/* Desktop Project Image */
.chairy-project-img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    display: block; 
}

/* Project Info & Description */
.chairy-project-info { 
    padding: 30px; 
}

.chairy-project-info h3 { 
    font-size: 1.4rem; 
    color: #2c3e50; 
    margin-bottom: 15px; 
    font-weight: 700; 
    margin-top: 0;
    overflow-wrap: break-word; /* Crucial fix for long titles */
}

/* Project Excerpt (Description) Style */
.chairy-project-info p.chairy-project-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    margin-top: 0;
}


/* =========================================
   MOBILE RESPONSIVENESS (< 991px) - FIXED THE CUTTING
   ========================================= */
@media (max-width: 991px) {
    /* (General Padding for the grid on mobile) */
    .container {
        padding: 0 15px; /* Slight reduce overall side padding */
    }

    /* 1. Mission Mobile */
    .chairy-mission-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px; 
    }
    .chairy-mission-image img { 
        box-shadow: 10px 10px 0px #f39c12; /* मोबाइल पर शैडो थोड़ी कम */
    } 
    .chairy-mission-heading { 
        font-size: 2.2rem; 
    }
    .chairy-mission-text p { 
        font-size: 1rem; 
    }

    /* 2. Project Cards Mobile FIX - This stops the cutting! */
    .chairy-projects-grid {
        grid-template-columns: 1fr !important; /* Stack single column always below 991px */
        gap: 20px; /* Reduce gap */
    }

    .chairy-projects-main-heading {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .chairy-project-card .chairy-project-img {
        width: 100% !important; /* Force width to 100% of the card */
        height: auto !important; /* Maintain aspect ratio */
        object-fit: cover; 
        display: block;
    }

    /* Reduce Inner Padding and Center Content */
    .chairy-project-info {
        text-align: center; /* Center title and link */
        padding: 20px !important; /* REDUCED PADDING is key fix for cutting */
    }

    .chairy-project-info h3 {
        font-size: 1.2rem; /* Reduce font size slightly on mobile */
        overflow-wrap: break-word; /* Force wrap on long titles */
        line-height: 1.3;
        white-space: normal; /* Important: allow wrapping */
    }

    .chairy-project-excerpt {
        text-align: left; /* Keep excerpt left for readability */
        font-size: 0.9rem;
    }

    /* Center the link button on mobile */
    .chairy-project-info .chairy-text-link {
        display: block;
        width: fit-content;
        margin: 0 auto;
    }
}

/* --- 4. SMALL MOBILE VIEW (< 480px) --- */
@media (max-width: 480px) {
    .chairy-mission-heading { 
        font-size: 1.8rem; 
    }
    .chairy-projects-main-heading { 
        font-size: 1.8rem; 
    }
    .chairy-project-info h3 { 
        font-size: 1.1rem; 
    }
}