/**
 * CloudSoft Solution - RTL & Urdu Support
 * Bootstrap 5 RTL is loaded separately (bootstrap.rtl.min.css)
 */

:root {
  --urdu-font: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--urdu-font), 'Segoe UI', Tahoma, sans-serif;
}

.rtl-content {
  direction: rtl;
  text-align: right;
  line-height: 1.8;
}
.blog-title
{
        font-size: 13px;
    font-weight: 700;
        line-height: 2.8;

}
.content.rtl-content
{
    line-height: 2.8; 
    font-size: 12px;
}
    .h2, h2 {
        font-size: 1.0rem;
    }
    .h3, h3 {
        font-size: 0.9rem;
    }
.blog_sdesc
{
        font-size: 10px;
    line-height: 2.3;

}
.blog-description
{
    font-size: 10px;
        line-height: 1.8;

}
.about_description
{
    font-size: 15px;
    font-weight: 300;
    line-height: 2.3 !important;
    text-align: justify;
}
.stat-label
{
    font-size: 18px;
    margin-top: 28px;
}
.rtl-content h1, .rtl-content h2, .rtl-content h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Urdu font from Google (optional - add in header if needed) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu&display=swap');

/* ========== Header Top Bar (Email & Phone from Admin) ========== */
.header-top-bar {
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
  color: #eee;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.header-contact-link {
  color: #a0d8ef !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.header-contact-link:hover {
  color: #fff !important;
}

.header-contact-icon {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========== Main Header / Navbar ========== */
.main-header {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.main-header .navbar {
  padding: 0.75rem 0;
}

.main-header .navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.main-header .brand-name {
  color: #fff;
  letter-spacing: 0.02em;
}

.main-header .brand-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.main-header .nav-link {
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.main-header .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.main-header .nav-link-contact {
  background: rgba(255, 255, 255, 0.2);
  margin-right: 0.25rem;
}

.main-header .nav-link-contact:hover {
  background: rgba(255, 255, 255, 0.35);
}

.navbar-nav .nav-link {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ========== Home Page Slider ========== */
.home-slider .carousel-inner {
  border-radius: 0.5rem;
}

.slider-slide {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slider-slide.slider-slide-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .slider-slide {
    height: 280px;
  }
}

.slider-slide-1 {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 40%, #084298 100%);
}

.slider-slide-2 {
  background: linear-gradient(135deg, #198754 0%, #157347 50%, #146c43 100%);
}

.slider-slide-3 {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 50%, #4c2896 100%);
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.slider-caption {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.slider-title {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .slider-title {
    font-size: 1.4rem;
  }
}

.slider-text {
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  opacity: 0.95;
}

.home-slider .carousel-control-prev,
.home-slider .carousel-control-next {
  width: 3rem;
  opacity: 0.9;
}

.home-slider .carousel-control-prev:hover,
.home-slider .carousel-control-next:hover {
  opacity: 1;
}

.home-slider .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.6);
}

.home-slider .carousel-indicators button.active {
  background-color: #fff;
}

.card {
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

footer a:hover {
  text-decoration: underline;
}

/* Form RTL */
.form-control, .form-select {
  text-align: right;
}

/* Admin max width for settings */
.max-w-600 {
  max-width: 600px;
}

/* Content area - allow LTR for mixed content if needed */
.content img {
  max-width: 100%;
  height: auto;
}

/* Industrey-style sections (RTL) */
.industrey-about .lead,
.industrey-stats .stat-label {
  line-height: 1.7;
}

.industrey-stats .stat-number {
  color: #fff;
}

.industrey-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.industrey-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15) !important;
}

.industrey-footer a:hover {
  opacity: 0.9;
  text-decoration: underline;
}
