 * {
      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;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background-color: #f2f2f2;
      color: #333;
      line-height: 1.6;
      padding-top: 130px;
      overflow-x: hidden;
    }

    /* Header Styles */
    .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 Styles */
    .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;
    }

    /* Button Styles */
    .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);
    }

    /* Login/Register Button Box */
    .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: 125px;
      height: 100%;
      background: #083d5d;
      border-radius: 30px;
      transition: all 0.4s ease;
      z-index: 0;
    }

    #logInButton {
      color: white;
    }

    /* Lower Navigation Styles */
    .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 Menu Styles - SIMPLIFIED */
    .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;
      padding: 0;
      margin: 0;
    }

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

    .dropdown-menu .nav-link {
      padding: 12px 20px;
      border-bottom: 1px solid #f0f0f0;
      display: flex;
      align-items: center;
      width: 100%;
      color: #333;
      text-decoration: none;
      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 Styles */
    .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);
    }

    /* Hover effects for desktop */
    @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%;
      }
    }

    /* Responsive Styles - 768px and below */
    @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;
        position: relative;
      }
      
      .logo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 0;
      }
      
      .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;
       
      }
      
      .btn-box {
        width: 90%;
        box-shadow: none;
        background: none;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
         
         height: 120PX;
      }
      
      .btn-box #logInButton {
        color: #fff;
        background: #083d5d;
        width: 100%;
        margin: 0;
        border-radius: 30px;
        height: 48px;
        justify-content: center;
      }
      
      .btn-box #signUpBtn {
        border: 2px solid #083d5d;
        color: #083d5d;
        width: 100%;
        border-radius: 40px;
        background: white;
        height: 48px;
        justify-content: center;
      }
      
      #swap-btn {
        display: none;
      }
      
      .lowerNav {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 10px;
      }
      
      .lowerNav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
      }
      
      .lowerNav li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
      }
      
      .menu-link {
        padding: 16px 0;
        width: 100%;
        justify-content: flex-start;
        font-size: 1rem;
      }
      
      .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        display: none;
        padding-left: 20px;
        background: transparent;
        border-radius: 0;
        margin-top: 0;
      }
      
      .dropdown.active .dropdown-menu {
        display: block;
      }
      
      .dropdown-toggle .fa-chevron-down {
        margin-left: auto;
        transition: transform 0.3s ease;
      }
      
      .dropdown.active .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
      }
      
      .dropdown-menu .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid #e9ecef;
      }
      
      .dropdown-menu .nav-link:hover {
        padding-left: 10px;
        background: transparent;
      }
    }

    /* Rest of your CSS remains the same... */
    a {
      text-decoration: none;
      color: inherit;
      transition: var(--transition);
    }

    ul {
      list-style: none;
    }

    button {
      cursor: pointer;
      border: none;
      outline: none;
      font-family: 'Poppins', sans-serif;
      transition: var(--transition);
    }

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

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .section-padding {
      padding: 80px 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);
    }

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

  /* 🔥 FIX */
  display: block;
  clear: both;
}

.hero-clear {
  clear: both;
  width: 100%;
  height: 0;
}


    .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;
    }

    .slide-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to right, rgba(8, 61, 93, 0.7), rgba(8, 61, 93, 0.3));
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }

    .slide-content {
      max-width: 600px;
      color: var(--white);
      padding: 0 40px;
      width: 100%;
    }

    .slide-content h2 {
      font-size: clamp(1.8rem, 4vw, 3rem);
      margin-bottom: 20px;
      line-height: 1.2;
    }

    .slide-content p {
      font-size: clamp(0.9rem, 2vw, 1.1rem);
      margin-bottom: 30px;
      opacity: 0.9;
    }

    .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);
  position: relative;
  z-index: 2;   /* 🔥 important */
}

