/* ====================
   BASE STYLES
==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
   background: linear-gradient(to bottom,#eafaf1 ,#fafafa,#fafafa );
   color: #000;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   line-height: 1.6;
}

header {
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0px;
  font-size: 2rem;
  font-weight: 700;
  padding: 15px 20px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #0000FF, red, #99FF00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.logo-text .dot {
  color: #000;
  background: none;
  -webkit-text-fill-color: initial;
}

/* Ticker */
.crypto-ticker-wrapper {
  flex: 1;
  overflow: hidden;
  background: transparent;
  height: 30px;
  display: flex;
  align-items: center;
  max-width: 74%;
}
.crypto-ticker {
  display: flex;
  animation: scrollTicker 500s linear infinite;
}
.crypto-ticker ul {
  display: flex;
  gap: 40px;
  list-style: none;
  white-space: nowrap;
}
.crypto-ticker li {
  color: black;
  font-size: 15px;
  font-weight: 600;
}
.price-up { color: #4caf50; }
.price-down { color: #e53935; }

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.date-time {
  font-size: 15px;
  color: black;
}
/* Base Navbar Style */
.navbar {
  background: transparent;
}

.navbar ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 10px 0;
  gap: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.navbar a {
  color: #3300FF;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

.navbar a:hover {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #3300FF;
  cursor: pointer;
  margin: 10px auto;
}
main {
  padding: 20px;
}
/* Main Shortener Section */
.shortener-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  
}

.shortener-box {
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  padding: 30px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #4a148c;
}
.shortener-box:hover {
  transform: translateY(-5px);
}
.shortener-box h2{
  font-size: 1.25rem;
  color:#4a148c;
  text-decoration: underline;
}
.shortener-box input[type="url"],
.shortener-box input[type="text"] {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 1rem;
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px 0;
}

.button-group button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#copyBtn {
  background-color: #28a745;
  color: white;
  margin-top: 10px;
}

#clearBtn {
  background-color: #6c757d;
  color: white;
}

button[type="submit"] {
  background-color: #007bff;
  color: white;
}

.result-box {
  margin-top: 15px;
  font-size: 1rem;
  color:#333;
}

.news-section,
.blog-section,
.about-section,
.contact-section {
  margin-bottom: 40px;
  background: transparent;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 4px 4px 6px transparent;
}

/* ====================
   BLOG STYLES
==================== */
.blog-section {
  padding: 40px 20px;
  max-width: 1300px;
  margin: auto;
}
.blog-section h2,
.blog-container h2 {
  padding-left: 20px;
  font-size: 1.25rem;
  margin-bottom: 15px;
  color:#4a148c;
  text-decoration: underline;
}
.blog-container {
  padding: 40px 20px;
  margin: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.blog-card {
  background-color: transparent;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
  border: 1px solid #eaecee;
}
.blog-card:hover {
  transform: translateY(-5px);
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}
.blog-card .tag {
  display: inline-block;
  background-color:#239b56;
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}
.blog-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}
.blog-card .read-more {
  display: inline-block;
  background-color: #e53935;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.blog-card .read-more:hover {
  background-color: #d32f2f;
}
.see-all-btn {
 font-weight:700;
 font-size: 1.03rem;
}
/* ====================
   NEWS STYLES
==================== */
.news-section h2 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  border-left: 5px solid transparent;
  padding-left: 10px;
  color:#4a148c;
  text-decoration: underline;
}
.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.news-card {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #eaecee;
}
.news-card:hover {
  transform: scale(1.02);
}
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #eaeaea;
  display: block;
}
.news-card img[src*="default.gif"],
.news-card img:not([src]) {
  object-fit: contain;
  opacity: 0.6;
  background-color: #f0f0f0;
  padding: 10px;
}
.news-content {
  padding: 15px;
}
.news-content h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}
.news-content h3 a {
  text-decoration: none;
  color: #007bff;
}
.news-content p {
  font-size: 0.9rem;
  color: #555;
}
/**********Knowpad.html*****************/
 .container {
      max-width: 1200px;
      margin: 30px auto;
      padding: 20px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }

    .card {
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      width: 100%;
      max-width: 360px;
      display: flex;
      flex-direction: column;
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .card-content {
      padding: 20px;
    }

    .tag {
      background: #198754;
      color: #fff;
      padding: 5px 12px;
      border-radius: 8px;
      display: inline-block;
      margin-bottom: 10px;
      font-size: 0.85rem;
    }

    .card h3 {
      font-size: 1.2rem;
      color: #222;
    }

    .card p {
      font-size: 0.95rem;
      color: #444;
      margin: 12px 0;
    }

    .read-more {
      background-color:transparent;
      color:#FF0000;
      text-decoration: none;
      padding: 10px 16px;
      border-radius: 6px;
      display: inline-block;
      font-weight: bold;
      transition: background-color 0.3s ease;
      font-weight:550;
      font-size: 1.13rem;
      
    }

    .read-more:hover {
      background-color:transparent;
    }


/* ====================
   CONTACT + ABOUT
==================== */
#contact {
  max-width: 750px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color:transparent;
  
}

