/* =============================================
   DOSPDP - New UI Main page CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --green-dark: #1a3017;
  --green-panel: #1e3a1b;
  --army-green: #2d5a27;
  --army-mid: #3d7a35;
  --army-light: #5a9e50;
  --gold: #c9a84c;
  --gold-light: #e8c96e;
  --cream: #f8f5ee;
  --off-white: #f2efe7;
  --text-dark: #1a2a18;
  --text-mid: #3a4f38;
  --text-soft: #607a5e;
  --white: #ffffff;
  --card-bg: #ffffff;
  --shadow-sm: 0 2px 12px rgba(45, 90, 39, 0.08);
  --shadow-md: 0 6px 30px rgba(45, 90, 39, 0.12);
  --shadow-lg: 0 16px 60px rgba(45, 90, 39, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Preloader ---------- */
#js-preloader {
  position: fixed;
  inset: 0;
  background: var(--army-green);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#js-preloader .preloader-inner {
  display: flex;
  gap: 10px;
  align-items: center;
}

#js-preloader .dot,
#js-preloader .dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}

#js-preloader .dots {
  display: flex;
  gap: 8px;
}

#js-preloader .dots span:nth-child(2) {
  animation-delay: 0.2s;
}

#js-preloader .dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8)
  }

  50% {
    opacity: 1;
    transform: scale(1)
  }
}

/* ---------- Header / Navbar ---------- */
.header-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--green-dark);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  padding: 0;
}

.header-area .main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 68px;
}

/* .header-area .logo {
  text-decoration: none; display: flex; align-items: center; gap: 12px;
} */
.header-area .logo img {
  height: 44px;
  width: 110px;
  border-radius: 5%;
  /* border: 2px solid var(--gold); */
  /* object-fit: cover; */
}

/* .header-area .logo h4 {
  margin: 0; color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: 1px;
} */
.header-area .nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.header-area .nav li a {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.header-area .nav li a:hover,
.header-area .nav li a.active {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
}

.header-area .main-blue-button a {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-size: 13px !important;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
  transition: var(--transition);
}

.header-area .main-blue-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201, 168, 76, 0.55);
  background: rgba(0, 0, 0, 0) !important;
}

/* ---------- Hero / Banner ---------- */
.main-banner {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(29, 60, 25, 0.92) 0%, rgba(45, 90, 39, 0.80) 60%, rgba(201, 168, 76, 0.15) 100%),
    url('assets/images/banner-right-image.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.main-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.main-banner .left-content {
  padding: 20px 0;
}

.main-banner .info-stat {
  background-color: rgba(240, 248, 255, 0.45);
  border: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 10px 10px;
  text-align: center;
  margin-bottom: 16px;
  transition: var(--transition);
}

/* .main-banner .info-stat:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
} */

.main-banner .info-stat h6 {

  color: var(--green-dark);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.main-banner .info-stat h4 {
  color: #063400;
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.main-banner h2 {
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 24px 0 32px;
}

.main-banner h2 em {
  color: var(--gold-light);
  font-style: normal;
}

.main-banner .right-image img {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

/* ---------- Section Heading ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h6 {
  display: inline-block;
  background: linear-gradient(135deg, var(--army-green), var(--army-mid));
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.section-heading h2 span {
  color: var(--army-green);
}

.section-heading h2 em {
  color: var(--gold);
  font-style: normal;
}

/* ---------- About Section ---------- */
.about-us.section {
  padding: 90px 0;
  background: var(--white);
}

.about-us .left-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-us .about-item {
  background: var(--cream);
  border: 1px solid rgba(45, 90, 39, 0.1);
  border-left: 4px solid var(--army-green);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.about-us .about-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.about-us .about-item h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--army-green);
  margin-bottom: 2px;
}

.about-us .about-item h6 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin: 0;
}

.about-us p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.8;
  margin: 24px 0 28px;
}

/* ---------- Strategy / Features ---------- */
.features.section {
  padding: 90px 0;
  background: var(--off-white);
}

.features-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(45, 90, 39, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.features-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--army-light);
}

.features-item .number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.first-feature .number {
  background: linear-gradient(135deg, var(--army-green), var(--army-mid));
}

