.logo-section h3 {
  font-family: "URW Gothic";
  color: #d4bf9a;
  font-size: 14px;
  line-height: 24px;
  text-shadow: #000 1px 1px 2px;
  margin-top: 30px;
}

.text-center {
  width: 100%;
  margin-bottom: 20px;
}

.featured-section {
  position: relative;
  overflow: hidden;
  background: url(../img/sec5_bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 40px;
  padding-bottom: 70px;
}

.text-body {
  font-family: "Courgette";
  color: #e1b470 !important;
  margin: 30px auto;
  text-align: center;
}

.featured-section h3 {
  color: #fffcd9;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  margin-bottom: 10px;
}

.newsletter-section {
  height: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: url(../img/sec4_bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
}

.creative-fullpage--slider {
  margin-top: 40px;
}

.creative-fullpage--slider .slider-inner {
  height: 740px;
  position: relative;
}

.row.align-items-center {
  flex-direction: column-reverse;
  align-items: center;
}

.intro-section {
  background: url(../img/sec2_bg.webp) no-repeat;
  background-size: cover;
}

.intro-section h3 {
  color: #fffcd9;
  font-size: 14px;
  line-height: 26px;
}

h2.text_wrap1 {
  position: relative;
  font-size: 20px;
  font-family: "URW Gothic Demi";
  color: #ddb87e !important;
  margin: 30px auto 20px auto;
  flex: 1;
  word-break: break-word;
}

.swiper-slide .slider-inner .swiper-content p.disc {
  width: 100%;
  margin-top: 10px;
  line-height: 22px;
  font-size: 14px;
  text-align: center;
  color: #060000;
  font-family: "URW Gothic";
}

aside {
  width: 264px;
  height: 156px;
}

.slider-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  margin: auto 10px;
}

.slider-content .disc {
  text-align: center;
}

#timeline {
  height: 48vh;
}

img.caption {
  height: 160px;
  margin-top: 10px;
  width: auto;
}

#issues li h3 {
  color: #fffcd9;
  text-align: center;
  text-shadow: #000 1px 1px 2px;
  margin-top: 10px;
}
#issues li p {
  font-size: 14px;
  margin: 10px 20px;
  font-weight: normal;
  line-height: 22px;
  text-shadow: #000 1px 1px 2px;
}

.vid-maha {
  display: flex;
  flex-direction: column; /* Default: stacked layout for small screens */
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 900px;
  margin: auto;
  margin-top: 40px;
}

/* Video Styling */
.video-container {
  width: 100%;
  max-width: 600px; /* Adjust max-width */
}

/* Ensure the video is responsive */
.video_res {
  display: inline-block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 3px #efcfa4 solid;
  border-radius: 30px;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Text Container */
.text-container {
  padding: 10px;
}

.text-container .text-body {
  margin-top: 12px;
}

.text-container-float {
  width: 100%;
  padding-left: 0;
  margin-top: -40px;
  clear: both; 
}

/* Ensure text continues below the video on large screens */
.full-width-text {
  width: 100%;
}

.tantra-logo {
  max-height: 30vh;
  width: auto;
  max-width: 80%;
}

p.text_wrap {
  font-size: clamp(16px, 4vw, 28px);
  font-family: Khaleefa;
  color: #e1b470 !important;
  z-index: 9;
  position: relative;
  text-align: center;
  margin-top: 15px;
  line-height: 1.3;
  padding: 0 10px;
}

/* Adjust text_wrap margin for mobile screens */
@media (max-width: 480px) {
  .logo{
    min-height: 20vh;
    margin-top: 10px;
  }
  p.text_wrap {
    margin-top: 5px;
    font-size: 12px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .logo{
    min-height: 35vh;
  }
  p.text_wrap {
    font-size: 20px;
    margin-top: -4px;
  }
}

.sm-btn-second {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  height: 50px;
  align-items: center;
}

#sm-next,
#sm-prev {
  width: 80px;
  height: 60px;
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0; /* Prevents icons from shrinking */
  display: flex;
  align-items: center;
}

#sm-next {
  position: absolute;
  top: 50%;
  right: 0%;
  background-image: url("../img/slider/right.png");
}
#sm-prev {
  position: absolute;
  top: 50%;
  left: 0%;
  background-image: url("../img/slider/left.png");
}

