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

:root {
  --body-bg: radial-gradient(circle at center, #2c5364, #0f2027);
  --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #000000;
      --divider-color: #000000; /* Light mode */
  --box-bg: #ffffff; /* Light mode */
  --primary-color: #0d6efd; /* Light mode Bootstrap Blue */
 --card-bg: #ffffff;
  --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Bootstrap shadow-sm */
  --container-bg: #ffffff;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: var(--body-bg);
  color: var(--text-color);
  font-family: Arial, sans-serif;
}

.container {
  max-width: 425px;
  margin: auto;
  background-color: var(--container-bg);
  min-height: 100vh;
  
}

/* Dark theme variables */
body.dark {
  --body-bg: radial-gradient(circle at center, #000000, #1a1a1a);
  --text-color: #ffffff;
   --bg-color: #171717;
    --border-color: #ffffff;
  --container-bg: #171717;
    --divider-color: #ffffff; /* Dark mode */
  --box-bg: #171717; /* Dark mode */
  --primary-color: #66b2ff; /* Softer blue for dark mode */
  --card-bg: #1e1e1e;
  --card-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.05); /* lighter white shadow in dark */
    --padding: 12px;
  --line-height: 1.7;
  --max-width: 428px;
}

.custom-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px dashed var(--border-color);
  color: var(--text-color);
  background-color: var(--background-color);
  text-decoration: none;
  border-radius: 1rem; /* rounded-3 */
  padding: 0.5rem 1rem; /* py-2 px-3 */
  margin-top: 1rem; /* mt-3 */
  transition: all 0.3s ease;
}

.themed-box {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  padding: var(--padding);
  color: var(--text-color);
  line-height: var(--line-height);
  max-width: var(--max-width);
  margin: auto;
  transition: all 0.3s ease;
}


.themed-divider {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--divider-color);
}
.text-theme {
  color: var(--text-color);
  text-decoration: none;
}

.theme-box {
  background-color: var(--box-bg); /* bg-white equivalent */
  padding: 0.25rem;                /* p-1 = 4px = 0.25rem */
  border-radius: 0.5rem;           /* rounded-2 = 8px = 0.5rem */
  transition: background-color 0.3s ease;
}

.theme-heading {
  font-weight: bold;         /* fw-bold */
  margin-bottom: 1rem;       /* mb-3 = 16px = 1rem */
  color: var(--primary-color); /* text-primary */
  transition: color 0.3s ease;
}

.theme-card {
  background-color: var(--card-bg);   /* bg-white */
  margin-top: 0.25rem;                /* mt-1 = 4px = 0.25rem */
  padding: 1rem;                      /* p-3 = 16px = 1rem */
  border-radius: 1rem;                /* rounded-3 = 16px = 1rem */
  box-shadow: var(--card-shadow);    /* shadow-sm */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

 .options {
        display: flex;
        gap: 20px;
      }

      .option {
        background-color: #1e1e1e;
        border-radius: 15px;
        overflow: hidden;
        cursor: pointer;
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
        width: 160px;
        
      }

      .option:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
      }

      .option img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
      }

      .option span {
        display: block;
        padding: 7px 0;
        font-size: 18px;
        background-color: #222;
      }
    .button-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: 100%;
      max-width: 428px;
      padding: 10px 10px;
      background-color: red;
      border-radius: 10px;
      text-decoration: none;
      color: white;
     font-size: 1.1rem;
      font-weight: bold;
      text-align: center;
    }

    .button-container img {
      height: 35px;
      width: auto;
    }

.br-green{
border: 1px solid #D7F5E4;
background-color: #D7F5E4;
}
.br-red{
border: 1px solid #FFEDED;
background-color: #FFEDED;
}
.br-blue{
border: 1px solid #E3EEFF;
background-color: #E3EEFF;
}
.br-purple{
border: 1px solid #F4E5FF;
background-color: #F4E5FF;
}
.br-orange{
border: 1px solid #FFE9D5;
background-color: #FFE9D5;
}
.br-pink{
border: 1px solid #FFE6F2;
background-color: #FFE6F2;
}


.header-right {
display: flex;
align-items: center;
gap: 16px;
font-size: 18px;
flex: 0 0 auto;
}

.header-right i {
  font-size: 30px;
  cursor: pointer;
}
.menu-icon {
font-size: 30px;
cursor: pointer;
flex: 0 0 auto;
}
.header-left {
display: flex;
align-items: center;
gap: 12px;
flex: 0 0 auto;
}
.menu-icon {
font-size: 30px;
cursor: pointer;
flex: 0 0 auto;
}


