/* Base reset and typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #fdfdfd;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    position: sticky;
    top: 0;
    padding: 1em 0;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

/* Container */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
}    

.favicon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

header .logo a img {
    height: clamp(50px, 6vw, 80px); /* scales between 50–80px */
    flex-shrink: 0;
}
header .business-name {
    font-family: Horizon, sans-serif;
    font-size: 3em;
    font-weight: 900;
    color: #003366;
    white-space: nowrap;
}        

/* Desktop navigation */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.desktop-nav ul li:not(:last-child)::after {
    content: '|';
    padding: 0 15px;
    color: #02468b;
}

.desktop-nav a {
    text-decoration: none;
    color: #003366;
    transition: color 0.3s ease;
}

.desktop-nav > ul > li > a:hover {
    text-decoration: none;
    border-bottom: #02468b 2px solid;
}

/* Sub-menu Styling for Desktop */
.desktop-nav li.dropdown {
    position: relative;
}

.desktop-nav li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    min-width: 250px;
    padding-top: 10px;
}

.desktop-nav li .dropdown-menu li {
    padding: 5px 20px;
    white-space: nowrap;
}

/* Horizontal lines between mobile nav items */
.desktop-nav li .dropdown-menu li:not(:last-child)::after {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    background-color: #02468b;
    margin: 5px 0;
}

.desktop-nav li .dropdown-menu li a {
    display: block;
    color: #02468b;
    text-decoration: none;
    padding: 0 0 10px;
    transition: all 0.25s ease;
}

.desktop-nav li .dropdown-menu li a:hover {
    background-color: #f4f6f9;
    color: #015bb4;
    padding-left: 0.2rem;
    text-decoration: none;
}

.desktop-nav li.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile navigation */
.mobile-nav {
    display: none;
    background-color: #003366;
}

.mobile-nav ul li {
    padding: 0 0 10px;
    position: relative;
    width: 200px;
}

/* Horizontal lines between mobile nav items */
.mobile-nav ul li:not(:last-child)::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #fff;
    margin: 0 auto 0 auto;
}

/* Sub-menu Styling for Mobile */
.mobile-nav .dropdown {
    position: relative;
}

.mobile-nav .dropdown-menu {
    display: none;
    flex-direction: column;
    position: relative;
    width: 100%;
    background-color: rgba(10, 32, 61, 0.8);
    margin-top: 10px;
}

.mobile-nav .dropdown-menu li {
    padding-left: 20px;
}

.mobile-nav .dropdown.active .dropdown-menu {
    display: flex;
}

.mobile-nav ul li.dropdown:after {
    content: '▸';
    font-size: 12px;
    position: absolute;
}

.mobile-nav ul li.dropdown.active:after {
    content: '▾';
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    background: #003366;
    margin: 5px 0;
    transition: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .content-section .container {
        padding: 0;
    }
    .desktop-nav {
        display: none;
    }

    .desktop-nav ul {
        display: none;
        flex-direction: row;
    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
        align-self: center;
    }

    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #003366;
        margin: 5px 0;
    }

    header .logo a img {
        height: 60px;
    }

    header .business-name {
        margin-left: 1em;
        flex-grow: 1;
    }

    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(10, 32, 61, 0.7);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        width: 100%;
        padding: 10px;
        animation: ease;
    }

    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0;
        margin: 0;
        align-items: flex-end;
    }

    .mobile-nav ul li {
        text-align: left;
    }

    .mobile-nav ul li a {
        text-decoration: none;
        color: #fff;
        text-align: left;
    }

    .mobile-nav ul li a:hover {
        color: #f0c040;
    }

    .mobile-nav .dropdown-menu li {
        padding-left: 15px;
    }

    .mobile-nav ul li .dropdown-menu {
        width: 100%;
        white-space: nowrap;
        text-align: left;
    }

    .mobile-nav ul li.dropdown a {
        padding-right: 25px;
    }

    .hamburger-menu.active + .mobile-nav {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    .mobile-nav ul {
        align-items: center;
    }

    header .business-name {
        font-size: 2rem;
        font-weight: 900;
    }
}

