/* Import Google Font */
body {
  font-family: "Times New Roman", Times, serif;
}
body {
  padding-top: 85px;
}

.logo-img {
  height: 60px;
  max-height: 70px;
  object-fit: contain;
}

.bg-light {
  background-color: aliceblue !important;
}

/* Custom Navbar Styling */
.custom-navbar {
  background-color: aliceblue !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Nav item styling */
.navbar-nav .nav-link,
.dropdown-menu .dropdown-item {
  text-transform: uppercase;
  color: #333 !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.dropdown-menu .dropdown-item:hover {
  color: #007bff !important;
}

.navbar-nav .nav-link.active {
  color: #007bff !important;
  font-weight: 600;
}

/* Brand styling */
.navbar-brand {
  font-weight: bold;
  color: #007bff !important;
  text-transform: uppercase;
}

footer h5 {
  font-weight: 600;
}

footer a:hover {
  color: #007bff !important;
}

/* home page */

/* Banner image styling */
.banner-img {
  height: 80vh;
  object-fit: cover;
}

/* Left-aligned caption box */
.carousel-caption.left-caption {
  left: 10%;
  right: auto;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
  max-width: 480px;
}

/* Icon image */
.banner-icon {
  height: 50px;
}

@media (min-width: 768px) {
  .banner-icon {
    height: 70px;
  }
}

@media (max-width: 576px) {
  .carousel-caption.left-caption {
    left: 5%;
    right: 5%;
    padding: 12px;
  }

  .carousel-caption h2 {
    font-size: 1.25rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
}

.custom-banner {
  background: linear-gradient(90deg, #4a90e2, #ff7f7f);
  color: white;
  font-weight: bold;
  padding: 15px 25px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.banner-text {
  font-size: 1.2rem;
}

.banner-arrow {
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-text {
    font-size: 1rem;
  }
  .banner-arrow {
    font-size: 1.3rem;
  }
  .custom-banner {
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {
  .custom-banner {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
}

/* Make the whole hero area 80vh */
.hero,
.hero .carousel-inner,
.hero .carousel-item {
  height: 90vh;
}

/* Image fills width & height, no black bars */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills, so no side gaps */
}

/* Center overlay content */
.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center; /* Vertically center */
  justify-content: flex-start; /* Align to left */
  padding-left: 8%; /* Add some spacing from the left */
  text-align: left; /* Left-align text */
}

.banner-content {
  max-width: 600px;
  border-radius: 12px;
  text-align: left;
}

.stats-box {
  background: linear-gradient(90deg, #d44e79, #8b4ec4, #4c68d7);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 10px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icon-box {
  background: white;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.stats-box h4 {
  font-size: 1.8rem;
  margin-top: 10px;
}

.stats-box p {
  font-size: 0.9rem;
  font-weight: 500;
}

.categories h2 {
  font-weight: 700;
  font-size: 1.8rem;
}

.category-card {
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 20px 10px;
  display: block;
  transition: transform 0.3s ease, background 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  background: #222;
}

.category-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.about-us-section {
  background: #fff;
  font-size: x-large;
}

.about-img-container {
  border-radius: 30% 0 30% 0; /* Stylish shape */
  overflow: hidden;
  display: inline-block;
  height: 450px;
}

.about-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-img-container img:hover {
  transform: scale(1.05);
}

.about-us-section h1 {
  font-size: 2.2rem;
  color: #0b0b2a;
}

.about-us-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.btn-primary {
  background-color: #0066ff;
  border: none;
  padding: 10px 25px;
  font-size: 1rem;
  border-radius: 6px;
}

.btn-primary:hover {
  background-color: #004ccc;
}

/* Mobile Optimization */
@media (max-width: 767px) {
  .about-us-section h1 {
    font-size: 1.6rem;
  }
  .about-img-container {
    border-radius: 15px;
  }
}

.features-img-container {
  max-width: 450px;
  margin: auto;
}

.features-img {
  width: 100%;
  height: auto;
  border-radius: 150px 0 150px 0; /* Rounded corner shape */
  object-fit: cover;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.1);
}

.features ul li {
  padding: 2px 0;
  font-size: 1rem;
  color: #333;
}

.features h2 {
  font-size: 2rem;
  color: #0b0b2a;
}

/* Responsive */
@media (max-width: 768px) {
  .features-img {
    border-radius: 100px 0 100px 0;
  }
  .features h2 {
    font-size: 1.5rem;
  }
}

.custom-card {
  width: 180px;
  height: 260px; /* Reduced height */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1); /* Softer border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Professional shadow */
  padding-bottom: 10px;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Slightly stronger on hover */
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Top Section (75% height, image fully covers) */
.custom-card .card-top {
  height: 75%;
  width: 100%;
}

.custom-card .card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fully cover the top section */
  display: block;
}

/* Bottom Section (25%) */
.custom-card .card-bottom {
  height: 25%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.custom-card .card-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
  margin-top: 6px;
  font-weight: 900;
  color: #000000;
}

.custom-card .btn-sm {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .custom-card {
    width: 200px;
    height: 220px;
  }
}

@media (max-width: 576px) {
  .custom-card {
    width: 130px;
    height: 200px;
  }
}

.section-header {
  margin-bottom: 10px; /* Reduce overall bottom space */
}

.section-heading {
  background: linear-gradient(90deg, #4a90e2, #ff8c94);
  color: #fff;
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  font-size: 1.5rem;
  margin: 0; /* Removes default margin of h2 */
}

.footer {
  background-color: #1c1c1c;
  color: #bbb;
  padding-top: 40px;
}

.footer h5 {
  color: #fff;
  font-size: 18px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0d6efd;
}

.social-icons a {
  display: inline-block;
  color: #bbb;
  font-size: 18px;
  background-color: #2c2c2c;
  padding: 8px 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-right: 5px;
}

.social-icons a:hover {
  background-color: #0d6efd;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 10px;
  font-size: 14px;
  color: #aaa;
}

/* --- Mobile Responsive Adjustments --- */
@media (max-width: 768px) {
  .footer .row {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
    margin-top: 10px;
  }

  .footer h5 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer p,
  .footer a {
    font-size: 14px;
  }

  .footer-links li {
    display: inline-block;
    margin: 5px 10px;
  }
}

@media (max-width: 480px) {
  .social-icons a {
    font-size: 16px;
    padding: 6px 8px;
  }

  .footer {
    padding-top: 30px;
  }

  .footer-bottom p {
    font-size: 13px;
  }
}

.trading-books-section {
  background-color: #f8faff;
}

.book-card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.book-card img {
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.book-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.book-card .btn {
  font-size: 0.9rem;
  border-radius: 8px;
}

@media (max-width: 576px) {
  .book-card img {
    height: 200px;
  }
  .book-card .card-title {
    font-size: 0.95rem;
  }
  .book-card .btn {
    font-size: 0.85rem;
  }
}
.gradient-heading {
  background: linear-gradient(90deg, #ff4b2b, #1e90ff);
  color: white;
  width: 90vw;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}

.pc-section {
  background-color: #f8faff;
}

.pc-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pc-card img {
  height: 200px;
  object-fit: cover;
}

.pc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.pc-card .btn {
  font-size: 14px;
  padding: 6px 12px;
}

@media (max-width: 992px) {
  .pc-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .pc-card img {
    height: 160px;
  }
}

@media (max-width: 576px) {
  .pc-card img {
    height: 150px;
  }
}

/* AI Hero */
.ai-hero {
  background: #eef9ff; /* light bluish like your screenshot */
}

.ai-title {
  font-weight: 800;
  line-height: 1.05;
  /* scales from mobile to desktop */
  font-size: 50px;
}

.ai-sub {
  font-size: 1.125rem;
  color: #0f172a;
}

.ai-cta {
  border-radius: 10px;
}

.ai-img-wrapper {
  max-width: 560px;
  background: #000; /* optional */
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-img-wrapper img.ai-img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Show full image */
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .ai-title {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
  .ai-img-wrapper {
    max-width: 100%;
    border-radius: 18px;
  }
}

@media (max-width: 576px) {
  .ai-sub {
    font-size: 1rem;
  }
  .ai-cta {
    width: 100%;
  }
}
