*{
    font-family: 'Nunito Sans', sans-serif; /*font family call*/
}


/* ===== LANGUAGE BUTTON SIZE FIX ===== */

.lang-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
}

/* Button size control */
.lang-btn {
  background: #c79a1b;
  color: #fff;
  border: none;
  padding: 8px 12px;          /* 🔽 SMALLER */
  border-radius: 22px;
  font-size: 13px;            /* 🔽 TEXT SIZE */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

/* Globe icon size control */
.lang-btn i {
  font-size: 14px;            /* 🔽 ICON SIZE */
}

/* Dropdown */
.lang-menu {
  position: absolute;
  bottom: 46px;
  right: 0;
  width: 150px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  overflow: hidden;
}

/* Dropdown items */
.lang-menu div {
  padding: 9px 12px;
  font-size: 13px;
  color: #000;
  cursor: pointer;
}

.lang-menu div:hover {
  background: #f2f2f2;
}



/*Header Styling starts here */
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(58, 48, 8, 0.7),rgba(58, 43, 8, 0.7)),url(images/background3.jpg);
    background-position: center;
    position: relative;
    background-size: cover;
}
.circle-logo {
    width: 120px;        /* Adjust size as needed */
    height: 120px;
    object-fit: cover;
    border-radius: 50%;  /* Makes the image circular */
    border: 2px solid #fff; /* Optional: white border */
    display: block;
    float: left;  /* Added this to move logo left */
    margin: 0px;     /* Optional: adds left spacing, adjust as needed */
}
/* navigation bar adjustmeny */
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

.nav-link{                /* Selects the element with class 'nav-link' */
    flex: 1;             /* Makes the nav-link take up any remaining space in a flex container */
    text-align: right;   /* Aligns text in the nav-link to the right */
}

.nav-link ul li ul {
  display: none;
  position: absolute;
  top: 36px;
  left: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 10px 0;
  min-width: 150px;
  z-index: 1000;
}
/* Show dropdown when "show" class is active */
.nav-link ul li.show ul {
  display: block;
}

.nav-link ul li ul.show {
  display: block;
}
/* Hide arrow when dropdown is open */
.nav-link ul li.show .arrow {
  display: none;
}
.nav-link ul li:hover ul {
  display: block;
}
.nav-link ul li{          /* Targets <li> inside <ul> inside an element with class 'nav-link' */
    list-style: none;    /* Removes the default list bullet points */
    display: inline-block; /* Makes list items display side by side horizontally */
    padding: 8px 12px;   /* Adds space inside each list item (top/bottom: 8px, left/right: 12px) */
    position: relative;  /* Positions the element relative to its normal position, useful for child positioning */
}
.nav-link ul li ul li {
  margin: 0;
}
.nav-link ul li ul li a {
  color: #333;
  padding: 8px 20px;
  white-space: nowrap;
}
.nav-link ul li ul li a:hover {
  background-color: #f0d87d;
  color: #000;
}
.nav-link ul li a {          /* Selects all <a> (anchor) tags inside <li> inside <ul> within .nav-link */
    color: #fff;             /* Sets the text color of links to white */
    text-decoration: none;   /* Removes the default underline from links */
    font-size: 20px;         /* Sets the font size of links to 20 pixels */
}
.nav-link ul li::after {         /* Selects the pseudo-element after each <li> in <ul> inside .nav-link */
    content: '';                 /* Creates an empty content, so the pseudo-element appears */
    width: 0%;                
    height: 2px;                /* Gives the pseudo-element a height of 2 pixels */
    background: #dca903;        /* Colors the pseudo-element with a golden yellow color */
    display: block;             /* Turns the pseudo-element into a block element, so it takes width and height */
    margin: auto;               /* Centers the pseudo-element horizontally within the list item */
    transition: 0.5s;           /* how much times transition is show */
}


/* apply hover effect on nav bar */
.nav-link ul li:hover::after{
    width: 100%;
}

.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.text-box h1{
    font-size: 62px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 20px;
    color: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid #dca903;
    background: #dca903;
    transition: 1s;
}
/* cross icon and fou bar icon do not show on computer website*/
nav .fa{
display: none;
}