.head-icon {
  display: flex;
  align-items: center; /* Ensures vertical centering */
  justify-content: center; /* Centers the content horizontally */
  gap: 10px;
  flex-wrap: wrap; /* Allows wrapping if needed */
  text-align: center;
}

.head-icon h1 {
  flex-grow: 1;
}

.container {
  height: 100%;
}

.title-area {
  width: 100%;
  text-align: center;
}

.toggle-switch {
  position: absolute;
  top: 75px;
  right: 5%;
}

.toggle-container {
  max-height: 30px;
  font-size: 14px;
  display: flex;
  align-items: center;
  border: 2px solid #D09F5F;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: -4px -4px 8px 0px #89898940 inset, 0px 4px 4px 0px #00000085 inset;
}
.toggle-option {
  flex: 1;
  width: 70px;
  display: flex;
  justify-content: center;
  font-weight: 400;
  color: #D09F5F;
  padding: 5px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}
.toggle-option.active {
  color: #000;
  box-shadow: -4px -4px 8px 0px #89898940 inset, 0px 4px 4px 0px #00000085 inset;
 background-color: #D09F5F;
}

@media (max-width: 480px) {
  aside {
    width: 324px;
    height: 192px;
  }
  img.caption {
    height: 200px;
  }
  .video_res {
    width: 65%;
  }
  .text-container-float {
    margin-top: -45px;
  }
  .tantra-logo {
    max-height: 10vh;
  }
  p.text_wrap {
    font-size: 14px;
  }
  #section1 {
    margin-top: -30px;
  }
  .creative-fullpage--slider .swiper-container-h .swiper-button-next,
  .creative-fullpage--slider .swiper-container-h .swiper-button-prev {
    top: 28.5% !important;
  }
  .col-md-2.divider {
    display: none;
  }
  .col-md-5.down {
    margin-top: -100px;
  }
  .newsletter-section {
    height: 96%;
  }
}

@media (min-width: 481px) and (max-width: 575px) {
  aside {
    width: 444px;
    height: 262px;
  }
  #timeline {
    height: 50vh;
  }
  img.caption {
    height: 240px;
  }
  .video_res {
    width: 65%;
  }
  .tantra-logo {
    max-height: 20vh;
  }
  .logo {
    margin-top: -30px;
  }
  p.text_wrap {
    font-size: 18px;
  }
  #section1 {
    margin-top: -20px;
  }
  .creative-fullpage--slider .swiper-container-h .swiper-button-next,
  .creative-fullpage--slider .swiper-container-h .swiper-button-prev {
    top: 28.5% !important;
  }
  .col-md-2.divider {
    display: none;
  }
  .col-md-5.down {
    margin-top: -100px;
  }
  .newsletter-section {
    height: 100%;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .logo-section h3 {
    font-size: 16px;
    line-height: 28px;
  }
  .featured-section h3,
  .swiper-slide .slider-inner .swiper-content p.disc {
    font-size: 18px;
    line-height: 28px;
    text-align: center;
  }
  .creative-fullpage--slider .slider-inner {
    height: 760px;
    position: relative;
  }
  .row.align-items-center {
    flex-direction: column-reverse;
    align-items: center;
  }
  .intro-section h3 {
    font-size: 16px;
    line-height: 28px;
  }
  aside {
    width: 510px;
    height: 300px;
  }
  #timeline {
    height: 50vh;
  }
  img.caption {
    height: 235px;
  }
  h2.text_wrap1 {
    font-size: 22px;
  }
  .video_res {
    width: 65%;
  }
  .tantra-logo {
    max-height: 22vh;
  }
  .logo {
    margin-top: -30px;
  }
  #section1 {
    margin-top: -20px;
  }
  .creative-fullpage--slider .swiper-container-h .swiper-button-next,
  .creative-fullpage--slider .swiper-container-h .swiper-button-prev {
    top: 28.5% !important;
  }
  .col-md-2.divider {
    display: none;
  }
  .col-md-5.down {
    margin-top: -100px;
  }
  .newsletter-section {
    height: 100%;
  }
}

