/* Contact Page Hero Section */
.contact-hero-section {
  background: #fff;
  padding: 60px 0 80px 0;
}
.contact-form-box {
  background: #2d4e54;
  color: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.contact-form-box .form-control {
  background: #2d4e54;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0.5rem;
}
.contact-form-box .form-control:focus {
  background: #244046;
  color: #fff;
  border-color: #b6d4fe;
  box-shadow: 0 0 0 2px #b6d4fe44;
}
.contact-form-box .btn-outline-light {
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.contact-form-box .btn-outline-light:hover {
  background: #fff;
  color: #2d4e54;
}
.contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #2d4e54;
  font-size: 1.35rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.contact-social-icon:hover {
  background: #2d4e54;
  color: #fff;
}
/* Semi-transparent navbar background for landing page */
.navbar-home.navbar-transparent {
  background: rgba(20, 20, 20, 0.35) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: background 0.3s;
}

/* ===== Portfolio title (match screenshot style) ===== */
.portfolio-title{
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: #111;
}

/* ===== Large tile cards ===== */
.prop-card{
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
  background: #000;
  transition: transform .35s ease, box-shadow .35s ease;
}

.prop-img{
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;          /* keeps both tiles the same height */
  object-fit: cover;
  transform: scale(1.001);      /* helps avoid sub-pixel gaps */
  transition: transform .45s ease;
  display: block;
}

/* Subtle bottom gradient so text reads well */
.prop-card::after{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* Badge in the top-right (like FOR SALE) */
.prop-badge{
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: #1f6f8b;          /* tweak to taste */
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: .35rem .6rem;
  border-radius: .35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* Title at bottom-left over the image */
.prop-caption{
  position: absolute;
  left: 20px; bottom: 16px; right: 20px;
  z-index: 2;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: .02em;
  text-shadow: 0 6px 24px rgba(0,0,0,.45);
}

/* Hover polish */
.prop-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.prop-card:hover .prop-img{
  transform: scale(1.04);
}

/* Spacing if you want a bit more breathing room under the section */
.books-portfolio{ padding-top: 72px; padding-bottom: 72px; }

/* Mobile tweaks */
@media (max-width: 575.98px){
  .prop-badge{ top: 10px; right: 10px; }
  .prop-caption{ left: 14px; right: 14px; bottom: 12px; }
}
/* Services/Books Section */
.services-section {
  background: #fff;
  padding: 60px 0;
}
.book-card {
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fafbfc;
}
.book-card:hover {
  box-shadow: 0 16px 40px rgba(0,85,170,0.13);
  transform: translateY(-6px) scale(1.03);
}
.book-card .card-img-top {
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.book-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0055aa;
}
.book-card .card-text {
  font-size: 0.98rem;
  color: #666;
}
/* Contact Section Styles */
.contact-section {
  min-height: 60vh;
  background: url('../images/hero-bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.contact-card {
  background: rgba(255,255,255,0.85);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 2.5rem 2rem;
}
.contact-card h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0055aa;
  margin-bottom: 1.5rem;
}
.contact-card .form-control {
  border-radius: 1rem;
  font-size: 1.1rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid #dbeafe;
  background: #f7f9fc;
}
.contact-card .form-control:focus {
  border-color: #0055aa;
  box-shadow: 0 0 0 2px #b6d4fe44;
}
.contact-card .btn-primary {
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.8rem 0;
  background: #0055aa;
  border: none;
  box-shadow: 0 4px 16px rgba(0,85,170,0.08);
  transition: background 0.2s;
}
.contact-card .btn-primary:hover {
  background: #003366;
}
/* Fullscreen background video styles */
/* Fullscreen background video */
.bg-video-wrapper{
  position: fixed;
  inset: 0;               /* top/right/bottom/left: 0 */
 
  z-index: 0;             /* <-- keep >= 0 so it sits above the body bg */8
  pointer-events: none;   /* clicks pass through */
  overflow: hidden;
}
#bg-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  z-index: 0;             /* same stacking context as wrapper */
}
.bg-video-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;             /* overlay above the video */
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.25));
}

/* Make content sit above the video layer */
nav, main, footer{ position: relative; z-index: 2; }

