/* Achievement button alignment and spacing */
.achievement-button {
  text-align: center;
  margin-top: 12px;
}

.achievement-button .btn {
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--bs-primary, #2f6bff);
  border-color: var(--bs-primary, #2f6bff);
  color: #fff;
}

.achievement-button .btn:hover,
.achievement-button .btn:focus {
  background: var(--bs-primary-hover, #2a5fe6);
  border-color: var(--bs-primary-hover, #2a5fe6);
  color: #fff;
}

/* Achievement icon/image circle like legacy site */
.achievement-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #f3f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  text-align: center;
}

.achievement-image img,
.achievement-image svg {
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  display: block;
}

/* Center align counters and labels in achievements */
.achivement_style_one .item,
.achivement_style_two .item,
.achivement_style_three .item,
.colleges_style_one .item { /* keep consistency if reused */
  text-align: center;
}

/* Force inner texts to center and occupy full width */
.achivement_style_one .item h2,
.achivement_style_one .item h6,
.achivement_style_one .item p,
.achivement_style_two .item h2,
.achivement_style_two .item h6,
.achivement_style_two .item p,
.achivement_style_three .item h2,
.achivement_style_three .item h6,
.achivement_style_three .item p {
  text-align: center;
  width: 100%;
}

/* Make achievement cards vertically stacked and centered */
.achivement_style_two .item,
.achivement_style_three .item,
.achivement_style_one .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Spread columns evenly across row */
.achivement_style_two .row,
.achivement_style_three .row {
  justify-content: space-between;
}

/* Ensure consistent top/bottom spacing */
.achivement_style_two .item h2,
.achivement_style_three .item h2 {
  margin-top: 8px;
  margin-bottom: 0;
}

.achivement_style_two .item p,
.achivement_style_three .item p,
.achivement_style_one .item h6 {
  margin-top: 8px;
}

/* Precisely center the big counter line (e.g., 2K+) */
.achivement_style_one .item h2,
.achivement_style_two .item h2,
.achivement_style_three .item h2 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  text-align: center;
  width: 100%;
}

.achivement_style_one .item h2 > span,
.achivement_style_two .item h2 > span,
.achivement_style_three .item h2 > span {
  display: inline-block;
}

/* Electronic systems grid */
.electronic-systems-section .electronic-systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

@media (max-width: 991px) {
  .electronic-systems-section .electronic-systems-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 575px) {
  .electronic-systems-section .electronic-systems-grid {
    grid-template-columns: 1fr;
  }
}

.electronic-system-card {
  text-align: center;
}

/* Rectangular tile image like old site */
.electronic-system-card .tile-image {
  width: 100%;
  /* aspect-ratio: 16 / 9;  approximate; adjusts with CSS */
  background: #f3f6f9;
  border-radius: 4px;
  overflow: hidden;
}

.electronic-system-card .tile-image img,
.electronic-system-card .tile-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.electronic-system-link { display: block; }
.electronic-system-link:hover img { transform: scale(1.01); }

/* Section title style to match bold gallery heading */
/* Force section title styling */
.electronic-systems-section.dt-section .section-header h2,
.electronic-systems-section .section-header h2,
.electronic-systems-section h2 {
  font-weight: 800 !important;
  font-size: 40px !important;
  line-height: 1.2 !important;
  color: #111 !important;
  text-align: center !important;
  margin: 0 0 18px !important;
}

.achivement_style_one .item h2,
.achivement_style_two .item h2,
.achivement_style_three .item h2,
.achivement_style_one .item h6,
.achivement_style_two .item h6,
.achivement_style_three .item h6,
.achivement_style_one .item p,
.achivement_style_two .item p,
.achivement_style_three .item p {
  margin-left: auto;
  margin-right: auto;
}
/* College section styling - Logo with Arabic and English text below */
.colleges_style_one .carousel-style-1 .item {
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.colleges_style_one .college-logo-wrapper {
  width: 100%;
  margin-bottom: 15px;
}

.colleges_style_one .college-logo-link {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.colleges_style_one .college-logo-link:hover {
  opacity: 0.8;
}

.colleges_style_one .college-logo-image {
  width: 100%;
  padding-bottom: 100%; /* Makes it square */
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  border: 2px solid #ddd;
}

.colleges_style_one .college-logo-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
}

.colleges_style_one .college-arabic-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
  text-align: center;
  font-family: 'Arial', sans-serif; /* You can change to Arabic font if needed */
}

.colleges_style_one .college-english-name {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
  line-height: 1.3;
  text-align: center;
  text-transform: capitalize;
}

/* Ensure proper spacing and alignment */
.colleges_style_one .carousel-style-1 .wrapper {
  width: 100%;
}

.colleges_style_one .carousel-style-1 .item {
  min-height: auto;
}

/* Navigation arrows for college carousel */
.colleges_style_one .carousel-style-1 {
  position: relative;
  padding: 0 70px;
}

.colleges_style_one .owl-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
  margin: 0;
}

