@charset "utf-8";

/* ==========================================================================
   1. ROOT VARIABLES & GENERAL STYLES
   ========================================================================== */
:root {
  --rav-primary: #14a800;
  --rav-hover: #14a800;
  --rav-hover-border: #14a800;
  --rav-link: #14a800;
  --link-color: #14a800;
  --link-hover-color: #14a800;
}



main, 
.greenlogin {
  margin-top: 0.5em !important;
}

video {
  width: 100%;
  height: auto;
}

.no-text-decoration { text-decoration: none !important; }
.width100 { width: 100% !important; max-width: 100% !important; }
.min-height-270 { min-height: 270px !important; }

/* Grid Helper Clears */
.row::after {
  content: "";
  clear: both;
  display: block;
}

[class*="col-"] {
  float: left;
  padding: 15px;
}

/* ==========================================================================
   2. TYPOGRAPHY & FONTS
   ========================================================================== */
@font-face {
  font-family: nafees;
  src: url(fonts/nafees2.ttf);
}
@font-face {
  font-family: SourceSans3Bold;
  src: url(fonts/SourceSans3Bold.ttf);
}
@font-face {
  font-family: SourceSans3Light;
  src: url(fonts/SourceSans3Light.ttf);
}
@font-face {
  font-family: SourceSans3Regular;
  src: url(fonts/SourceSans3Regular.ttf);
}

body {
  background: linear-gradient(135deg, #eaf7ef, #ffffff);
  font-family:SourceSans3Regular, nafees;
}

.urdu, *[dir="rtl"] {
  font-family: nafees !important;
}

.noto {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
}

.arabic {
  font-family: 'Traditional Arabic', Arial, sans-serif;
  font-size: 1.2em;
}

.urdu {
  font-family: 'Jameel Noori Nastaleeq', 'Urdu Typesetting', sans-serif;
  direction: rtl;
  display: block;
  margin-top: 5px;
}

/* Font Sizing Utilities */
.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }
.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.75rem !important; }
.fs-9 { font-size: 0.625rem !important; }

/* Home Headings */
.rav_home_h1 { color: #0c8b44; font-size: 72px; padding-top: 30px; }
.rav_home_para1 { color: #0c8b44; text-align: center; font-size: 56px; font-weight: 100; }
.rav_home_para2 { text-align: center; font-size: 28px; }
.section-title { font-size: 1.2rem; font-weight: 700; color: #0C8B44; }

/* ==========================================================================
   3. BUTTONS & UI COMPONENTS
   ========================================================================== */
.btn {
  --btn-padding-y: 0.3rem;
}

.btn-primary {
  --btn-color: #fff;
  --btn-bg: var(--rav-primary);
  --btn-border-color: var(--rav-primary);
  --btn-hover-color: #fff;
  --btn-hover-bg: var(--rav-hover);
  --btn-hover-border-color: var(--rav-hover-border);
  --btn-focus-shadow-rgb: 39, 39, 111;
  --btn-active-color: #fff;
  --btn-active-bg: var(--rav-hover);
  --btn-active-border-color: var(--rav-hover-border);
  --btn-active-shadow: inset 0 3px 5px #00000020;
  --btn-disabled-color: #fff;
  --btn-disabled-bg: var(--rav-primary);
  --btn-disabled-border-color: var(--rav-primary);
  background-color: var(--rav-primary);
  border-color: var(--rav-primary);
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: var(--rav-hover);
  border-color: var(--rav-hover-border);
}

.btn-check:checked + .btn, 
:not(.btn-check) + .btn:active, 
.btn:first-child:active, 
.btn.active, 
.btn.show {
  color: #fff;
  background-color: var(--rav-hover);
  border-color: var(--rav-hover-border);
}

.btn-success {
  background-color: #198754 !important;
}

.main-btn {
  padding: 18px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 600;
}

.learn {
  color: #0a9447;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 25px;
}

/* Background Utility Classes */
.bg-light-green {
  background-color: rgba(20, 168, 10, 0.5);
  color: rgb(0, 100, 0);
}

.bg-light-green-border {
  border-bottom: 1px dotted rgba(20, 168, 10, 0.5) !important;
  color: rgb(0, 100, 0);
}

.bg-white {
  background: #ffffff;
}

.darkgreen {
  background-color: #032713 !important;
  color: white !important;
}

/* ==========================================================================
   4. LAYOUT, HEADER & FOOTER
   ========================================================================== */
.container-header {
  background-color: #0C8B44 !important;
  background-image: linear-gradient(135deg, #27CD6F 0%, #0C8B44 100%);
}

.homefooter {
  background-color: white !important;
  background-image: none;
  color: #888;
  font-weight: bold;
}

.footer {
  background-color: #27CD6F;
  background-image: linear-gradient(0deg, #0C8B44 0%, #27CD6F 100%);
}

/* Navigation & Menus */
.horimenu {
  display: inline-block;
}

.horimenu > li.nav-item {
  display: inline-flex;
  padding-right: 15px;
}

ul.maximenuck li.maximenuck.active.level1 > a, div#maximenuck154 ul.maximenuck li.maximenuck.level1 > a, div#maximenuck154 ul.maximenuck li.maximenuck.level1 > span.separator,
a.maximenuck, 
a.maximenuck:hover {
  padding: 10px 24px 10px !important;
}

li.maximenuck a:after {
  top: 16px !important;
  right: 2px !important;
}

div#maximenuck154 ul.maximenuck li.level1.parent > a:after, 
div#maximenuck154 ul.maximenuck li.level1.parent > span.separator:after {
  top: 16px !important;
  left: 2px !important;
  right: unset !important;
}

li.maximenuck, 
li.maximenuck:hover {
  border-radius: 5px !important;
}

div#maximenuck153 {
}

div#maximenuck153 div.floatck {
  width: 250px !important;
}

div#maximenuck153 ul.maximenuck li ul.maximenuck2 li.maximenuck, 
div#maximenuck153 ul.maximenuck2 li.maximenuck {
  width: 240px;
  padding-bottom: 5px;
}

div#maximenuck153 ul.maximenuck li.maximenuck.level1 {
  padding-bottom: 2px !important; 
}