h1, h2, h3 {
    font-weight: 600;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #001F3F;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-container .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn:hover {
    background-color: #003366;
}

.bold-text {
    font-weight: bold;
}

/* Section Styles */
.content-section {
    background-color: #ffffff;
}

.alt-section {
    background-color: #f4f6f9;
}

.content-section,
.alt-section {
    padding: 4rem 0;
    margin-bottom: 60px;
}

.content-section.bg-image {
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    padding: 100px 20px;
    margin-bottom: 100px;
}
  
.content-section.bg-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}
  

/* Hero Section */
#hero {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    min-height: 60vh;
}

.hero-home {
    background: url('../images/pttp-reception.jpg') no-repeat center center / cover;
}

.hero-about {
    background: url('../images/boardroom.jpg') no-repeat center center/cover;
}

.hero-services {
    background: url('../images/city-engineer.jpg') no-repeat center center/cover;
}

.hero-projects {
    background: url('../images/city-works.jpg') no-repeat center center/cover;
}

.hero-blog {
    background: url('../images/blog-session.jpg') no-repeat center center/cover;
}

.hero-blog-innovations {
    background: url('../images/innovation-illustration.jpg') no-repeat center center/cover;
}

.hero-blog-compliance {
    background: url('../images/building-compliance.jpg') no-repeat center center/cover;
}

.hero-blog-empower {
    background: url('../images/empower.jpg') no-repeat center center/cover;
}

.hero-blog-practices {
    background: url('../images/best-practice.jpg') no-repeat center center/cover;
}

.hero-electrical {
    background: url('../images/power-station-night.jpg') no-repeat center center/cover;
}
.hero-mechanical {
    background: url('../images/mechanical-gears.jpg') no-repeat center center/cover;
}
.hero-civil {
    background: url('../images/city-works-right.jpg') no-repeat center center/cover;
}
.hero-building {
    background: url('../images/building-design-3d.jpg') no-repeat center center/cover;
}
.hero-trading {
    background: url('../images/supply-chain-global.jpg') no-repeat center center/cover;
}
.hero-people {
    background: url('../images/gallery/team/team.jpg') no-repeat center center/cover;
}

.hero-compliance {
    background: url('../images/compliance-360.jpg') no-repeat center center/cover;
}

#contact {
    background: url('../images/contact-us.jpg') no-repeat center center/cover;
}

#why-us {
    background: url('../images/city-lights.jpg') no-repeat center center/cover;
}

.hero-home .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-home {
        background-position: calc(50% + 100px) center;
    }
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}
  
.carousel {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    position: relative;
    overflow: hidden;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-padding-left: 0;
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* Dot container */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Individual dots */
.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Active dot */
.carousel-indicators .dot.active {
    background-color: #0a203d;
}


.carousel {
    position: relative;
    overflow: hidden;
}
  
.carousel-item {
    display: none;
    position: relative;
    text-align: center;
    transition: opacity 1s ease-in-out;
}
  
.carousel-item.active {
    display: block;
}
  
.testimonial-carousel blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0 auto 10px;
}

@media (max-width: 768px) {
  .testimonial-carousel blockquote {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 1rem;
  }

  .testimonial-carousel .author {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    text-align: right;
  }
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
}
  
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
  
.carousel-slide {
    min-width: 100%;
    position: relative;
    text-align: center;
    color: #fff;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
  
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    padding: 2rem 4rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-text {
    justify-content: center;
    text-align: center;
  }
  
  .slide-overlay p {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem 3rem;
    max-width: 80%;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.carousel-slide p {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    background: rgba(0, 19, 64, 0.7);
    color: white;
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
}

.first-slide {
    background: url('../images/infrastructure-handshake.jpg') no-repeat center center / cover;
}

.projects-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 19, 64, 0.7);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: none;
    z-index: 10;
}
  
