/* ---------------------------
   Base / Fonts & Reset
   --------------------------- */
:root{
  --primary: #0077B6;
  --secondary: #48CAE4;
  --accent: #F4A261;
  --background: #F8F9FA;
  --header-height: 90px; /* change if you change header size */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
/*  height: 100%;    */
  background: var(--background);
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}


/* Leave space for fixed header so content & footer don't overlap */
body {
  padding-top: var(--header-height);
}


/*   header search mobile search */
  .header-search.mobile-search, a.btn.accent.get-started-btn.mobile-btn { 
   display: none;  
 } 




/* ================= Header / Navbar ================= */
/* ==========================
   Header (Desktop & General)
   ========================== */
/* ==========================
   Header (Desktop & General)
   ========================== */
header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px 1rem 5%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 9999;
}
/* ---------- Logo Left ---------- */
.logo-link {
    display: flex;
    align-items: center; /* vertically center logo and text */
    gap: 10px; /* space between logo and text */
}

.logo img {
    max-height: 60px;
    width: auto;
}

.logo-text h1 {
    margin: 0;
    font-size: 24px;
     font-family: 'Poppins', sans-serif;
    color: #48CAE4; /* light blue from hero section */
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}




/* ---------- Navbar Center ---------- */
.navbar-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  z-index: 10000;
}
.navbar-menu ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.navbar-menu ul li { position: relative; }
.navbar-menu ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.25rem 0.25rem;
}
.navbar-menu ul li a:hover { color: var(--accent); }

/* ---------- Submenu (Desktop) ---------- */
.navbar-menu ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  min-width: 400px;
  padding: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 8px 20px;
  z-index: 20000; /* ✅ higher z-index so submenu stays above */
}
.navbar-menu ul li:hover > ul { display: grid; }

.navbar-menu ul ul li a {
  display: block;
  padding: 8px 10px;
  color: #333;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.navbar-menu ul ul li a:hover { 
  background: #f8f9fa;
  color: var(--primary);
}

/* ---------- Right Section (Search + Button) ---------- */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 2px 6px;
  background: #fff;
}
.header-search input[type="search"] {
  border: none;
  outline: none;
  padding: 6px;
}
.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  font-size: 1rem;
}

.get-started-btn {
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hamburger (hidden desktop) ---------- */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  z-index: 10001;
}

/* ==========================
   Mobile Header, Menu & Submenu
   ========================== */
@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
  }
  
  
  /* ✅ Hide ONLY mobile versions on desktop */

  .header-search.mobile-search,
  .btn.accent.get-started-btn.mobile-btn {
    display: flex !important;
  }


  

  header.navbar {
    justify-content: space-between;
    padding: 0.6rem 4%;
    position: relative;
    z-index: 10001;
  }

  /* Show hamburger */
  .menu-toggle {
    display: block;
  }

  /* Navbar menu hidden by default */
  .navbar-menu {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 1rem;
    z-index: 15000;
  }
  .navbar-menu.menu-open { display: flex; }

  .navbar-menu ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0 0 1rem;
  }

  .navbar-menu a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
    color: #333;
    width: 100%;
  }

  /* Submenu toggle caret */
  .navbar-menu li.menu-item-has-children > a::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #666;
    transition: transform 0.2s ease;
  }
  .navbar-menu li.submenu-open > a::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary);
  }

  /* Submenu open/close animation */
  .navbar-menu li.menu-item-has-children > ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
  }
  .navbar-menu li.submenu-open > ul {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }

  /* ✅ Mobile Search & Button are visible inside menu */
  .mobile-search,
  .mobile-btn {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
  }
  .mobile-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 0.5rem;
  }
  .mobile-search button {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
  }
  .mobile-btn {
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
  }

  /* Hide desktop right section */
  .header-right { 
    display: none;
  } 
}



/* POPUP STYLING */

/* <<<<<<<<<<<<<<<<<<<END POPUP STYLING >>>>>>>>>>>>>>>>>>>>>>>>>>>*/



/*       SEARCH RESULT/ SEARCH.PHP */
/* ==========================
   Search Results Styling
   ========================== */
/* ==========================
   Search Results Styling (Improved)
   ========================== */