.w-30{
    width: 30%;
}
.w-48{
    width: 48%;
}

.fs10{
    font-size: 10px;
}
.fs14{
    font-size: 14px;
}
.fs22{
    font-size: 22px;
}

.ls3{
    letter-spacing: 3px;
}

.cust-bg-orange{
    background-color: rgba(255, 135, 31, 0.1);
}
.cust-bg-blue{
    background-color: rgba(61, 139, 255, 0.1);
}
.cust-bg-green{
    background-color: rgba(31, 163, 90, 0.1);
}


.cust-border{
    border: 1px solid #F3F3F3;
}
.dashed-cust-border{
    border: 1px dashed rgba(0, 0, 0, 0.1);
}


a{
  text-decoration: none;
}
.row{
width: 100% !important;
margin-left: 0  !important;
margin-right: 0  !important;
padding: 0 !important;
}
.w-fit{
  width: fit-content;
}

.w-60{
  width: 37%;
}
.w-58{
width: 36%;
}
.w-40{
width: 40%;
}
.fs10{
  font-size: 10px;
  margin-top: 10px;
}
.fs14{
font-size: 12px;

}
.fs37{
  font-size: 37px;
}
.fs38{
  font-size: 38px;
}
.fs30{
  font-size: 30px;
}

.lh-0{
line-height: 1;
}



.gradient-bg-btn{
background-color: #FF8921;
border: 2px solid #FF8921 !important;
border-radius: 8px !important;
color: #ffffff !important;

}


.gradient-border{
border-radius: 12px !important;
background: linear-gradient(white, white) padding-box, 
linear-gradient(90deg, #A417C6 0%, #16267D 100%) border-box;
border: 1px solid transparent;
}

.gap-y-3{
  gap: 15px 0;
}

.input{
  border: 1px solid #CACACA;
  border-radius: 10px;
  display: block;
  width: 100%;
  padding: 8px;
  margin-top: 6px;
}

.input:focus{
  border: 1px solid #CACACA;
  outline:none ;
}

/* swithch toggle  */
.switch-wrapper {
  position: absolute;
  display: inline-flex;
  /* padding: 4px; */
  border: 1px solid #FF8921;
  margin-bottom: 40px;
  border-radius: 30px;
  background: #FF8921;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);

  top: 4px;
  right: 4px;
}

.switch-wrapper [type="radio"] {
  position: absolute;
  left: -9999px;
}

.switch-wrapper [type="radio"]:checked#monthly ~ label[for="monthly"],
.switch-wrapper [type="radio"]:checked#yearly ~ label[for="yearly"] {
  color: rgb(255, 255, 255);
}

.switch-wrapper [type="radio"]:checked#monthly ~ label[for="monthly"]:hover,
.switch-wrapper [type="radio"]:checked#yearly ~ label[for="yearly"]:hover {
  background: #FF8921;
 
}

.switch-wrapper
  [type="radio"]:checked#monthly
  + label[for="yearly"]
  ~ .highlighter {
  transform: none;
}

.switch-wrapper
  [type="radio"]:checked#yearly
  + label[for="monthly"]
  ~ .highlighter {
  transform: translateX(100%);
}

.switch-wrapper label {
  font-size: 12px;
  z-index: 1;
  min-width: 59px;
  line-height: 32px;
  cursor: pointer;
  border-radius: 25px;
  transition: color 0.25s ease-in-out;
  color: #FF8921;
  font-weight: 600;
}


.switch-wrapper .highlighter {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 30px;
  background: #FF8921;
  transition: transform 0.25s ease-in-out;
}

#results span{
  font-size: 14px;
}


    .top-stories {
      overflow-x: auto;
    }

     .cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .card {
    flex: 0 0 70%; /* Show 2.5 cards roughly */
    max-width: 180px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 210px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
  }

  .card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }

  .card-content {
    padding: 5px;
    flex-grow: 1;
  }

  .card-content a {
    font-size: 11px;
    font-weight: 500;
    color: #1a0dab;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3em;
    margin-bottom: 4px;
  }

  .card-subtext {
    font-size: 8px;
    color: #888;
    line-height: 1.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-footer {
    padding: 8px 10px;
    font-size: 11px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid #e0e0e0;
  }

  .card-footer img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
  }

  /* Hide scrollbars on mobile (optional) */
  .cards::-webkit-scrollbar {
    display: none;
  }
  .cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
    .card-updated {
    font-size: 11px;
    color: #999;
   margin: 0;
  }
.btn-counter-container{
  margin: 7px 0;
  width: 100%;
  display: none;
  justify-content: center;
}