:root {
  --gray: #c7c7c8;
  --soft-pink: #ffeef8;
  --soft-purple: #f0ecfc;
  --soft-gray: #f7f9fc;
  --soft-footer: #141517;
  --text-color: #333;
  --primary: #0055aa;
}

/* Base */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--soft-gray);
  color: var(--text-color);
}


.hero-section {
  background: transparent !important;
  color: white;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh;
  width: 100vw;
  position: relative;
}

/* Navbar */
.soft-navbar {
  background-color: var(--gray);
}
/* Default: black text for navbar links */
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
  color: #111 !important;
  transition: color 0.2s;
}

/* White text for landing page navbar */
.navbar-home .navbar-nav .nav-link,
.navbar-home .navbar-nav .dropdown-toggle,
.navbar-home .navbar-brand span {
  color: #fff !important;
}

/* Optionally, make the brand text white only on home */
.navbar-home .navbar-brand span {
  color: #fff !important;
}
/* About */
.about-section {
  background-color: white;
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* CTA */
.cta-section {
  background-color: #a19f9f;
}

/* Footer */
.soft-footer {
  background-color: var(--soft-footer);
  color: #fff;
}
/* Stylish heading for about sections */
.stylish-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #222;
  letter-spacing: 0.5px;
  text-transform: capitalize;
}
.hover-shadow:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stylish-heading {
  font-family: 'Raleway', sans-serif;
  letter-spacing: 1px;
}
/* Moving Background */
.moving-bg {
  background: url('/static/images/bg-healomic.png') repeat;
  background-size: 300px auto;
  animation: scrollBackground 60s linear infinite;
}

@keyframes scrollBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 1000px 1000px;
  }
}

