/* ==========================================================================
   EMSQUARE - Responsive Stylesheet
   ========================================================================== */

/* ==========================================================================
   Large screens and desktops (adjustments for large laptops)
   ========================================================================== */
@media (min-width: 1400px) {
.grid-title {
        max-width: 60%;
    }
}

@media (min-width: 1200px) {
    .hero-content-container {
        padding-bottom: 70px;
    }
}

/* ==========================================================================
   Small Desktop / Large Laptop (1200px - 1399px)
   Optimized padding, typography, spacing & grid sizing
   ========================================================================== */
@media (min-width: 1200px) and (max-width: 1399.98px) {

    /* --- Container Padding --- */
    .header-container .container-fluid,
    .hero-content-container,
    .solutions-container,
    .services-section-container,
    .projects-section-container,
    .process-section-container,
    .journey-section-container,
    .leadership-section-container,
    .testimonials-container,
    .contact-cta-container,
    .footer-container,
    .about-hero-content,
    .about-landmarks-container,
    .core-values-container,
    .service-details-container,
    .stories-container,
    .empowering-vision-container {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }

    /* --- Hero Section --- */
    .hero-content-container {
        padding-top: 130px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 2.6rem;
        margin-bottom: 18px;
    }

    .hero-desc {
        font-size: 0.9375rem;
        max-width: 600px;
        margin-bottom: 14px;
    }

    .border-top-custom {
        padding-top: 32px !important;
    }

    .stat-number {
        font-size: 1.875rem;
        margin-right: 12px;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    .btn-discover {
        padding: 7px 7px 7px 24px;
        border-radius: 14px;
        gap: 16px;
    }

    .btn-discover .btn-text {
        font-size: 0.875rem;
    }

    .btn-arrow-box {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1rem;
    }

    /* --- Navigation --- */
    .logo-img {
        height: 50px;
    }

    .nav-pill-container .nav-link {
        padding: 9px 20px !important;
        font-size: 0.875rem;
    }

    .btn-connect {
        padding: 14px 24px;
        font-size: 0.875rem;
    }

    /* --- Innovative Solutions Section --- */
    .solutions-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .solutions-title {
        font-size: 2.25rem;
    }

    .solutions-desc {
        font-size: 1rem;
    }

    .service-card {
        padding: 24px;
        min-height: 200px;
    }

    .card-icon-wrapper {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }

    .card-icon-img {
        width: 34px;
        height: 34px;
    }

    .card-title {
        font-size: 1.125rem;
    }

    .card-arrow {
        font-size: 1.125rem;
    }

    /* --- Comprehensive Engineering Solutions Section --- */
    .comprehensive-services-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .services-main-title {
        font-size: 2.25rem;
    }

    .services-header-desc {
        font-size: 0.875rem;
    }

    .service-grid-item {
        padding: 36px 28px;
    }

    .grid-number {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .grid-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .grid-desc {
        font-size: 0.8125rem;
    }

    /* --- Featured Projects Section --- */
    .projects-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .projects-main-title {
        font-size: 2.25rem;
    }

    .projects-filter-pill .nav-link {
        padding: 9px 20px !important;
        font-size: 0.8125rem;
    }

    .btn-view-projects {
        padding: 12px 28px;
        font-size: 0.8125rem;
    }

    .projects-asymmetric-grid {
        grid-template-rows: 300px 190px 300px;
        gap: 20px;
    }

    .asymmetric-card-stat {
        height: 190px;
    }

    .card-tall {
        height: 520px;
    }

    .card-wide {
        height: 300px;
    }

    .card-uniform {
        height: 340px;
    }

    .project-card-overlay {
        padding: 28px;
    }

    .project-card-title {
        font-size: 1.0625rem;
    }

    .project-stat-box {
        height: 180px;
        padding: 28px;
    }

    .stat-box-number {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .stat-box-label {
        font-size: 1.0625rem;
    }

    /* --- Proven Process Section --- */
    .process-section {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .process-main-title {
        font-size: 2.25rem;
    }

    .timeline-step {
        padding-left: 54px;
        margin-bottom: 50px;
    }

    .step-badge {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .step-title {
        font-size: 1.375rem;
        margin-bottom: 5px;
    }

    .step-desc {
        font-size: 0.875rem;
    }

    .process-timeline::before {
        top: 16px;
        bottom: 38px;
        left: 16px;
    }

    /* --- Testimonials Section --- */
    .testimonials-section {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .testimonials-main-title {
        font-size: 2.25rem;
    }

    .testimonial-card {
        padding: 36px;
    }

    .card-quote-icon {
        font-size: 2.5rem;
    }

    .testimonial-quote {
        font-size: 0.9375rem;
        line-height: 1.65;
        margin-bottom: 28px;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-title {
        font-size: 0.8125rem;
    }

    /* --- Contact CTA Section --- */
    .contact-cta-banner {
        min-height: 200px;
        padding: 28px 40px 28px 36px;
        gap: 24px;
    }

    .contact-cta-title {
        font-size: 2.5rem;
        margin-bottom: 14px;
    }

    .contact-cta-description {
        font-size: 0.8125rem;
    }

    .contact-cta-badge {
        flex: 0 0 120px;
        width: 170px;
        height: auto;
    }

    /* --- Footer --- */
    .footer-main-row {
        padding: 30px 0 22px;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-address h3,
    .footer-nav h3 {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .footer-address p,
    .footer-address a,
    .footer-nav a,
    .footer-bottom p {
        font-size: 0.8125rem;
    }

    .footer-socials a {
        width: 30px;
        height: 30px;
        font-size: 0.8125rem;
    }

    /* --- About Page: Hero --- */
    .about-page .about-hero-section {
        min-height: 340px;
        margin: 8px 12px 26px;
    }

    .about-page .about-hero-content {
        min-height: 420px;
        padding-bottom: 38px;
    }

    .about-page .about-hero-content h1 {
        font-size: 2.25rem;
    }

    .about-page .about-stat strong {
        font-size: 2rem;
    }

    /* --- About Page: Landmarks --- */
    .about-page .about-landmarks-section {
        padding: 50px 0 90px;
    }

    .about-page .about-landmarks-title {
        font-size: 2.5rem;
    }

    .about-page .about-landmarks-copy {
        font-size: 0.875rem;
    }

    .about-page .about-landmarks-content-row {
        margin-top: 50px;
    }

    .about-page .about-landmarks-image {
        height: 360px;
    }

    .about-page .about-principle-card {
        padding: 34px 28px;
        min-height: 100px;
    }

    .about-page .about-principle-card h3 {
        font-size: 2.25rem;
    }

    /* --- About Page: Core Values --- */
    .about-page .core-values-section {
        padding: 70px 0 60px;
    }

    .about-page .core-values-intro h2 {
        font-size: 2.5rem;
    }

    .about-page .core-values-image {
        max-width: 360px;
        height: 440px;
        margin-top: 36px;
    }

    .about-page .core-values-list {
        padding-top: 90px;
    }

    .about-page .core-value-item {
        grid-template-columns: minmax(170px, 1fr) minmax(250px, 1.18fr);
        column-gap: 32px;
        min-height: 96px;
        padding: 26px 0;
    }

    .about-page .core-value-item h3 {
        font-size: 1.125rem;
    }

    .about-page .core-value-item p {
        font-size: 0.8125rem;
    }

    /* --- About Page: Journey Section --- */
    .journey-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .journey-main-title {
        font-size: 2.5rem;
    }

    .journey-grid-card {
        padding: 40px 36px;
    }

    .journey-grid-cell {
        padding: 28px 30px;
    }

    .journey-project-img-wrapper {
        height: 340px;
    }

    .journey-project-info {
        padding: 24px 28px 28px;
    }

    /* --- About Page: Leadership Section --- */
    .leadership-section {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .leadership-main-title {
        font-size: 2.5rem;
    }

    .leadership-image-wrapper {
        height: 460px;
    }

    .leadership-text {
        font-size: 1rem;
    }

    /* --- Services Page: Empowering Vision --- */
    .empowering-vision-section {
        padding: 80px 0;
    }

    .empowering-vision-title {
        font-size: 2.25rem;
    }

    .empowering-service-num {
        min-width: 90px;
        font-size: 1.0625rem;
    }

    .empowering-service-name {
        font-size: 1.375rem;
    }

    .empowering-service-item {
        padding: 24px 0;
    }

    /* --- Services Page: Service Detail Blocks --- */
    .service-details-section {
        padding: 80px 0;
    }

    .service-detail-block {
        margin-bottom: 100px;
    }

    .service-detail-title {
        font-size: 3rem;
        margin-bottom: 24px;
    }

    .service-detail-tagline {
        font-size: 1.0625rem;
        margin-bottom: 20px;
    }

    .service-detail-desc {
        font-size: 0.875rem;
    }

    /* --- Project Page: Stories Section --- */
    .stories-section {
        padding: 48px 0 64px;
    }

    .stories-heading {
        font-size: 2rem;
        margin-bottom: 24px;
    }

    .story-card img {
        height: 240px;
    }

    .story-card-body {
        padding: 14px 16px 16px;
    }

    .story-title {
        font-size: 0.875rem;
    }

    .story-meta {
        font-size: 0.75rem;
    }
}

/* Medium-Large screens (Tablets/Laptops in landscape) */
@media (max-width: 1199.98px) {
    .logo-img {
        height: 48px;
    }

    .nav-pill-container .nav-link {
        padding: 8px 18px !important;
    }

    .hero-title {
        margin-bottom: 20px;
    }

    .hero-desc {
        margin-bottom: 35px;
    }
}

/* Medium screens (Tablets in portrait) */
@media (max-width: 991.98px) {
    .header-container {
        padding-top: 20px;
    }

    .logo-img {
        height: 44px;
        filter: none;
    }

    /* Toggle Button customization to fit the aesthetic */
    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.8) !important;
        border-radius: 8px !important;
        padding: 8px 10px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
        transition: all 0.2s ease;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(203, 33, 39, 0.25) !important;
    }

    /* Responsive Dropdown Menu Card with glassmorphism */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 16px;
        padding: 24px 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    /* Reset glassmorphism styles from desktop container inside mobile collapse */
    .nav-pill-container {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        flex-direction: column;
        width: 100%;
        gap: 6px;
        padding: 0;
        box-shadow: none !important;
    }

    .nav-pill-container .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 20px !important;
    }

    .nav-pill-container .nav-link.active-pill {
        background-color: var(--primary-red) !important;
        color: #ffffff !important;
    }

    /* Mobile Connect button inside collapse */
    .navbar-collapse .btn-connect {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        border-radius: 10px;
    }

    .hero-content-container {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .border-top-custom {
        padding-top: 30px !important;
    }

    .solutions-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .comprehensive-services-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .projects-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .projects-asymmetric-grid {
        grid-template-rows: 280px 160px 280px !important;
    }

    .asymmetric-card-stat {
        height: 180px !important;
    }

    .card-tall {
        height: 440px !important;
    }

    .card-wide {
        height: 280px !important;
    }

    .card-uniform {
        height: 320px !important;
    }

    .projects-three-column-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .project-stat-box {
        padding: 24px !important;
        height: 180px !important;
    }

    .process-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .process-image-wrapper {
        margin-bottom: 40px;
    }

    .testimonials-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .testimonial-card {
        padding: 35px !important;
    }
}

/* Small screens (Mobile landscape/portrait) */
@media (max-width: 767.98px) {
    .hero-section {
        background-image: url('../images/mobile-banner.webp');
        background-position: top center !important;
        background-size: cover !important;
        height: 100vh;
    }

    /* Hide canvas on mobile - use static background image instead */
    #hero-canvas {
        display: none !important;
    }

    .header-container {
        padding-top: 15px;
    }

    .logo-img {
        height: 38px;
    }

    .hero-content-container {
        padding-top: 52vh !important;
        padding-bottom: 40px !important;
        justify-content: flex-end !important;
    }

    .hero-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        letter-spacing: -0.01em !important;
        margin-bottom: 12px !important;
    }

    .hero-desc {
        font-size: 14px !important;
        line-height: 1.55 !important;
        color: rgba(255, 255, 255, 0.92) !important;
        margin-bottom: 24px !important;
    }

    /* Reposition Stats and Button */
    .border-top-custom {
        border-top: none !important;
        padding-top: 0 !important;
        margin-bottom: 16px !important;
    }

    /* Style adjustments for mobile stats grid */
    .hero-content-container .border-top-custom .row.g-0 {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .hero-content-container .border-top-custom .row.g-0>div:first-child {
        width: auto !important;
        flex: 0 0 auto !important;
        padding-right: 18px !important;
        margin-right: 18px !important;
        border-right: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    }

    .hero-content-container .border-top-custom .row.g-0>div:last-child {
        width: auto !important;
        flex: 0 0 auto !important;
        padding-left: 0 !important;
    }

    .stat-number {
        font-size: 28px !important;
        font-weight: 700 !important;
        color: #CB2127 !important;
        line-height: 1 !important;
        margin-right: 8px !important;
    }

    .stat-label {
        font-size: 11px !important;
        line-height: 1.3 !important;
        color: #ffffff !important;
        font-weight: 500 !important;
        text-transform: capitalize !important;
    }

    .btn-discover {
        width: auto !important;
        display: inline-flex !important;
        padding: 6px 6px 6px 20px !important;
        border-radius: 15px !important;
        margin-top: 10px !important;
        align-items: center !important;
        background-color: #CB2127 !important;
        box-shadow: 0 4px 15px rgba(203, 33, 39, 0.15) !important;
    }

    .btn-discover .btn-text {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        margin-right: 14px !important;
    }

    .btn-discover .btn-arrow-box {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        background-color: #ffffff !important;
        color: #CB2127 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
    }

    .solutions-section {
        padding-top: 25px;
        padding-bottom: 60px;
    }

    .service-card {
        padding: 24px;
        min-height: 200px;
    }

    .comprehensive-services-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .projects-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Swipeable horizontal scrolling filter tabs on mobile */
    .projects-filter-pill {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        padding: 6px 12px !important;
        -webkit-overflow-scrolling: touch;
    }

    .projects-filter-pill::-webkit-scrollbar {
        display: none !important;
        /* Hide scrollbars for a clean app-like style */
    }

    .projects-filter-pill .nav-item {
        flex: 0 0 auto !important;
    }

    .btn-view-projects {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .card-tall,
    .card-wide,
    .card-uniform {
        height: 280px !important;
    }

    .projects-asymmetric-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .asymmetric-card-1,
    .asymmetric-card-2,
    .asymmetric-card-3,
    .asymmetric-card-stat,
    .asymmetric-card-4 {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .asymmetric-card-stat {
        height: 140px !important;
    }

    .projects-three-column-grid {
        grid-template-columns: 1fr !important;
    }

    .project-stat-box {
        height: 140px !important;
        padding: 24px !important;
    }

    .stat-box-number {
        font-size: var(--fs-h2) !important;
        margin-bottom: 8px !important;
    }

    .project-card-overlay {
        padding: 24px !important;
    }

    .project-card-title {
        font-size: var(--fs-h5) !important;
    }

    .service-grid-item {
        border-right: none !important;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.15) !important;
        padding: 35px 0 !important;
    }

    .service-grid-item:last-child {
        border-bottom: none !important;
    }
    .process-timeline::before{
        bottom: 80px;
    }

    .process-section {
        padding-top: 5px;
        padding-bottom: 60px;
    }

    .timeline-step {
        margin-bottom: 30px !important;
    }

    .testimonials-section {
        padding-top: 10px;
        padding-bottom: 60px;
    }

    .testimonials-main-title {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .testimonial-card {
        padding: 24px !important;
    }

    .card-quote-icon {
        font-size: var(--fs-h2) !important;
    }

    .testimonial-quote {
        font-size: var(--fs-body) !important;
        line-height: var(--lh-body) !important;
        margin-bottom: 25px !important;
    }

    .author-name {
        font-size: var(--fs-body) !important;
    }

    .author-title {
        font-size: var(--fs-caption) !important;
    }

    .contact-cta-section {
        padding-bottom: 60px;
    }

    .contact-cta-banner {
        min-height: 0;
        padding: 32px 25px;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-cta-title {
        margin-bottom: 16px;
        font-size: var(--fs-h2);
    }

    .contact-cta-description {
        font-size: var(--fs-caption);
        letter-spacing: -0.035em;
    }

    .contact-cta-badge {
        flex-basis: 100px;
        width: 100px;
        height: 100px;
        margin-top: 2px;
    }

    .contact-badge-img {
        width: 100% !important;
    }

    .contact-badge-text {
        font-size: var(--fs-micro);
        letter-spacing: 1.8px;
    }

    .contact-badge-icon {
        font-size: var(--fs-h5);
    }

    .footer-main-row {
        padding: 45px 0 35px;
    }

    .footer-logo {
        width: 160px;
    }

    .footer-address {
        margin-top: 24px;
    }

    .footer-links-column {
        padding-top: 32px;
    }

    .footer-socials {
        gap: 12px;
        margin-bottom: 28px;
    }

    .footer-socials a {
        width: 40px;
        height: 40px;
        font-size: var(--fs-body-lg);
    }

    .footer-bottom .footer-container {
        min-height: 0;
        padding-top: 15px;
        padding-bottom: 15px;
        flex-direction: column;
        gap: 6px;
    }

    .step-title {
        font-size: var(--fs-h5) !important;
        margin-bottom: 4px !important;
    }

    .step-desc {
        font-size: var(--fs-body-sm) !important;
        line-height: 1.5 !important;
    }

    .footer-bottom p {
        margin: 0;
        font-size: var(--fs-caption);
        padding: 2px 0px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {

    .contact-cta-container,
    .footer-container {
        padding-left: clamp(48px, 7.2vw, 74px) !important;
        padding-right: clamp(48px, 7.2vw, 74px) !important;
    }

    /* Prevent filter pills from wrapping on tablet/small desktop */
    .projects-filter-pill {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-filter-pill::-webkit-scrollbar {
        display: none !important;
    }

    .projects-filter-pill .nav-item {
        flex: 0 0 auto !important;
    }

    /* Prevent project page filter tabs from wrapping on tablet/small desktop */
    .filter-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .filter-tab {
        flex: 0 0 auto !important;
        white-space: nowrap;
    }
}

/* Extra small screens (Phones in portrait) */
@media (max-width: 480px) {
    .hero-title {
        line-height: 1.2;
    }

    .hero-desc {
        font-size: var(--fs-body-sm);
        line-height: 1.6;
    }

    .stat-number {
        font-size: var(--fs-h3);
        margin-right: 10px;
    }

    .stat-label {
        font-size: var(--fs-caption);
    }
}

/* Tablet specific 2-column border grid layout */
@media (min-width: 768px) and (max-width: 991.98px) {
    .service-grid-item {
        border-right: 1.5px solid rgba(255, 255, 255, 0.15) !important;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.15) !important;
        padding: 35px 25px !important;
    }

    /* Flush left side of the grid (items 1, 3, 5) */
    .service-grid-item:nth-child(2n+1) {
        padding-left: 0 !important;
    }

    /* Flush right side of the grid & remove vertical border (items 2, 4, 6) */
    .service-grid-item:nth-child(2n) {
        padding-right: 0 !important;
        border-right: none !important;
    }

    /* Prevent filter pills from wrapping on tablet */
    .projects-filter-pill {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-filter-pill::-webkit-scrollbar {
        display: none !important;
    }

    .projects-filter-pill .nav-item {
        flex: 0 0 auto !important;
    }

    /* Remove bottom border on the last row (items 5, 6) */
    .service-grid-item:nth-child(n+5) {
        border-bottom: none !important;
    }
}

/* ==========================================================================
   Our Journey Section Responsive Styles
   ========================================================================== */
@media (max-width: 991.98px) {
    .journey-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .journey-grid-card {
        padding: 36px 30px;
    }

    .journey-grid-cell {
        padding: 24px 20px;
    }

    .journey-project-img-wrapper {
        height: 320px;
    }

    .journey-cell-title {
        font-size: var(--fs-h5);
    }

    .journey-cell-desc {
        font-size: var(--fs-body-sm);
    }
}

@media (max-width: 767.98px) {
    .journey-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .journey-grid-card {
        padding: 28px 24px !important;
    }

    .journey-grid-container {
        grid-template-columns: 1fr !important;
    }

    .journey-grid-cell:nth-child(1),
    .journey-grid-cell:nth-child(2),
    .journey-grid-cell:nth-child(3),
    .journey-grid-cell:nth-child(4) {
        border-right: none !important;
        border-bottom: 1.5px dotted rgba(203, 33, 39, 0.3) !important;
        padding: 22px 0 !important;
    }

    .journey-grid-cell:nth-child(1) {
        padding-top: 0 !important;
    }

    .journey-grid-cell:nth-child(4) {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .journey-project-img-wrapper {
        height: 280px;
    }

    .journey-project-info {
        padding: 22px 24px;
    }

    .journey-cell-title {
        font-size: var(--fs-h5);
    }

    .journey-cell-desc {
        font-size: var(--fs-body-sm);
    }
}

/* ==========================================================================
   Leadership Message Section Responsive Styles
   ========================================================================== */
@media (max-width: 991.98px) {
    .leadership-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .leadership-image-wrapper {
        height: 440px;
    }
}

@media (max-width: 767.98px) {
    .leadership-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .leadership-image-wrapper {
        height: 360px;
    }

    .leadership-text {
        font-size: var(--fs-body-sm);
        line-height: var(--lh-body);
    }

    .leadership-author .author-name {
        font-size: var(--fs-h6);
    }

    .leadership-author .author-role {
        font-size: var(--fs-body-sm);
    }
}

/* ==========================================================================
   Empowering Vision Section Responsive Styles
   ========================================================================== */
@media (min-width: 1200px) {
    .empowering-vision-container {
        padding-left: 200px !important;
        padding-right: 200px !important;
    }
}

@media (max-width: 991.98px) {
    .empowering-vision-section {
        padding: 70px 0;
    }

    .empowering-services-list {
        margin-top: 40px;
    }

    .empowering-service-item {
        padding: 22px 0;
    }

    .empowering-service-num {
        min-width: 70px;
    }
}

@media (max-width: 767.98px) {
    .empowering-vision-section {
        padding: 60px 0;
    }

    .empowering-service-item {
        padding: 18px 0;
    }

    .empowering-service-num {
        min-width: 50px;
    }
}


@media (max-width: 991.98px) {
    .service-details-section {
        padding: 70px 0;
    }

    .service-detail-block {
        margin-bottom: 80px;
    }

    .service-detail-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .service-details-section {
        padding: 60px 0;
    }

    .service-detail-block {
        margin-bottom: 60px;
    }

    .service-detail-title {
        font-size: 2.2rem;
        text-underline-offset: 5px;
    }

    .service-detail-tagline {
        font-size: var(--fs-body-lg);
        max-width: 100%;
    }

    .service-detail-desc {
        font-size: var(--fs-body-sm);
        max-width: 100%;
    }
}