.carousel-container:hover .projects-carousel-btn {
    display: block;
}
  
.projects-carousel-btn.prev {
    left: 10px;
}
  
.projects-carousel-btn.next {
    right: 10px;
}
  
  
/* Advertisement styles */
.ad-banner {
    width: 100%;
    text-align: center;
    padding: 10px 0;
}
  
.ad-banner img {
    max-width: 100%;
    height: auto;
}
  
.sidebar-ad {
    padding: 1rem;
    background: #f8f8f8;
    margin-top: 2rem;
}
  
.ad-section {
    background-color: #fdf6f6;
    text-align: center;
    padding: 2rem 1rem;
}
  
.ad-section .btn {
    margin-top: 1rem;
}

/* Row and Columns */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
    justify-content: space-between;
}

.col {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
}

.col.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.col.text {
    padding: 40px 60px;
    display: flex;
    align-items: stretch;
}

.floating {
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.floating.light {
    border: 1px solid #eee;
}    

.floating.dark {
    background-color: #ffffff;
    border: 1px solid rgba(10, 32, 61, 0.15);
}    

.floating h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #022d58;
}

.floating p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.floating ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.floating ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.electrical-services,
.mechanical-services,
.civil-services,
.building-services,
.trading-services {
    padding: 0 1rem;
}    

.hero-about h1 {
    color: #022d58;
    font-size: 60px;
    font-weight: bold;
}

.hero-about h2 {
    color: #022d58;
}

.hero-about a {
    text-decoration: none;
    color: #022d58;
}

.hero-about a:hover {
    color: #003366;
}

.about-heading {
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 16rem;
}

.about-container {
    background-color: #ffffff; 
    padding: 60px;
    border: 1px solid rgba(10, 32, 61, 0.15); 
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.1),
      0 12px 40px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

#our-people .people-intro {
    background-color: #ffffff; 
    padding: 60px;
    border: 1px solid rgba(10, 32, 61, 0.15); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    .about-container {
        padding: 60px 30px;
    }

    .about-container.overview {
        border: none;
        box-shadow: none;
    }

    .about-container.overview:hover {
        transform: none;
        box-shadow: none;
    }

    .people-container {
        background-color: #ffffff;
        padding: 20px;
    }

    #our-people .people-intro {
        width: 100%;
        padding: 20px;
        text-align: justify;
    }
}

.about-container:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.1);
}

.section-heading {
    font-size: 2.5rem;
    font-weight: bolder;
    color: #022d58;
    margin-bottom: 1rem;
}

.section-heading .name {
    font-size: 2.5rem;
    font-weight: bolder;
}

.section-heading .sub-role {
    font-size: 1.2rem;
    font-weight: bold;
    color: #022d58;
    margin-left: 0.5rem;
    margin-bottom: 3rem;
}
.profile > .container.row {
    margin-top: 1.5rem;
}

.about-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .about-container p {
        font-size: 1rem;
        text-align: justify;
    }
}

/* Layout */
.overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}
  
.overview-box {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.1),
      0 12px 40px rgba(0, 0, 0, 0.1);
}
  
  /* Typography */
.overview-box h3 {
    font-size: 1.25rem;
    color: #022d58;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
  
.overview-box p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
    text-align: left;
}
  
  /* Icons (Font Awesome, for example) */
.overview-box i {
    font-size: 1.2rem;
    color: #022d58;
}

@media (max-width: 768px) {
    .overview-box {
        padding: 3rem 1rem;
    }

    .overview-box p {
        padding: 1rem;
        text-align: justify;
    }
}

#our-people .about-container{
    background-color: #fff;
}

.people-intro {
    text-align: left;
    font-size: 1.2rem;
    color: #00264d;
    margin-bottom: 2rem;
}

.profile {
    padding: 4rem 2rem;
    background-color: #ffffff;
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.1),
      0 12px 40px rgba(0, 0, 0, 0.1);
}
  