#contact h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color:#4a148c;
  text-decoration: underline;
}

.styled-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.styled-contact-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
}

.styled-contact-form input,
.styled-contact-form textarea {
  padding: 10px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 1rem;
  transition: border 0.3s;
}

.styled-contact-form input:focus,
.styled-contact-form textarea:focus {
  border: 1px solid #eaecee;
  outline: none;
}

.styled-contact-form button {
  align-self: flex-start;
  background-color: #ff4d4d;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.styled-contact-form button:hover {
  background-color: #e60000;
}

/* About Us */
.page-wrapper {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
   }
.about-wrapper {
  background-color: transparent;
  padding: 40px 15px;
  display: flex;
  justify-content: center;
}
.about-card {
  background-color: transparent;
  padding: 40px 30px;
  max-width: 750px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
 }
.about-card h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
  color:#4a148c;
  text-decoration: underline;
}
.about-card p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: black;
  line-height: 1.7;
}

/* ====================
   FOOTER
==================== */
/* Footer Main Style */
.footer-container {
  display: flex;
  justify-content:space-between;
  align-items: center;
  padding: 25px;
  background-color:#1c2b3a;
  color:#ccc;
  flex-wrap: wrap;
}

.footer-left p {
  margin: 0;
  font-size: 0.95rem;
  align-items: center;
}

.footer-container a {
  color: white;
  text-decoration: none;
  align-items: center;
}
.footer-container a:hover {
  text-decoration: underline;
}

/* Top Button */
.top-btn {
  background-color:#e60000;
  color: #fff;
  border: none;
  font-size: 24px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.top-btn:hover {
  background-color:#e60000;
}
/* ====================
   MEDIA QUERIES
==================== */

/* Tablets & Mobile (≤768px) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

   .site-logo {
    font-size: 1.5rem;
    margin-bottom: 0px; /* ↓ Reduce this value as needed */
    padding-bottom: 0;
  }
  .logo-text {
  font-size:2rem;
  font-weight: 800;
 }
 .crypto-ticker-wrapper {
    margin-top: 0;  /* Remove extra space from above */
    padding-top: 0;
  }
 .hamburger {
    display: block;
    margin-left: 15px; 
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border-radius: 10px;
    padding: 5px 0px;
    box-shadow: 0 4px 8px transparent;
  }

  .navbar.active ul {
    display: flex;
  }

  .navbar a {
    padding: 1px;
    font-size: 1.3rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid transparent;
    text-decoration: underline;
  }

  .navbar ul li:last-child a {
    border-bottom: none;
  }
 
   .shortener-box {
    padding: 20px;
  }
  .shortener-box h2{
  font-size: 1.1rem;
}
  .button-group {
    flex-direction: column;
  }

  .button-group button {
    width: 100%;
  }
  .blog-section,
  .blog-container {
    padding: 15px;
    margin: 0;
    width: 100%;
  }
  .blog-container h2 {
    margin-bottom: 8px;
  }
  .blog-grid {
    gap: 15px;
    padding: 0;
  }
  .blog-card {
    margin: 0;
  }
.blog-card img {
    height: 150px;
  }

  .news-section, .blog-section {
 margin-bottom: 5px;
}
.news-content h2{
    font-size: 1rem;
     margin-bottom: 10px;
  }
.blog-section h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
 }
  .blog-card p,
  .news-content p {
    font-size: 0.9rem;
  }
.read-more-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

 /*****************knowpad.html****************/
 .card {
        max-width: 90%;
      }
   .read-more {
      font-size:0.95rem;
   }
 
