  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --primary: #083d5d;
      --primary-dark: #062a41;
      --secondary: #4da8da;
      --accent: #ff6b35;
      --light: #f2f7fc;
      --dark: #333;
      --gray: #555;
      --light-gray: #e0e0e0;
      --white: #ffffff;
      --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
      --transition: all 0.3s ease;
    }

    /* ===== FULL CREATIVE FONT STACK – robust for all devices ===== */
    body {
      font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
      background-color: #f2f2f2;
      color: #333;
      line-height: 1.6;
      padding-top: 130px;
      overflow-x: hidden;
      font-weight: 400;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* all form elements inherit the creative font */
    input,
    button,
    textarea,
    select {
      font-family: inherit;
      font-size: inherit;
      line-height: inherit;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: var(--transition);
    }

    ul {
      list-style: none;
    }

    button {
      cursor: pointer;
      border: none;
      outline: none;
      transition: var(--transition);
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      /* center fix */
      padding: 0 20px;
      /* side gap fix */
    }

    .section-padding {
      padding: 00px 0;
    }

    .section-title {
      text-align: center;
      margin-bottom: 50px;
      position: relative;
    }

    .section-title h2 {
      font-size: 2.2rem;
      color: var(--primary);
      margin-bottom: 15px;
      position: relative;
      display: inline-block;
    }

    .section-title h2::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 70px;
      height: 3px;
      background: var(--accent);
      border-radius: 2px;
    }

    .section-title p {
      max-width: 700px;
      margin: 0 auto;
      color: var(--gray);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
     
      padding: 12px 28px;
      border-radius: 5px;
      font-weight: 500;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
      z-index: 1;
    }

    .btn-primary {
      background: var(--primary);
      color: var(--white);
    }

    .btn-primary:hover {
      background: var(--primary-dark);
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(8, 61, 93, 0.2);
    }

    .btn-secondary {
      background: var(--secondary);
      color: var(--white);
    }

    .btn-secondary:hover {
      background: #3a8bc2;
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(77, 168, 218, 0.2);
    }

    .btn-accent {
      background: var(--accent);
      color: var(--white);
    }

    .btn-accent:hover {
      background: #e55a2b;
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
    }

    /* Header Styles – unchanged but font now fully inherits */
    .header-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
    }

    .top-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: #083d5d;
      color: #fff;
      padding: 0 20px;
      height: 40px;
      font-size: 14px;
    }

    .web-text p {
      display: inline-block;
      font-size: 0.6rem;
      font-weight: 700;
    }

    .web-text p span {
      font-weight: 300;
    }

    .web-text p::after {
      content: "|";
      margin: 0 10px;
      color: #fff;
      font-weight: 300;
    }

    .web-text p:last-child::after {
      content: "";
    }

    .right-text {
      display: flex;
    }

    .right-text a {
      font-size: 0.6rem;
      transition: all 0.3s ease;
      color: white;
      text-decoration: none;
    }

    .right-text a::after {
      content: "|";
      margin: 0 8px;
      color: #fff;
      font-weight: 300;
    }

    .right-text a:last-child::after {
      content: "";
    }

    /* Navigation */
    .main-header {
      border-bottom: 1px solid #083d5d;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 90px;
      padding: 0 20px;
      transition: all 0.3s ease;

    }

    .logo {
      display: flex;
      align-items: center;
      flex: 1;
    }

    .logo img {
      height: 100px;
      max-height: 80px;
      transition: all 0.3s ease;
    }

    .menu {
      display: flex;
      justify-content: flex-end;
      align-items: flex-end;
      flex-direction: column;
    }

    .upperNav {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
       margin-top: 6px;
    }

    .nav-button {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 5px;
      font-size: 0.9rem;
      font-weight: 600;
      padding: 8px 15px;
      border-radius: 30px;
      transition: all 0.3s ease;
      cursor: pointer;
      border: none;
      outline: none;
    }

    #onlineTest1 {
      background: crimson;
      color: #fff;
    }

    #ebookBtn {
      background: #c67534;
      color: #fff;
    }

    #certificate {
      background: #085d0f;
      color: #fff;
    }

    #onlineTest1:hover,
    #ebookBtn:hover,
    #certificate:hover {
      background: #000;
      transform: translateY(-2px);
    }

    .btn-box {
      width: 250px;
      display: flex;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      border-radius: 30px;
      position: relative;
      background: #f0f0f0;
      overflow: hidden;
    }

    .toggle-btn {
      padding: 8px 26px;
      position: relative;
      outline: none;
      border: none;
      background: transparent;
      font-size: 0.9rem;
      color: #000;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 5px;
      z-index: 1;
      width: 50%;
      cursor: pointer;
      transition: color 0.3s ease;
    }

    #swap-btn {
      position: absolute;
      top: 0;
      left: 0;
      width: 50%;
      /* ✅ FIXED */
      height: 100%;
      background: #083d5d;
      border-radius: 30px;
      transition: all 0.4s ease;
      z-index: 0;
    }

    #logInButton {
      color: white;
    }

    .lowerNav {
      display: flex;
      gap: 22px;
    }

    .lowerNav ul {
      display: flex;
      gap: 20px;
    }

    .lowerNav li {
      position: relative;
      list-style-type: none;
    }

    .lowerNav li a {
      font-size: 0.9rem;
      transition: all 0.3s ease-in-out;
      display: flex;
      align-items: center;
      text-decoration: none;
      color: #333;
      font-weight: 500;
    }

    .menu-link {
      display: flex;
      align-items: center;
      cursor: pointer;
      padding: 8px 0;
    }

    .menu-link:hover {
      color: #083d5d;
    }

    .menu-link .material-symbols-outlined {
      margin-right: 0.5rem;
      font-size: 1.2rem;
      transition: all 0.3s ease;
    }

    .menu-link:hover .material-symbols-outlined {
      color: #083d5d;
      transform: translateY(-2px);
    }

    /* Dropdown */
    .dropdown {
      position: relative;
    }

    .dropdown-toggle {
      cursor: pointer;
    }

    .dropdown-toggle .fa-chevron-down {
      margin-left: 0.3rem;
      font-size: 0.8rem;
      transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle .fa-chevron-down {
      transform: rotate(180deg);
    }

    .dropdown-menu {
      display: none;
      position: absolute;
      left: 0;
      top: 100%;
      background: #fff;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      padding: 10px 0;
      min-width: 220px;
      z-index: 1000;
    }

    .dropdown.active .dropdown-menu {
      display: block;
    }

    .dropdown-menu ul {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .dropdown-menu li {
      margin: 0;
      width: 100%;
    }

    .dropdown-menu .nav-link {
      padding: 12px 20px;
      border-bottom: 1px solid #f0f0f0;
      display: flex;
      align-items: center;
      width: 100%;
      color: #333;
      transition: all 0.3s ease;
      font-size: 0.9rem;
    }

    .dropdown-menu .nav-link:hover {
      background-color: #f8f9fa;
      color: #083d5d;
      padding-left: 25px;
    }

    .dropdown-menu .nav-link:last-child {
      border-bottom: none;
    }

    .dropdown-menu .material-symbols-outlined {
      margin-right: 0.8rem;
      font-size: 1.1rem;
      color: #083d5d;
    }

    /* Menu Icon */
    .menu-icon {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 21px;
      cursor: pointer;
      margin-left: auto;
      z-index: 1001;
    }

    .menu-icon span {
      display: block;
      height: 3px;
      width: 100%;
      background-color: var(--primary);
      border-radius: 3px;
      transition: all 0.3s ease;
    }

    .menu-icon.active span:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }

    .menu-icon.active span:nth-child(2) {
      opacity: 0;
    }

    .menu-icon.active span:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }

    /* Desktop hover */
    @media (min-width: 769px) {
      .dropdown:hover .dropdown-menu {
        display: block;
      }

      .dropdown:hover .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
      }

      .menu-link {
        position: relative;
      }

      .menu-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #083d5d;
        transition: width 0.3s ease;
      }

      .menu-link:hover::after {
        width: 100%;
      }
    }

    /* ===== LIVE MARQUEE ===== */
    /* marquee */
    .live-marquee {
      background: var(--primary-dark);
      color: white;
      padding: 10px 0;
      overflow: hidden;
      position: relative;
      display: flex;
      align-items: center;
      border-bottom: 2px solid var(--accent);
    }

    .marquee-track {
      display: flex;
      gap: 30px;
      animation: scrollMarquee 24s linear infinite;
      white-space: nowrap;
      padding-left: 20px;
    }

    .marquee-track span {
      display: flex;
      gap: 15px;
    }

    .marquee-track button {
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: white;
      padding: 6px 20px;
      border-radius: 40px;
      font-weight: 500;
      font-size: 0.85rem;
      backdrop-filter: blur(4px);
    }

    .live-badge {
      position: absolute;
      right: 20px;
      background: #dc2626;
      padding: 4px 16px;
      border-radius: 40px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 700;
      font-size: 0.85rem;
      box-shadow: 0 0 15px #dc2626;
    }

    .live-dot {
      width: 10px;
      height: 10px;
      background: white;
      border-radius: 50%;
      animation: blink 1s infinite;
    }

    @keyframes scrollMarquee {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-50%);
      }
    }

    @keyframes blink {
      0% {
        opacity: 1;
      }

      50% {
        opacity: 0.2;
      }

      100% {
        opacity: 1;
      }
    }

    .marquee-track button:hover {
      animation-play-state: paused;
    }

    .marquee-track:hover {
      animation-play-state: paused;
    }

    /* product buttons row */
    .welcome-content .product-strip {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin: 25px 0 10px;
    }

    .product-strip button {
      background: var(--secondary);
      border: none;
      padding: 10px 22px;
      border-radius: 40px;
      color: white;
      font-weight: 600;
      font-size: 0.9rem;
      box-shadow: var(--shadow-sm);
      transition: 0.2s;
    }

    .product-strip button:hover {
      background: var(--primary);
      transform: scale(1.05);
    }

    @keyframes marqueeScroll {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-100%);
      }
    }

    @keyframes blink {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.3;
      }
    }

    /* Hero */
    .hero {
      position: relative;
      width: 100%;
      overflow: hidden;
      height: 60vh;
      min-height: 400px;
      max-height: 700px;
      display: block;
      clear: both;
    }

    .hero-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease;
    }

    .hero-slide.active {
      opacity: 1;
    }

    .hero-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .hero-dots {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 10;
    }

    .hero-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: var(--transition);
    }

    .hero-dot.active {
      background: var(--white);
      transform: scale(1.2);
    }

    /* Welcome section */
    .welcome-section {
      background: var(--white);
    }

    .welcome-content h1 {
      font-size: 2.5rem;
      color: var(--primary);

    }

    /* ===== USED OUR PRODUCT FIX ===== */

    .welcome-section {
      background: var(--white);
      padding: 50px 0;
    }

    .welcome-content {
      width: 100%;
      max-width: 100%;
      padding: 0 20px;
      margin: 0;
      height: 12vh;
    }

    .welcome-content h1 {
      text-align: center;
      margin-bottom: 2px;
    }

    /* Buttons in one line */
    .welcome-content span {
      display: flex;
      flex-wrap: nowrap;
      /* ek hi line */
      justify-content: center;
      gap: 15px;
      width: 100%;
    }

    /* Scroll on small screens */
    @media (max-width: 768px) {
      .welcome-content span {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 10px;
      }
    }

    .welcome-content button {
      background: #f0f7fc;
      border: 1px solid #cde3f0;
      color: var(--primary);
      padding: 10px 22px;
      border-radius: 10px;
      font-weight: 500;
      font-size: 1rem;
      transition: 0.2s;
    }

    .welcome-content button:hover {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
      transform: scale(1.03);
    }

    /* Footer base (mini) */
    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 15px 0;
      text-align: center;
      color: var(--light-gray);
      font-size: 0.75rem;
    }

    .footer-links-bottom {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .footer-links-bottom a {
      color: var(--light-gray);
      transition: color 0.3s;
      position: relative;
      font-size: 0.75rem;
    }

    .footer-links-bottom a:not(:last-child)::after {
      content: '|';
      position: absolute;
      right: -8px;
      color: var(--secondary);
    }

    /* ===== RESPONSIVE FIXES + FONT INHERITANCE ===== */
    @media (max-width: 768px) {
      body {
        padding-top: 90px;
      }

      .top-header {
        display: none;
      }

      .menu-icon {
        display: flex;
      }

      .nav {
        flex-direction: row;
        height: auto;
        padding: 10px 20px;
      }

      .logo {
        width: 100%;
      }

      .logo img {
        height: 70px;
      }

      .menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        display: none;
        padding: 30px 20px 20px;
        overflow-y: auto;
        z-index: 999;
        transform: translateX(-100%);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      }

      .menu.active {
        display: flex;
        transform: translateX(0);
      }

      .upperNav {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-bottom: 25px;
      }

      .upperNav .nav-button {
        width: 90%;
        text-align: center;
        height: 48px;
        font-size: 1rem;
        justify-content: center;
      }


      /* ===== MOBILE LOGIN REGISTER FIX ===== */
      .btn-box {
        width: 90%;
        height: 38px;
        flex-direction: row;
        /* ✅ IMPORTANT */
        border-radius: 25px;
        background: #f0f0f0;
        overflow: hidden;
        margin-top: 10px;
        position: relative;
      }

      .btn-box .toggle-btn {
        width: 50%;
        font-size: 0.85rem;
        padding: 0;
      }

      #swap-btn {
        display: block;
        /* ✅ IMPORTANT */
        width: 50%;
        height: 100%;
        border-radius: 25px;
      }

      #certificate {
        width: 220%;
        height: 52px;
        font-size: 1.05rem;
        border-radius: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
      }

      .lowerNav {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 10px;
      }

      .lowerNav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
      }

      .lowerNav li {
        border-bottom: 1px solid #f0f0f0;
      }

      .menu-link {
        padding: 16px 0;
        width: 100%;
      }

      .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        display: none;
        padding-left: 20px;
        background: transparent;
      }

      .dropdown.active .dropdown-menu {
        display: block;
      }
    }

    /* small device fine-tune */
    @media (max-width: 576px) {
      .hero {
        height: 35vh;
      }

      .welcome-content h1 {
        font-size: 2rem;
      }

      .welcome-content button {
        padding: 8px 16px;
        font-size: 0.9rem;
      }

      .marquee-track span {
        gap: 20px;
      }

      .marquee-track button {
        padding: 4px 12px;
        font-size: 0.8rem;
      }
    }

    @media (max-width: 360px) {
      body {
        padding-top: 80px;
      }

      .logo img {
        height: 55px;
      }

      .menu-link {
        font-size: 0.9rem;
      }
    }

    /* extra utility */
    .hero-clear {
      clear: both;
      width: 100%;
      height: 0;
    }

    /* ===== MODERN 3 CARD TOOLS SECTION ===== */

    .tools-section {
      background: #f8fbff;
      padding: 70px 0;
    }

    .tools-container {
      max-width: 1300px;
      margin: auto;
      padding: 0 20px;
    }

    /* GRID LAYOUT */
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
    }

    /* CARD DESIGN */
    .tools-card {
      background: #ffffff;
      border-radius: 15px;
      padding: 30px 20px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
      transition: 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .tools-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    }

    .tools-card h2 {
      text-align: center;
      color: var(--primary);
      margin-bottom: 25px;
      font-size: 1.6rem;
      position: relative;
    }

    .tools-card h2::after {
      content: "";
      width: 50px;
      height: 3px;
      background: var(--accent);
      display: block;
      margin: 8px auto 0;
      border-radius: 3px;
    }

    /* BUTTON WRAP */
    .tools-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }

    .tools-buttons button {
      padding: 8px 16px;
      border-radius: 30px;
      border: 1px solid #cde3f0;
      background: #f0f7fc;
      color: var(--primary);
      font-size: 0.85rem;
      font-weight: 500;
      transition: 0.3s;
    }

    .tools-buttons button:hover {
      background: var(--primary);
      color: #fff;
      transform: scale(1.05);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 992px) {
      .tools-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .tools-grid {
        grid-template-columns: 1fr;
      }
    }


    /* Responsive Styles */
    @media (max-width: 992px) {
      .hero {

        min-height: 350px;
        max-height: 600px;
      }

      .slide-content {
        padding: 0 30px;
      }

      .footer-content {
        grid-template-columns: repeat(2, 1fr);
      }

      .footer-social ul {
        justify-content: flex-start;
      }

      .community-content,
      .about-content {
        grid-template-columns: 1fr;
      }

      .community-image,
      .about-image {
        order: -1;
      }
    }

    .top-header {
      background: linear-gradient(90deg, #062a41 0%, #0a4d6e 100%);
      letter-spacing: 0.3px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .main-header {
      backdrop-filter: blur(10px);
      background: rgba(255, 255, 255, 0.85);
      border-bottom: 1px solid rgba(77, 168, 218, 0.3);
    }

    .nav-button {
      background: linear-gradient(135deg, var(--primary) 0%, #1e5a7a 100%);
      color: white;
      box-shadow: 0 4px 10px rgba(0, 53, 84, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    #onlineTest1 {
      background: linear-gradient(145deg, #dc143c, #b22222);
    }

    #certificate {
      background: linear-gradient(145deg, #0b5e0b, #0a470a);
    }

    .btn-box {
      background: rgba(240, 240, 240, 0.6);
      backdrop-filter: blur(4px);
      border: 1px solid rgba(8, 61, 93, 0.2);
    }

    .toggle-btn {
      font-weight: 600;
    }

    .hero-dot {
      width: 14px;
      height: 14px;
      background: rgba(255, 255, 255, 0.6);
      box-shadow: 0 0 15px var(--accent);
    }

    .hero-dot.active {
      background: var(--accent);
      box-shadow: 0 0 20px #ff8c5a;
    }

    .live-marquee {
      background: linear-gradient(90deg, #062a41, #0f4765);
      border-bottom: 3px solid var(--accent);
      box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
    }

    .marquee-track button {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 107, 53, 0.5);
      font-weight: 600;
      transition: 0.25s;
    }

    .marquee-track button:hover {
      background: var(--accent);
      color: #000;
      transform: scale(1.1) translateY(-2px);
      box-shadow: 0 8px 20px rgba(255, 107, 53, 0.6);
    }

    .live-badge {
      background: #e03131;
      animation: pulse-glow 1.5s infinite;
    }

    @keyframes pulse-glow {
      0% {
        box-shadow: 0 0 5px #e03131;
      }

      50% {
        box-shadow: 0 0 25px #ff8a5a;
      }

      100% {
        box-shadow: 0 0 5px #e03131;
      }
    }

    .welcome-section {
      background: linear-gradient(120deg, #ffffff, #f8fdff);
    }

    .welcome-content h1 {
      text-shadow: 3px 3px 0 rgba(77, 168, 218, 0.2);
      letter-spacing: -0.5px;
    }

    .welcome-content button {
      background: white;
      border: 2px solid transparent;
      background-clip: padding-box;
      box-shadow: 0 8px 18px -8px rgba(8, 61, 93, 0.2);
      font-weight: 600;
      transition: 0.2s;
    }

    .welcome-content button:hover {
      background: var(--primary);
      border-color: var(--accent);
      transform: scale(1.05) translateY(-4px);
      box-shadow: 0 18px 25px -10px var(--primary);
    }

    .tools-section {
      background: radial-gradient(circle at 20% 30%, #eef5fc, #d9e6f2);
    }

    .tools-card {
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.7);
      box-shadow: 0 15px 35px rgba(0, 30, 50, 0.15);
      transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    }

    .tools-card:hover {
      transform: translateY(-15px) scale(1.02);
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid var(--secondary);
      box-shadow: 0 30px 40px -15px var(--primary);
    }

    .tools-card h2 {
      background: linear-gradient(135deg, var(--primary), #22749e);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-weight: 700;
    }

    .tools-card h2::after {
      background: linear-gradient(90deg, var(--accent), #ffb28b);
      height: 4px;
      width: 70px;
    }

    .tools-buttons button {
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(77, 168, 218, 0.4);
      backdrop-filter: blur(5px);
      font-weight: 500;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
    }

    .tools-buttons button:hover {
      background: linear-gradient(145deg, var(--primary), #135e83);
      color: white;
      border-color: var(--accent);
      transform: scale(1.1) translateY(-3px);
      box-shadow: 0 12px 18px -8px var(--primary);
    }

    footer {
      background: linear-gradient(145deg, #0a3750, #031f2f);
      position: relative;
    }

    footer::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
    }

    .footer-links-bottom a {
      color: #b0d4ed;
    }

    .footer-links-bottom a:hover {
      color: var(--accent);
      text-shadow: 0 0 8px #ff8a5a;
    }

    /* custom scrollbar */
    ::-webkit-scrollbar {
      width: 10px;
    }

    ::-webkit-scrollbar-track {
      background: #e2ecf5;
    }

    ::-webkit-scrollbar-thumb {
      background: linear-gradient(145deg, #083d5d, #1f6991);
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--accent);
    }

    /* ensure dropdowns on mobile are smooth */
    @media (max-width: 768px) {
      .menu.active {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
      }
    }

    /* Footer */
    footer {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: var(--white);
      padding: 30px 0 0;
      position: relative;
      overflow: hidden;
    }

    .footer-content {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 30px;
    }

    .footer-logo {
      display: flex;
      flex-direction: column;
    }

    .footer-logo img {
      max-width: 180px;
      height: auto;
      margin-bottom: 10px;
      background: #fff;
      padding: 5px;
      border-radius: 6px;
    }

    .footer-logo p {
      margin-bottom: 8px;
      color: var(--light-gray);
      font-size: 0.8rem;
      line-height: 1.4;
    }

    .contact-info {
      margin-top: 5px;
    }

    .contact-info p {
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8rem;
    }

    .contact-info i {
      color: var(--secondary);
      width: 14px;
      font-size: 0.8rem;
    }

    .footer-links h3,
    .footer-social h3,
    .footer-newsletter h3 {
      font-size: 1rem;
      margin-bottom: 12px;
      position: relative;
      padding-bottom: 6px;
      font-weight: 600;
    }

    .footer-links h3:after,
    .footer-social h3:after,
    .footer-newsletter h3:after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 30px;
      height: 2px;
      background: var(--secondary);
      border-radius: 2px;
    }

    .footer-links ul li {
      margin-bottom: 8px;
      transition: transform 0.3s;
    }

    .footer-links ul li:hover {
      transform: translateX(5px);
    }

    .footer-links a {
      color: var(--light-gray);
      transition: color 0.3s;
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 0.8rem;
    }

    .footer-links a:hover {
      color: var(--white);
    }

    .footer-links a i {
      color: var(--secondary);
      font-size: 0.7rem;
    }

    .footer-social ul {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .footer-social a {
      display: flex;
      align-items: center;
      gap: 5px;
      color: var(--light-gray);
      transition: all 0.3s;
      padding: 5px 10px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 5px;
      font-size: 0.8rem;
    }

    .footer-social a:hover {
      color: var(--white);
      background: rgba(77, 168, 218, 0.3);
      transform: translateY(-3px);
    }

    .footer-social i {
      font-size: 0.8rem;
    }

    .footer-newsletter p {
      margin-bottom: 12px;
      color: var(--light-gray);
      font-size: 0.8rem;
      line-height: 1.4;
    }

    .footer-newsletter .newsletter-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-newsletter .newsletter-form input {
      padding: 8px 10px;
      border: none;
      border-radius: 5px;
      background: rgba(255, 255, 255, 0.9);
      font-size: 0.8rem;
      outline: none;
      transition: all 0.3s;
    }

    .footer-newsletter .newsletter-form input:focus {
      background: var(--white);
      box-shadow: 0 0 0 2px var(--secondary);
    }

    .footer-newsletter .newsletter-form button {
      background: var(--secondary);
      color: var(--white);
      padding: 8px 10px;
      border-radius: 5px;
      font-weight: 500;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      font-size: 0.8rem;
    }

    .footer-newsletter .newsletter-form button:hover {
      background: #3a8bc2;
      transform: translateY(-2px);
    }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 15px 0;
      text-align: center;
      color: var(--light-gray);
      font-size: 0.75rem;
      position: relative;
      z-index: 1;
    }

    .footer-links-bottom {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .footer-links-bottom a {
      color: var(--light-gray);
      transition: color 0.3s;
      position: relative;
      font-size: 0.75rem;
    }

    .footer-links-bottom a:not(:last-child)::after {
      content: '|';
      position: absolute;
      right: -8px;
      color: var(--secondary);
    }

    .footer-links-bottom a:hover {
      color: var(--white);
    }

    .back-to-top {
      position: absolute;
      right: 15px;
      top: 0px;
      background: var(--secondary);
      color: var(--white);
      width: 35px;
      height: 35px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      transition: all 0.3s;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      opacity: 0;
      visibility: hidden;
    }

    .back-to-top:hover {
      background: #3a8bc2;
      transform: translateY(-3px);
    }

    .community-section {
      background: var(--white);
      /* FULL WIDTH SAME COLOR */
      padding: 20px 0;
    }

    .community-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }

    .community-section .container {
      margin-left: auto;
      margin-right: auto;

    }

    .community-text h2 {
      font-size: 2rem;
      color: var(--primary);
      margin-bottom: 20px;
    }

    .community-text p {
      margin-bottom: 15px;
      color: var(--gray);
    }

    .topics-section {
      margin-top: 30px;
    }

    .topics-section h3 {
      margin-bottom: 15px;
      color: var(--primary);
      font-size: 1.2rem;
    }

    .topics {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .topic {
      background: var(--white);
      border: 1px solid var(--primary);
      border-radius: 5px;
      padding: 8px 15px;
      font-size: 0.85rem;
      color: var(--primary);
      transition: var(--transition);
    }

    .topic:hover {
      background: var(--primary);
      color: var(--white);
      transform: translateY(-3px);
    }

    .community-image {
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    }

    .community-image img {
      width: 100%;
      height: auto;
      display: block;
    }



    .community-image:hover img {
      transform: scale(1.05);
    }

    /* Newsletter Section */
    .newsletter-section {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: var(--white);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .newsletter-content {
      position: relative;
      z-index: 1;
    }

    .newsletter-content h2 {
      font-size: 2.2rem;
      margin-bottom: 15px;
    }

    .newsletter-content p {
      margin-bottom: 30px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      opacity: 0.9;
    }

    .newsletter-form {
      display: flex;
      max-width: 500px;
      margin: 0 auto;
      border-radius: 5px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .newsletter-form input {
      flex: 1;
      padding: 15px 20px;
      border: none;
      font-size: 1rem;
    }

    .newsletter-form button {
      background: var(--accent);
      color: var(--white);
      padding: 0 25px;
      font-weight: 500;
      transition: var(--transition);
    }

    .newsletter-form button:hover {
      background: #e55a2b;
    }

    /* Latest Readings Section */
    .readings-section {
      background: var(--white);
    }

    .readings-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 30px;
    }

    .reading-card {
      background: var(--white);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: var(--transition);
    }

    .reading-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .reading-image {
      height: 220px;
      overflow: hidden;
      position: relative;
    }

    .reading-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: var(--transition);
    }

    .reading-card:hover .reading-image img {
      transform: scale(1.1);
    }

    .reading-content {
      padding: 25px;
    }

    .reading-content .date {
      font-size: 0.8rem;
      color: var(--secondary);
      margin-bottom: 10px;
      font-weight: 500;
    }

    .reading-content h3 {
      font-size: 1.3rem;
      color: var(--primary);
      margin-bottom: 15px;
      line-height: 1.4;
    }

    .reading-content p {
      font-size: 0.95rem;
      color: var(--gray);
      margin-bottom: 20px;
    }

    .reading-content a {
      color: var(--primary);
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .reading-content a:hover {
      color: var(--accent);
    }

    .load-more {
      text-align: center;
      margin-top: 50px;
    }
  </style>
  <!-- ========== FINAL RESPONSIVE & CREATIVE FIXES (added without removing any code) ========== -->
  <style>
    /* ensure container spacing does not break header */
    .container {
      margin-top: 0;
      /* override previous negative margin for proper flow */
    }

    /* fix welcome section height on small devices */
    @media (max-width: 768px) {
      .welcome-content {
        height: auto;
        min-height: 18vh;
        padding-bottom: 15px;
      }

      .welcome-content h1 {
        margin-bottom: 10px;
      }

      /* prevent certificate button overflow */
      #certificate {
        width: 90%;
        max-width: 280px;
        height: 48px;
        font-size: 0.95rem;
        margin: 0 auto;
      }
    }

    /* fine-tune footer back-to-top (hidden by default) */
    .back-to-top {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    /* ensure marquee text is always readable */
    .marquee-track button {
      white-space: nowrap;
    }

    /* extra touch: make all interactive elements pop */
    .nav-button,
    .btn,
    .topic,
    .tools-buttons button {
      transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    }

    /* guarantee full responsiveness for tools grid on very tiny devices */
    @media (max-width: 480px) {
      .tools-grid {
        grid-template-columns: 1fr;
      }

      .community-content {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .footer-content {
        grid-template-columns: 1fr;
      }
    }

    /* smooth dropdowns */
    .dropdown-menu {
      transition: opacity 0.2s;
    }

    /* consistent border radius */
    .btn,
    .nav-button,
    .topic,
    .tools-buttons button,
    .footer-social a {
      border-radius: 40px !important;
    }

    /* no code removed — all original intact */
    /* ===== MOBILE FIX ===== */

    @media (max-width: 768px) {

      .community-content {
        grid-template-columns: 1fr;
        /* single column */
        gap: 20px;
      }

      .community-image {
        display: none;
        /* 🔥 IMAGE HIDE ON PHONE */
      }

      .community-text h2 {
        font-size: 1.6rem;
      }

      .community-text p {
        font-size: 0.95rem;
      }
    }

    /* ===== FOOTER MOBILE FIX ===== */
    @media (max-width: 992px) {
      .footer-content {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .footer-logo {
        align-items: center;
      }

      .footer-links ul,
      .footer-social ul {
        align-items: center;
        justify-content: center;
      }

      .footer-links h3::after,
      .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
      }
    }

    /* ===== FULL WIDTH FOOTER FIX ===== */
    footer {
      width: 100%;
      margin: 0;
      padding-left: 0;
      padding-right: 0;
    }

    /* remove grey side gap */
    body {
      background-color: #ffffff;
      /* phone pe grey band remove */
    }

    /* container fix inside footer */
    footer .container {
      max-width: 100%;
      padding-left: 20px;
      padding-right: 20px;
    }

    /* ===== MOBILE FOOTER PERFECT ALIGN ===== */
    @media (max-width: 600px) {

      footer {
        border-radius: 0;
        /* rounded remove */
      }

      .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
      }

      .footer-logo {
        align-items: center;
      }

      .footer-logo img {
        margin: 0 auto 10px auto;
      }

      .contact-info p {
        justify-content: center;
      }

      .footer-links ul,
      .footer-social ul {
        justify-content: center;
        align-items: center;
      }

      .footer-links h3::after,
      .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
      }

      .footer-links a {
        justify-content: center;
      }

    }

    /*---------------images video play background code */
/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
}

/* ===== VIDEO ===== */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: -1;
}

/* ===== OVERLAY ===== */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);

  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;

  padding: 0 80px;
}

/* ===== CONTENT ===== */
.content {
  color: #fff;
  max-width: 600px;
  width: 100%;
}

/* ===== TEXT ===== */
.site-name {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tagline {
  font-size: 22px;
  margin-bottom: 20px;
}

/* ===== LIST ===== */
.content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content ul li {
  margin: 8px 0;
  font-size: 18px;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #ff6600;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.btn:hover {
  background: #e65c00;
}

/* ========================= */
/* 📱 TABLET */
/* ========================= */
@media (max-width: 992px) {
  .hero {
    height: 55vh; /* 🔥 thoda kam */
  }

  .overlay {
    padding: 0 40px;
  }

  .site-name {
    font-size: 34px;
  }

  .tagline {
    font-size: 18px;
  }

  .content ul li {
    font-size: 16px;
  }
}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */
@media (max-width: 600px) {
  .hero {
    height: 45vh; /* 🔥 MAIN FIX (pehle 75vh tha) */
  }

  .overlay {
    justify-content: center;
    text-align: center;
    padding: 15px;
  }

  .content {
    max-width: 100%;
  }

  .site-name {
    font-size: 28px; /* 🔥 pehle 58px bahut bada tha */
  }

  .tagline {
    font-size: 14px;
  }

  .content ul li {
    font-size: 13px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* ========================= */
/* 📱 SMALL DEVICES */
/* ========================= */
@media (max-width: 400px) {
  .hero {
    height: 40vh; /* 🔥 aur compact */
  }

  .site-name {
    font-size: 22px;
  }

  .tagline {
    font-size: 13px;
  }
}

/* Add to your CSS file */
.menu-link i {
  margin-right: 5px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  width: 24px; /* Fixed width for alignment */
  text-align: center;
}

.menu-link:hover i {
  transform: translateX(3px);
  color: var(--accent);
}

/* Specific icon colors (optional) */
.menu-link:hover .fa-house { color: #4da8da; }
.menu-link:hover .fa-circle-info { color: #ff6b35; }
.menu-link:hover .fa-flask { color: #00b894; }
.menu-link:hover .fa-laptop-code { color: #e84393; }
.menu-link:hover .fa-book-open { color: #f39c12; }
.menu-link:hover .fa-headset { color: #27ae60; }

@media (max-width: 768px) {
  .menu-link i {
    width: 28px;
    font-size: 1.2rem;
  }
  
  .menu-link {
    padding: 12px 0;
    font-size: 1rem;
  }
}