#why-us .section-heading {
    background-color: rgba(255, 255, 255, 0.8);
    color: #022d58;
}

#compliance .section-heading {
    padding: 0 2rem;
    color: #ffffff;
}

.light-bg {
    background-color: #f7f9fc;
    padding: 80px 0;
}

.team-members p {
    text-align: center;
}

.team-members {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.team-member {
    flex: 1 1 30%;
    background: white;
    text-align: center;
    padding: 0 0 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.75rem;
}

@media (max-width: 1024px) {
  .team-member {
    flex: 1 1 45%;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .team-members {
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    width: 100%;
    max-width: 350px;
  }

  #our-people .people-intro {
    font-size: 1rem;
    text-align: justify;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
  }
}

.team-more {
  text-align: center;
  margin-top: 2rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid #001F3F;
  color: #001F3F;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #001F3F;
  color: #fff;
}

.btn-white {
  background: white;
  border: 2px solid #001F3F;
  color: #001F3F;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background: #001F3F;
  color: #fff;
}

.projects-list {
    padding-left: 2rem;
}

/* Cards (for services, why us, etc.) */
.why-us-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.why-us-cards > .card {
    display: flex;
    align-items: center;
    text-align: center;
    color: #022d58;
    font-weight: bold;
}

#compliance .about-container {
    background: url('../images/compliance.jpg') no-repeat center center/cover;
}

#compliance .section-heading {
    color: #ffffff;
}

/* **************************** services start ************************************* */
.home-heading,
.service-heading,
.project-heading,
.electrical-heading,
.mechanical-heading,
.civil-heading,
.building-heading,
.trading-heading,
.blog-heading,
.people-heading,
.compliance-heading,
.gallery-heading {
    text-align: center;
    color: #fff;
}

.service-heading,
.project-heading,
.civil-heading,
.building-heading,
.trading-heading,
.blog-heading,
.people-heading,
.compliance-heading,
.gallery-heading {
    background-color: rgba(10, 32, 61, 0.5);
}

.electrical-heading,
.mechanical-heading {
    background-color: rgba(47, 38, 1, 0.5);
}

.home-heading {
    padding: 1rem 0;
}

.home-heading h1 {
    font-size: 30px;
    font-weight: bold;
    margin-top: 30px;
}

.home-heading h2 {
    font-size: 60px;
    font-weight: bolder;
    padding-bottom: 1rem;
}

.service-heading h1,
.project-heading h1,
.electrical-heading h1,
.mechanical-heading h1,
.civil-heading h1,
.building-heading h1,
.trading-heading h1,
.blog-heading h1,
.people-heading h1,
.compliance-heading h1,
.gallery-heading h1 {
    font-size: 60px;
    font-weight:bolder;
}
.service-heading p,
.project-heading p,
.electrical-heading p,
.mechanical-heading p,
.civil-heading p,
.building-heading p,
.trading-heading p,
.blog-heading p,
.people-heading p,
.compliance-heading p,
.gallery-heading p {
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 1rem;
}

.service-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: 320px;
    max-width: 100%;
    scroll-snap-align: start;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    position: relative; 
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}
  
.service-card:hover {
    transform: scale(1.02);
}
  
  /* Card Overlay for Text */
.card-overlay {
    position: absolute;
    bottom: 0;
    padding: 2rem;
    width: 100%;
    height: 160px;
    overflow: hidden;
}
  
.card-overlay.dark {
    background-color: rgba(10, 32, 61, 0.7);
    color: #fff;
}
  
.card-overlay.light {
    background-color: rgba(255, 255, 255, 0.75);
    color: #0a203d;
}
  
.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background-color: #0a203d;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}
  
.carousel-btn.prev {
    left: 0;
}
  
.carousel-btn.next {
    right: 0;
}

.service-card.electrical {
    background-image: url('../images/pylons.jpg');
}
  
.service-card.mechanical {
    background-image: url('../images/engine.jpg');
}
  
.service-card.civil {
    background-image: url('../images/civil-ground-works.jpg');
}
  