.second-feature .number {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.features-item .number h6 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.second-feature .number h6 {
  color: var(--text-dark);
}

.features-item h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.features-item .line-dec {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--army-green), var(--army-light));
  margin: 0 auto 14px;
  border-radius: 2px;
}

.features-item p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Free SSB Training ---------- */
#free-ssb-training {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--army-green) 0%, var(--army-mid) 100%);
  position: relative;
  overflow: hidden;
}

#free-ssb-training::before {
  content: '★';
  position: absolute;
  font-size: 300px;
  opacity: 0.03;
  color: var(--gold);
  top: -60px;
  right: -40px;
  pointer-events: none;
}

#free-ssb-training .section-heading h2 {
  color: var(--white);
}

#free-ssb-training .section-heading h3 {
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 400;
}

#free-ssb-training .section-heading h6 {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.free .service-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 680px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
}

.free .service-item p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ---------- Mock Tests Section ---------- */
.our-services.section {
  padding: 90px 0;
  background: var(--white);
}

.service-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 14px;
  border: 1px solid rgba(45, 90, 39, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--army-light);
}

.service-item .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--army-green), var(--army-mid));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-item .icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-item .right-content h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-item p {
  font-size: 13px;
  color: var(--text-soft);
}

.service-item p strong {
  color: var(--army-green);
}

/* ---------- Buttons ---------- */
.main-green-button a,
.btn-ravil {
  display: inline-block;
  background: linear-gradient(135deg, var(--army-green), var(--army-mid));
  color: var(--white) !important;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(45, 90, 39, 0.3);
}

.main-green-button a:hover,
.btn-ravil:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 90, 39, 0.45);
  /* color: var(--white) !important; */
  text-decoration: none;
}

.btn-ravil {
  margin: 6px;
}

.main-green-button {
  margin-top: 10px;
}

/* ---------- Announcement / Badge ---------- */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(240, 248, 255, 0.45);
  border: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.free-badge span {
  color: var(--gold);
}

/* ---------- Footer ---------- */
.footer-basic {
  background: var(--text-dark);
  padding: 50px 20px 30px;
}

.footer-basic footer {
  text-align: center;
}

.footer-basic .social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-basic .social a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}

.footer-basic .social a:hover {
  background: var(--army-mid);
  border-color: var(--army-light);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-basic .list-inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 0;
}

.footer-basic .list-inline-item a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  transition: var(--transition);
}

.footer-basic .list-inline-item a:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}

.footer-basic .copyright {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  margin: 0;
}

/* ---------- Mock Tests Card Grid ---------- */
.mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.mock-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 1px solid rgba(45, 90, 39, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mock-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--army-light);
}

.mock-card .mock-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--army-green) 0%, var(--army-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mock-card .mock-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mock-card h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.mock-card .mock-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 14px;
  line-height: 1.5;
}

.mock-card .test-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  border: 1px solid rgba(45, 90, 39, 0.12);
  color: var(--army-green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.mock-card .test-count strong {
  color: var(--army-green);
}

.mock-card .main-green-button {
  margin-top: auto;
}

/* ---------- Stats Banner ---------- */
.stats-bar {
  background: linear-gradient(90deg, var(--army-green), var(--army-mid), var(--army-light));
  padding: 36px 0;
}

.stats-bar .stat-item {
  text-align: center;
}

.stats-bar .stat-item h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stats-bar .stat-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 4px 0 0;
}

/* ---------- Menu Trigger (mobile) ---------- */
.menu-trigger {
  display: none;
  cursor: pointer;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

@media (max-width: 991px) {
  .menu-trigger {
    display: block;
  }

  .header-area .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(29, 60, 25, 0.98);
    padding: 10px 0 20px;
    backdrop-filter: blur(12px);
  }

  .header-area .nav.active {
    display: flex;
  }

  .header-area .nav li a {
    padding: 12px 24px;
    border-radius: 0;
  }

  .main-banner {
    padding: 120px 0 60px;
  }

  .main-banner h2 {
    font-size: 28px;
  }

  .section-heading h2 {
    font-size: 28px;
  }
}

/* ---------- Utility Helpers ---------- */
.section {
  padding: 90px 0;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}