div#maximenuck153 ul.maximenuck li.level1.parent > a:after {
  top: 14px !important;
  right: 1px !important;
}
div#maximenuck153 ul.maximenuck li.level1.parent > a:after, div#maximenuck153 ul.maximenuck li.level1.parent > span.separator:after
{
	border-width: 7px 7px 0 7px !important;
}
div#maximenuck153.maximenuckh ul.maximenuck li.maximenuck.level1 > a span.titreck, div#maximenuck153.maximenuckh ul.maximenuck li.maximenuck.level1 > span.separator span.titreck, div#maximenuck153.maximenuckh ul.maximenuck li.maximenuck.level1 > span.nav-header span.titreck, select#maximenuck153.maximenuckh ul.maximenuck,
div#maximenuck153 {
	font-family:Helvetica, Arial, sans-serif ;
	font-weight:normal;
	border-bottom:none;
    font-size: 16px;
    line-height: 14px;
}
div#maximenuck153.maximenuckh ul.maximenuck li.maximenuck.level1 > a span.titreck, div#maximenuck153.maximenuckh ul.maximenuck li.maximenuck.level1 > span.separator span.titreck, div#maximenuck153.maximenuckh ul.maximenuck li.maximenuck.level1 > span.nav-header span.titreck, select#maximenuck153.maximenuckh ul.maximenuck
{
	text-decoration:none; 
}

/* Language Module */
div.mod-languages ul li.lang-active {
  border: none;
  border-radius: 5px;
  background: none !important; 
}

div.mod-languages li {
  margin: 0 !important;
}