.service-card.building {
    background-image: url('../images/building-implementation.jpg');
}
  
.service-card.trading {
    background-image: url('../images/storage-system.jpg');
}

.electrical-card,
.mechanical-card,
.civil-card,
.building-card,
.trading-card {
    display: block;
    text-decoration: none;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    color: #00264d;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

/* Ensure UL content also wraps */
.electrical-card ul,
.mechanical-card ul,
.civil-card ul,
.building-card ul,
.trading-card ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
  list-style-type: disc;
  white-space: normal;
  word-break: break-word;
}
  
/* Tablet adjustments */
@media (max-width: 1024px) {

  .container.row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .container.row .col {
    width: 100%;
    margin: 0;
    text-align: left;
  }

  .container.row .col.image {
    order: -1; /* show image first on small screens */
  }

  .container.row img {
    /* max-width: 100%; */
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .section-heading {
    font-size: 2rem;
  }

  .service-heading h1 {
    font-size: 2.5rem;
  }

  .service-heading p {
    font-size: 1.2rem;
  }
}

/* ===== Mobile Service Cards Fix ===== */
@media (max-width: 768px) {
  /* Ensure each service section stacks into a single card */
  .content-section .container.row {
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
    margin-bottom: 2rem;
  }

  /* Force image on top */
  .content-section .col.image {
    order: -1; /* put images above text */
    width: 100%;
  }

  .content-section .col.image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid #eee;
  }

  /* Text block styling */
  .content-section .col.text {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: #fff;
  }

  .content-section .col.text h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .content-section .col.text p,
  .content-section .col.text ul {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .content-section .col.text ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0 0 1rem 0;
  }

  .content-section .col.text ul li {
    margin-bottom: 0.5rem;
  }
}


/* ************************************* services end ********************************** */

.project-container p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 2rem;
    padding: 6rem;
    text-align: center;
}


/* Testimonials */
.testimonial {
    font-style: italic;
    color: #555;
}

.testimonial strong {
    display: block;
    margin-top: 0.5rem;
    color: #001F3F;
}

/* CTA Section */
.cta-section {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    position: relative;
}


