/*
Theme Name: Avicenna Maldives
Theme URI: https://avicennamv.com/
Author: JO
Author URI: https://avicennamv.com/
Description: A modern, multilingual and RTL-supported WordPress theme for course enrollment. Designed for Hijama and alternative medical education.
Version: 1.0
Text Domain: avicennamv
Tags: rtl-language-support, education, responsive, multilingual, clean
*/

/* === Base Typography and Layout === */



body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  font-size: 16px;
  /*padding-top: 100px; /* Adjust based on actual header height */
}
body.has-fixed-header {
  scroll-padding-top: 100px; /* adjust to your actual header height */
}


main {
  display: block;
  padding-top: 80px; /* Ensure this matches or slightly exceeds your fixed header height */
  background-color: #f9f9f9;
  min-height: 60vh;
  box-sizing: border-box;
}

/* Optional: Section spacing inside main */
main  section,
main .content-area,
main .container {
  margin-bottom: 30px;
  margin-top: 20px;
}

/* Make sure inner containers respect padding/margins */
main .section-inner {
  display: block; 
  padding: 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  main {
    padding-top: 26px !important; /* Smaller header on mobile */
    padding-bottom: 40px;
  }

  main .section-inner {
    padding: 15px auto !important;
  }

  .section{
    margin: 0 auto;
  }

  main .section,
  main .content-area,
  main .container {
    margin-bottom: 40px;
    margin: 0 auto !important;
  }
}

a {
  color: #00796b;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #004d40;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Layout Containers === */
.container,
.section-inner {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
}

/* === Reusable Section Style === */

.section.bg-light {
  background-color: #f1f1f1;
}

.section.bg-dark {
  background-color: #263238;
  color: #fff;
}


/* === Courses === */
.course-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
}

.course-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  min-width: 300px;
  flex: 0 0 auto;
  padding: 20px;
  text-align: center;
}

.course-card img {
  border-radius: 6px;
  margin-bottom: 15px;
}

/* === Course Metadata Boxes === */
.course-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}

.course-meta div {
  background: #e0f7fa;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.95em;
}

