.hero-section{
    position: relative;
    height: 320px;
    overflow: hidden;
}

/* Image */
.hero-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay */
.hero-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
}

/* Content */
.hero-content{
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
    padding-left: 40px;
}

/* Title */
.hero-title{
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Buttons */
.hero-buttons a{
    padding: 10px 24px;
    border-radius: 6px;
}

/* ================= RESPONSIVE ================= */

/* Tablets */
@media (max-width: 992px){
    .hero-section{
        height: 280px;
    }

    .hero-title{
        font-size: 32px;
    }

    .hero-content{
        padding-left: 30px;
    }
}

/* Mobile */
@media (max-width: 576px){
    .hero-section{
        height: 250px;
    }

    .hero-content{
        padding: 0 20px;
        text-align: center;
    }

    .hero-title{
        font-size: 24px;
    }

    .hero-buttons{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a{
        width: 100%;
        max-width: 220px;
    }
}






    .cctv-media {
    height: 320px; /* adjust as needed */
}

.cctv-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps image ratio, crops nicely */
}

@media (min-width: 768px) {
    .cctv-media {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .cctv-media {
        height: 350px;
    }
}









/* SECTION */
.why-section{
    text-align:center;
    padding:60px 20px;
}

/* TITLE */
.why-title{
    font-size:28px;
    font-weight:500;
    color:#6b7d5c;
}


/* FEATURE */
.feature-box{
    padding:20px;
}

.feature-icon{
    width:60px;
    height:60px;
    object-fit:contain;
    margin-bottom:10px;
}



/* BOTTOM TEXT */
.bottom-text{
    margin-top:40px;
    font-size:13px;
    color:#8c9685;
}







/* Section spacing */
.why-section {
    padding: 40px 0;
}


/* Feature box */
.feature-box {
    padding: 20px 15px;
}

/* Icon */
.feature-icon {
    width: 50px;
    margin-bottom: 15px;
}

/* Title */

@media (max-width: 768px) {

    .why-section {
        padding: 30px 10px;
    }

    .feature-box {
        margin-bottom: 20px;
    }


    .feature-icon {
        width: 40px;
    }

}









.types-section{
   /* background-color: #890c25;  */
   background: linear-gradient(180deg, #000000 0%, #5a0000 50%, #8b0000 100%);  padding: 80px 0;
}
    .cctv-card {
    height: 250px;
}

.cctv-card img {
    height: 100%;
    object-fit: cover;
}

/* overlay */
.cctv-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transform: translateY(100%);
    transition: 0.4s ease;
    color: #fff;
}

/* hover */
.cctv-card:hover .cctv-overlay {
    transform: translateY(0);
}

.cctv-card img {
    transition: 0.4s ease;
}

.cctv-card:hover img {
    transform: scale(1.05);
}







  .cctv-hover-card {
    position: relative;
    padding: 25px;
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
    height: 100%;
    transition: 0.3s;
}

/* content */
.cctv-hover-card .content {
    position: relative;
    z-index: 2;
}

.cctv-hover-card h6 {
    text-decoration: underline;
    margin-bottom: 10px;
}

/* arrow button */
.cctv-hover-card .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* background image (hidden initially) */
.cctv-hover-card .bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: 0.4s ease;
}

/* overlay dark */
.cctv-hover-card .bg-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* hover effect */
.cctv-hover-card:hover .bg-img {
    opacity: 1;
}

.cctv-hover-card:hover {
    color: #fff;
}

.cctv-hover-card:hover .arrow {
    border-color: #fff;
    color: #fff;
}
.cctv-hover-card:hover h6 {
    color: #fff;
}

/* special always-image card */
.image-card .bg-img {
    opacity: 1;
}












/* FULL HEIGHT ALIGN */
.cctv-section-row {
    align-items: stretch;
}

.cctv-section-row > div {
    display: flex;
}

/* IMAGE */
.cctv-left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT PADDING */
.content-wrap {
    padding: 50px;
}

.content-inner {
    max-width: 650px;
}

/* ICON */
.icon-box {
    width: 45px;
    height: 45px;
    border: 1px solid #a10f2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a10f2b;
    font-size: 18px;
    flex-shrink: 0;
    transition: 0.3s;
}

.icon-box:hover {
    background: #a10f2b;
    color: #fff;
}

/* FEATURE ITEM */
.feature-item {
    align-items: flex-start;
}

/* ✅ MOBILE OPTIMIZATION */
@media (max-width: 991px) {

    .cctv-section-row > div {
        display: block;
    }

    .content-wrap {
        padding: 30px 20px;
    }

    .cctv-left-img img {
        height: 250px;
        object-fit: cover;
    }

    .feature-item {
        margin-bottom: 10px;
    }
}

/* EXTRA SMALL */
@media (max-width: 576px) {

    .content-wrap {
        padding: 25px 15px;
    }

    .icon-box {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }
}









.chemical-section {
  background: #f6f6f6;
}

/* Card Styling */
.custom-card {
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Image Fit */
.object-fit-cover {
  object-fit: cover;
}

/* Overlay for center card */
.card-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
}

.card-overlay h5 {
  font-weight: 600;
}

.card-overlay p {
  font-size: 14px;
}

/* Optional: dark overlay */
.card-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  z-index: -1;
  border-radius: 16px;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .card-overlay {
    bottom: 15px;
  }
}








    /* SECTION BACKGROUND */
