/**
 * Rohit Garg – Responsive Layout Overrides
 * Keep all viewport/device-specific rules in this file.
 * Base visual/design rules remain in style.css.
 */

/* =========================================================
   GLOBAL RESPONSIVE SAFETY
   ========================================================= */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

.container-custom {
  width: 100%;
}

.row {
  --bs-gutter-x: 1.5rem;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

iframe {
  border: 0;
}

/* Prevent long URLs / email addresses from breaking layouts. */
a,
p,
li,
small,
span,
address {
  overflow-wrap: anywhere;
}

/* =========================================================
   LARGE DESKTOP / 4K (>= 1440px)
   ========================================================= */
@media (min-width: 1440px) {
  .container-custom {
    max-width: 1360px;
  }

  .editorial-title {
    font-size: clamp(2.5rem, 3.2vw, 3.5rem);
  }

  .hero-slide-headline {
    font-size: clamp(3.5rem, 4.4vw, 4.75rem);
  }

  .hero-slide-content {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

/* =========================================================
   LAPTOP / DESKTOP (1200px – 1439px)
   ========================================================= */
@media (max-width: 1439.98px) {
  .container-custom {
    max-width: 1200px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .navbar-nav .nav-link {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  .hero-slide-content {
    padding: 4.75rem 0;
  }
}

/* =========================================================
   SMALL LAPTOP / TABLET LANDSCAPE (992px – 1199px)
   ========================================================= */
@media (max-width: 1199.98px) {
  :root {
    --header-height: 76px;
  }

  .container-custom {
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .logo-img {
    max-width: 190px;
    width: auto;
    max-height: 58px;
    object-fit: contain;
  }

  .navbar {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }

  .navbar-nav .nav-link {
    font-size: 0.8rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .site-header .btn-gold {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-padding-lg {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .hero-slider-section,
  .hero-slider-container {
    min-height: 78vh;
  }

  .hero-slide-headline {
    font-size: clamp(2.6rem, 5vw, 3.75rem);
  }

  .hero-slide-text {
    max-width: 580px;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 2.5rem 2rem;
  }

  .book-showcase-box {
    padding: 2.75rem 2rem;
  }
}

/* =========================================================
   TABLET (768px – 991px)
   ========================================================= */
@media (max-width: 991.98px) {
  :root {
    --header-height: 72px;
  }

  .top-info-bar {
    display: none;
  }

  .container-custom {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Bootstrap collapses the desktop navigation here. */
  .site-header .navbar-collapse {
    display: none !important;
  }

  .site-header .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .logo-img {
    width: auto;
    max-width: 190px;
    max-height: 54px;
  }

  .navbar-brand-wordmark {
    min-width: 0;
    max-width: calc(100% - 64px);
  }

  .hero-slider-section,
  .hero-slider-container {
    min-height: 72vh;
  }

  .hero-slide-content {
    padding: 4rem 0 5.5rem;
  }

  .hero-slide-headline {
    font-size: clamp(2.35rem, 6vw, 3.25rem);
  }

  .hero-slide-text {
    font-size: 1.05rem;
    max-width: 680px;
  }

  .hero-slider-nav {
    bottom: 1.5rem;
  }

  .hero-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .editorial-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
  }

  .editorial-lead {
    font-size: 1.05rem;
  }

  .section-padding {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .section-padding-lg {
    padding-top: 5.25rem;
    padding-bottom: 5.25rem;
  }

  .portrait-accent-box {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 100%;
    margin-top: 1rem;
  }

  .editorial-portrait-frame {
    height: auto;
  }

  .editorial-portrait-frame img {
    height: auto;
    aspect-ratio: 3/ 3;
  }
  .editorial-portrait-frame-1 img{
    height: auto;
    aspect-ratio: 2/ 3 !important;
  }
  
  .networking-ecosystem{
    padding: 20px 15px  !important;
  }

  .timeline-track {
    padding-left: 1.75rem;
  }

  .timeline-item::before {
    left: -1.75rem;
  }

  .book-showcase-box {
    padding: 2.25rem 1.75rem;
  }

  .book-cover-frame {
    max-width: 280px;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 2.25rem 1.75rem;
  }

  /* Make Bootstrap tables usable without horizontal page overflow. */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   MOBILE LANDSCAPE / LARGE MOBILE (576px – 767px)
   ========================================================= */
@media (max-width: 767.98px) {
  :root {
    --header-height: 66px;
  }

  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header .navbar {
    min-height: 66px;
  }

  .logo-img {
    max-width: 165px;
    max-height: 48px;
  }

  .navbar-toggler {
    flex: 0 0 auto;
            padding: 3px 4px;
  }

  .navbar-toggler-icon {
    width: 24px;
    height: 24px;
  }

  .book-cover-frame {
    max-width: 264px !important;
    height: 301px !important;
  }

  .me-3{
    margin-right: 1rem !important;
    margin-bottom: 10px !important;
  }

  .offcanvas.mobile-nav-canvas {
    width: min(88vw, 380px) !important;
    max-width: 380px;
  }

  .mobile-nav-canvas .offcanvas-body {
    padding: 1.25rem !important;
  }

  .mobile-nav-canvas .nav-link {
    font-size: 1.05rem;
    padding: 0.7rem 0;
  }

  .hero-slider-section,
  .hero-slider-container {
    min-height: 600px;
    height: auto;
  }

  .hero-slide {
    min-height: 600px;
  }

  .hero-slide-bg {
    background-position: center center;
  }

  .hero-slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(16, 16, 16, 0.82) 0%,
      rgba(16, 16, 16, 0.78) 48%,
      rgba(16, 16, 16, 0.92) 100%
    );
  }

  .hero-slide-content {
            padding: 16px 16px;
  }

  .hero-slide-headline {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1.15rem;
  }

  .hero-slide-text {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .hero-slide-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-slide-actions .btn-gold,
  .hero-slide-actions .btn-outline-gold,
  .hero-slide-actions .btn-dark {
    width: 100%;
    min-height: 48px;
  }

  .hero-slider-nav {
    bottom: 1rem;
  }

  .slider-arrow-btn {
    width: 42px;
    height: 42px;
  }

  .slider-dot {
    width: 28px;
  }

  .slider-dot.active {
    width: 44px;
  }

  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-padding-lg {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-padding-sm {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .editorial-title {
    font-size: clamp(1.8rem, 7vw, 2.35rem);
  }

  .editorial-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  p {
    font-size: 0.96rem;
  }

  .value-card,
  .review-card {
    padding: 1.5rem 1.25rem;
  }

  .value-icon-wrap {
    margin-bottom: 1.15rem;
  }

  .timeline-track {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -1.5rem;
    width: 12px;
    height: 12px;
  }

  .timeline-title {
    font-size: 1.2rem;
  }

  .book-showcase-box {
    padding: 1.75rem 1.25rem;
  }

  .book-cover-frame {
    max-width: min(75vw, 260px);
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 1.75rem 1.25rem;
  }

  .gallery-grid-item {
    aspect-ratio: 4 / 3;
  }

  .back-to-top-btn {
    width: 42px;
    height: 42px;
    right: 1rem;
    bottom: 1rem;
  }

  .site-footer {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }

  .footer-bottom-bar {
    margin-top: 2rem;
    padding-top: 1.25rem;
  }

  /* Form controls stay comfortably tappable on touch devices. */
  input,
  select,
  textarea,
  .form-control,
  .form-select {
    min-height: 46px;
  }

  textarea.form-control,
  textarea {
    min-height: 130px;
  }
}

/* =========================================================
   SMALL MOBILE (<= 575px)
   ========================================================= */
@media (max-width: 575.98px) {
  .container-custom {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .logo-img {
    max-width: 145px;
    max-height: 44px;
  }

  .hero-slider-section,
  .hero-slider-container,
  .hero-slide {
    min-height: 570px;
  }

  .hero-slide-content {
    padding-top: 4.25rem;
    padding-bottom: 5.5rem;
  }

  .hero-slide-headline {
    font-size: clamp(1.8rem, 9.5vw, 2.35rem);
  }

  .hero-slide-text {
    font-size: 0.92rem;
  }

  .hero-slider-nav .container-custom {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .editorial-title {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .section-kicker {
    font-size: 0.68rem;
  }

  .btn-gold,
  .btn-outline-gold,
  .btn-dark {
    width: 260px;
    min-height: 46px;
    padding: 0.72rem 1.1rem;
    font-size: 0.78rem;
  }

  .btn-text-gold {
    font-size: 0.82rem;
  }

  /* .information-box{
    padding: 0 20px ;
  } */

  .accordion-custom .accordion-button {
    font-size: 0.95rem;
    padding: 1rem 0.9rem;
  }

  .accordion-custom .accordion-body {
    padding: 0 0.9rem 1.1rem;
    font-size: 0.9rem;
  }

  .portrait-accent-box {
    padding: 1rem 1.1rem;
  }

  .review-card {
    padding: 1.35rem 1.1rem;
  }

  .review-header {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .stars-rating {
    white-space: nowrap;
  }

  .gallery-grid-item {
    aspect-ratio: 1 / 1;
  }

  .offcanvas.mobile-nav-canvas {
    width: 90vw !important;
  }
}

/* =========================================================
   VERY NARROW PHONES (<= 425px)
   ========================================================= */
@media (max-width: 425px) {
  .logo-img {
    max-width: 132px;
    max-height: 40px;
  }

  .hero-slider-section,
  .hero-slider-container,
  .hero-slide {
    min-height: 550px;
  }

  .hero-slide-content {
    padding-top: 3.75rem;
  }

  .hero-slide-headline {
    font-size: 1.82rem;
  }

  .hero-slide-text {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-padding-lg {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .book-cover-frame {
    max-width: 70vw;
  }

  .contact-info-panel,
  .contact-form-panel,
  .book-showcase-box {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .page-hero-banner {
    background-color: var(--color-primary-black);
    color: #FFFFFF;
    padding: 50px 12px 50px 12px;
  }

  .about-font{
    font-size: 26px ;
  }
 
  .about-p-font-size{
    font-size: 15.36px !important;
  }

}

/* =========================================================
   EXTRA NARROW PHONES (<= 360px)
   ========================================================= */
@media (max-width: 360px) {
  .container-custom {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .logo-img {
    max-width: 120px;
  }

  .hero-slide-headline {
    font-size: 1.68rem;
  }

  .editorial-title {
    font-size: 1.55rem;
  }

  .section-kicker {
    letter-spacing: 0.1em;
  }

  .slider-arrow-btn {
    width: 38px;
    height: 38px;
  }
}

/* =========================================================
   LANDSCAPE PHONES – KEEP HERO USABLE
   ========================================================= */
@media (max-width: 991.98px) and (orientation: landscape) {
  .hero-slider-section,
  .hero-slider-container,
  .hero-slide {
    min-height: 620px;
  }

  .hero-slide-content {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .hero-slide-headline {
    font-size: clamp(1.9rem, 6vw, 2.8rem);
  }

  .hero-slide-text {
    max-width: 75%;
  }
}

/* =========================================================
   TOUCH DEVICES – REMOVE HOVER-ONLY LAYOUT JUMPS
   ========================================================= */
@media (hover: none) and (pointer: coarse) {
  .value-card:hover,
  .review-card:hover,
  .editorial-portrait-frame:hover img,
  .btn-gold:hover,
  .btn-outline-gold:hover,
  .btn-dark:hover {
    transform: none;
  }
}

/* =========================================================
   REDUCED MOTION / ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