/* for view on moblie devices*/
@media(max-width:700px){
  .text-box h1 {
    font-size: 30px;
  }
  .nav-link ul li {
    display: block;
  }

  .nav-link {
    position: fixed;
    background: #b97d05;
    height: 100vh;
    width: 80%;
    max-width:260px;
    top: 0;
    right: -100%; /* hidden by default */
    text-align: left;
    z-index: 2;
    transition: right 0.5s ease; /* smoother transition */
  }

  .nav-link.open {
    right: 0; /* visible when open */
  }

  nav .fa {
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }

  .nav-link ul {
    padding: 30px;
  }

  .nav-link ul li ul {
    display: none; /* hidden by default */
    position: static;
    background: #b97d05;
    box-shadow: none;
    padding-left: 20px;
    margin-top: 5px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  /* when shown */
  .nav-link ul li ul.show {
    display: block;
    max-height: 400px;
  }
  .nav-link ul li.show > ul {
  display: block;
  max-height: 500px; /* adjust if more items */
}


  .nav-link ul li ul li a {
    color: #fff;
    font-size: 18px;
    display: block;
    padding: 8px 0;
  }

  .nav-link ul li ul li a:hover {
    color: #f0d87d;
    background: none;
  }

  .nav-link ul li:hover > ul {
  display: block;
}
  .nav-link ul li .arrow {
    float: right;
    font-size: 16px;
    margin-top: 2px;
  }

  .nav-link ul li.show .arrow {
    display: none;
  }
}


/*header secion end here*/

/*---------History -------*/
.intro{
    padding: 60px 0 40px 0;
    background: #faf9f7;
    text-align: center;
    
}

.intro .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

.intro-img {
    width: 260px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(204, 155, 30);
}

.intro-text {
    max-width: 450px;
    text-align: left;
}

.intro h2{
    color: #a26b04;
    font-size: 2rem;
    margin-bottom: 18px;
}
/*intro view on mobile device */
@media(max-width: 700px){
    .intro-text h2{
        text-align: center;
    }
    .intro-text p{
        padding: 0 20px;
        margin: 0 20px;
    }
}
    
/* history section end here*/


/* ------------courses-------------*/
.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.course h1{
    color: #a26b04;
    font-size: 36px;
}
.course p{
    font-size: 14px;
    font-weight: 14px;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col{
    flex-basis: 31%;
    background: #fae371;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
.course h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.course-col:hover{
    box-shadow: 0 0 50px rgba(16, 8, 8, 0.2);
}

@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
}

    /*---------our vision------------*/

/* Vision Section */
.vision-container {
  background: #fff;
    padding: 60px 0 40px 0;
    text-align: center;
    position: relative;
}
.vision-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.15;
    background-image: url('images/background1.jpg'); /* subtle geometric pattern */
    z-index: 0;
}


.vision-header .intro-text {
  color: #dca903;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 8px;
  
}

.vision-header h2 {
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 3px;
  margin: 0 0 14px 0;
}

.vision-header h2 span {
  border-bottom: 3px solid #dca903;
  padding-bottom: 2px;
  font-weight: 900;
}

.vision-header p {
  font-weight: 400;
  font-size: 1rem;
  color: #5a5a5a;
  margin: 0 0 50px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.vision-cards {
  display: flex;
  justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap; /* Responsive */
}

.vision-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.06);
  padding: 40px 20px;
  flex: 1 1 280px;
  max-width: 320px;
  position: relative;
}

.vision-card p{
  text-align: justify;
}
.icon-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
}

.icon-bg-outline {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #dca903;
  border-radius: 6px;
  z-index: 1;
}

.icon-bg-square {
  background-color: #131313;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
}
.vision-card svg {
  fill: #fff;
}

.vision-card h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #444;
}

.vision-card p {
  font-weight: 400;
  font-size: 0.95rem;
  color: #777;
  margin: 0;
  line-height: 1.5;
}

