body {
  font-family: "Open Sans", sans-serif;
}

:root {
  --color-primary: #003892;
  --color-secondary: #617d24;
  --color-tertiary: #fab30d;

  --imgSize: calc(1vw + 1vh);
}

/* Home Page */
/* Hero Section */
.hero-section {
  background-image: url('../images/hero/Handshake.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 4rem 1rem;
  text-align: center;
  direction: rtl;
  color: #fff;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-video {
  padding-top: 4rem;
  width: 100%;
  max-width: 1200px;
  height: 600px;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.hero-text {
  background-color: var(--color-tertiary);
  padding: 2rem 1rem;
  width: 100%;
  color: black;
}

.hero-text-inner {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.8rem;
  line-height: 0.6;
}

@media (max-width: 1024px) {
  .hero-video {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .hero-video {
    height: 350px;
    padding-top: 2rem;
  }

  .hero-text {
    padding: 1.5rem 1rem;
  }

  .hero-text-inner {
    font-size: 1.2rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .hero-video {
    height: 220px;
  }

  .hero-text-inner {
    font-size: 1rem;
  }
}

/* About Us */
.about-us-section {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.about-us-text {
  max-width: 960px;
  margin: 0 auto;
  font-size: 1.6rem;
  line-height: 1;
}

.about-us-text strong {
  font-weight: 700;
}

.highlight {
  color: #e3342f;
  font-weight: bold;
}

.about-us-image {
  background-image: url('../images/hero/circle.jpg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  height: 24rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .about-us-text {
    font-size: 1.2rem;
    line-height: 1.2;
    padding: 0 1rem;
  }

  .about-us-image {
    height: 18rem;
  }
}

@media (max-width: 480px) {
  .about-us-text {
    font-size: 1rem;
    line-height: 1.2;
  }

  .about-us-image {
    height: 14rem;
  }
}

/* Featured Gallery */
.container {
  max-width: 1400px;
  margin: 9rem auto;
  padding: 0 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  color: var(--color-primary);
  /* primary */
  padding-bottom: 2rem;
}

.section-title .highlight {
  color: var(--color-tertiary);
}

.grid-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.column {
  display: flex;
  flex-direction: column;
}

.feature-card,
.box {
  margin-bottom: 1rem;
}

.feature-card {
  position: relative;
  width: 100%;
  height: 350px;
  background-color: #ccc;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
}

.feature-card:hover {
  transform: scale(1.06);
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: #333;
  border-width: 2px;
  border-style: solid;
  border-radius: 10px;
}

.feature-button {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 56, 146, 0.6);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive Enhancements Only */
@media (max-width: 1024px) {
  .grid-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-columns {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-card {
    height: 280px;
  }

  .feature-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  width: 80%;
  max-width: 600px;
  position: relative;
  border-radius: 10px;
  direction: rtl;
}

.modal-content h2 {
  text-align: center;
}



.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}


.feature-card button:hover {
  background: rgba(0, 56, 146, 1);
}


.box {
  border-radius: 0.5rem;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-secondary {
  background-color: var(--color-secondary) !important;
}

.bg-tertiary {
  background-color: var(--color-tertiary) !important;
}


/* Mission Section */
.our-mission * {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.our-mission {
  margin-top: 7rem;
  padding-left: 2rem;
  padding-right: 2rem;
}


.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  border-radius: 1rem;
  padding: 4rem 8rem 9rem 8rem;
  text-align: center;
}

.section .image-container {
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: transform 1s ease;
}

.section .image-container img {
  width: 100%;
  display: block;
  border-radius: inherit;
  transition: transform 1s ease;
}

.section .image-container:hover img {
  transform: rotate(3deg) scale(1.05);
}

.section .content {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.section h1 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  text-align: center;
}

.section h2 {
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

.section button {
  cursor: pointer;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  border-radius: 0.375rem;
  border-width: 2px;
  border-style: solid;
  background-color: #f3f4f6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.section button a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}


.story-card {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.image-side {
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.image-frame {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.image-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-side {
  padding: 50px;
  display: flex;
  align-items: center;
  text-align: center;
}

.story-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.2;
}

.story-content h2 {
  font-size: 1.3rem;
  color: #666;
  font-weight: 400;
  margin-bottom: 25px;
  font-style: italic;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 35px;
  text-align: right;
}

.read-more-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #003892;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 1rem;
  direction: rtl;
  align-self: center; /* keeps it centered */
}

.read-more-btn:hover {
  background: #003892;
  color: white;
  transform: translateX(-3px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .section-1 {
    padding: 40px 15px;
  }

  .story-card {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .image-side {
    padding: 30px 20px;
  }

  .image-frame {
    height: 200px;
    transform: rotate(0deg);
  }

  .content-side {
    padding: 30px 25px;
    text-align: center;
  }

  .story-content h1 {
    font-size: 2rem;
  }

  .story-content h2 {
    font-size: 1.1rem;
  }

  .read-more-btn:hover {
    transform: translateY(-2px);
  }
}



/* News Papers */
.container-image {
  display: flex;
  height: 80vh;
}

.imageWrapper {
  display: flex;
  margin: auto;
  justify-items: center;
  justify-content: center;
  align-items: center;
}

.imgRow {
  opacity: 0;
  transform-origin: bottom;
  transition-delay: 0.8s;
  transition-duration: 1s;
}

.imageItem {
  border-radius: 15px;
  margin: auto;
  width: calc(var(--imgSize) * 15);
  height: calc(var(--imgSize) * 20);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: width 1s, height 1s;
  border-width: 2px;
  border-color: black;
  border-style: solid;
}

.paragraph {
  color: #fff;
}

.title {
  color: #fff;
  font-family: Ubuntu;
}

.imageContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  justify-items: center;
  margin: auto;
  gap: calc(var(--imgSize) * 0.5);
  transition: gap 1s 0.5s;
}

.textContainer {
  display: flex;
  flex-direction: column;
  opacity: 0;
  height: inherit;
  justify-content: flex-end;
  border-radius: 15px;
  padding-bottom: 10px;
  padding-left: 20px;
  transition: opacity 0.1s;
  text-align: left;
}

.imageItem:hover .textContainer {
  opacity: 1;
}

.imageItem:hover .textContainer .imgRow {
  opacity: 1;
}

.imageItem:hover {
  width: calc(var(--imgSize) * 17);
  height: calc(var(--imgSize) * 22);
  animation: elastic-animation 0.5s alternate;
}

.imageContainer:has(.imageItem:hover) {
  gap: calc(var(--imgSize) * 1);
}

@keyframes elastic-animation {
  0% {
    transform: scaleX(1);
  }

  50% {
    transform: scaleX(1.1);
  }

  100% {
    transform: scaleX(1);
  }
}


.footer {
  margin-top: 3.5rem;
  /* mt-14 */
  background-color: var(--color-primary);
  color: white;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem;
  /* px-5 = 1.25rem, p-8 = 2rem */
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    padding-left: 4rem;
    /* md:px-16 */
    padding-right: 4rem;
  }
}

@media (min-width: 1024px) {
  .footer-content {
    padding-left: 7rem;
    /* lg:px-28 */
    padding-right: 7rem;
  }
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  /* approximate for gap-1/4 (not a Tailwind standard class) */
  align-items: center;
  justify-content: center;
}

.footer-logo {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-text {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  /* text-l approximated as text-lg */
}

.footer-bottom {
  padding: 1rem 0;
}

.developer-link {
  color: #38bdf8;
  /* Tailwind's text-primary (e.g., sky-400) */
  font-weight: 600;
  margin: 0 0.5rem;
}


/* Page What We Do */
.highlight-red {
  color: #dc2626;
  font-size: 1.5rem;
  font-weight: bold;
}

.highlight-blue a {
  color: white;
  background-color: blue;
  font-size: 1.5rem;
  text-decoration: none;
}

.video-what-we-do {
  width: 100%;
  height: 24rem;
  margin-top: 2rem;
  border: none;
}

.what-we-do-text-content {
  direction: rtl;
  padding-bottom: 20px;
}

.heading-content {
  padding-bottom: 15px;
}

.details-highlights {
  padding-bottom: 15px;
  padding-top: 15px;
}

.what-we-do-text-content h1 {
  color: #dc2626;
  font-weight: bold;
}

.what-we-do-text-content p {
  font-size: 1.25rem;
  line-height: 1.2rem;
  margin-top: 0.5rem;
}

.what-we-do-text-details {
  direction: rtl;
  padding-top: 20px;
}

.what-we-do-text-details p {
  font-size: 1.25rem;
  line-height: 1.2rem;
  margin-top: 0.5rem;
}

/* Page Our Story */
.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(200, 200, 200, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 200, 200, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
}

.our-story-section {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 4rem 1rem;
  text-align: center;
  direction: rtl;
  color: #fff;
}

.content-text {
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.content-text-bold {
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.main-title {
  color: #495057;
  font-weight: bold;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.profile-image {
  width: 100%;
  max-width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
}

.sticky-image {
  position: sticky;
  top: 100px;
}

.highlight-text {
  font-weight: bold;
  color: #495057;
  font-size: 1.2rem;
  margin-top: 2rem;
}

@media (max-width: 991px) {
  .main-title {
    font-size: 2rem;
  }

  .sticky-image {
    position: relative;
    top: auto;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: 1.5rem;
  }

  .content-text {
    font-size: 1rem;
  }
  .content-text-bold {
    font-size: 1rem;
  }
}

/*  */

.testimonials-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.section-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  color: #495057;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-description {
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.6;
}

.quote-icon {
  color: #0d6efd;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  color: #495057;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-name {
  color: #212529;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.testimonial-title {
  color: #6c757d;
  font-size: 0.95rem;
}

.testimonial-image {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.testimonial-image:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
  .testimonial-content {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}

/* Page Board */

.profile-cards-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;  /* Optional: to match Bootstrap gutter behavior */
  margin-right: -15px;
}

.profile-cards-row > .col-lg-6 {
  display: flex;
  flex-direction: column;
  padding: 15px; /* Optional: mimic Bootstrap gutter */

  /* default: full width on mobile */
  flex-basis: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ≥768px (md) — two columns */
@media (min-width: 768px) {
  .profile-cards-row > .col-lg-6 {
    flex-basis: 50%;
    max-width: 50%;
  }
}

/* Center last card if it's alone and odd */
.profile-cards-row > .col-lg-6:last-child:nth-child(odd) {
  margin-left: auto;
  margin-right: auto;
}
.lead {
  border: #003892;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 1.5rem;
  background-color: #fff;
  border: 2px solid #003892; /* Blue border */
}

.profile-card:hover {
  transform: translateY(-5px);
}

.profile-image-board {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  direction: rtl;
  margin-bottom: 1rem;
}

.card-body {
  direction: rtl;
  padding: 10px;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  /* height: 100%; */
  box-sizing: border-box;
  text-align: center;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-body span {
  direction: rtl;
  padding: 0;
}

.profile-name {
  color: #617d24; /* Blue title text */
  font-weight: bold;
  font-size: 26px;
  margin-bottom: 1rem;
}

.profile-text {
  color: #003892; /* Blue body text */
  line-height: 1.4;
  margin-bottom: 0.2rem;
  font-size: 18px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem auto; /* Centered */
}

.video-board {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.btn-top{
  color: #003892;
  font-size: 1.3rem;
  
}

/* Page Contact Us */
.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.form-wrapper iframe {
  width: 100%;
  max-width: 900px;
  height: 1000px;
  border: none;
  padding-top: 100px;
}

/* Headings */
.heading-wrapper {
  position: relative;
  padding: 40px 20px;
  overflow: hidden;
}

/* Background decorative elements */
.heading-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.circle-1 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  top: -20px;
  right: 10%;
  animation: float-circle 8s ease-in-out infinite;
}

.circle-2 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-primary) 100%);
  bottom: 20px;
  left: 15%;
  animation: float-circle 6s ease-in-out infinite reverse;
}

.circle-3 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-tertiary) 100%);
  top: 50%;
  left: 5%;
  animation: float-circle 10s ease-in-out infinite;
}

@keyframes float-circle {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.heading {
  font-size: 3.5rem;
  color: #333;
  text-align: center;
  margin: 20px 0;
}

.line {
  width: 100px;
  height: 3px;
  background-color: #007bff;
  margin: 10px auto 50px;
  
}

@media (max-width: 768px) {
 
  .heading {
    font-size: 3rem;
  }

  .line {
    width: 80px;
    height: 2px;
  }
}

@media (max-width: 480px) {
  .heading {
    font-size: 2.5rem;
  }

  .line {
    width: 60px;
  }
}

/* Responsive design */
@media (max-width: 992px) {
  .main-heading {
    font-size: 3rem;
  }

  .circle-1,
  .circle-2,
  .circle-3 {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-heading {
    font-size: 2.5rem;
  }

  .heading-word {
    margin: 0 4px;
    display: block;
    margin-bottom: 5px;
  }

  .badge-text {
    font-size: 12px;
    padding: 6px 16px;
  }
}

@media (max-width: 576px) {
  .main-heading {
    font-size: 2rem;
  }

  .heading-wrapper {
    padding: 30px 15px;
  }
}

/* Icon Button */
.btn-custom-icon {
  background: var(--color-primary);
  border: none;
  color: white;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-custom-icon:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

/* Common styles for all buttons */
.btn[class*="btn-custom"] {
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn[class*="btn-custom"]:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* RTL Support */
.btn-custom-icon {
  direction: rtl;
}