/* Right box - text1 */
.text1 {
  background: 
    linear-gradient(to bottom, #FFFEF5 0%, #FFF5E8 100%), 
    url(../images/text1.png) left bottom / 150px no-repeat;
  border: 2px solid #E8D4B8;
  border-radius: 20px;
  padding: 20px;
  text-align: right;
  direction: rtl;
}

/* Left top box - text2 */
.text2 {
  background: 
    linear-gradient(to bottom, #E8F5F0 0%, #D5EBE3 100%), 
    url(../images/text2.png) left bottom / 150px no-repeat;
  border: 2px solid #7DBAA8;
  border-radius: 20px;
  padding: 20px;
  text-align: right;
  direction: rtl;
}

/* Left bottom box - text3 */
.text3 {
  background: 
    linear-gradient(to bottom, #EBF3FB 0%, #D8E8F5 100%), 
    url(../images/text3.png) left bottom / 150px no-repeat;
  border: 2px solid #8FB8D9;
  border-radius: 20px;
  padding: 20px;
  text-align: right;
  direction: rtl;
}


        /* Common box styles */
        .text1, .text2, .text3, .text4 {
            border-radius: 25px;
            padding: 30px;
            position: relative;
            min-height: 150px;
            display: flex;
            align-items: flex-start;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .text1:hover, .text2:hover, .text3:hover, .text4:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        /* Text content */
        .text1 p, .text2 p, .text3 p, .text4 p {
            flex: 1;
            text-align: right;
            line-height: 1.8;
            font-size: 16px;
            color: #333;
            padding-left: 20px;
            margin: 0;
        }

        /* Image styling */
        .box-image1 {
               position: absolute;
    left: -50px;
    bottom: -70px;
    width: auto;
    height: auto;
        }
.box-image2 {
    position: absolute;
    left: 10px;
    bottom: 0px;
    width: 70px;
    height: auto;
}
         .box-image3 {
            position: absolute;
    left: 10px;
    bottom: 0px;
    width: 70px;
    height: auto;
        }
           .box-image4 {
           
    width: 110px;
    height: auto;
        }

        /* Box 1 - Top Right (Beige/Cream) */
        .text1 {
            background: linear-gradient(to bottom, #FFFEF5 0%, #FFF5E8 100%);
            border: 2px solid #E8D4B8;
                min-height: 325px;
        }

        /* Box 2 - Top Left (Mint Green) */
        .text2 {
            background: linear-gradient(to bottom, #E8F5F0 0%, #D5EBE3 100%);
            border: 2px solid #7DBAA8;
                margin-bottom: 25px;
        }

        /* Box 3 - Bottom Left (Light Blue) */
        .text3 {
            background: linear-gradient(to bottom, #EBF3FB 0%, #D8E8F5 100%);
            border: 2px solid #8FB8D9;
        }

        /* Box 4 - Bottom Full Width (Light Peach) */
.text4 {
       grid-column: 1 / -1;
      background: linear-gradient(to right, #F8F8F8 0%, #FFFFFF 50%, #F8F8F8 100%);

     border: 2px solid #D0D0D0;

    min-height: 150px;
    margin-top: 30px;
    align-items: center;
    padding: 10px 30px 10px 10px;
}

.text4 p {
    font-size: 25px;
}
.text1 p {
    font-size: 30px;
    max-width: 70%;
}
        .text4 .box-image {
            width: 100px;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .ourservice .row {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .text1, .text2, .text3, .text4 {
                padding: 20px;
                min-height: 180px;
            }

            .text1 p, .text2 p, .text3 p, .text4 p {
                font-size: 14px;
                padding-left: 15px;
            }

            .box-image {
                width: 90px;
                left: 20px;
                bottom: 20px;
            }

            .text4 {
                grid-column: 1;
            }

            .text4 .box-image {
                width: 80px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 20px 10px;
            }

            .text1, .text2, .text3, .text4 {
                padding: 15px;
                min-height: 160px;
            }

            .text1 p, .text2 p, .text3 p, .text4 p {
                font-size: 13px;
                line-height: 1.6;
            }

            .box-image {
                width: 70px;
                left: 15px;
                bottom: 15px;
            }

            .text4 .box-image {
                width: 65px;
            }
        }


        .videos-section {
  background: #f9fafb;
  padding: 60px 0;
  
}
.video-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 25px;
  padding: 25px 30px;
  transition: all 0.3s ease-in-out;
  background: linear-gradient(to bottom, #f9fbfd 0%, #f2f4f7 100%);
  border: 1px solid #dcdfe3;
  margin-bottom: 30px;
}

/* For text selection inside .video-card */
.video-card::selection {
  background: linear-gradient(90deg, #6884a5 0%, #6884a5 52%, #ffffff 96%);
  color: #fff; /* Adjust text color to contrast with the gradient */
}

/* Video Box */
.video-card .video {
  position: relative;
  width: 400px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-card .video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* Play Button Overlay */
.video-card .video::after {
  content: "\25B6";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.video-card:hover .video::after {
  opacity: 1;
}

/* Text Content */
.video-card .content {
  flex: 1;
  text-align: right;
  margin-right: 25px;
}

.video-card .content h1 {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}

.video-card .content span {
  display: block;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}


.secion1 img {
border-radius: 20px;
    margin-top: 30px;
    margin-bottom: 0px;
      width: 100%;
    max-height: 450px;
}
.greenbg {
    background: var(--primary-color);
    text-align: center;
    font-size: 25px;
    color: #fff;
    font-weight: bold;
}
.yellobg {
    background: var(--primary-color);
    text-align: center;
    font-size: 25px;
    color: #4B4B4B;
    font-weight: bold;
    background: linear-gradient(180deg, #FFFFED 0%, #FFECDD 100%);
}
