/* style1.css - Mobile Responsive Styles */

@media (max-width: 768px) {
  /* General Reset for Mobile */
  body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  /* Header and Nav */
  header {
    position: relative;
    background-color: #003366;
    padding: 10px 15px;
  }

  nav {
    position: relative;
    background: #003366;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #003366;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0;
    list-style: none;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
  }

  .dropdown-content,
  .dropdown-menu {
    position: static;
    display: none;
    background: #002244;
    padding-left: 15px;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  /* Hamburger Menu */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 1100;
    cursor: pointer;
  }

  .menu-toggle i {
    pointer-events: none;
  }

  .enquiry-btn.desktop-enquiry {
    display: none;
  }

  .mobile-enquiry {
    display: block;
  }

/* Mobile overrides */
.hero-slider {
  height: 300px; /* shorter for mobile */
}

/* Mobile-specific images */
.slide-1 { background-image: url("mutualmobile.png"); }
.slide-2 { background-image: url("healthmobile.png"); }
.slide-3 { background-image: url("hero3mo.jpeg"); }
.slide-4 { background-image: url("webinarmob.png"); }
.slide-5 { background-image: url("sharekhanmob.png"); }
  
@media (max-width: 768px) {
  .hero-slider {
    height: 280px; /* smaller height on mobile */
  }

  .slider-nav span {
    font-size: 24px; /* smaller arrows */
  }
}




  /* Hero Section */
  .hero-content {
    padding: 20px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .tagline,
  .intro {
    font-size: 16px;
  }

  .enroll-btn {
    padding: 10px 20px;
    font-size: 16px;
  }

  /* About Section */
  .about-container {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .about-left,
  .about-right {
    width: 100%;
  }

  .webinar-box {
    width: 100%;
  }

  .about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  /* Flip Icon Section */
  .icon-card-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .vertical-line {
    display: none;
  }

  .icon-wrapper {
    width: 100%;
    text-align: center;
  }

  .icon-label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
  }

  /* Services Section */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .service-box {
    font-size: 16px;
    padding: 15px;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  .footer-map iframe {
    width: 100% !important;
    height: auto !important;
  }

  .footer-contact,
  .footer-logo {
    width: 100%;
  }

  .social-icons a {
    margin: 0 8px;
    font-size: 20px;
  }

  .footer-bottom {
    font-size: 14px;
    padding: 10px 0;
  }
}

/* Fix mobile zoom & layout */
@media (max-width: 768px) {

  /* Prevent full zoomed-in layout */
  body {
    width: 100vw;
    overflow-x: hidden;
    font-size: 16px;
  }

  

  /* Navigation bar spacing */
  nav {
    padding: 10px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    background: #f8f8f8;
    padding: 10px;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    position: absolute;
    top: 12px;
    right: 20px;
    z-index: 999;
    color: #000;
  }

  .enquiry-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }

  header {
    position: relative;
  }

  /* Hero slider image full-width */
  .hero-slider .slide {
    background-size: cover;
    background-position: center;
    height: 200px;
  }

  .hero-content {
    padding: 20px;
    text-align: center;
  }

  .about-section,
  .about-icons-section,
  .products-services {
    padding: 20px 10px;
  }

  .icon-card-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .icon-wrapper {
    width: 100%;
    max-width: 220px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mobile Responsive Styling - style1.css */

@media (max-width: 768px) {

  

  /* === Navigation Menu Fix === */
  nav {
    background-color: #123361;
    color: #fff;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #123361;
    padding: 15px;
    width: 100%;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 5px 0;
  }

  .nav-links a {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
  }

  .nav-links a:hover {
    color: #00bcd4;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    z-index: 999;
  }

  .enquiry-btn {
    display: none;
  }


  /* === Hero Slider === */
  .hero-slider {
    height: 250px;
    margin-bottom: 0;
  }

  .hero-content {
    padding: 10px;
    margin-top: -20px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .enroll-btn {
    padding: 8px 16px;
    font-size: 14px;
  }


  /* === About Section Fix === */
  .about-section {
    padding: 30px 20px;
    flex-direction: column;
  }

  .about-left, .about-right {
    width: 100%;
  }

  .about-image {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }


  /* === Icon Flip Cards === */
  .icon-card-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .icon-wrapper {
    width: 80%;
  }

  .vertical-line {
    display: none;
  }


  /* === Footer Fix === */
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
  }

  .footer-map iframe {
    width: 100%;
    height: 250px;
  }

  .footer-contact,
  .footer-logo {
    text-align: center;
  }

  .social-icons a {
    margin: 0 8px;
    font-size: 20px;
  }

}

/* --- TOP STRIP FIX for mobile --- */
@media (max-width: 768px) {
  /* --- TOP STRIP for Mobile (Left Aligned) --- */
  .top-strip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 10px;
    background: #f4f4f4;
    text-align: left;
  }

  .top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    width: 100%;
  }

  .top-left .logo {
    width: 40px;
    height: auto;
  }

  .site-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
  }

  .top-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.3;
    width: 100%;
  }

  .top-right span,
  .top-right a {
    display: flex;
    align-items: center;
    color: #000;
    gap: 4px;
    text-decoration: none;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  /* Floating Nav Button */
  .menu-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: #123361;
    color: white;
    font-size: 22px;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
  }

  /* Floating Right Menu */
  .floating-nav {
    position: fixed;
    top: 60px;
    right: 15px;
    background: #123361;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    padding: 10px 15px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    min-width: 180px;
  }

  .floating-nav.show {
    display: flex;
  }

  .floating-nav a {
    color: white;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid #ffffff22;
  }

  .floating-nav a:last-child {
    border-bottom: none;
  }

  .floating-nav a:hover {
    color: #00bcd4;
  }

  nav ul.nav-links {
    display: none !important; /* Prevent old nav from showing */
  }

  .enquiry-btn {
    display: none;
  }
}
/* --- Restore desktop nav when screen is wider than 768px --- */
@media (min-width: 769px) {
  .menu-toggle,
  .floating-nav {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
  }

  .nav-links a:hover {
    color: #00bcd4;
  }

  .enquiry-btn {
    display: inline-block !important;
  }
}