/* User Login Module */
.greenlogin { color: #0C8B44 !important; }
.greenlogin button {
  background: #0C8B44 !important;
  color: white;
}
.greenlogin a {
  color: #0C8B44 !important;
}

/* Notification Module */
.notification-dropdown button {
  border: none;
  border-radius: 5px;
}

/* ==========================================================================
   5. CARDS, LMS & CONTENT SECTIONS
   ========================================================================== */
/* Tarbiat LMS */
.islamic-bg { background-color: #f8f5e6; }
.allah-section { background-color: #e3f2fd; }
.prophet-section { background-color: #e8f5e9; }
.common-section { background-color: #fff8e1; }
h1, h2 { color: #2e7d32; }

.letter-card { 
  transition: transform 0.3s; 
  margin-bottom: 20px; 
}
.letter-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.acard:hover {
  background: #efefef;
  border-radius: 16px;
}

.sub-card {
  height: 300px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.sub-card > div {
  height: 250px;
}

.message-box {
  background: #e7f8ef;
  border: 1px solid #c8f0d9;
  border-radius: 8px;
  padding: 12px 16px;
  color: #1a7a4f;
  font-size: 18px;
  margin: 20px auto 0;
  text-align: center;
  width: 520px;
}

/* Accordion */
.accordion {
  cursor: pointer;
  padding: 5px;
  width: 100%;
  margin: auto;
  transition: 0.4s;
  border: 1px solid #ccc;
}

.active, .accordion:hover {
  background-color: #fafafa;
}

.panel {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-top: 1px solid #ddd;
}

.accordion-header {
  background-color: #f1f1f1;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
}

/* Tarbiat Nizam e Taleem Roadmap */
.school-roadmap {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  line-height: 35px; 
}

.school-roadmap .container {
  margin: auto;
  text-align: center;
}

.school-roadmap .title-box {
  backdrop-filter: blur(5px);
}

.school-roadmap .title-box h1 {
  font-size: 32px;
  color: #00800b;
  margin-bottom: 10px;
}

.school-roadmap .title-box h2 {
  font-size: 18px;
  color: #777;
}

.school-roadmap .roadmap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  position: relative;
}

.school-roadmap .step {
  font-weight: bold;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  border-top: 6px solid #00800b;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.school-roadmap .step:hover {
  transform: translateY(-5px);
}

.school-roadmap .step::before {
  content: attr(data-step);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #4fd1d9;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.school-roadmap .arrow {
  font-size: 28px;
  color: #aaa;
  text-align: center;
  margin: 0;
  transform: rotate(180deg);
}

.school-roadmap .arrow_eng {
  transform: rotate(0deg);
}

/* Scroll Button */
.scroll-btn {
  opacity: 0.7;
  position: fixed;
  z-index: 99999;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 40px;
  padding: 5px 10px;
  background: white;
  color: black;
  border: 2px solid #ccc;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  animation: bounce 1.5s infinite;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s;
  gap: 10px;
}

.scroll-btn:hover { background: #f0f0f0; }
.scroll-btn i { font-size: 24px; }

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

#target {
  margin-top: 100vh;
  padding: 50px;
  background: white;
  text-align: center;
  font-size: 24px;
}

.extra-content {
  padding: 50px;
  background: #fff;
  text-align: center;
  font-size: 20px;
}

.content1 {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
}

.twocolumnlist {
  columns: 2;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.4s;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 10px;
  border: 1px solid #888;
  width: 40%;
  animation: slideIn 0.4s;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

@keyframes slideIn {
  from { bottom: -300px; opacity: 0; }
  to { bottom: 0; opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   6. COM_QARIS COMPONENT
   ========================================================================== */
#container h1 { font-size: 24px; }
#container h2 { font-size: 22px; }
#container h3 { font-size: 20px; }
#container h4 { font-size: 18px; }
#container p, #container div { font-size: 14px; }

.btnInvite {
  background: linear-gradient(120deg, #00994d, #00733e);
  color: white;
  text-decoration: none;
  display: block;
  text-align: center;
}

.predefined-messages-container {
  margin-bottom: 15px;
}

.predefined-messages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.predefined-message-item {
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.predefined-message-item:hover {
  background-color: #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.predefined-message-item:active {
  background-color: #d0d0d0;
}

.message-list {
  max-height: 80vh;
  overflow-y: auto;
  border-right: 1px solid #ccc;
  padding: 10px;
  background: linear-gradient(to bottom, #f9f9f9, #e9f7e9);
}

.message-list .student-card {
  padding: 15px;
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s, background 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-list .student-card:hover {
  background: #f1ffe6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.student-card h5 {
  margin: 0;
  font-size: 16px;
  color: #2c662d;
}

.student-card p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #888;
}

.message-detail {
  padding: 20px;
  background: linear-gradient(to bottom, #fffefa, #e6ffe6);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-detail h2 {
  font-size: 20px;
  color: #2c662d;
}

.message-detail textarea {
  height: 50px;
}

.message-detail div#message-thread {
  height: 400px;
}

.message-detail textarea, 
.message-detail div#message-thread {
  overflow-y: scroll;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;
  margin-bottom: 10px;
  background: #fefcf6;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#btnPay, #btnPayAgain {
  padding: 3px 15px;
  height: 33px;
  background: linear-gradient(45deg, #CF142B, #CF142B);
}

#btnSend {
  background: linear-gradient(45deg, #28a745, #85e085);
  padding: 10px 15px;
  height: 45px;
}

#btnSend, #btnPay, #btnPayAgain {
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

#btnSend:hover {
  background: linear-gradient(45deg, #218838, #76d776);
}

.no-selection {
  text-align: center;
  color: #888;
  margin-top: 50px;
}


.myravabit-login-card {
  max-width: 380px !important; /* Reduced from 440px */
  width: 100%;
  padding: 24px 20px;          /* Slightly tighter padding */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}
/* ==========================================================================
   7. CONSOLIDATED MEDIA QUERIES
   ========================================================================== */

/* Small devices (576px and up) */
@media (min-width: 576px) {
  .fs-sm-1 { font-size: 2.5rem !important; }
}

/* Mobile Small Adjustments (max-width: 569px) */
@media (max-width: 569px) {
  .hideondesktop { display: block !important; }	
  .hideontablet { display: block !important; }	
  .hideonmobile { display: none !important; }
  .showonmobile { display: block !important; }
}

/* Circle Adjustments (max-width: 600px) */
@media (max-width: 600px) {
  .circle-item {
    width: 60px;
    height: 60px;
    padding: 5px;
  }
  .center-circle h1 { font-size: 20px; }
  .center-circle h2 { font-size: 14px; }
}

/* Medium devices / Tablets (768px and up) */
@media (min-width: 768px) {
  .fs-md-1 { font-size: 2.5rem !important; }
}

/* Tablet range (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hideondesktop { display: block !important; }	
  .hideontablet { display: none !important; }	
  .hideonmobile { display: block !important; }
}

/* Tablet & Mobile Screens (max-width: 768px) */
@media only screen and (max-width: 768px) {
  /* Layout & Buttons */
  .learn { font-size: 18px; }
  .main-btn { padding: 9px; font-size: 20px; }
  
  ol.breadcrumb {
    padding: 1px 3px !important;
    font-size: 10px;
  }
  
  .form-control, .form-select {
    padding: 5px !important;
  }

  /* Headings & Text */
  .rav_home_h1 { color: #0c8b44; font-size: 46px; padding-top: 0; }
  .rav_home_para1 { color: #0c8b44; text-align: center; font-size: 40px; font-weight: 100; }
  .rav_home_para2 { text-align: center; font-size: 18px; }

  #container h1 { font-size: 22px; }
  #container h2 { font-size: 20px; }
  #container h3 { font-size: 18px; }
  #container h4 { font-size: 16px; }

  /* Navigation & Menu */
  .container-header .container-nav nav,
  .container-header .container-nav .container-search {
    margin-top: 0 !important;
  }
  
  div#maximenuck154 { line-height: 15px !important; }
  .container-nav nav { padding: 0 10px !important; }

  .maximenumobiletogglericonck,
  #maximenuck153 .maximenumobiletogglericonck,
  #maximenuck154 .maximenumobiletogglericonck {
    background: #f0f0f0;
    padding: 5px 0 !important;
    padding-top: 10px !important;
    text-align: center !important;
    width: 35px !important;
    height: 35px !important;
    position: relative;
    color: #333;
    border-radius: 3px;
  }

  /* Content Elements */
  .message-box {
    padding: 6px 8px;
    margin: 16px auto 0;
    width: 100%;
  }

  /* Qari Component */
  #detail-content .heading, 
  #detail-content .btnhire { padding: 5px; }
  .message-detail h2 { font-size: 14px; }
  #btnPay { width: 100%; }
  
  .message-list .student-card, 
  .message-list {
    padding: 5px;
    margin-bottom: 3px;
  }
  
  .student-card h5 { font-size: 12px; }
  .student-card p, #user-status { display: none; }

  /* Modals */
  #myModal, .modal { padding-top: 50px; }
  .modal-content { padding: 0; width: 90%; }
}

/* Large devices / Desktops (992px and up) */
@media (min-width: 992px) {
  .fs-lg-1 { font-size: 2.5rem !important; }
}

/* Desktop Screens (1024px and up) */
@media (min-width: 1024px) {
  .hideondesktop { display: none !important; }	
  .hideontablet { display: block !important; }	
  .hideonmobile { display: block !important; }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
  .fs-xl-1 { font-size: 2.5rem !important; }
}