/* CONTACT FORM Section */
  #contact {
    padding: 20px;
    margin: 20px auto;
    max-width: 100%;
    box-shadow: none;
  }

  .styled-contact-form {
    padding: 0;
    margin: 0;
  }

  .styled-contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    width: 100%;
  }

  .styled-contact-form label {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .styled-contact-form input,
  .styled-contact-form textarea {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #333;
  }

  .styled-contact-form textarea {
    height: 40px; /* match input height */
    resize: none;
  }

  .styled-contact-form button {
    font-size: 1rem;
    padding: 12px;
    width: 100%;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  .styled-contact-form button:hover {
    background-color: #e60000;
  }
  /**********about-us***********************/
    
  .about-wrapper {
    padding: 20px 10px;
    flex-direction: column;
    align-items: center;
  }

  .about-card {
    padding: 20px 15px;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    background-color:transparent;/* optional for light background */
  }

  .about-card h2 {
    font-size: 1.3rem;
    text-align: center;
  }

  .about-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
  }

  .footer-left {
    margin-bottom: 10px;
  }

  .top-btn {
    position: static;
    margin-top: 10px;
    width: 42px;
    height: 42px;
    font-size: 23px;
  }
}
/* Small Devices (≤600px) */
@media (max-width: 600px) {
  .blog-card img {
    height: 150px;
  }
}
/* Extra Small Devices (≤480px) */
@media (max-width: 480px) {
  .site-logo {
    margin-bottom: 0px; /* ↓ Reduce this value as needed */
    padding-bottom: 0;
  }

  .crypto-ticker-wrapper {
    margin-top: 0;  /* Remove extra space from above */
    padding-top: 0;
  }
   .hamburger {
    display: block;
    margin-left: 15px; 
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border-radius: 10px;
    padding: 5px 0px;
    box-shadow: 0 4px 8px transparent;
  }

  .navbar.active ul {
    display: flex;
  }

  .navbar a {
    padding: 1px;
    font-size: 1.3rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid transparent;
    text-decoration: underline;
  }

  .navbar ul li:last-child a {
    border-bottom: none;
  }
  .shortener-section {
    padding: 20px 10px;
  }

  .shortener-box {
    width: 100%;
    padding: 15px;
    box-shadow: none;
    border-radius: 10px;
    margin: 0 auto;
  }
.shortener-box h2{
  font-size: 1.2rem;
}
  .shortener-box input[type="url"],
  .shortener-box input[type="text"],
  .shortener-box button {
    width: 100%;
    font-size: 1rem;
    margin-bottom: 10px;
  }

  #shortUrlResult {
    font-size: 0.95rem;
    text-align: center;
    word-wrap: break-word;
  }

  #copyBtn,
  #clearBtn {
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
  }

  .blog-img {
    width: 100%;
    height: auto;
  }
  .blog-section,
  .blog-container {
    margin: 0;
    padding: 10px 5px;
  }
  .blog-container h2 {
    margin-bottom: 8px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .blog-content h2 {
    font-size: 1rem;
  }

  .blog-content p {
    font-size: 0.95rem;
  }

  .read-more-btn {
    padding: 8px 16px;
  }
  .news-section, .blog-section {
 margin-bottom: 5px;
}
.news-content h2{
    font-size: 1rem;
     margin-bottom: 10px;
  }
.blog-section h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
 .about-card {
  padding: 20px 20px;
  width:100%;
  
  }
  /******************knowpad************/
  .card img {
    height: 180px;
  }

  .card-content {
    padding: 15px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .read-more {
    font-size: 0.95rem;
    padding: 8px 12px;
  }

/*******************about-us*************/
  .about-wrapper {
    padding: 15px 10px;
  }

  .about-card {
    padding: 20px 15px;
    max-width: 100%;
    box-shadow: none;
    background-color: transparent; /* Optional: soft background on mobile */
  }

  .about-card p {
    font-size: 0.99rem;
    line-height: 1.6;
  }

  .about-card h2 {
    font-size: 1.2rem;
  }


/***************contact-us***************/
#contact {
    box-shadow: none;
  }
  #contact h2 {
    font-size: 1.2rem;
    text-align: center;
  }
.styled-contact-form {
    padding: 10px;
    margin: 0;
  }

  .form-group {
    width: 100%;
  }

  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  
  .styled-contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .styled-contact-form input,
  .styled-contact-form textarea {
    width: 100%;
    font-size: 0.95rem;
    padding: 10px;
    margin-bottom: 12px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #333;
  }

  /* Match height of Email input and Message box */
  .styled-contact-form textarea {
    height: 40px; /* Same as a single-line input field */
    resize: none; /* Optional: Prevent manual resizing */
  }

  .styled-contact-form button {
    font-size: 1rem;
    padding: 12px;
    width: 100%;
    font-weight: bold;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  .styled-contact-form button:hover {
    background-color: #e60000;
  }
.footer-container {
    padding: 18px 10px;
  }

  .top-btn {
    width: 40px;
    height: 40px;
    font-size: 23px;
  }
}


  