/* Mobile Dropdowns */
@media (max-width: 768px) {
  .dropdown-menu,
  .dropdown-content {
    display: none;
    flex-direction: column;
    background: #002244;
    padding: 10px;
    border-radius: 5px;
  }

  .dropdown-menu.show-dropdown,
  .dropdown-content.show-dropdown {
    display: flex;
  }

  .dropdown li {
    margin: 0;
  }

  .dropdown a {
    padding: 8px 10px;
    font-size: 15px;
    color: white;
  }
}

@media (max-width: 768px) {
  .floating-nav {
    position: fixed;
    top: 50px;
    right: 10px;
    background-color: #002244;
    color: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 200px;
    animation: fadeSlide 0.3s ease-in-out;
  }

  .floating-nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .floating-nav a:hover {
    background-color: #00bcd4;
    color: #000;
  }



  @keyframes fadeSlide {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


@media (max-width: 768px) {
  .floating-nav {
    position: fixed;
    top: 60px; /* below top-strip */
    right: 10px;
    width: 80%;
    max-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 15px;
    display: none;
    flex-direction: column;
    gap: 12px;

    max-height: 80vh;       /* 💡 Limit height */
    overflow-y: auto;       /* 💡 Enable scroll */
    scrollbar-width: thin;  /* Optional: thin scrollbar */
  }

  .floating-nav.open {
    display: flex;
  }

  .floating-nav .dropdown-content,
  .floating-nav .dropdown-menu {
    display: none;
    flex-direction: column;
    margin-left: 10px;
  }

  .floating-nav .dropdown.open > .dropdown-content,
  .floating-nav .dropdown.open > .dropdown-menu {
    display: flex;
  }

  .floating-nav a,
  .floating-nav li > a {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
  }

  .floating-nav li {
    list-style: none;
  }

  .floating-nav li a:hover {
    background: #f2f2f2;
  }
}


@media (max-width: 768px) {
  .menu-toggle {
    position: fixed;
    top: 18px;
    right: 15px;
    z-index: 1000;
    background: #ffffff;           /* Always white */
    border: 2px solid #007bff;     /* Blue border */
    border-radius: 50%;
    padding: 10px;
    font-size: 20px;
    color: #007bff;                /* Blue icon */
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, color 0.3s;
  }

  .menu-toggle:hover {
    background: #e6f0ff;          /* Light blue on hover */
    border-color: #0056b3;
    color: #0056b3;
  }
}


@media (max-width: 768px) {
  .menu-toggle:focus,
  .menu-toggle:active {
    outline: none;
    box-shadow: none;
    background-color: #123361;
    color: white;
    opacity: 1;
  }

  .menu-toggle i:focus,
  .menu-toggle i:active {
    color: white;
    opacity: 1;
  }
}
.menu-toggle {
  cursor: pointer;
}


@media (max-width: 768px) {
  .page-hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 200px !important;
    padding: 5
  }

  .page-hero h1 {
    font-size: 20px;
    text-align: center;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-map iframe {
    width: 100% !important;
    max-width: 300px;
  }

  .footer-contact, .footer-logo {
    width: 100%;
    max-width: 300px;
  }

  .footer-contact h3 {
    margin-bottom: 10px;
  }

  .footer-contact p,
  .footer-contact i {
    font-size: 14px;
  }

  .social-icons {
    justify-content: center;
    margin-top: 10px;
  }

  .footer-logo img {
    width: 120px;
    height: auto;
  }
}

@media (max-width: 768px) {

/* --- TOP STRIP FIX for mobile (confirmed working) --- */
/* === TOP STRIP FIX === */
.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background-color: #f4f4f4;
  flex-wrap: wrap;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-name {
  font-size: 16px;
  font-weight: 600;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: auto;
}

.top-right a,
.top-right span {
  display: flex;
  align-items: center;
  color: #000;
  font-size: 14px;
  text-decoration: none;
  gap: 6px;
}
}

/* Optional for better spacing on mobile */
@media (max-width: 768px) {
  .top-strip {
    flex-direction: column;
    align-items: flex-start;
  }

.top-right {
  display: flex;
  align-items: center;
  gap: 14px; /* This controls spacing */
  flex-wrap: wrap;
  justify-content: flex-start;
}

.top-right a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}


  .top-right i {
    font-size: 16px;
  }
}


  /* --- FIX ZOOMED BACKGROUND IMAGE AND HEIGHT OF PAGE-HERO --- */
  .page-hero {
    background-size: cover !important;
    background-position: center !important;
    height: 220px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-hero .hero-overlay h1 {
    font-size: 22px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 6px;
  }


@media (max-width: 768px) {
  .page-hero {
    background-size: cover !important;
    background-position: relative !important;
    padding: 40px 20px 20px !important;
    text-align: center;
  }

.hero-overlay {
  background: rgba(0, 0, 0, 0.5); /* or your desired transparency */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}


  .mutual-section,
  .demat-section,
  .insurance-section {
    padding: 20px 15px !important;
    margin: 0 !important;
  }

  .mutual-section h2,
  .demat-section h2,
  .insurance-section h2 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 22px;
  }

  .mutual-subsection,
  .demat-box,
  .insurance-box {
    margin-bottom: 18px !important;
  }

  .fund-tree ul {
    padding-left: 20px;
  }

  .container {
    padding: 0 !important;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .student-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
  }

  .testimonial-content {
    font-size: 14px;
    line-height: 1.6;
  }

  .testimonial-name {
    font-weight: bold;
    font-size: 13px;
    margin-top: 10px;
  }

  .testimonials-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0 20px;
  }
}
.testimonial-heading {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  margin: 05px 0 20px;
  color: #123361;
}

