.allsection {
  margin-top: 100px;
  margin-bottom: 40px;
}

/* section 5 */
.section-51 {
  margin-top: 20px;
}
.section-51-header {
  text-align: center;
  font-size: 25px;
}
.development1 {
  display: flex;
  justify-content: center;
  margin: 20px;
  border-color: #2c4f9e;
  border-style: groove;
  background-color: #dae0b9;
  border-radius: 10px;
}
.development1 img {
  border-radius: 10px;
  border-color: #adc920;
}
.development1 > div {
  margin: 20px;
  /* background-color:#eef4fc; */
  width: 40%;
  padding-bottom: 20px;
}

/* Override for photo gallery */
.photo-gallery.development1 {
  border: none;
  background: transparent;
  margin: 0;
}
.photo-gallery.development1 > div {
  margin: 0;
  width: auto;
  padding-bottom: 0;
}
.development1 a {
  text-decoration: none;
  color: #2c4f9e;
}
/* .app-developement{ */

/* } */
.app-developement-content1 {
  text-align: center;
}
.app-developement-content1 > img {
  /* border: 2px solid black; */
  border-radius: 50%;
  /* background-color: #fff; */
  margin-top: -30px;
  padding: 15px;
}
.app-developement-content1 > h5 {
  font-size: 20px;
}
.app-developement-content1 > p {
  line-height: 30px;
  padding-left: 20px;
}
/* .web-development{ */

/* } */
.web-development-content1 {
  text-align: center;
}
.web-development-content1 > img {
  /* border: 2px solid black; */
  border-radius: 50%;
  /* background-color: #fff; */
  margin-top: -30px;
  padding: 15px;
}
.web-development-content1 > h5 {
  font-size: 20px;
}
.web-development-content1 > p {
  line-height: 30px;
  padding-left: 20px;
}

/* .uxui-strategy{ */

/* } */
.uxui-development-content1 {
  text-align: center;
}
.uxui-development-content1 > img {
  /* border: 2px solid black; */
  border-radius: 50%;
  background-color: #fff;
  margin-top: -30px;
  padding: 15px;
}
.uxui-development-content1 > h5 {
  font-size: 20px;
}
.uxui-development-content1 > p {
  line-height: 30px;
  padding-left: 20px;
}
.web-dev {
  margin-top: 30px;
  display: flex;
  background-color: #f5f8ff;
  padding: 10px;
  text-align: justify;
}
.section-51-header h4 {
  color: #2c4f9e;
}

.section-51-header h5 {
  font-size: 15px;
  color: #adc920;
}

/* ==================== VIDEO SECTION STYLES ==================== */

/* Page Header */
.videos-page-header {
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.videos-main-title {
  font-size: 3rem;
  font-weight: 700;
  color: #32358a;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #32358a 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.videos-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Video Section Container */
.video-section {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

/* Video Card */
.video-card {
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(50, 53, 138, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(50, 53, 138, 0.1);
  gap: 40px;
  align-items: center;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(50, 53, 138, 0.2);
  border-color: rgba(50, 53, 138, 0.3);
}

/* Video Wrapper */
.video-wrapper {
  flex: 0 0 50%;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #000;
  transition: transform 0.3s ease;
}

.video-card:hover .video-wrapper {
  transform: scale(1.02);
}

.video-player {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  max-height: 400px;
  object-fit: contain;
}

/* Content Section */
.wd-content {
  flex: 1;
  padding: 0 20px;
}

.wd-content > h1 {
  color: #32358a;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.3;
  position: relative;
  padding-bottom: 15px;
}

.wd-content > h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #32358a 0%, #667eea 100%);
  border-radius: 2px;
}

.wd-content > p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 968px) {
  .video-card {
    flex-direction: column;
    gap: 30px;
    padding: 25px;
  }

  .video-wrapper {
    flex: 1 1 100%;
    width: 100%;
  }

  .wd-content {
    padding: 0;
    text-align: left;
  }

  .wd-content > h1 {
    font-size: 1.75rem;
    text-align: center;
  }

  .wd-content > h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .wd-content > p {
    text-align: left;
  }

  .videos-main-title {
    font-size: 2.25rem;
  }

  .videos-subtitle {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .videos-page-header {
    padding: 30px 15px 40px;
  }

  .videos-main-title {
    font-size: 1.75rem;
  }

  .videos-subtitle {
    font-size: 0.95rem;
  }

  .video-section {
    padding: 0 15px;
    margin-bottom: 35px;
  }

  .video-card {
    padding: 20px;
    border-radius: 15px;
  }

  .wd-content > h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .wd-content > p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .video-player {
    max-height: 250px;
  }
}

/* Alternate layout for even sections (optional visual variety) */
.video-section:nth-of-type(even) .video-card {
  flex-direction: row-reverse;
}

@media (max-width: 968px) {
  .video-section:nth-of-type(even) .video-card {
    flex-direction: column;
  }
}

/* ==================== PHOTO SECTION STYLES ==================== */

/* Page Header */
.photos-page-header {
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.photos-main-title {
  font-size: 3rem;
  font-weight: 700;
  color: #32358a;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #32358a 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.photos-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Photo Section Container */
.photo-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

/* Enhanced Section Header */
.section-51 {
  margin-top: 0;
}

.section-51-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(50, 53, 138, 0.08);
}

.section-51-header h4 {
  color: #32358a;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  position: relative;
  padding-bottom: 15px;
}

.section-51-header h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #32358a 0%, #667eea 100%);
  border-radius: 2px;
}

.section-51-header h5 {
  font-size: 1.1rem;
  color: #adc920;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Photo Gallery Container */
.photo-gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  border: none;
  background: transparent;
  border-radius: 0;
  flex-wrap: wrap;
}

/* Photo Card */
.photo-card {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  max-width: 400px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(50, 53, 138, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(50, 53, 138, 0.1);
  margin: 0;
  padding: 0;
}

.photo-gallery .app-developement1,
.photo-gallery .web-development1,
.photo-gallery .uxui-development1 {
  margin: 0;
  padding: 0;
  width: auto;
}

.photo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(50, 53, 138, 0.25);
  border-color: rgba(50, 53, 138, 0.3);
}

/* Photo Wrapper */
.photo-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}

.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 0;
}

.photo-card:hover .photo-image {
  transform: scale(1.1);
}

/* Remove old image styles that conflict */
.app-developement1 img,
.web-development1 img,
.uxui-development1 img {
  border-radius: 0;
  border: none;
  height: auto;
}

/* Photo Card Content */
.app-developement-content1,
.web-development-content1,
.uxui-development-content1 {
  padding: 20px;
  text-align: center;
}

/* Responsive Design for Photos */
@media (max-width: 968px) {
  .photo-gallery {
    gap: 20px;
  }

  .photo-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
  }

  .section-51-header h4 {
    font-size: 1.75rem;
  }

  .section-51-header h5 {
    font-size: 1rem;
  }

  .photos-main-title {
    font-size: 2.25rem;
  }

  .photos-subtitle {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .photos-page-header {
    padding: 30px 15px 40px;
  }

  .photos-main-title {
    font-size: 1.75rem;
  }

  .photos-subtitle {
    font-size: 0.95rem;
  }

  .photo-section {
    padding: 0 15px;
    margin-bottom: 40px;
  }

  .section-51-header {
    padding: 20px;
    margin-bottom: 30px;
  }

  .section-51-header h4 {
    font-size: 1.5rem;
    padding-bottom: 12px;
  }

  .section-51-header h5 {
    font-size: 0.9rem;
  }

  .photo-gallery {
    flex-direction: column;
    gap: 20px;
  }

  .photo-card {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }
}