/* === Buttons === */
.cta-button,
.join-now-btn {
  display: inline-block;
  background: #00796b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-button:hover,
.join-now-btn:hover {
  background: #004d40;
}

/* === Application Form === */
.application-form {
  display: none;
  margin-top: 30px;
  background: #fafafa;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* === Contact Info Section === */
/* .contact-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contact-card {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 460px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #00796b;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}
*/

/* === SVG Icon Fix for Inline Fill === */
.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* === Social Icon Group === */
.social-menu-icons {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

.social-menu-icons li a {
  display: inline-block;
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  color: inherit;
}

.social-menu-icons li a:hover {
  transform: scale(1.1);
}

/* === Image and Thumbnail === */
.page-thumbnail img,
.post-thumbnail img {
  border-radius: 6px;
  margin-bottom: 20px;
}

/* === Utility === */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.hide {
  display: none !important;
}

/* === Responsive Fixes === */
@media (max-width: 768px) {
  .course-meta {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}
  /*.contact-info-list {
    display: block;
    flex-direction: column;
    align-items: center;
  
}

*/



main.main-home {
  padding-top: 0;
  background: #f9f9f9;
  padding-bottom: 0;
}

/* === Hero Section === */
.home-hero {
  background: #272858;
  color: #fff;
  padding: 30px 0;
}

.home-hero .section-inner {
  background: #1c1d59;
  padding: 30px;
  border-radius: 10px;
  max-width: 95%;
  width: 95%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* === Desktop View === */
.hero-course {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-left {
  flex: 1 1 55%;
  text-align: center;
}

.hero-thumb img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.hero-right {
  flex: 1 1 40%;
  box-sizing: border-box;
}

.course-title {
  font-size: 2rem;
  color: #f5a623;
  margin-bottom: 10px;
  margin-top: 0;
}

.course-subtitle {
  font-size: 1.3rem;
  color: #f3b249;
  margin-bottom: 10px;
}

.course-intro {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-btn-cta .btn-cta {
  display: block;
  width: 100%;
  margin: 20px auto 0;
  text-align: center;
  background: #f5a623;
  color: #1c1d59;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 5px;
  text-transform: uppercase;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.hero-btn-cta .btn-cta:hover {
  background: #ffc107;
}

.hero-share {
  display: inline-block;
  margin-top: 1px;
  font-size: 8px;
}

.hero-share .widgettitle {
  display: inline-block;
  font-size: 10px;
  font-style: normal;
  font-weight: bold;
  background: none;
  padding: 0;
}


.hero-share .share-label {
  display: block;
  font-weight: normal;
  margin-bottom: 5px;
  color: #fff;
  
  
}

/* === Responsive: Hide Mobile / Show Desktop === */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
  .desktop-only {
    display: block !important;
  }
}





/* Academy Intro Section */

.home-intro .intro-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.intro-text {
  flex: 1 1 300px;
}
.intro-image {
  flex: 1 1 300px;
}
.intro-image img {
  width: 100%;
  border-radius: 10px;
}

/* === Stats Grid === */
.avicenna-highlight-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* === Individual Box === */
.highlight-item {
  background: #1c1d59;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* === Icon Wrapper === */
.highlight-icon {
  margin-bottom: 12px;
}

/* === Dashicon or SVG Icon === */
.highlight-icon .dashicons,
.highlight-icon svg {
  font-size: 36px;
  width: 48px;
  height: 48px;
  color: #f5a623;
  fill: #f5a623;
  transition: transform 0.3s ease;
}

.highlight-item:hover .highlight-icon .dashicons,
.highlight-item:hover .highlight-icon svg {
  transform: scale(1.2);
}

/* === Image Icon === */
.highlight-icon img {
  max-width: 48px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === Pre-Text === */
.highlight-text {
  font-style: italic;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}

/* === Highlight Number === */
.highlight-number {
  font-size: 2.4rem;
  color: #f5a623;
  font-weight: 800;
  margin-bottom: 6px;
}

/* === Label === */
.highlight-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}


/* Gallery Section */
.photo-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
}
.gallery-item img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Video Section */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1c1d59;
  text-align: center;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .hero-content, .hero-thumb {
    text-align: center;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }

/* === Stats Grid === */
.avicenna-highlight-boxes {
  display: flex;
  gap: 25px;
  margin-top: 20px;
  width: 75%;
  flex-direction: column;
  justify-self: center;
  
}


}





/* === Section Wrapper Inner Consistency === */
.section-inner {
  background: #fff;
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}






/* === Section Title Styling === */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1c1d59;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f5a623;
  margin: 16px auto 0;
  border-radius: 3px;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .section-inner {
    padding: 18px 8px;
    padding-top: 10px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .section-title::after {
    width: 40px;
    height: 3px;
  }

  main section {
    margin-bottom: 30px;
  }
  
  .main.main-home {
    padding-top: 5px;
    padding-bottom: 0;
  }
}




/* === General Section Styling === */

  .section {
    margin: 60px auto; /* proper gap top and bottom */
    max-width: 100%;
    
  }

  .section:first-child {
    margin-top: 0;
  }
  
  /* Optional: Prevent spacing at bottom for last section */
  .section:last-child {
    margin-bottom: 0;
  }

/* === Widget Title as Section Header === */
.widget-title,
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1c1d59;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.widget-title::after,
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f5a623;
  margin: 16px auto 0;
  border-radius: 3px;
}

/* === Optional: alternate background style === */
.section.bg-light {
  background-color: #f4f4f6;
}
.section.bg-dark {
  background-color: #1c1d59;
  color: #fff;
}




/* === Enforce spacing between section-inners (desktop only) === */
@media (min-width: 769px) {
  .section-inner {
    margin-bottom: 60px;
  }

  .section-inner:last-child {
    margin-bottom: 0;
  }
}



/* Home Intro Widget – Clean Side-by-Side Layout */

.intro-widget-content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  /* padding: 2rem; */
  border-radius: 10px;
  background: #f9f9f9;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.intro-widget-left {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.intro-widget-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  max-height: 400px;
  max-width: 600px;
}

.intro-widget-right {
  flex: 1;
  background: #1f2251;
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.intro-widget-text {
  font-size: 1rem;
  line-height: 1.6;
  transition: font-size 0.3s ease, line-height 0.3s ease;
}

.intro-widget-social ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

/* Prevent overflow */
.widget,
.intro-widget-content,
.intro-widget-left,
.intro-widget-right {
  overflow: hidden;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .intro-widget-content {
    flex-direction: column;
    padding: 1.5rem;
  }

  .intro-widget-left,
  .intro-widget-right {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .intro-widget-right {
    padding: 1.5rem;
    text-align: center;
  }

  .intro-widget-social ul {
    justify-content: center;
  }
  
  .widget-title, .section-title, h2.widgettitle {
    display: block;
  }

}







/* Global Image Css  */ 

/* === GLOBAL IMAGE STYLE (Scoped) === */
.entry-content img,
.widget-area img,
.course-box img,
.gallery-item img,
.widget img,
.section-inner img,
.hero-thumb img:hover,
.page-thumbnail img,
.post-thumbnail img,
.photo-gallery img,
.page-thumbnail img,
.photo-gallery img,
.intro-widget-image img,
.page-thumbnail img {
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  height: auto;
  display: block;
}

/* === HOVER ANIMATION === */
.entry-content img:hover,
.section-inner img:hover,
.widget-area img:hover,
.course-box img:hover,
.widget img:hover,
.gallery-item img:hover,
.hero-thumb img:hover,
.page-thumbnail img:hover,
.post-thumbnail img:hover,
.intro-widget-image img:hover,
.photo-gallery img:hover,
.page-thumbnail img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}



/* WIDGET TITLE AND SECTION TITLE GLOBAS STYLE */

/* === GLOBAL TITLE STYLE FOR SECTIONS & WIDGETS === */


.widget-title,
.section-title,
h2.widgettitle {
  background-color: #1f2251; /* Dark navy blue */
  color: #fbb034; /* Warm orange */
  font-size: 1.40rem;
  font-weight: 900;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}





/*Temporarily hide search */

.header-search-toggle,
.mobile-search-toggle {
  display: none;
}