/* Quran Banner */
.quran-banner {
  width: 100%;
  min-height: 100px;
  background: linear-gradient(180deg,#a24b03 0%, #be7b1a 50%, #18120b 100%);
  /* Optionally, use a silhouette mosque as a background image here if available */
  background-image: url(images/quran21.jpg);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 10px;
  padding-bottom: 0px;
  text-align: center;
  background-repeat: no-repeat; /* stops repeating */
  background-size: cover;       /* makes it fill the area */
}


.quran-text {
  color: white;
  max-width: 550px;
  text-align: center;
}

.quran-text h1 {
  font-family: 'Amiri', serif;
  font-size: 3rem;
  margin-bottom: 12px;
  letter-spacing: 3px;
  direction: rtl;
  text-align: center;
}

.quran-text p {
  font-size: 1.2rem;
  line-height: 1.5;
}

.quran-text span {
  color: #ffffff;
  font-weight: 700;
}

.quran-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 50px;
}

.quran-img {
  width: 240px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin-right: 36px;
  object-fit: contain;
}

.quran-text {
  color: #fff;
  max-width: 900px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.arabic {
  font-size: 2.4rem;
  font-family: 'Amiri', serif;
  font-weight: bold;
  margin-bottom: 18px;
  line-height: 1.1;
  direction: rtl;
  letter-spacing: 2px;
  
}

.translation {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.ref {
  color: #ffd800;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

@media (max-width: 700px) {
  .quran-banner-inner {
    flex-direction: column;
    align-items: center;
    padding: 24px 6px;
  }
  .quran-img {
    margin: 0 0 18px 0;
    width: 175px;
  }
  .arabic {
    font-size: 1.4rem;
    text-align: center;
  }
  .translation {
    font-size: 1rem;
    text-align: center;
  }
}

/*------------ study with us----------*/

.features-section{
    width: 80%;
    margin: auto;
    text-align: center;
    padding: 60px 0 40px 0;
}

.features-section h1{
    color: #a26b04;
    font-size: 36px;
}
.features-section p{
    font-size: 14px;
    font-weight: 14px;
    line-height: 22px;
    padding: 10px;
}
.featurerow{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}

.feature h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    color: #000;
}

.featurecol{
    flex-basis: 31%;
    background: #fae371;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
.featurecol:hover{
    box-shadow: 0 0 50px rgba(16, 8, 8, 0.2);
}
.fa-globe {
  font-size: 100px;   /* Adjust size */
  color: #0f0f0f;    /* Change color */
}

/* Container for stacked icons */
.fa-stack {
  position: relative;
  display: inline-block;
  width: 2em;  /* width size depends on the stack size */
  height: 2em; /* height size depends on the stack size */
  line-height: 2em;
  vertical-align: middle;
}

/* Base icon: Larger size */
.fa-stack-2x {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 2em; /* double size of base font */
  line-height: inherit;
}

/* Overlay icon: Smaller size */
.fa-stack-1x {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1em; /* normal size */
  line-height: inherit;
}

/* Inverted color (Read) for contrast */
.fa-inverse {
  color: #bf0505 !important;  /* Use !important to override */
}

@media (max-width: 700px) {

    .featurerow {
        flex-direction: column;
    }
    .featurecol {
        flex-basis: 100%; /* make columns full width in column layout */
        margin-bottom: 20px; /* spacing between stacked columns */
    }
}


/*------------pillars--------------*/

 .overlay {
      text-align: center;
      padding: 80px 20px;
      background: linear-gradient(to bottom, #f3d691, #a58112c7);
      background-image: url(images/quran6.jpg);
      color: #000;
      background-repeat: no-repeat;
      background-size: cover;
    }

   .overlay h2 {
      font-size: 0.9rem;
      letter-spacing: 2px;
      font-size: 30px;
      margin-bottom: 10px;
      color:#ffd471;
     }

    .overlay h1 {
      font-size: 1.8rem;
      font-weight: 600;
      margin-bottom: 40px;
      color: #fdfdfd;;
    }
    .overlay p {
      font-style: bold;
    }

    .icons {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 40px;
      font-style: italic;
    }

    .icon {
      background: #ffffff;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      transition: 0.3s;
      font-size: 50px;
      
    }
    .icon:hover {
      background: #f4b433;
      transform: scale(1.05);
    }

    .label {
      margin-top: 10px;
      font-weight: 600;
      color: #f9f9f9;
      font-style: bold;
    }

/*------------footer-------------*/


footer {
  position: relative;
  background-color: #111; /* fallback color */
  background-image: url('images/footer.jpg'); /* path to your image */
  background-repeat: no-repeat;
  background-size: cover; /* cover the entire footer area */
  background-position: center center;
  color: #ccc;
  padding: 60px 60px 60px;
  margin-top: 50px;
}
  footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.7); /* dark overlay with opacity */
  z-index: -1;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
}

.footer-col {
  flex: 1 1 250px;
  margin: 20px;
}

/* Left side (Logo + About) */
.footer-logo {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 100px;
  height: 100px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 35px; /* Added margin bottom to replace social icons space */
}

/* Column titles */
.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
}

/* Our Site list */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #b4b1b1;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #dca903;
}