.cctv-cta {
    background: #a10f2b;
}

/* LEFT BUTTON */
.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid #fff;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #fff;
    color: #a10f2b;
}

/* TEXT */
.cctv-cta h3 {
    font-weight: 500;
}

.cctv-cta p {
    color: #f1f1f1;
}

/* SOCIAL ICONS */
.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    background: #fff;
    color: #a10f2b;
}









    /* PARALLAX SECTION */
.cctv-parallax {
    min-height: 400px;
    background: url('https://www.dahua-security.ae/assets/img/cctv2.png') center/cover no-repeat;
    position: relative;
    background-attachment: fixed; /* 🔥 parallax */
}

/* DARK OVERLAY */
.cctv-parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* CONTENT ABOVE OVERLAY */
.cctv-parallax .container {
    position: relative;
    z-index: 2;
}

/* TEXT WIDTH CONTROL */
.cctv-parallax p {
    max-width: 700px;
    margin: 0 auto 20px;
}

/* BUTTON STYLE */
.cctv-parallax .btn {
    background: #a10f2b;
    border: none;
}

.cctv-parallax .btn:hover {
    background: #7d0c21;
}






.camera-types {
  background: #f8f9fa;
}

/* Image styling */
.img-box {
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.img-box:hover img {
  transform: scale(1.05);
}

/* Title */
.section-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Feature list */
.feature-list {
  padding-left: 18px;
  margin-bottom: 15px;
}

.feature-list li {
  margin-bottom: 6px;
  font-size: 15px;
  position: relative;
}

/* Optional tick style */
.feature-list li::marker {
  color: #0d6efd;
}

/* Responsive */
@media(max-width:768px){
  .section-title {
    font-size: 22px;
  }
}





.accordion {
    font-size: 16px;
}

/* item styling */
.accordion-item {
    border: none;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

/* spacing */
.accordion-item + .accordion-item {
    margin-top: 12px;
}

/* button */
.accordion-button {
    background: #f9f9f9;
    font-weight: 500;
    padding: 18px 20px;
    font-size: 16px;
    border: 1px solid #890C25;
}

/* hover */
.accordion-button:hover {
    background: #f1f1f1;
}

/* active (THIS FIXES YOUR RED BAR ISSUE) */
.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #890C25, #B71A34);
    color: #fff;
    box-shadow: none;
}

/* remove blue outline */
.accordion-button:focus {
    box-shadow: none;
}

/* body */
.accordion-body {
    padding: 20px;
    background: #fff;
    color: #555;
}

/* arrow */
.accordion-button::after {
    transition: 0.3s;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    filter: brightness(0) invert(1);
}