/*
Theme Name: Mike Smith Property Investments
Theme URI: https://mikesmith.com
Author: Your Name
Author URI: https://yoursite.com
Description: Custom WordPress theme for Mike Smith Property Investments with before/after image sliders
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mikesmith
Tags: business, real-estate, custom, responsive
*/
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-red: #E31E24;
    --dark-gray: #333333;
    --orange: #FF8C42;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-gray: #666666;
  /*  --font-primary: -apple-system, BlinkMacSystemFont, 'Merriweather Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
  --font-primary: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather Sans', sans-serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header Styles */
.site-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
    margin: 0;
}


.main-navigation a {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-red);
}

.main-navigation .current-menu-item a {
    color: var(--primary-red);
}

.btn-notts {
    background: var(--orange);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
}

.btn-notts:hover {
    background: #e67d35;
    transform: translateY(-2px);
}

.btn-contact {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
}

.btn-contact:hover {
    background: #c21a1f;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-gray);
}

/* Hero Before/After Section commented */
/* .hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background-image: url(assets/images/home-banner.png);
    background: var(--light-gray); 
}

.before-after-slider {
    width: 100%;
    height: 100%;
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
} */

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: inset(0 50% 0 0);
}

.label {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 8px 20px;
    font-weight: 600;
    z-index: 10;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.before-image .label {
    left: 20px;
}

.after-image .label {
    right: 20px;
}

.location-label {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 8px 20px;
    font-weight: 600;
    z-index: 10;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-handle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 20;
    transition: transform 0.2s ease;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle::before,
.slider-handle::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100vh;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.slider-handle::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
}

.slider-handle::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
}

.handle-icon {
    font-size: 24px;
    color: var(--dark-gray);
    font-weight: bold;
    z-index: 1;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-image: url(assets/images/home-second-section.png);
    /* background: var(--white); */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    /* align-items: center; */
}

.about-text {
    order: 1;
}

.about-image {
    order: 2;
    position: relative;
}

.section-title {
    color: var(--primary-red);
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 25px;
    /* letter-spacing: 2px; */
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 1px;
    background: linear-gradient(to right, #E31E24 30%, rgba(227, 30, 36, 0.4) 100%, transparent 100%);
    /* background: linear-gradient(to right, #E31E24 0%, rgba(227, 30, 36, 0.3) 50%, transparent 100%); */
    margin-left: 20px;
}

.about-heading {
    font-size: 48px;
    font-size:40px;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--dark-gray);
    font-weight: 400;
}

.about-heading .highlight {
    color: var(--primary-red);
    font-weight: 700;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #c21a1f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.about-image img {
    /* border-radius: 20px; */
    border-radius: 5px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 100%;
    height: auto; margin-top:20px;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-image:linear-gradient(
    to bottom,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.4)
  ),url(assets/images/home-third-section.png);
    /* background: var(--dark-gray); */
}

.section-title-white {
    color: var(--white);
    font-size: 32px;
    margin-left: 3%;
    font-weight: 600;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-before-after {
    position: relative;
    height: 350px;
    overflow: hidden;
    user-select: none;
}

.project-before,
.project-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-before img,
.project-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-after {
    clip-path: inset(0 50% 0 0);
}

.slider-handle-small {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 10;
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-gray);
}

.team-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Footer */
.site-footer {
    background: var(--primary-red);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--white);
    color: var(--primary-red);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: var(--light-gray);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright,
.company-info {
    font-size: 14px;
    margin: 0;
}

/* Page Content Styles */
.page-content,
.post-content {
    padding: 60px 0;
}

.page-content .container,
.post-content .container {
    max-width: 900px;
}

.page-content h1,
.post-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.page-content h2,
.post-content h2 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.page-content p,
.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content-wrapper {
    padding: 20px;
}

.post-title a {
    color: var(--dark-gray);
    font-size: 24px;
    font-weight: 600;
}

