/* 
* Global Gate Healthcare Recruiters
* Common CSS Styles
*/

:root {
  /* Healthcare color palette */
  --primary: #1e88e5;       /* Primary blue */
  --primary-dark: #1565c0;  /* Darker blue */
  --secondary: #26c6da;     /* Teal accent */
  --light-grey: #f5f5f5;    /* Light background */
  --dark: #37474f;          /* Dark text */
  --success: #66bb6a;       /* Green for success */
  --info: #29b6f6;          /* Light blue for info */
  --warning: #ffa726;       /* Orange for warnings */
  --danger: #ef5350;        /* Red for errors/alerts */
  --light: #ffffff;         /* White */
  --dark: #263238;          /* Near black */
}

/* General Styles */
body {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* Can be switched for RTL */
.text-direction {
  text-align: left;
}

/* Bootstrap Overrides */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Modal overrides */
.modal-content {
  background-color: #ffffff;
  color: var(--dark);
}
.modal-header .modal-title {
  color: var(--dark);
}
.modal-body p, .modal-body li, .modal-body blockquote, .modal-body h6 {
  color: var(--dark);
}
html[dir="rtl"] .modal .btn-close {
  margin-left: 0;
}

/* RTL Support Helpers */
.rtl-support {
  /* Default LTR styles */
  direction: ltr;
}

html[dir="rtl"] .rtl-support {
  /* RTL styles when the html dir attribute is set to rtl */
  direction: rtl;
  text-align: right;
}

/* Navbar Styles */
.navbar-nav .nav-link {
  font-weight: 500;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-nav .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Hero Section Styles */
.hero-section {
  padding: 120px 0;
  background: linear-gradient(rgba(30, 136, 229, 0.8), rgba(30, 136, 229, 0.9)), 
              url('../img/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  color: white;
}

/* Card Styles */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Features Card */
.feature-card {
  text-align: center;
  padding: 30px 20px;
}

.feature-card .icon-box {
  width: 80px;
  height: 80px;
  background-color: var(--light-grey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}

.feature-card .icon-box i {
  font-size: 36px;
}

/* Stats Counter */
.stats-counter {
  background-color: var(--primary);
  color: white;
  padding: 60px 0;
}

.stats-counter .counter-box {
  text-align: center;
}

.stats-counter .counter {
  font-size: 2.5rem;
  font-weight: 700;
}

.stats-counter p {
  font-size: 1.1rem;
  margin-top: 10px;
}

/* Team Member Card */
.team-card {
  text-align: center;
}

.team-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.team-card h5 {
  font-weight: 600;
}

.team-card p.role {
  color: var(--primary);
  font-weight: 500;
}

/* Timeline Steps */
.timeline-steps {
  position: relative;
  padding: 20px 0;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 50px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

html[dir="rtl"] .timeline-step-icon {
  margin-right: 0;
  margin-left: 20px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(38, 198, 218, 0.9), rgba(38, 198, 218, 0.8)), 
              url('../img/cta-bg.jpg') no-repeat center center;
  background-size: cover;
  padding: 80px 0;
  color: white;
  text-align: center;
}

/* Forms */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(30, 136, 229, 0.25);
}

/* Footer */
footer {
  background-color: var(--dark);
}

/* Sidebar for dashboards */
.sidebar {
  min-height: calc(100vh - 56px);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: var(--dark);
}

.sidebar .nav-link.active {
  color: var(--primary);
}

/* Custom spacing */
.section-padding {
  padding: 80px 0;
}

.mb-30 {
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .timeline-step-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  html[dir="rtl"] .timeline-step-icon {
    margin-left: 0;
  }
}