@media (min-width: 768px) {
  .logo-section h3 {
    font-size: 18px;
    line-height: 28px;
  }
  .featured-section h3 {
    font-size: 18px;
    line-height: 28px;
    text-align: left;
  }
  .swiper-slide .slider-inner .swiper-content p.disc {
    font-size: 20px;
    line-height: 28px;
    text-align: left;
  }
  .featured-section .head-1 {
    margin-top: 0px;
  }
  .text-center {
    width: 100%;
    margin-bottom: 30px;
  }
  .creative-fullpage--slider .slider-inner {
    height: 770px;
    position: relative;
  }
  .row.align-items-center {
    flex-direction: row;
    align-items: center;
  }
  .intro-section h3 {
    font-size: 18px;
    line-height: 32px;
  }
  h2.text_wrap1 {
    font-size: 26px;
  }
  .slider-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: auto 50px;
  }
  aside {
    width: 594px;
    height: 352px;
  }
  #timeline {
    min-height: 80vh;
    column-gap: 50px;
  }
  img.caption {
    height: 275px;
  }
  .scroll-section-header {
    margin-left: 2rem;
  }
  .vid-maha {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-rows: auto auto; /* Allows text to wrap below */
    gap: 20px;
    align-items: start;
    text-align: left;
  }

  .tantra-logo{
    max-height: 28vh;
  }

  .logo{
    margin-top: -70px;
  }
  p.text_wrap {
    font-size: 22px;
    margin-top: -5px;
  }

  .video-container {
    grid-column: 2 / 3; /* Video stays on the left */
    grid-row: 1 / 3; /* Video spans both rows */
    max-width: 350px;
    max-height: 275px;
  }

  .text-container {
    grid-column: 1 / 2; /* First text beside video */
    grid-row: 1 / 2;
  }

  .text-container-float {
    margin-top: -15px;
  }

  .full-width-text {
    grid-column: 1 / 3; /* Text spans full width below */
    grid-row: 2 / 3;
  }
  .video_res {
    width: 100%;
  }
  .creative-fullpage--slider .swiper-container-h .swiper-button-next,
  .creative-fullpage--slider .swiper-container-h .swiper-button-prev {
    bottom: 38% !important;
  }
  #sm-next,
  #sm-prev {
    display: none;
  }
  .newsletter-section {
    margin-top: 50px;
  }
  .toggle-switch{
    right: 8%;
  }
}

@media (min-width: 992px) {
  .logo-section h3 {
    font-size: 20px;
    line-height: 32px;
  }
  .featured-section h3 {
    font-size: 18px;
    line-height: 28px;
    text-align: left;
  }
  .swiper-slide .slider-inner .swiper-content p.disc {
    font-size: 22px;
    line-height: 28px;
    text-align: left;
  }
  .featured-section .head-1 {
    margin-top: 0;
  }
  .text-center {
    width: 100%;
    margin-bottom: 50px;
  }
  .creative-fullpage--slider .slider-inner {
    height: 780px;
    position: relative;
  }
  .row.align-items-center {
    flex-direction: row;
    align-items: center;
  }
  .intro-section h3 {
    font-size: 20px;
    line-height: 34px;
  }
  h2.text_wrap1 {
    font-size: 28px;
  }
  .slider-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 70px;
  }
  aside {
    width: 690px;
    height: 404px;
  }
  #timeline {
    height: 70vh;
  }
  .scroll-section-header {
    margin-left: 5rem;
  }
  .vid-maha {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-rows: auto auto; /* Allows text to wrap below */
    gap: 20px;
    align-items: start;
    text-align: left;
    width: 100%;
  }

  .logo{
    margin-top: -30px;
  }

  p.text_wrap {
    font-size: 26px;
  }

  .video-container {
    grid-column: 2 / 3; /* Video stays on the left */
    grid-row: 1 / 3; /* Video spans both rows */
  }

  .text-container {
    grid-column: 1 / 2; /* First text beside video */
    grid-row: 1 / 2;
  }

  .full-width-text {
    grid-column: 1 / 3; /* Text spans full width */
    grid-row: 2 / 3;
    width: 100% !important;
    text-align: left;
  }
  .tantra-logo {
    max-height: 25vh;
  }
  .creative-fullpage--slider .swiper-container-h .swiper-button-next,
  .creative-fullpage--slider .swiper-container-h .swiper-button-prev {
    bottom: 35% !important;
  }

  #sm-next,
  #sm-prev {
    display: none;
  }

  .text-body {
    width: 100%;
  }
  img.caption {
    height: 350px;
  }
  .text-container-float {
    margin-top: 20px;
  }
  .toggle-switch {
    top: 120px;
    right: 10%;
  }
}