.mentor-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.mentor-left,
.mentor-right {
  flex: 1;
  min-width: 300px;
}

@media (max-width: 768px) {
  .mentor-container {
    flex-direction: column;
  }

  .mentor-left,
  .mentor-right {
    width: 100%;
  }

  .mentor-right h2 {
    white-space: nowrap; /* keeps "Meet Your Mentor" on one line */
  }
}

/* Default logo (desktop/laptop) */
/* Desktop logo */
.top-strip .logo {
  height: 45px;   /* normal size */
  width: auto;
}

/* Mobile logo */
@media (max-width: 150px) {
  .top-strip .logo {
    height: 20px;   /* slightly larger than desktop, but not huge */
    width: auto;
  }
}


/* --- FIX FLOATING NAV VISIBILITY --- */
.floating-nav {
  display: none;
}

.floating-nav.show {
  display: flex !important;
}



/* === MOBILE NAVIGATION (FINAL BLUE ROUND BUTTON + BLUE MENU) === */
@media (max-width: 768px) {

  /* Remove old nav */
  nav ul.nav-links {
    display: none !important;
  }

  /* Blue round menu button with green lines */
  .menu-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 2000;
    background: #123361;      /* Blue circle */
    border: none;
    border-radius: 50%;
    padding: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.25);
  }

  .menu-toggle i {
    color: #05b534;           /* Green icon lines */
    font-size: 22px;
    pointer-events: none;
  }

  /* Floating NAV (Blue Box) */
  .floating-nav {
    position: fixed;
    top: 60px;
    right: 10px;
    background: #123361;
    padding: 15px;
    border-radius: 12px;
    width: 230px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 1500;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.25);
  }

  .floating-nav.show {
    display: flex !important;
  }

  .floating-nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    border-bottom: 1px solid #ffffff33;
  }

  .floating-nav a:last-child {
    border-bottom: none;
  }

  .floating-nav a:hover {
    background: #0a1f3a;
  }

  /* Dropdown in floating menu */
  .floating-nav .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .floating-nav .dropdown-content,
  .floating-nav .dropdown-menu {
    display: none;
    flex-direction: column;
    padding-left: 15px;
  }

  .floating-nav .dropdown.open .dropdown-content,
  .floating-nav .dropdown.open .dropdown-menu {
    display: flex;
  }
}

/* Desktop nav remains unchanged */
@media (min-width: 769px) {
  .floating-nav,
  .menu-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
  }
}


.floating-nav.active {
  display: flex !important;
}



/* When menu opens */
.floating-nav.active {
  display: flex !important;
}

/* Hide Enroll Now section properly */
.enroll-wrapper {
  position: relative;
  z-index: 1;
}


.floating-nav {
  position: fixed;
  top: 60px;
  right: 0;
  width: 240px;
  background: #123361;
  padding: 12px;
  display: none;
  flex-direction: column;
  z-index: 2000; /* high z-index */
  overflow-y: auto;
  max-height: calc(100vh - 60px);
}

.menu-toggle {
  z-index: 2100; /* higher than floating nav */
}

/* Sections should be under nav */
.page-hero,
.about-split-section,
.journey-section {
  position: relative;
  z-index: 1;
}