.colleges_style_one .owl-nav button {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #ddd !important;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.colleges_style_one .owl-nav button:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.colleges_style_one .owl-nav button svg {
  width: 20px;
  height: 20px;
  stroke: #333;
}

.colleges_style_one .owl-nav button.owl-prev {
  left: 0;
}

.colleges_style_one .owl-nav button.owl-next {
  right: 0;
}

.colleges_style_one .owl-nav button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dots navigation styling */
.colleges_style_one .owl-dots {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
}

.colleges_style_one .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 5px;
}

.colleges_style_one .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px;
  background: #ddd;
  display: block;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.colleges_style_one .owl-dots .owl-dot.active span,
.colleges_style_one .owl-dots .owl-dot:hover span {
  background: var(--bs-primary, #007bff);
  width: 14px;
  height: 14px;
}

/* Responsive - hide arrows on mobile/tablet, show only dots */
@media (max-width: 999px) {
  .colleges_style_one .owl-nav {
    display: none;
  }
}

@media (min-width: 1000px) {
  .colleges_style_one .owl-nav {
    display: flex;
  }
}

/* Video Library Section */
.video-library-section .video-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 991px) {
  .video-library-section .video-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .video-library-section .video-library-grid {
    grid-template-columns: 1fr;
  }
}

.video-library-item {
  text-align: center;
}

.video-library-item .video-item-wrapper {
  display: flex;
  flex-direction: column;
}

.video-library-item .video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f6f9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.video-library-item .video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.video-library-item .video-thumbnail img,
.video-library-item .video-thumbnail .field--type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-library-item .video-thumbnail .field--type-image {
  width: 100%;
  height: 100%;
}

.video-library-item .video-thumbnail .video-placeholder {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-library-item .video-thumbnail .video-placeholder::before {
  content: '';
  display: block;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  position: relative;
}

.video-library-item .video-thumbnail .video-placeholder::after {
  content: '';
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border-left: 20px solid #999;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 25px;
  margin-top: -18px;
}

.video-library-item .video-thumbnail .overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(30, 30, 44, 0.3);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.video-library-item .video-thumbnail:hover .overlay {
  background-color: rgba(30, 30, 44, 0.5);
}

.video-library-item .video-thumbnail .play-button {
  background-color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 0;
}

.video-library-item .video-thumbnail .play-button:hover {
  transform: scale(1.1);
}

.video-library-item .video-thumbnail .play-button svg {
  width: auto;
  height: 26px;
  margin-right: -7px;
}

.video-library-item .video-thumbnail .play-button svg path {
  fill: var(--bs-primary, #2f6bff);
}

.video-library-item .video-embed {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.video-library-item .video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.video-library-item .video-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

/* Section title style */
.video-library-section.dt-section .section-header h2,
.video-library-section .section-header h2,
.video-library-section h2 {
  font-weight: 800 !important;
  font-size: 40px !important;
  line-height: 1.2 !important;
  color: #111 !important;
  text-align: center !important;
  margin: 0 0 18px !important;
}

/* Video Gallery button at bottom */
.video-library-footer {
  margin-top: 40px;
  padding-top: 20px;
}

.video-library-footer .btn-video-gallery {
  display: inline-block;
  background-color: #2f6bff;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.3);
}

.video-library-footer .btn-video-gallery:hover,
.video-library-footer .btn-video-gallery:focus {
  background-color: #2563eb;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
}

.video-library-footer .btn-video-gallery:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(47, 107, 255, 0.3);
}