.cta-section::before {
    content: '';
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-image: url('../images/pttp_logo.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 25%;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}
    
.cta-section p {
    font-size: 1.2rem;
    text-align: center;
}

.cta-section .contact-link {
    color: #003366;
    text-decoration: none;
}

.cta-section .contact-link:hover {
    color: #015bb4;
}

.core-values {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 2rem 0;
    margin: 0;
}
  
.core-values li {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #eee;
    border-left: 10px solid #02468b;
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.1),
      0 12px 40px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    flex: 1 1 calc(45% - 1rem);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.3s ease;
}
  
.core-values li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
  
.icon-box {
    width: 50px;
    height: 50px;
    background-color: #e8eef5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
  
.icon-box i {
    font-size: 1.5rem;
    color: #02468b;
}
  
.core-values li div:last-child {
    color: #00264d;
    font-size: 1rem;
    line-height: 1.5;
}
  

@media (max-width: 768px) {
  .values-graphic-container {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .value-lines {
    display: none;
  }

  .value-box,
  .core-box {
    position: static;
    transform: none;
    width: 90%;
  }
}


@media (max-width: 768px) {
    .core-values {
      flex-direction: column;
    }
  
    .core-values li {
      flex: 1 1 100%;
    }
}

.compliance-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.compliance-cards .card{
    flex: 1 1 22%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
}

.compliance-cards > .card {
    background-color: rgba(10, 32, 61, 0.9);
    color: #ffffff;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compliance-cards .card:hover {
    transform: translateY(-5px);
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.2),
      0 20px 60px rgba(0, 0, 0, 0.15);
}
  
.compliance-cards .card span:first-child {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}
  
.compliance-cards .card span:last-child {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 1024px) {
  .compliance-cards .card {
    flex: 1 1 45%;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .compliance-cards {
    flex-direction: column;
    align-items: center;
  }

  .compliance-cards .card {
    width: 100%;
    max-width: 350px;
    font-size: 0.95rem;
  }
}

/* Project Highlight Styling */
.project-highlight {
    padding: 60px 0;
}
  
.project-highlight .container {
    align-items: center;
    gap: 40px;
}
  
.project-highlight .col.image img {
    width: 100%;
    height: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}
  
/* Fade-in animation for visual engagement */
.fade-in-left {
    animation: fadeInLeft 1s ease both;
}
  
.fade-in-right {
    animation: fadeInRight 1s ease both;
}

.project-section {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    margin-bottom: 180px;
}

#projects-trading.project-section {
    margin-bottom: 0;
}

.project-meta {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
  
.project-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}
  
  /* Floating image styling */
.floating-image {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 2;
    width: 25%;
    max-width: 280px;
}
  
.floating-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
    
.project-card {
    background: #fff;
    color: #00264d;
    padding: 30px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.project-card.card-right {
    width: 55%;
    background: white;
    padding: 40px;
    margin-left: auto;
    margin-right: 8%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.project-image.image-left {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 1;
    width: 30%;
    max-width: 300px;
}
  
.project-image.image-left img {
    width: 100%;
    height: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
  
.card-left {
    margin-right: auto;
    margin-left: 10%;
}
  
.card-right {
    margin-left: auto;
    margin-right: 5%;
}
  
/* Backgrounds for each project section */
.bg-electrical {
    background-image: url('../images/people-pylons-silhouette.jpg');
}
  
.bg-mechanical {
    background-image: url('../images/engine.jpg');
}

.bg-building {
    background-image: url('../images/building-projects.jpg');
}
.bg-civil {
    background-image: url('../images/engineering-tracks.jpg');
}

.bg-trading {
    background-image: url('../images/street-panels.jpg');
}
.bg-projects {
    background-image: url('../images/power-station.jpg');
}
  
/* Responsive adjustments */
@media (max-width: 768px) {
    .project-section {
      padding: 60px 15px;
      margin-bottom: 40px;
    }
    .project-section.text-as-bg .container {
        padding: 40px 20px;
    }
    
    .text-background {
        max-width: 100%;
    }
    
    .floating-image {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 20px;
    }
    
    .floating-image img {
        max-width: 100%;
    }
    .project-card {
      margin: 0 auto;
      width: 95;
      padding: 20px;
    }
    .card-left, .card-right {
      margin: 0 auto;
    }
    .project-card.card-right,
    .project-image.image-left {
        position: static;
        width: 90%;
        margin: 20px auto;
        transform: none;
    }

    .project-card.card-right {
        text-align: center;
    }
}
  
  
@keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
}
  
@keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
}

/* *************** Blog page styles ********* */
.fancy-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 2rem;
  }
  
  .fancy-separator span {
    flex: 1;
    height: 1px;
    background: #ccc;
  }
  
  .separator-icon {
    padding: 0 1rem;
    font-size: 1.2rem;
    color: #02468b;
    font-style: normal;
  }
  
  /* Blog Grid */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
  }
  
  /* Bright, floating Blog Cards */
  .blog-card {
    background-color: #ffffff;
    color: #1c1c1c;
    padding: 2rem;
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.08),
      0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
  }  

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 16px 50px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.blog-card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #02468b;
    margin: 0;
}

.blog-date {
    font-size: 0.9rem;
    color: #999;
}

/* Excerpt */
.blog-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #444;
}

/* Read More Link */
.read-more {
    text-decoration: none;
    color: #02468b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #015bb4;
}

/* BLOG PAGE STYLING */

/* Hero Section for Blog Posts */
.hero-blog-post {
    background: linear-gradient(to right, #0a0f2c, #1a1f4c);
    color: #fff;
    padding: 80px 20px 60px;
    text-align: center;
}
  
.hero-blog-post .hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}
  
.hero-blog-post .hero-subtitle {
    font-size: 1.3rem;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.9;
}
  
  /* Blog Layout */