/* Card Hover Effect */
.hover-effect:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Optional spacing & smoothness */
section {
  scroll-margin-top: 80px;
}
.hero-visual {
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hero-visual img { width:100%; height:100%; object-fit:cover; }
.hero-overlay { background: rgba(176, 104, 104, 0.6); }

.program-card:hover {
  transform: translateY(-5px);
  transition: all 0.3s;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* Mega dropdown container */
.mega-menu {
  width: 700px;
  left: 0;
  right: 0;
  top: 100%;
  margin: auto;
  background: #fff;
  display: none;
  position: absolute;
  z-index: 1000;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mega-dropdown:hover .mega-menu {
  display: block;
}
.about-section {
  background: #ffffff;
}

.about-section h2 {
  font-size: 2.2rem;
}

.about-section p {
  font-size: 1.1rem;
  color: #333;
}

.about-section small {
  font-size: 0.95rem;
}


.partner-carousel {
  overflow: hidden;
  white-space: nowrap;
  animation: scrollPartners 25s linear infinite;
}

.partner-carousel img {
  height: 80px;
  max-width: 400px;
  object-fit: contain;
  display: inline-block;
}

@keyframes scrollPartners {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.partner-track {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.partner-slide {
  display: inline-flex;
  animation: scrollLeft 20s linear infinite;
  position: relative;
}

.partner-logo-small {
  height: 80px;
  width: auto;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.partner-slide::after {
  content: "";
  display: inline-flex;
  width: 100%;
}

.partner-slide > img {
  /* Your logo styles */
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Style for dropdown items */
.mega-menu .dropdown-item {
  font-size: 0.95rem;
  color: #333;
  padding: 8px 0;
  transition: 0.3s;
}

.mega-menu .dropdown-item:hover {
  color: #007bff;
  background: none;
  font-weight: 500;
}

.mega-menu .dropdown-header {
  font-size: 1rem;
  margin-bottom: 8px;
}


/* Horizontal scrolling for recommended */
.scrolling-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
}
.scrolling-wrapper::-webkit-scrollbar {
  display: none;
}


.card img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  object-fit: cover;
  height: 220px;
}


/* Book Covers: Force same height, crop to fit */
.small-cover {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Smaller card style */
.card {
  width: 160px;  /* smaller width */
  flex-shrink: 0;
  border-radius: 10px;
}

.scrolling-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
}
.scrolling-wrapper::-webkit-scrollbar {
  display: none;
}
.comic-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.comic-card:hover {
  transform: translateY(-5px);
}

.comic-card .comic-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.comic-card .comic-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comic-card .comic-desc {
  font-size: 12px;
  color: #666;
  height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Size variants */
.comic-card.recommended {
  width: 160px;
}

.comic-card.category {
  height: 100%;
}

.news-card {
  min-width: 320px;
  max-width: 420px;
  min-height: 520px;
  border-radius: 18px;
}
.news-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
  @media (max-width: 991px) {
  .news-card { min-width: 100%; }
  .news-img { height: 180px; }
}

/* ...existing code... */
.stylish-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: #0055aa;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.program-card {
  transition: box-shadow 0.3s, transform 0.3s;
  border-radius: 1.5rem;
  border: none;
}
.program-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(-8px) scale(1.03);
}

.hero-content h1, .cta-contact h2 {
  text-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

/* Ensure navbar and main content are above video */
nav.navbar, main, footer, .hero-visual, .hero-content {
  position: relative;
  z-index: 2;
}

.btn-primary, .btn-outline-primary {
  border-radius: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.shadow-lg {
  box-shadow: 0 8px 32px rgba(0,0,0,0.18)!important;
}
/* ...existing code... */

/* ...existing code... */
.stylish-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: #0055aa;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-card {
  transition: box-shadow 0.3s, transform 0.3s;
}
.team-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transform: translateY(-8px) scale(1.04);
}

.shadow-lg {
  box-shadow: 0 8px 32px rgba(0,0,0,0.18)!important;
}

.rounded-4 {
  border-radius: 1.5rem !important;
}
/* ...existing code... */

/* ...existing code... */
.news-card {
  border-radius: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
  border: none;
  background: #fff;
}
.news-card:hover {
  box-shadow: 0 12px 32px rgba(0,85,170,0.10);
  transform: translateY(-8px) scale(1.03);
}
.news-img {
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.way-forward-section {
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.hover-effect:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transition: all 0.3s;
}
.typewriter-title {
  display: inline-block;   
  font-family: 'Patrick Hand', cursive;
  text-align: center;
  font-size: 3.5rem;
  font-weight: normal;
  color: #0077cc;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid #0077cc;
  width: 0;
  animation:
    typing 2.5s steps(24, end) forwards,
    blink-caret 0.75s step-end 2.5s 3,
    stop-caret 0s ease 4.75s forwards;
}

@keyframes typing {
  from { width: 0 }
  to { width: 16ch } /* Match your title length */
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #0055aa; }
}

@keyframes stop-caret {
  to { border-right: none; }
}
.feature-grid {
  /* remove manual gap if using Bootstrap g-3 */
}

/* Base tile styling */
.feature-tile {
  position: relative;
  display: block;
  width: 100%;
  /* smaller aspect ratio to shrink height */
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-tile:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

/* dark gradient overlay so text is readable */
.feature-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* caption at bottom-left */
.tile-caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(.85rem, 1.3vw, 1.2rem);
  text-shadow: 0 3px 12px rgba(0,0,0,.45);
  user-select: none;
}

/* Mobile tweaks */
@media (max-width: 991.98px){
  .feature-tile { aspect-ratio: 16/11; }
}

/* Background images for each tile */
.tile-palm {
  background-image: url("/static/images/connect.jpeg");
}
.tile-connect {
  background-image: url("/static/images/connect.jpeg");
}
/* Make the image bigger & styled */
.drsara-photo {
  max-width: 85%;           /* larger image */
  border-radius: 1rem;      /* rounded corners */
  background: #fff;
  padding: 18px;
}

/* Use a different font for heading (Playfair Display example) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

.drsara-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #222;
}

/* Body text font (Patrick Hand example) */
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

.drsara-text {
  font-family: 'Times New Roman', cursive;
  font-size: 1.15rem;
  color: #333;
}

/* Quote style */
.drsara-quote {
  font-family: 'Times New Roman', cursive;
  font-size: 1.3rem;
  color: #555;
  border-left: 4px solid #ccc;
  padding-left: 1rem;
}
/* Services/Books Section */
/* Book grid cards */
.book-card {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; /* equal height */
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,85,170,0.15);
}

/* Force all book covers same size */
.book-img {
  height: 320px;         /* same height for all */
  width: 100%;
  object-fit: cover;     /* crop to fit */
  border-radius: 0.8rem;
}

/* Consistent body spacing */
.book-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