/* ================= Search Results Page ================= */
/* ==========================
   Search Results Styling (Improved)
   ========================== */
.search-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2rem auto 1rem;
  text-align: center;
  color: var(--primary);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px; /* keeps cards centered */
  margin: 2rem auto; /* centers grid */
  padding: 0 1rem; /* small side padding for mobile */
}

.search-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.search-thumb {
  width: 100%;
  height: 180px; /* fixed height */
  overflow: hidden;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* prevents stretching */
  display: block;
}

.search-content {
  padding: 1rem;
}

.search-post-title a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 0.5rem;
}

.search-excerpt {
  margin: 0.5rem 0 1rem;
  color: #555;
  font-size: 0.95rem;
}

.read-more-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.search-pagination {
  text-align: center;
  margin: 2rem 0;
}

.no-results {
  text-align: center;
  margin: 3rem 0;
}



/*    >>>>>>>>>>>>>><<<<<<<<<<<<<<<   */




/*  front-page.php css */


/* ================= Hero ================= */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 20vh;
  text-align: center;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 2rem;
  position: relative;
  z-index: 1; /* keep hero below header/menu */
}
.hero h1, .hero h2 { font-size: 2.5rem; }
.hero p { margin: 1rem 0; font-size: 1.2rem; }
.hero .btn { padding: 12px 25px; border-radius: 5px; font-weight: bold; }






/* ================= Features / About / Blog ================= */



.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 5%;
}


.feature-card h3 {
  align-content: top;
  text-align: center;
  color: var(--primary); /* LinkSpanner deep blue */
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}


.feature-card h3:hover {
  color: var(--accent);
  transition: color 0.3s ease;
  cursor: pointer;
}


.feature-card p {
  text-align: center;
  color: #000; /* black text */
  margin: 0 auto; /* centers paragraph block */
  max-width: 80%; /* optional: keeps text neat */
  line-height: 1.5;
}


.feature-card p:hover {
  color: var(--accent);
  transition: color 0.3s ease;
  cursor: pointer;
}



.feature-card {
  position: relative;
  border-radius: 1rem;
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 👈 changed from flex-end to flex-start */
  align-items: center; /* keeps text centered horizontally */
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Foreground text stays above */
.feature-card * {
  position: relative;
  text-align: center;
  font-weight: bold;
  z-index: 1;
}

/* Background layer */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 15%; /* <-- control only BG opacity */
  z-index: 0;
}

/* Card Hover */
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* Background Images for Each Card (apply to ::before) */
.card-tools::before {
  background-image: url('assets/images/digitaltools.webp');
}

.card-productivity::before {
  background-image: url('assets/images/productivity-r.webp');
}

.card-blogs::before {
  background-image: url('assets/images/bloggings.webp');
}

.card-affiliate::before {
  background-image: url('assets/images/affiliate.webp');
}




/* FRONT PAGE ABOUT SECTION */ 



.about {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 5%;
  background: #f8f9fa;
}