.blog-two-col .blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
}
  
.blog-content {
    flex: 1 1 66%;
    font-size: 1.1rem;
    line-height: 1.8;
}
  
.blog-sidebar {
    flex: 1 1 28%;
}
  
/* Headings */
.blog-content h2 {
    font-size: 1.7rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #222a4d;
    font-weight: 600;
}
  
.blog-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444c6b;
}
  
.blog-content p {
    margin-bottom: 20px;
    color: #333;
}
  
/* Blog Meta */
.blog-meta {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 30px;
}
  
/* Inline Ad Section */
.inline-ad {
    background-color: #f4f6fc;
    border-left: 6px solid #8a0033;
    padding: 30px 25px;
    margin: 40px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 1rem;
}
  
.inline-ad h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #8a0033;
}
  
/* Sidebar Widgets */
.sidebar-widget {
    background: #fafafa;
    border: 1px solid #e3e3e3;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
  
.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d2d2d;
}
  
.sidebar-widget ul {
    list-style: none;
    padding: 0;
}
  
.sidebar-widget ul li {
    margin-bottom: 10px;
}
  
.sidebar-widget a {
    text-decoration: none;
    font-weight: 500;
}
  
.sidebar-widget a:hover {
    text-decoration: underline;
}
  
  /* Blog Quote */
.blog-quote {
    margin: 40px 0;
    padding-left: 25px;
    border-left: 4px solid #8a0033;
    font-style: italic;
    color: #444;
}
  
  /* Back Button */
.back-link {
    display: inline-block;
    margin-top: 40px;
    color: #fff;
    background: #243c5a;
    padding: 12px 24px;
    text-decoration: none;
    transition: 0.3s;
}
  
.back-link:hover {
    background: #6a0026;
}
  
/* Responsive Design */
@media (max-width: 768px) {
    .blog-two-col .blog-container {
      flex-direction: column;
    }
  
    .blog-content, .blog-sidebar {
      flex: 1 1 100%;
    }
  
    .hero-blog-post .hero-title {
      font-size: 2rem;
    }
  
    .hero-blog-post .hero-subtitle {
      font-size: 1.1rem;
    }
}
/* *************** Blog page styles end ********* */  

/* *************** Contact us page styles ********* */
#contact {
    color: #ffffff;
}

.contact-content {
    padding: 6em 0;
}

#contact .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #001F3F;
}

#contact-form {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    float: left;
    width: 50%;
    padding-right: 20px;
}

.contact-details h2, .contact-form h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 1rem;
  color: #001F3F;
}

.contact-details i {
  color: #003366;
  font-size: 1.2rem;
  min-width: 20px;
  text-align: center;
}

.contact-details p, .contact-details a {
    font-weight: bold;
    text-decoration: none;
}

.contact-details a:hover {
    color: #1067be;
}

.contact-details a {
  color: inherit;
  transition: color 0.2s ease;
}

.left-align {
    text-align: left;
}

.contact-form {
    float: right;
    width: 50%;
    max-width: 550px;
    min-width: 300px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form h2 {
    margin-bottom: 20px;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    padding: 10px 20px;
    background: #003366;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background: #1067be;
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 200px 500px;
    overflow: hidden;
}

/* Popup content box */
.popup-content {
    background: white;
    padding: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    min-width: 300px;
    min-height: 200px;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transition: transform 0.3s ease-in-out, max-width 0.3s ease-in-out; /* Smooth shrink on resize */;
    transform: translateY(0);
}

#popup-text {
    color: #001F3F;
    font-size: 1rem;
}

/* Success and error styles */
.popup-container.success .popup-content {
    border: 2px solid green;
}

.popup-container.error .popup-content {
    border: 2px solid red;
}

/* Buttons styling */
.popup-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
}

.popup-buttons .btn {
    padding: 10px 20px;
    background-color: #001F3F;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #003366;
}