.post-title a:hover {
    color: var(--primary-red);
}

.post-meta {
    color: var(--text-gray);
    font-size: 14px;
    margin: 10px 0;
}

.read-more {
    color: var(--primary-red);
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    color: var(--dark-gray);
}

.pagination a:hover {
    background: var(--primary-red);
    color: var(--white);
}

.pagination .current {
    background: var(--primary-red);
    color: var(--white);
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-navigation ul {
        gap: 15px;
        font-size: 14px;
    }
    
    .btn-notts,
    .btn-contact {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .about-heading {
        font-size: 32px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 820px) {

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
    }

}
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-heading {
        font-size: 28px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title-white {
        font-size: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-heading {
        font-size: 24px;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .slider-handle {
        width: 50px;
        height: 50px;
    }
    
    .handle-icon {
        font-size: 20px;
    }
}

/* About Section - Exact Figma Match */
/* 🔥 EXACT FIGMA MATCH – FINAL OVERRIDES */
.about-section .container {
    max-width: 1500px;
    padding: 0 80px;
}
.about-content {
    display: grid;
    grid-template-columns: 0.6fr 0.4fr;
    align-items:start;
    /* align-items: center; */
    gap: 70px;
}
.about-text {
    padding-left: 40px;
    /* margin-top: 20px; */  margin-top: -35px;
}
.about-image {
    margin-top: -40px;
}
.section-title {
    margin-bottom: 20px;
    /* letter-spacing: 2.5px; */
    font-size: 14px;
    /* padding-right: 15px; */
}
.section-title::after {
    width: 350px;
    margin-left: 12px;
    background: linear-gradient(to right, #E31E24 30%, rgba(227, 30, 36, 0.4) 100%, transparent 100%);
    /* background: linear-gradient(
        to right, 
        #E31E24 0%, 
        rgba(227, 30, 36, 0.4) 40%, 
        transparent 100%
    ); */
}
.about-heading {
    font-size: 39px;
    font-weight: 400;
    /* line-height: 1.1; */
    letter-spacing: -0.4px;
    margin-bottom: 35px;
      margin-top: 35px;
}
.about-image img {
    border-radius: 22px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.12);

}


.about-heading .highlight {
    color: var(--primary-red);
    font-weight: 700;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 45px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #c21a1f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3);
}

/* Align about text with image section */
.about-mike-section .wpb_column:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically aligns with image */
}

.about-mike-section {
    align-items: center !important;
}
.about-mike-section {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-section .container {
        max-width: 1200px;
        padding: 0 40px;
    }
    
    .about-content {
        gap: 60px;
    }
    
    .about-heading {
        font-size: 44px;
    }
}

@media (max-width: 992px) {
    .about-content {
        gap: 40px;
    }
    
    .about-heading {
        font-size: 38px;
    }
    
    .section-title::after {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-section .container {
        padding: 0 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text {
        order: 1;
        padding-right: 0;
    }
    
    .about-image {
        order: 2;
        padding-left: 0;
    }
    
    .about-heading {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .section-title::after {
        display: none;
    }
    
    .btn-primary {
        padding: 14px 35px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .about-heading {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 12px;
        letter-spacing: 2px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    height: 290px;
    margin-left: 3%;
    /* grid-template-columns: 1fr 1fr 1fr;  3 equal-sized columns  */
    gap: 30px;
    align-items: stretch;
}

.static-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* Before/After cards same height & width */
.before-after-card,
.team-card {
    height: 100%;
}

.project-before-after {
    position: relative;
    height: 100%;
}

.project-before img,
.project-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* Responsive Tablet */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        height: 250px;
    }
}
/* STATIC TEAM IMAGE HOVER OVERLAY */
.static-team-image {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.static-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 18px;
}

/* Overlay Content */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    border-radius: 18px;

    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Text inside overlay */
.project-overlay h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;

    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

/* Button */
.project-btn {
    opacity: 0;
    padding: 10px 22px;
    border-radius: 6px;
    background: #f89f37;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.4s ease 0.2s;
}

/* HOVER EFFECT */
.static-team-image:hover img {
    transform: scale(1.08);
}

.static-team-image:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.static-team-image:hover .project-overlay h3,
.static-team-image:hover .project-btn {
    opacity: 1;
}
/* ============================================
   PROJECTS ARCHIVE PAGE STYLES
   ============================================ */

/* Header Section */
.projects-hero-section {
    /* background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%); */
    background-image: url(assets/images/project-banner.png);
    background-size: cover;
    background-position: center;
    /* padding: 40px 0 50px; */
    padding: 80px 0 80px; 
    position: relative;
    overflow: hidden;
}

/* Optional: Subtle pattern overlay */
.projects-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,...'); /* Add pattern */
    opacity: 0.2;
    pointer-events: none;
}

/* Container */
.projects-hero-section .container {
    max-width: 1400px;
    padding: 0 60px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* added new class in project page */
.project-titles {
    width: 431px;                 /* adjust as needed */
    /* height: 48px; */
    display: flex;
    align-items: center;
    padding-left: 18px;
    /* smooth flowing fade on right */
    background: linear-gradient(
        to right,
        #ffffff 0%,
        #ffffff 55%,
        rgba(255,255,255,0.7) 70%,
        rgba(255,255,255,0.4) 85%,
        rgba(255,255,255,0) 100%
    );

    border-left: 4px solid #000;   /* left border only */
}

.project-heading {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    padding: 12px 45px;
    color: red;
    line-height: 1.2;
}

.media-hero-section {
    background: linear-gradient(135deg, #3a3a3a 0%, #0f0f0f 100%);
    /* background-image: url(assets/images/project-banner.png); */
    background-size: cover;
    background-position: center;
    /* padding: 40px 0 50px; */
    padding: 80px 0 80px;
    position: relative;
    overflow: hidden;
}

.media-titles {
    width: 320px;
    /* height: 48px; */
    display: flex;
    align-items: center;
    padding-left: 18px;
    /* margin: 0% 37%; */
    background: linear-gradient(to right, #ffffff 0%, #ffffff 55%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0.4) 85%, rgba(255, 255, 255, 0) 100%);
    border-left: 4px solid #000; 
}

.media-article {
    /* border-left: 4px solid #e60023; Daily Mail red feel 
    background: #fafafa; */
    padding: 25px;
    /* margin-bottom: 30px;
    border-radius: 8px; */
}

.media-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

.media-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: red;
}

.media-content {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 10px;
}

.media-hero {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

.media-hero img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.media-container{
    margin: 0px !important;
}

.media-grid .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 24px;
    max-width: 1100px;
    padding: 20px;
    margin: 0 auto;
}

/* Card design  */
.media-card {
    background: #ffffff;
    border-radius: 14px;
    display: inline-flex;
    padding:20px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.media-thumb {
    width: 100%;
    background: #f2f2f2;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;   /* rectangle */
    border-radius: 12px;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-thumb.placeholder {
    background: #e6e6e6;
}

.media-thumb.video .play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #fff;
    background: rgba(0,0,0,0.35);
}

.media-body {
    padding: 18px;
    width:100%;
}

.media-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #d6001c;
    margin-bottom: 8px;
}

.media-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.media-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.media-meta{
    margin-top: 4px;
    font-size: 13px;
    color: #9aa0a6;   /* light grey */
    display: flex;
    align-items: center;
    gap: 6px;
}

.media-meta .v-line{
    width: 1px;
    height: 12px;
    background: #c4c4c4;
    margin: 0 2px;
}

.blog-link{
    color: red !important;
}

.blog-para{
    line-height:35px;
}

.blog-paras{
    margin-bottom: 15px;
}

/* HERO BACKGROUND */
.hero-section{
    max-height: 650px;         /* desktop limit */
    min-height: 480px;         /* mobile safety */

    background-image: url(assets/images/home-banner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
     padding: 25px 0px 30px 0px;
}

/* DARK OVERLAY */
.hero-section::before{
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(0,0,0,0.35); */
}

.hero-section{
    position: relative;
}

/* .bafg-twentytwenty-container.slider-62.twentytwenty-container{
    height: 520px;
    width: 100%;
} */

/* SLIDER WRAPPER */
.before-after-slider{
    width: 92%;
    max-width: 1400px;
    position: relative;
    z-index: 2;
}

/* REMOVE BOX LOOK */
.before-after-slider .bafg-wrapper,
.before-after-slider .bafg-container{
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* IMAGE HEIGHT FIX */
.before-after-slider img{
    width: 100%;
    height: 520px;
    object-fit: cover;
}

/* BEFORE / AFTER LABELS */
.bafg-before-label,
.bafg-after-label{
    background: rgba(0,0,0,0.55) !important;
    color: #fff !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
}

/* LOCATION LABEL (BOTTOM RIGHT) */
.bafg-caption{
    position: absolute !important;
    right: 15px;
    bottom: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
}


/* end new class code */


.main-section .container{
    padding:0px !important;
}

/* Title Wrapper with Background Box */
/* .title-wrapper {
    margin-bottom: 35px;
} */

/* Title with White Background */
/* .projects-main-title {
    background: #ffffff;
    background: rgba(255, 255, 255, 0.98);
    color: #E31E24;
    font-size: 52px;
    font-weight: 700;
    padding: 18px 45px;
    display: inline-block;
    margin: 0;
    line-height: 1.2;
    border-radius: 4px; slight rounding if needed 
} */

/* Subtitle */
.projects-subtitle {
    color: #ffffff;
    color: rgba(255, 255, 255, 0.95);
    /* font-size: 17px; */
    font-size:25px;
    font-weight: 300;
    letter-spacing:0px;
    /* line-height: 1.6; */
    /* max-width: 850px; commented*/
    padding: 25px 70px;
    margin: 0;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-main-title {
        font-size: 36px;
        padding: 15px 30px;
        display: block; /* full width on mobile */
    }
    
    .projects-subtitle {
        font-size: 15px;
    }
    
    .projects-hero-section {
        padding: 40px 0 60px;
    }
    
    .projects-hero-section .container {
        padding: 0 20px;
    }
    
}
/* commented old Projects Archive Section */
/* .projects-archive-section {
    padding: 80px 0;
    background: #f5f5f5;
} */
.projects-archive-section{
    margin-top:-7%;
    background: #f5f5f5;
}

.projects-archive-section .container {
    max-width: 1400px;
    padding: 0 60px;
    display: flex;
    justify-content: center;
}

.projects-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 60px;
    padding: 60px;
    width: 95%;
    align-items: stretch; /* default but safe */
    /* width: 80%; */
}


/* Individual Project Card */
.archive-project-card {
    /* background: #ffffff; */
    border-radius: 18px;
    height: fit-content;
    width: 85%;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.archive-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Project Image Container */
.archive-project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #e0e0e0;
}

.archive-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.archive-project-card:hover .archive-project-image img {
    transform: scale(1.1);
}

/* Hover Overlay */
.archive-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.archive-project-card:hover .archive-project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.archive-project-overlay h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.archive-project-card:hover .archive-project-overlay h3 {
    opacity: 1;
    transform: translateY(0);
}

.archive-project-btn {
    background: #FF8C42;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.4s ease 0.2s;
    opacity: 0;
    transform: translateY(10px);
}

.twentytwenty-horizontal .twentytwenty-before-label:before, .twentytwenty-horizontal .twentytwenty-after-label:before {
    top:12% !important;
    color:white;
    border: none !important;       /* border remove */
    box-shadow: none !important;   /* shadow remove */
    padding: 0 !important;         /* padding remove */
    border-radius: 0 !important;
}

.twentytwenty-before-label::before,
.twentytwenty-after-label::before{
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.twentytwenty-before-label,
.twentytwenty-after-label{
    background: rgba(#ffffff71) !important;   /* button bg remove */
    border: none !important;       /* border remove */
    box-shadow: none !important;   /* shadow remove */
    padding: 0 !important;         /* padding remove */
    border-radius: 0 !important;

    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    opacity: 1;                    /* 9999 wrong – max is 1 */
}

.twentytwenty-before-label:hover,
.twentytwenty-after-label:hover{
    background: none !important;   /* button bg remove */
    border: none !important;       /* border remove */
    box-shadow: none !important;   /* shadow remove */
    padding: 0 !important;         /* padding remove */
    border-radius: 0 !important;

    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    opacity: 1;                    /* 9999 wrong – max is 1 */

}

.bafg-slider-info-wraper{
    position: absolute;
    left: 85%;
    bottom: 0%;
}

.archive-project-card:hover .archive-project-btn {
    opacity: 1;
    transform: translateY(0);
}

.archive-project-btn:hover {
    background: #e67d35;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
}

/* Project Content */
.archive-project-content {
    padding: 25px;
    background: #3a3a3a;
    color: #ffffff;
    height: 190px;
}

.archive-project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.archive-project-location svg {
    flex-shrink: 0;
}

.archive-project-description {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 40px;
}

.archive-know-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #E31E24;
    padding: 11px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;width:100%;
}

.archive-know-more:hover {
    gap: 12px;
    background: #E31E24;
    color: #ffffff;
    transform: translateX(3px);
}

.archive-know-more svg {
    transition: transform 0.3s ease;
}

.archive-know-more:hover svg {
    transform: translateX(3px);
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.archive-pagination ul {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.archive-pagination li {
    margin: 0;
}

.archive-pagination li a,
.archive-pagination li span {
    display: block;
    padding: 12px 20px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.archive-pagination li a:hover {
    background: #E31E24;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.archive-pagination li span.current {
    background: #E31E24;
    color: #ffffff;
    border-color: #E31E24;
}

/* No Projects Message */
.no-projects-message {
    text-align: center;
    padding: 100px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-projects-message h2 {
    font-size: 36px;
    color: #333333;
    margin-bottom: 15px;
}

.no-projects-message p {
    font-size: 18px;
    color: #666666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-hero-section .container,
    .projects-archive-section .container {
        max-width: 1200px;
        padding: 0 40px;
    }
    
    .projects-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .projects-main-title {
        font-size: 40px;
    }
    
    .projects-subtitle {
        font-size: 16px;
    }
    
    .projects-archive-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-hero-section {
        padding: 50px 0 40px;
    }
    
    .projects-hero-section .container{
        padding: 0 20px;
    }
    .projects-archive-section .container {
        padding: 0 20px;
        /* added */
        display: flex;
        justify-content: center
    }
    
    .projects-main-title {
        font-size: 36px;
    }
    
    .projects-subtitle {
        font-size: 15px;
    }
    
    .projects-archive-section {
        padding: 60px 0;
    }
    
    .projects-archive-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .archive-project-image {
        height: 250px;
    }
    
    .archive-project-overlay h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .projects-main-title {
        font-size: 32px;
    }
    
    .projects-subtitle {
        font-size: 14px;
    }
    
    .archive-project-content {
        padding: 20px;
    }
    
    .archive-project-overlay h3 {
        font-size: 20px;
    }
    
    .archive-project-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Individual Project Card */
.archive-project-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.archive-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Project Image Container */
.archive-project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #e0e0e0;
}

.archive-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.archive-project-card:hover .archive-project-image img {
    transform: scale(1.1);
}

/* Hover Overlay */
.archive-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.archive-project-card:hover .archive-project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.archive-project-overlay h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.archive-project-card:hover .archive-project-overlay h3 {
    opacity: 1;
    transform: translateY(0);
}

.archive-project-btn {
    background: #FF8C42;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.4s ease 0.2s;
    opacity: 0;
    transform: translateY(10px);
}

.archive-project-card:hover .archive-project-btn {
    opacity: 1;
    transform: translateY(0);
}

.archive-project-btn:hover {
    background: #e67d35;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
}

/* Project Content */
.archive-project-content {
    padding: 25px;
    background: #3a3a3a;
    color: #ffffff;
}

.archive-project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E31E24;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.archive-project-location svg {
    flex-shrink: 0;
}

.archive-project-description {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    min-height: 42px;
}

.archive-know-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #E31E24;
    padding: 10px 24px;
    border-radius: 25px;
}

.archive-know-more:hover {
    gap: 12px;
    background: #E31E24;
    color: #ffffff;
    transform: translateX(3px);
}

.archive-know-more svg {
    transition: transform 0.3s ease;
}

.archive-know-more:hover svg {
    transform: translateX(3px);
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.archive-pagination ul {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.archive-pagination li {
    margin: 0;
}

.archive-pagination li a,
.archive-pagination li span {
    display: block;
    padding: 12px 20px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.archive-pagination li a:hover {
    background: #E31E24;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.archive-pagination li span.current {
    background: #E31E24;
    color: #ffffff;
    border-color: #E31E24;
}

/* No Projects Message */
.no-projects-message {
    text-align: center;
    padding: 100px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-projects-message h2 {
    font-size: 36px;
    color: #333333;
    margin-bottom: 15px;
}

.no-projects-message p {
    font-size: 18px;
    color: #666666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 992px) {
    .projects-main-title {
        font-size: 48px;
    }
    
    .projects-subtitle {
        font-size: 16px;
    }
    
    .projects-archive-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-hero-section {
        padding: 60px 0 40px;
    }
    
    .projects-main-title {
        font-size: 36px;
    }
    
    .projects-subtitle {
        font-size: 15px;
    }
    
    .projects-archive-section {
        padding: 60px 0;
    }
    
    .projects-archive-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .archive-project-image {
        height: 250px;
    }
    
    .archive-project-overlay h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .projects-main-title {
        font-size: 32px;
    }
    
    .projects-subtitle {
        font-size: 14px;
    }
    
    .archive-project-content {
        padding: 20px;
    }
    
    .archive-project-overlay h3 {
        font-size: 20px;
    }
    
    .archive-project-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}
/* added MOBILE */
@media(max-width:768px){
    .before-after-slider img{
        height: 300px;
    }
    .hero-section{
       max-height: 420px;
        min-height: 380px;
        padding: 20px 0;
    }
    .before-after-slider img{
        height: 300px;
    }
    .media-grid .container{
        display:block;
        padding: 15px;
    }

    .media-grid .container > *{
        display: block;
        margin-bottom: 18px;
    }
    .project-titles,
    .media-titles{
        width: auto;
        margin: 0 15px;
    }

    .project-heading{
        font-size: 22px;
        padding: 10px 20px;
    }
    .about-title::after{
        width: 40%;      /* mobile-la smaller line */
    }
}
/* tablet*/
@media (max-width: 1024px){
    .hero-section{
        max-height: 550px;
        min-height: 460px;
        padding: 30px 0;
    }
    .before-after-slider img{
        height: 420px;
    }
}

.project-swiper {
    width: 100%;
    overflow: hidden;
}

.before-after-card {
    /* background: #fff;
    padding: 10px; */
    border-radius: 16px;
}


.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
}

.static-team-image {
      width: 370px;
}
/* tp menu fix on 24 march*/
@media (max-width: 1200px) {
    

    .mobile-menu-toggle {
        display: block;
    } .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;

        display: none; /* hide visually but keep for toggle */
        flex-direction: column;
        padding: 15px 0;
    }

    .main-navigation.active {
        display: flex; /* show when toggled */
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}