.about-image {
  flex: 0 0 60%; /* image takes 40% space (or whatever you like) */
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.about-image img {
  width: 100%; /* fill the 40% space */
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  
}

.about-text {
  flex: 1; /* take ALL remaining space */
}

.about-text h2 {
  color: #0077B6;
  margin-bottom: 1rem;
}

.about-text p {
  line-height: 1.6;
  margin-bottom: 2rem;
}





/*    >>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<    */




.blog {
  padding: 3rem 5%;
  background: white;
}
.blog h2 { text-align: center; margin-bottom: 2rem; }
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.blog-post {
  background: var(--background);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.blog-image { height: 150px; background: #ccc; border-radius: 6px; margin-bottom: 1rem; }




/*
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 

                    FRONT PAGE FREE TOOLS SECTION

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
*/


.ls-tools-section {
  background: #fff;
  padding: 60px 5vw; /* dynamic horizontal padding */
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.ls-tools-title {
  font-size: 2rem;
  color: #0077B6;
  margin-bottom: 40px;
  font-weight: 600;
}

.ls-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
    
}

.ls-tool-box {
  background: #F8F9FF;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.ls-tool-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ls-tool-box h3 {
  font-weight:  700;
  color: #0077B6;
  margin-bottom: 10px;
  transition: 0.3s;
}
.ls-tool-box h3:hover {
    color: var(--accent);
    
}

.ls-tool-box p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.3;
  margin: 0.5rem 0 1rem;
}

.ls-tools-footer {
  margin-top: 50px;
}

.ls-explore-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s ease;
}

.ls-explore-btn:hover {
  background: var(--accent);
  color: black;
}




/* Responsive Design */
@media (max-width: 1024px) {
  .ls-tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .ls-tools-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .ls-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .ls-tools-title {
    font-size: 1.6rem;
  }

  .ls-tool-box {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .ls-tools-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ls-tools-section {
    padding: 40px 7vw;
  }

  .ls-tools-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .ls-tool-box {
    padding: 1rem;
  }

  .ls-tool-box h3 {
    font-size: 1.1rem;
  }

  .ls-tool-box p {
    font-size: 0.9rem;
  }

  .ls-explore-btn {
    font-size: 0.85rem;
    padding: 10px 20px;
  }
}











/*
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 

              END OF FRONT PAGE FREE TOOLS SECTION

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
*/

/* Footer */
footer {
  background: var(--primary);
  color: #f8f9fa;
  padding: 12px 0;
  text-align: center;
  border-top: 3px solid var(--secondary);
  position: relative;
  z-index: 1;
}




.footer-container {
  display: flex;
  justify-content: space-between; /* Distribute nav+text left, icons right */
  align-items: center;
  flex-wrap: wrap; /* Mobile friendly */
  padding: 1rem 5%;
  background: var(--primary);
}

.footer-social {
  display: flex;
  gap: 2rem;
}

.footer-social a {
  color: var(--background);
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent);
  transform: scale(1.1);
}






.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 15px;
}
.footer-links a {
  text-decoration: none;
  color: #f8f9fa;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
footer p { font-size: 13px; margin: 0; color: #e0e0e0; }
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/asfalt-light.png');
  opacity: 0.06;
  pointer-events: none;
}










/* Latest Tools Section */
/* Latest Tools Section */
/* Latest Tools Section - Compact Version */

/* ================= Frontpage Tools Section ================= */
 .frontpage-toolss { 
  max-width: 100% ; 
  margin:  auto; 
 padding: 2rem 4%; 
}

.frontpage-toolss h2 {
  text-align: center;
  font-weight: bold;
  font-size: 2rem;
  color: var(--primary);
 margin-bottom: -0.75rem;  
}

.frontpage-toolss p {
  text-align: center;
 /* font-weight: bold; */
  font-size: 1rem;
  color: black;
  margin-bottom: 2rem;
}

.frontpage-toolss-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(300px , 1fr));
  justify-items: stretch;
  gap: 1.5rem;
}

.frontpage-toolss-card {
  background: #F8F9Ff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frontpage-toolss-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.frontpage-toolss-card h3 a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.frontpage-toolss-card h3 a:hover {
  color: var(--accent);
}

.frontpage-toolss-card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0 1rem;
  line-height: 1.3;
}

.frontpage-toolss-card .btn.secondary {
  display: inline-block;
  font-size: 0.8rem;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.frontpage-toolss-card .btn.secondary:hover {
  background: var(--secondary);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .frontpage-toolss-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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









/* Responsive helper breakpoints */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .about { flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* Smaller devices adjustments */
@media (max-width: 768px) {
  .hero h1, .hero h2 { font-size: 2rem; }
  .features { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ================= Single post styles ================= */



/*
.single-post {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
}
*/

.single-post {
  max-width: 100%;
  margin: 25px auto;
  padding: 1rem;
  background: #fff;
/*  min-height: 100vh;  ensures white background at least full viewport height */
  box-sizing: border-box;
  position: relative;
}



.single-hero {
    text-align: center;
    margin-bottom: 2rem;
    }
.single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    }
.single-title h1 { 
    font-size: 2.5rem;
    color: var(--primary);
    }
.post-meta { 
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    }
.single-content { 
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
    }
.single-taxonomy {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #555;
    }
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    }
.post-navigation a {
    color: var(--secondary);
    font-weight: bold;
    text-decoration: none;
    }
.single-comments {
    margin-top: 3rem;
    }