/* Get in touch */
.footer-contact p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: #dca903;
  font-size: 1rem;
}

/* Bottom copyright */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #222;
  margin-top: 30px;
}

/* Responsive */
  @media (max-width: 700px) {

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  /* Center the footer-logo */
  .footer-logo {
    justify-content: center; /* Center horizontally */
    margin-bottom: 20px; /* Add some space below the logo */
  }
  
  /* Make logo image centered */
  .footer-logo img {
    margin: 0 auto; /* Center image */
  }
  
  /* Center paragraph text in each footer column */
  .footer-col p,
  .footer-col h3,
  .footer-col ul {
    text-align: center;
  }
  
  /* Adjust footer contact paragraphs alignment */
  .footer-contact p {
    justify-content: center;
  }
  }




/*--------------about us page -----------*/

.sub-header {
  height:70vh;
  width: 100%;
  background-image: linear-gradient(rgba(58, 48, 8, 0.7),rgba(58, 43, 8, 0.7)),url(images/download.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.sub-header h1{
  margin-top: 0px;
  text-align: center;
  font-family: 'Georgia', serif; /* elegant serif font */
  font-weight: bold;
  font-size: 60px; /* larger font size */
  
}
.sub-header p{
  text-align: center;
  font-size: 30px;
  margin-top: 30px;
}
.arabic-welcome {
  direction: rtl;
  text-align: center;
  font-family: 'Amiri', 'Scheherazade New', serif; /* decorative Arabic fonts */
  font-size: 36px;
  color: #a36c32; /* warm gold color */
  background: linear-gradient(45deg, #b46d21, #a67c00);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* gradient text effect */
  padding: 30px;
  border: 3px solid #bfa243;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(191, 162, 67, 0.6);
}
.arabic-welcome:hover {
  color: #f7e07e;
  box-shadow: 0 0 25px rgba(247, 224, 126, 0.9);
  transform: scale(1.05);
  transition: all 0.3s ease;
}
.about-us {
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center;     /* centers vertically */
  gap: 40px;               /* space between image and text */
  flex-wrap: wrap;         /* makes it responsive */
  width: 80%;
  margin: auto;
  padding: 80px 0;
}
.about-us h1{
  text-align: center;
  font-size: 50px;
  color: #0a0a0a;
}
.about-us h2 {
  font-family: 'Georgia', serif; /* elegant serif font */
  font-weight: bold;
  font-size: 36px; /* larger font size */
  color: #4a4a4a;
  letter-spacing: 1px;
  text-transform: uppercase; /* all caps */
  text-align: center; /* center the text */
  margin-bottom: 20px;
  border-bottom: 3px solid #d4af37; /* underline in gold */
  padding-bottom: 10px;
  margin-top: 50px;
}
.about-us p{
    margin-bottom: 20px; /* space below each paragraph */
  line-height: 1.6;    /* spacing between lines within paragraphs */
}



.about-col{
  flex-basis: 48%;
  padding: 30px 2px;
 
}
.about-col img {
  max-width: 100%;
  height: auto;
  margin-top: 0;
  object-fit: cover; /* cover ensures the image covers the box */
  border-radius: 4px; /* optional, rounded corners */
  display: block;
  
  
}
@media (max-width: 700px) {

   .about-us {
    flex-direction: column;
    width: 100%;              /* let it span the full width */
    padding: 40px 30px;       /* <--- adds padding on left/right */
    box-sizing: border-box;   /* ensures padding doesnÃ¢â‚¬â„¢t cause overflow */
  }
  .sub-header p{
        text-align: center;
        font-size: 20px;
        margin-top: 20px;
        padding-left: 10px;
        padding-right: 10px;
   }
  .about-col img {
    max-width: 100%;
    height: auto;
    margin: 15px auto 0;
  }
  .about-us h1 {
    font-size: 32px;
  }
  .about-us h2 {
    font-size: 24px;
  }
  .sub-header h1 {
    font-size: 40px;
    margin-top: 40px;
  }
  .about-us ul {
  list-style-type: disc;      /* show regular round bullets */
  padding-left: 20px;         /* add spacing so bullets aren't cut off */
  margin-left: 20px;
}

.about-us li {
  display: list-item;         /* ensure bullets actually appear */
  margin-bottom: 10px;        /* space between points */
}


  .about-col {
    width: 100%;
    padding: 0 10px;          /* small internal padding */
    text-align: justify;      /* makes text neat */
  }

  .about-col p {
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
  }

  .about-us h2 {
    font-size: 24px;
    text-align: center;
  }

}



/*----------- Contact---------------*/
.sub-headers {
  height:70vh;
  width: 100%;
  background-image: linear-gradient(rgba(58, 48, 8, 0.7),rgba(58, 43, 8, 0.7)),url(images/quran21.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.sub-headers h1{
  margin-top: 0px;
  text-align: center;
  font-family: 'Georgia', serif; /* elegant serif font */
  font-weight: bold;
  font-size: 60px; /* larger font size */
  
}
.sub-headers p{
  text-align: center;
  font-size: 30px;
  margin-top: 30px;
}
/* Container for contact sections */
    .contact-section {
      padding: 60px 20px;
      background-color: #fff;
    }

    .container {
      max-width: 1200px;
      margin: auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      align-items: start;
    }

    /* LEFT FORM */
    .contact-form h2 {
      margin-bottom: 15px;
      color: #b8860b;
    }

    .contact-form form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .contact-form label {
      font-weight: 500;
      margin-top: 5px;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 10px 15px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 15px;
      outline: none;
      transition: border-color 0.3s ease;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      border-color: #b8860b; /* golden brown */
    }

    .contact-form button {
      background-color: #b8860b;
      color: white;
      border: none;
      padding: 12px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      margin-top: 10px;
      width: 150px;
    }

    .contact-form button:hover {
      background-color: #a07408;
    }

    /* RIGHT INFO */
    .contact-info h3 {
      color: #b8860b;
      font-weight: 600;
      margin-bottom: 5px;
    }

    .contact-info h2 {
      font-size: 28px;
      margin-bottom: 15px;
    }

    .contact-info p {
      color: #555;
      line-height: 1.6;
      margin-bottom: 20px;
    }

    .info-box {
      display: flex;
      align-items: flex-start;
      gap: 15px;
      margin-bottom: 15px;
    }

    .info-box i {
      font-size: 20px;
      color: #b8860b;
      margin-top: 3px;
    }

    .info-box h4 {
      margin-bottom: 3px;
    }
    .success,
.error {
  display: none;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 8px;
  font-weight: 600;
  animation: fadeIn 0.4s ease;
}
    .success {
  display: none;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  font-weight: 600;
  background: #e6fffa;
  color: #0f5132;
  border: 1px solid #a3cfbb;
}

.error {
  display: none;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  font-weight: 600;
  background: #ffe6e6;
  color: #842029;
  border: 1px solid #f5c2c7;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}



    /* RESPONSIVE DESIGN */
    @media (max-width: 700px) {

      .container {
        grid-template-columns: 1fr;
      }
      .contact-form,
  .contact-info {
    padding-right: 0;
  }
      .info-box {
        justify-content: center;
      }
      .contact-form button {
        margin: 0 auto;
      }
     .contact-section {
    width: 100%;
    padding: 40px 16px;
    box-sizing: border-box;
  }
      .sub-headers p{
        text-align: center;
        font-size: 20px;
        margin-top: 20px;
}
    }

    /*------blog-----*/
    /* About Section */
    .about {
      padding: 60px 20px;
      max-width: 1000px;
      margin: auto;
      text-align: center;
    }

    .about h2 {
      font-size: 36px;
      color: #b97d05;
      margin-bottom: 25px;
    }

    .about p {
      font-size: 18px;
      color: #555;
      line-height: 1.8;
    }

    /*----------course----------*/


.sub-headerss {
  height:80vh;
  width: 100%;
  background-image: linear-gradient(rgba(58, 48, 8, 0.7),rgba(58, 43, 8, 0.7)),url(images/course.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.sub-headerss h1{
  margin-top: 0px;
  text-align: center;
  font-family: 'Georgia', serif; /* elegant serif font */
  font-weight: bold;
  font-size: 60px; /* larger font size */
  
}
.sub-headerss p{
  text-align: center;
  font-size: 30px;
  margin-top: 30px;
}
.sub-headerss h2{
    text-align: center;
  font-size: 60px;
  margin-top: 20px;
  color: #dca903;;
}
.sub-headerss .sahih{
  margin-top: 0;
}
.course-list {
  padding: 60px 20px;
  background: #faf9f7;
  margin-top: 40px;
  margin-bottom: 40px;
}

.course-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.course-box {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 300px;
  padding: 20px;
  text-align: center;
}

.course-box h3 {
  color: #b97d05;
}

/* ---------- READ MORE BUTTON ---------- */
.course-box .btn {
  background: #b97d05;
  color: white;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(185, 125, 5, 0.3);
}

/* Hover Shadow Effect */
.course-box .btn:hover {
  background: #a66c04; /* slightly darker */
  box-shadow: 0 6px 20px rgba(185, 125, 5, 0.6);
  transform: translateY(-3px);
}
.course-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgb(204, 155, 30);
}
/* -------------------------------------- */

/* WHY CHOOSE OUR COURSE */
.features {
  background-color: #ffffffe3;
  padding: 80px 10%;
  text-align: center;
}

.features h2 {
  font-size: 2.2rem;
  color: #b97d05;
  margin-bottom: 50px;
  position: relative;
}

.features h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #b97d05;
  margin: 10px auto 0;
  border-radius: 2px;
}

.feature-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.feature-box {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  width: 250px;
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feature-box i {
  font-size: 40px;
  color: #b97d05;
  margin-bottom: 15px;
}

.feature-box h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 700px) {

  .feature-container {
    flex-direction: column;
    align-items: center;
  }
.sub-headerss p{
  text-align: center;
  font-size: 20px;
  margin-top: 20px;
}
.sub-headerss h2{
    text-align: center;
  font-size: 50px;
  margin-top: 10px;
  color: #dca903;;
}
  .feature-box {
    width: 90%;
  }
}


/*------alimah--------*/
.sub-header1 {
  height:80vh;
  width: 100%;
  background-image: linear-gradient(rgba(58, 48, 8, 0.7),rgba(58, 43, 8, 0.7)),url(images/alimah2.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.sub-header1 h1{
  margin-top: 0px;
  text-align: center;
  font-family: 'Georgia', serif; /* elegant serif font */
  font-weight: bold;
  font-size: 60px; /* larger font size */
  
}
.sub-header1 p{
  text-align: center;
  font-size: 30px;
  margin-top: 30px;
}
.sub-header1 h2{
    text-align: center;
  font-size: 60px;
  margin-top: 20px;
  color: #dca903;;
}
.sub-header1 .fatir{
  margin-top: 0;
  text-align: center;
}
.enroll-btn {
  display: inline-block;
  background-color: #ffd54f;
  color: #3e2723;
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.3s;
  margin: 0 auto;             /* centers it horizontally */
  position: relative;
  z-index: 1;
}
.enroll-center {
  text-align: center;
  margin: 40px 0;
}

.enroll-btn:hover {
  background-color: #f9a825;
  color: #fff;
}

.alimah-content {
  max-width: 1000px;
  margin: 50px auto;
  background: #fff;
  padding: 40px 50px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.alimah-content h2 {
  color: #4e342e;
  border-left: 4px solid #d7b14c;
  padding-left: 10px;
  margin-top: 40px;
}

.alimah-content ul {
  margin-left: 25px;
}

.alimah-content li {
  margin-bottom: 8px;
}

.highlight {
  color: #a67c00;
  font-weight: bold;
}
.alimah-poster-section {
  max-width: 700px;
  margin: 60px auto 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(60,40,10,0.15);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.alimah-poster-img {
  max-width: 400px;
  width: 90%;
  height: auto;
  margin: 0 auto 28px auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 12px rgb(204, 155, 30);
}

.alimah-poster-content h2 {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  color: #492f1c;
  margin-bottom: 18px;
}

.alimah-poster-content p {
  font-size: 1.18rem;
  color: #533d26;
  margin-bottom: 28px;
}



@media (max-width: 768px) {

  .alimah-header {
    padding: 50px 15px;
  }

  .alimah-header h1 {
    font-size: 2.2rem;
  }

  .alimah-content {
    padding: 25px 20px;
  }
  .alimah-poster-section {
    padding: 16px 4px;
  }
  .alimah-poster-img {
    max-width: 100%;
    margin-bottom: 16px;
  }
  .alimah-poster-content h2 {
    font-size: 1.2rem;
  }
  .sub-header1 h1{
  margin-top: 60px;
  text-align: center;
  font-family: 'Georgia', serif; /* elegant serif font */
  font-weight: bold;
  font-size: 40px; /* larger font size */
  
}
.sub-header1 p{
  text-align: center;
  font-size: 20px;
  margin-top: 20px;
}
.sub-header1 h2{
    text-align: center;
  font-size: 30px;
  margin-top: 10px;
  color: #dca903;;
}
}

/*short course*/
.sub-header2 {
  height:80vh;
  width: 100%;
  background-image: linear-gradient(rgba(58, 48, 8, 0.7),rgba(58, 43, 8, 0.7)),url(images/short1.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.sub-header2 h1{
  margin-top: 0px;
  text-align: center;
  font-family: 'Georgia', serif; /* elegant serif font */
  font-weight: bold;
  font-size: 60px; /* larger font size */
  
}
.sub-header2 p{
  text-align: center;
  font-size: 30px;
  margin-top: 30px;
}
.sub-header2 h2{
    text-align: center;
  font-size: 60px;
  margin-top: 20px;
  color: #dca903;;
}
/* About Section */
.about {
  text-align: center;
  padding: 32px 18px 44px 18px;
  background: #f6f6f4;
}
.about h2 {
  font-family: 'Montserrat', 'Nunito Sans', Arial, sans-serif;
  color: #b58619;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.about p {
  font-size: 1.13rem;
  color: #44331e;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.75;
}
.courses {
  text-align: center;
  padding: 22px 8px 58px 8px;
  background: #fff;
}
.courses h2 {
  font-family: 'Montserrat', 'Nunito Sans', Arial, sans-serif;
  color: #b58619;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 42px;
  letter-spacing: 1px;
  text-align: center;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: auto;
  margin: 0 auto;
  padding: 0 12px;
}

.course-card {
  background: #faf9f5;
  border-radius: 28px;
  border: 3px solid #b58619;
  box-shadow: 0 44px 44px rgba(183, 148, 41, 0.09);
 height: auto;
  overflow: hidden;
  display: block;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.17s;
}
/* IMAGE CONTAINER */
.course-image {
  width: 100%;
  padding: 10px;   /* breathing space */
  box-sizing: border-box;
}
.course-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 12px rgb(204, 155, 30);
}
.course-content {
  padding: 22px 20px 26px;
  display: block;
  flex-direction: column;
 
}


.course-content h3 {
  font-family: 'Lateef', 'Amiri', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #b58619;
  margin-bottom: 10px;
  text-align: left;
}
.course-content p {
  font-size: 1.08rem;
  color: #4a3722;
  line-height: 1.7;
  margin-bottom: 18px;
  text-align: left;
 
}

.course-card:hover {
  box-shadow: 0 40px 40px rgba(183, 148, 41, 0.15);
  transform: translateY(-8px) scale(1.012);
}

.register-btn {
  background: #b58619;
  color: #fff;
  font-weight: 700;
  font-size: 1.03rem;
  border-radius: 32px;
  padding: 11px 36px;
  text-decoration: none;
  transition: background 0.22s;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(184,138,41,0.09);
}
.register-btn:hover {
  background: #92660f;
  color: #fff;
}


@media (max-width: 700px) {

  .sub-header2 h1,
  .sub-header2 p,
  .about h2,
  .courses h2 {
    font-size: 1.15rem;
    padding:10px;
  }
  .course-grid {
    grid-template-columns: 1fr;
   gap: 18px;
  }

  .course-card {
    border-radius: 20px;
  }

  .course-content{
    padding: 16px 14px;
  }

}



/*----kids course-----*/



.sub-header3 {
  height:80vh;
  width: 100%;
  background-image: linear-gradient(rgba(58, 48, 8, 0.7),rgba(58, 43, 8, 0.7)),url(images/kids1.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.sub-header3 h1{
  margin-top: 0px;
  text-align: center;
  font-family: 'Georgia', serif; /* elegant serif font */
  font-weight: bold;
  font-size: 60px; /* larger font size */
  
}
.sub-header3 p{
  text-align: center;
  font-size: 30px;
  margin-top: 30px;
}
.sub-header3 h2{
    text-align: center;
  font-size: 60px;
  margin-top: 20px;
  color: #dca903;;
}
.course-grids {
  display: flex;
  justify-content: center;
  align-items: center; /* optional: vertical centering */
  min-height: 500px;   /* optional: set a min height */
  max-width: 500px;
  margin: 0 auto;
  padding: 0px 20px 0 20px;
  gap: 38px;
}


@media (max-width: 700px) {

  .sub-header3 h1{
  margin-top: 0px;
  text-align: center;
  font-family: 'Georgia', serif; /* elegant serif font */
  font-weight: bold;
  font-size: 40px; /* larger font size */
  
}
.sub-header3 p{
  text-align: center;
  font-size: 20px;
  margin-top: 20px;
}
.sub-header3 h2{
    text-align: center;
  font-size: 30px;
  margin-top: 10px;
  color: #dca903;;
}
}

/* ==============================
   HARD MOBILE OVERFLOW FIX
   ============================== */

html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

/* ðŸ”´ FIX FIXED ELEMENTS */
@media (max-width: 768px) {

  /* Translate box */
  #translate-box {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: calc(100vw - 20px);
    max-width: 260px;
    box-sizing: border-box;
  }

  /* Mobile navigation */
  .nav-link {
    max-width: 85vw;
    overflow-x: hidden;
  }

  /* Width based sections */
  .course,
  .features-section,
  .about-us,
  .features,
  .courses,
  .course-list {
    width: 100% !important;
    padding: 0 14px !important;
  }

  /* Grids */
  .course-grid,
  .course-grids {
    max-width: 100vw;
    padding: 0 10px !important;
    gap: 10px !important;
  }

  /* STOP SCALE FROM CAUSING OVERFLOW */
  .course-card:hover,
  .feature-box:hover {
    transform: none !important;
  }
}

/* GLOBAL SAFETY */
* {
  max-width: 100%;
  box-sizing: border-box;
}
/* Replace vh with content-based height */
  .sub-header,
  .sub-header1,
  .sub-header2,
  .sub-header3,
  .sub-headers,
  .sub-headerss {
    height: auto !important;
    min-height: unset !important;
    padding-top: 30px;
    padding-bottom: 20px;
  }
  .course-content {
    padding: 14px 14px !important;
}