.hero::after {
  content: "";
  display: block;
  clear: both;
}


    .welcome-content {
      text-align: center;
      max-width: 900px;
      margin: 0 auto;
    }

    .welcome-content h1 {
      font-size: 2.5rem;
      color: var(--primary);
      margin-bottom: 20px;
      line-height: 1.3;
    }

    .welcome-content p {
      font-size: 1.1rem;
      color: var(--gray);
      margin-bottom: 30px;
    }

    /* About Section */
    .about-section {
      background: var(--light);
      position: relative;
    }

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

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

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

    .about-image {
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .about-image img {
      width: 100%;
      height: auto;
      transition: var(--transition);
    }

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

    /* Cards Section - UPDATED */
    .cards-section {
      background: var(--white);
    }

    .scroll-container {
      display: flex;
      overflow-x: auto;
      gap: 25px;
      padding: 20px 10px;
      scroll-behavior: smooth;
      justify-content: flex-start;
    }

    .scroll-container::-webkit-scrollbar {
      height: 8px;
    }

    .scroll-container::-webkit-scrollbar-thumb {
      background: var(--secondary);
      border-radius: 10px;
    }

    .card {
      min-width: 280px;
      max-width: 300px;
      background: var(--white);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: var(--transition);
      position: relative;
      display: flex;
      flex-direction: column;
      flex-shrink: 0; /* Prevent cards from shrinking */
    }

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

    .card-image {
      height: 180px;
      overflow: hidden;
      position: relative;
      flex-shrink: 0; /* Prevent image from shrinking */
    }

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

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

    .card-content {
      padding: 20px;
      flex-grow: 1; /* Allow content to grow and fill space */
      display: flex;
      flex-direction: column;
    }

    .card h3 {
      font-size: 1.3rem;
      color: var(--primary);
      margin-bottom: 10px;
    }

    .card p {
      font-size: 0.9rem;
      color: var(--gray);
      margin-bottom: 5px;
      line-height: 1.4;
    }

    /* Responsive adjustments for cards */
    @media (max-width: 768px) {
      .scroll-container {
        gap: 20px;
        padding: 15px 10px;
      }
      
      .card {
        min-width: 260px;
      }
      
      .card-image {
        height: 160px;
      }
      
      .card-content {
        padding: 15px;
      }
      
      .card h3 {
        font-size: 1.2rem;
      }
      
      .card p {
        font-size: 0.85rem;
      }
    }

    @media (max-width: 576px) {
      .scroll-container {
        gap: 15px;
        padding: 10px 5px;
      }
      
      .card {
        min-width: 240px;
      }
      
      .card-image {
        height: 140px;
      }
      
      .card-content {
        padding: 12px;
      }
      
      .card h3 {
        font-size: 1.1rem;
      }
      
      .card p {
        font-size: 0.8rem;
      }
    }

    @media (max-width: 360px) {
      .card {
        min-width: 220px;
      }
      
      .card-image {
        height: 120px;
      }
    }

    /* Scientific Community Section */
    .community-section {
      background: var(--light);
    }

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

    .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 {
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .community-image img {
      width: 100%;
      height: auto;
      transition: var(--transition);
    }

    .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;
    }

    /* 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(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-bottom: 20px;
      position: relative;
      z-index: 1;
    }

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

    .footer-logo img {
      height: 70px;
      margin-bottom: 10px;
      width: 260px;
      background-color: #ffffff;
    }

    .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);
    }

    /* Mobile Footer Styles */
    @media (max-width: 768px) {
      footer {
        padding: 20px 0 0;
      }
      
      .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
      }
      
      .footer-logo img {
        height: 60px;
        width: 220px;
        margin: 0 auto 10px;
      }
      
      .footer-logo p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 10px;
      }
      
      .contact-info {
        margin-top: 8px;
      }
      
      .contact-info p {
        justify-content: center;
        font-size: 0.75rem;
        margin-bottom: 5px;
      }
      
      .footer-links h3, 
      .footer-social h3, 
      .footer-newsletter h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
        padding-bottom: 5px;
      }
      
      .footer-links h3:after, 
      .footer-social h3:after, 
      .footer-newsletter h3:after {
        left: 50%;
        transform: translateX(-50%);
      }
      
      .footer-links ul li {
        margin-bottom: 6px;
      }
      
      .footer-links a {
        font-size: 0.75rem;
        padding: 4px 0;
        justify-content: center;
      }
      
      .footer-social ul {
        justify-content: center;
        gap: 6px;
      }
      
      .footer-social a {
        font-size: 0.75rem;
        padding: 6px 8px;
      }
      
      .footer-newsletter p {
        font-size: 0.75rem;
        margin-bottom: 10px;
      }
      
      .footer-newsletter .newsletter-form input {
        padding: 10px 12px;
        font-size: 0.8rem;
      }
      
      .footer-newsletter .newsletter-form button {
        padding: 10px 12px;
        font-size: 0.8rem;
      }
      
      .footer-bottom {
        padding: 12px 0;
      }
      
      .footer-bottom p {
        font-size: 0.7rem;
        margin-bottom: 8px;
      }
      
      .footer-links-bottom {
        gap: 8px;
        margin-top: 6px;
      }
      
      .footer-links-bottom a {
        font-size: 0.7rem;
      }
      
      .back-to-top {
        right: 10px;
        top: -15px;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
      }
    }

    @media (max-width: 480px) {
      footer {
        padding: 15px 0 0;
      }
      
      .footer-content {
        gap: 20px;
      }
      
      .footer-logo img {
        height: 50px;
        width: 180px;
      }
      
      .footer-logo p {
        font-size: 0.7rem;
      }
      
      .contact-info p {
        font-size: 0.7rem;
      }
      
      .footer-links h3, 
      .footer-social h3, 
      .footer-newsletter h3 {
        font-size: 0.9rem;
      }
      
      .footer-links a,
      .footer-social a {
        font-size: 0.7rem;
      }
      
      .footer-social ul {
        gap: 4px;
      }
      
      .footer-social a {
        padding: 5px 6px;
      }
      
      .footer-newsletter p {
        font-size: 0.7rem;
      }
      
      .footer-newsletter .newsletter-form input {
        padding: 8px 10px;
        font-size: 0.75rem;
      }
      
      .footer-newsletter .newsletter-form button {
        padding: 8px 10px;
        font-size: 0.75rem;
      }
      
      .footer-bottom p {
        font-size: 0.65rem;
      }
      
      .footer-links-bottom {
        flex-direction: column;
        gap: 6px;
      }
      
      .footer-links-bottom a:not(:last-child)::after {
        display: none;
      }
      
      .back-to-top {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
      }
    }

    @media (max-width: 360px) {
      .footer-logo img {
        height: 45px;
        width: 160px;
      }
      
      .footer-logo p {
        font-size: 0.65rem;
      }
      
      .footer-links a,
      .footer-social a {
        font-size: 0.65rem;
      }
      
      .footer-newsletter .newsletter-form input,
      .footer-newsletter .newsletter-form button {
        padding: 7px 8px;
        font-size: 0.7rem;
      }
      
      .footer-bottom p {
        font-size: 0.6rem;
      }
      
      .footer-links-bottom a {
        font-size: 0.6rem;
      }
    }

    /* Responsive Styles */
    @media (max-width: 992px) {
      .hero {
        height: 60vh;
        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;
      }
    }

    @media (max-width: 768px) {
      .hero {
        height: 50vh;
        min-height: 300px;
        max-height: 500px;
      }
      
      .slide-content {
        padding: 0 20px;
        text-align: center;
      }
      
      .slide-overlay {
        justify-content: center;
      }
      
      footer {
        padding: 25px 0 0;
      }
      
      .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
      }
      
      .footer-social ul {
        justify-content: center;
      }
      
      .back-to-top {
        right: 10px;
        top: -12px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
      }
      
      .section-padding {
        padding: 60px 0;
      }
      
      .section-title h2 {
        font-size: 1.8rem;
      }
      
      .welcome-content h1 {
        font-size: 2rem;
      }
      
      .readings-grid {
        grid-template-columns: 1fr;
      }
      
      .card-image {
        height: 160px;
      }
      
      .reading-image {
        height: 200px;
      }
    }

    @media (max-width: 576px) {
      .hero {
        height: 45vh;
        min-height: 250px;
        max-height: 400px;
      }
      
      .slide-content {
        padding: 0 15px;
      }
      
      .hero-dots {
        bottom: 20px;
      }
      
      .container {
        padding: 0 15px;
      }
      
      .section-padding {
        padding: 50px 0;
      }
      
      .welcome-content h1 {
        font-size: 1.8rem;
      }
      
      .section-title h2 {
        font-size: 1.6rem;
      }
      
      .card {
        min-width: 280px;
      }
      
      .footer-links-bottom {
        flex-direction: column;
        gap: 8px;
      }
      
      .footer-links-bottom a:not(:last-child)::after {
        display: none;
      }
      
      .newsletter-form {
        flex-direction: column;
      }
      
      .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
      }
      
      .newsletter-form button {
        border-radius: 5px;
        padding: 12px;
      }
      
      .card-image {
        height: 140px;
      }
      
      .reading-image {
        height: 180px;
      }
    }

    /* Fix for very small screens */
    @media (max-width: 360px) {
      body {
        padding-top: 80px;
      }
      
      .hero {
        height: 40vh;
        min-height: 200px;
        max-height: 300px;
      }
      
      .nav {
        padding: 5px 10px;
      }
      
      .logo img {
        height: 55px;
      }
      
      .menu {
        padding: 10px;
      }
      
      .upperNav .nav-button {
        font-size: 0.9rem;
        height: 40px;
      }
      
      .menu-link {
        padding: 12px 0;
        font-size: 0.9rem;
      }
      
      .slide-content h2 {
        font-size: 1.5rem;
      }
      
      .slide-content p {
        font-size: 0.9rem;
      }
      
      .section-padding {
        padding: 40px 0;
      }
      
      .welcome-content h1 {
        font-size: 1.6rem;
      }
      
      .card {
        min-width: 250px;
      }
      
      .card-image {
        height: 120px;
      }
      
      .reading-image {
        height: 160px;
      }
    }

    /* Fix for landscape orientation on mobile */
    @media (max-height: 500px) and (orientation: landscape) {
      body {
        padding-top: 80px;
      }
      
      .hero {
        height: 80vh;
        min-height: 300px;
      }
      
      .nav {
        height: 70px;
      }
      
      .menu {
        top: 70px;
        height: calc(100vh - 70px);
      }
      
      .card-image {
        height: 120px;
      }
      
      .reading-image {
        height: 140px;
      }
    }

    /* Fix for tablets in portrait mode */
    @media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
      .hero {
        height: 55vh;
        min-height: 450px;
      }
      
      .about-content, .community-content {
        grid-template-columns: 1fr;
      }
      
      .about-image, .community-image {
        order: -1;
      }
    }

    /* Fix for tablets in landscape mode */
    @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
      .hero {
        height: 65vh;
        min-height: 500px;
      }
    }


    
    /* UPDATED: Rating System Layout with Star in Counter */
    .rating-system-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-top: 15px;
      gap: 20px;
    }

    .rating-counter-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 15px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      min-width: 120px;
      position: relative;
      margin-top: -100px;
      margin-left: 250px;
      width: 160px;
    }

    .counter-star {
      color: #FFD700;
      font-size: 1.8rem;
      margin-bottom: 5px;
    }

    .rating-counter {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--white);
      line-height: 1;
    }

    .rating-label {
      font-size: 0.7rem;
      color: var(--light-gray);
      white-space: nowrap;
      margin-top: 3px;
    }

    .footer-rating-container {
      flex: 1;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 12px 15px;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .star-rating-section {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .star-rating-section h4 {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--light);
      margin: 0;
    }

    .star-container {
      display: flex;
      gap: 5px;
      cursor: pointer;
    }

    .star {
      font-size: 24px;
      color: #555;
      transition: all 0.2s ease;
    }

    .star:hover,
    .star.active {
      color: #FFD700;
      transform: scale(1.2);
    }

    .rating-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
      width: 100%;
      margin-top: 10px;
    }

    .submit-rating {
      background: var(--secondary);
      color: var(--white);
      border: none;
      padding: 6px 15px;
      border-radius: 5px;
      font-weight: 500;
      transition: var(--transition);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 0.8rem;
      width: 100%;
      justify-content: center;
    }

    .submit-rating:hover {
      background: #3a8bc2;
      transform: translateY(-2px);
    }

    .submit-rating:disabled {
      background: #777;
      cursor: not-allowed;
      transform: none;
    }

    .thank-you-message {
      color: var(--secondary);
      font-weight: 500;
      font-size: 0.8rem;
      display: none;
      text-align: center;
    }

    /* Mobile Footer Styles */
    @media (max-width: 768px) {
      footer {
        padding: 20px 0 0;
      }
      
      .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
      }
      
      .footer-logo img {
        height: 60px;
        width: 220px;
        margin: 0 auto 10px;
      }
      
      .footer-logo p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 10px;
      }
      
      .contact-info {
        margin-top: 8px;
      }
      
      .contact-info p {
        justify-content: center;
        font-size: 0.75rem;
        margin-bottom: 5px;
      }
      
      .footer-links h3, 
      .footer-social h3, 
      .footer-newsletter h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
        padding-bottom: 5px;
      }
      
      .footer-links h3:after, 
      .footer-social h3:after, 
      .footer-newsletter h3:after {
        left: 50%;
        transform: translateX(-50%);
      }
      
      .footer-links ul li {
        margin-bottom: 6px;
      }
      
      .footer-links a {
        font-size: 0.75rem;
        padding: 4px 0;
        justify-content: center;
      }
      
      .footer-social ul {
        justify-content: center;
        gap: 6px;
      }
      
      .footer-social a {
        font-size: 0.75rem;
        padding: 6px 8px;
      }
      
      .footer-newsletter p {
        font-size: 0.75rem;
        margin-bottom: 10px;
      }
      
      .footer-newsletter .newsletter-form input {
        padding: 10px 12px;
        font-size: 0.8rem;
      }
      
      .footer-newsletter .newsletter-form button {
        padding: 10px 12px;
        font-size: 0.8rem;
      }
      
      .footer-bottom {
        padding: 12px 0;
      }
      
      .footer-bottom p {
        font-size: 0.7rem;
        margin-bottom: 8px;
      }
      
      .footer-links-bottom {
        gap: 8px;
        margin-top: 6px;
      }
      
      .footer-links-bottom a {
        font-size: 0.7rem;
      }
      
      .back-to-top {
        right: 20px;
        top: -15px;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
      }
      
      /* Mobile adjustments for rating system */
      .rating-system-wrapper {
        flex-direction: column;
        gap: 10px;
      }
      
      .rating-counter-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
        min-width: auto;
        padding: 10px 15px;
        width: 100%;
      }
      
      .counter-star {
        font-size: 1.5rem;
        margin-bottom: 0;
      }
      
      .rating-counter {
        font-size: 1.4rem;
      }
      
      .rating-label {
        font-size: 0.8rem;
        margin-top: 0;
      }
      
      .star {
        font-size: 22px;
      }
      
      .submit-rating {
        padding: 8px 15px;
        font-size: 0.85rem;
      }
    }

    @media (max-width: 480px) {
      footer {
        padding: 15px 0 0;
      }
      
      .footer-content {
        gap: 20px;
      }
      
      .footer-logo img {
        height: 50px;
        width: 180px;
      }
      
      .footer-logo p {
        font-size: 0.7rem;
      }
      
      .contact-info p {
        font-size: 0.7rem;
      }
      
      .footer-links h3, 
      .footer-social h3, 
      .footer-newsletter h3 {
        font-size: 0.9rem;
      }
      
      .footer-links a,
      .footer-social a {
        font-size: 0.7rem;
      }
      
      .footer-social ul {
        gap: 4px;
      }
      
      .footer-social a {
        padding: 5px 6px;
      }
      
      .footer-newsletter p {
        font-size: 0.7rem;
        margin-bottom: 10px;
      }
      
      .footer-newsletter .newsletter-form input {
        padding: 8px 10px;
        font-size: 0.75rem;
      }
      
      .footer-newsletter .newsletter-form button {
        padding: 8px 10px;
        font-size: 0.75rem;
      }
      
      .footer-bottom p {
        font-size: 0.65rem;
      }
      
      .footer-links-bottom {
        flex-direction: column;
        gap: 6px;
      }
      
      .footer-links-bottom a:not(:last-child)::after {
        display: none;
      }
      
      .back-to-top {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
      }
      
      /* Small mobile adjustments for rating system */
      .rating-counter-container {
        padding: 8px 12px;
      }
      
      .counter-star {
        font-size: 1.3rem;
      }
      
      .star {
        font-size: 20px;
      }
      
      .rating-counter {
        font-size: 1.3rem;
      }
      
      .rating-label {
        font-size: 0.75rem;
      }
    }

 /* ================= LIVE MARQUEE ================= */