@media (min-width: 1200px) {
  .featured-section h3 {
    font-size: 24px;
    line-height: 32px;
    text-align: left;
  }

  .tantra-logo {
    max-height: 30vh;
  }
  .creative-fullpage--slider .swiper-container-h .swiper-button-next,
  .creative-fullpage--slider .swiper-container-h .swiper-button-prev {
    bottom: 35% !important;
  }
  #sm-next,
  #sm-prev {
    display: none;
  }
  .text-container-float {
    margin-top: 0px;
  }
}


/* Section Styles */
.tantra-carousel-section {
  padding-top: 20px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Carousel Styles */
.tantra-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-frame-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; /* Match your frame's aspect ratio */
}

.video-frame video {
  width: 96%;
  margin: auto;
  margin-left: 2.6%;
  margin-top: 2%;
  height: 98%;
  object-fit: cover;
  display: block;
}

/* Frame overlay with exact cutout */
.video-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/frame.webp') no-repeat center center;
  background-size: 100% 100%;
  z-index: 2;
  pointer-events: none;
}

/* Slide Content */
.slide-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 15px;
  font-weight: 500;
  text-align: center;
  max-width: 800px;
}

.slide-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--secondary-text);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Navigation Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--control-bg);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background-color: var(--control-hover);
}

.carousel-control.prev {
  left: 10px;
  background-image: url('../img/slider/left.png');
    background-repeat: no-repeat;
    background-position: center;
    height: 50px;
}

.carousel-control.next {
  right: 10px;
  background-image: url('../img/slider/right.png');
    background-repeat: no-repeat;
    background-position: center;
   height: 50px;
}

.carousel-control i {
  display: none;
}

/* Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: var(--indicator-inactive);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: var(--indicator-active);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tantra-carousel-section {
      padding: 40px 0;
  }
  
  .carousel-control {
      width: 40px;
      height: 40px;
      font-size: 1.2rem;
  }
  
  .carousel-control.prev {
      left: 5px;
  }
  
  .carousel-control.next {
      right: 5px;
  }
  .toggle-container {
    max-height: 24px;
    font-size: 10px;
  }
  .toggle-option {
    padding: 3px 12px;
    width: 55px;
  }
  .toggle-switch {
    top: 100px;
  }
}

@media (max-width: 480px) {
  .toggle-container {
    max-height: 22px;
    font-size: 9px;
  }
  .toggle-option {
    padding: 2px 10px;
    width: 40px;
  }
  .toggle-switch {
    top: 110px;
    right: 10px;
  }

  .tantra-carousel-section {
      padding: 30px 0;
  }
  
  .section-title {
      margin-bottom: 30px;
  }
  
  .slide {
      padding: 0;
  }
  
  .video-container {
      margin-bottom: 15px;
  }
  
  .slide-description {
      padding: 0 10px;
  }
  
  .carousel-indicators {
      margin-top: 20px;
  }
  
  .indicator {
      width: 10px;
      height: 10px;
  }
}