/* Tablet-Specific Styles */    
@media (max-width: 1024px) {
    .popup-container {
        padding: 120px 330px;
    }
    .popup-content {
        max-width: 400px;
        min-width: 300px;
    }

    .popup-buttons .btn {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Mobile-Specific Styles */
@media (max-width: 768px) {

    #contact .container {
        flex-direction: column;
    }
    
    .contact-details, .contact-form {
        margin: 0;
        margin-bottom: 20px;
    }

    .contact-details,
    .contact-form {
        width: 100%;
        margin: 10px 0;
    }

    .popup-container {
        padding: 250px 10px;
    }
    .popup-content {
        max-width: 100%;
        min-width: auto;
        padding: 20px 10px;
    }

    .popup-buttons .btn {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Extra small devices (max-width: 480px) */
@media (max-width: 480px) {
    .popup-content {
        max-width: 100%;
        width: 100%;
        padding: 15px;
        margin: 0 5px;
    }

    .popup-buttons .btn {
        padding: 8px;
        font-size: 0.75rem;
    }
}

/* ************************* Contact us page end ********************************* */

/*********************************** Footer ****************************************/
footer {
    background: #333;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 0.5em;
}

.footer-section {
    flex: 1;
    padding: 0;
}

.footer-section h4 {
    margin-bottom: 0.5em;
    font-size: 1.2em;
}

.footer-section p, .footer-section a {
    margin: 0.2em 0;
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    color: #003366;
    text-decoration: none;
}

.social-icons {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1em;
}

.social-icons li {
    display: inline-block;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: fill 0.3s;
}

.social-icons a:hover svg {
    fill: #003366;
}

.footer-section form {
    display: flex;
    flex-direction: column;
}

.footer-section input[type="email"] {
    padding: 0.5em;
    margin-bottom: 0.5em;
    border: none;
}

.footer-section button {
    padding: 0.5em;
    background-color: #003366;
    color: #fff;
    border: none;
    cursor: pointer;
}

.footer-section button:hover {
    background-color: #1067be;
}

/* footer bottom styles */
.footer-bottom {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: small;
    margin: 0;
    text-decoration: none;
}

.footer-bottom a {
    margin: 0.2em 0;
    color: #fff;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #003366;
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col {
        flex: 1 1 100%;
    }

    header .container {
        flex-direction: column;
        align-items: center;
    }

    header nav {
        margin-top: 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom .container {
        flex-direction: column;
    }

    .footer-contact, .footer-social, .footer-newsletter {
        margin: 0;
        margin-bottom: 20px;
    }
    
    .footer-newsletter input {
        width: 100%;
        margin: 0 0 10px 0;
    }
}

@media (max-width: 576px) {
    header, footer {
        padding: 10px;
    }

    .service-text, .service-image {
        width: 100%;
        padding: 0;
    }

    .service-image {
        margin-top: 10px;
    }
}

/* ===================== */
/* ✅ Responsive Layouts */
/* ===================== */

@media (max-width: 1024px) {
  .carousel {
    gap: 1rem;
  }

  .carousel-wrapper {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .carousel {
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }

  .carousel .service-card {
    min-width: 80%;
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .carousel-btn {
    display: block !important;
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
    top: 40%;
  }

  .carousel-indicators {
    margin-top: 0.5rem;
    gap: 0.4rem;
  }

  .carousel-indicators .dot {
    width: 8px;
    height: 8px;
  }

  .slide-overlay {
    flex-direction: column;
    height: auto;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 70%);
  }

  .slide-overlay p {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .carousel-slide p {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .section-heading {
    font-size: 1.5rem;
    text-align: center;
  }

  .slide-overlay p {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }

  .carousel .service-card {
    min-width: 90%;
  }

  .carousel-slide {
    height: 300px;
  }

  .slide-overlay {
    height: 300px;
  }

  .projects-carousel-btn {
    display: block !important;
    font-size: 1.5rem;
    padding: 0.3rem 0.5rem;
    top: 45%;
  }
}

  