.live-marquee {
  position: relative;
  width: 100%;
  height: 52px;
  background: #083d5d;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 5;
}

/* pause on hover */
.live-marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* scrolling text */
.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  padding-left: 100%;
  padding-right: 120px; /* 🔥 LIVE badge safe space */
}

.marquee-track span {
  font-size: 0.95rem;
  font-weight: 500;
}

.marquee-track a {
  color: #ffffff;
  text-decoration: none;
}

.marquee-track a:hover {
  text-decoration: underline;
  color: #ffdddd;
}

/* LIVE badge */
.live-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(181, 224, 13, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

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

/* animations */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 768px) {
  .live-marquee {
    height: 46px;
  }

  .marquee-track span {
    font-size: 0.82rem;
  }

  .marquee-track {
    padding-right: 95px;
  }

  .live-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .live-marquee {
    height: 42px;
  }

  .marquee-track span {
    font-size: 0.75rem;
  }

  .marquee-track {
    padding-right: 80px;
  }

  .live-badge {
    right: 6px;
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .live-dot {
    width: 8px;
    height: 8px;
  }
}
/* ================= FOOTER RESPONSIVE FIX ONLY ================= */

/* Ensure footer never overflows */
footer {
  width: 100%;
  overflow-x: hidden;
}

/* Grid auto-fix */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

/* Logo image responsive */
.footer-logo img {
  max-width: 100%;
  height: auto;
}

/* Text wrap fix */
.footer-logo p,
.footer-links a,
.footer-social a,
.footer-newsletter p {
  word-break: break-word;
}

/* Social links wrap properly */
.footer-social ul {
  flex-wrap: wrap;
}

/* Rating system safety */
.rating-system-wrapper {
  flex-wrap: wrap;
}

/* ================= PHONE ONLY ================= */
@media (max-width: 480px) {
  .rating-counter-container {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

/* Back to top always visible inside footer */
.back-to-top {
  right: 15px;
  bottom: 15px;
  top: auto;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

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

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

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

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

  .rating-system-wrapper {
    align-items: center;
  }

  .footer-rating-container {
    width: 100%;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {

  footer {
    padding: 20px 0 0;
  }

  .footer-links-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .footer-links-bottom a::after {
    display: none;
  }

  .rating-counter-container {
    width: 100%;
    justify-content: center;
  }
}

/* ================= LARGE SCREENS ================= */
@media (min-width: 1200px) {
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
  }
}
