/* =====================================================
   TOOLPLATFORM – OCEANWP CHILD THEME
   Main Stylesheet
   Author: ToolPlatform
===================================================== */

/* =====================================================
   1. CSS VARIABLES
===================================================== */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-text: #1f2937;
  --color-text-light: #374151;
  --color-bg: #f9fafb;
  --color-white: #ffffff;
  --color-gray-light: #d1d5db;
  --color-gray-dark: #111827;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;

  --transition-speed: 0.3s;
}

/* =====================================================
   2. GLOBAL RESET
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/*ul {*/
/*  list-style: none;*/
/*}*/

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* =====================================================
   3. HEADER / NAVIGATION
===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 72px;
  display: flex;
  align-items: center;
  /*justify-content: space-between;*/
}

/* Logo */
/*.logo {*/
/*  font-size: 1.5rem;*/
/*  font-weight: 700;*/
/*  color: var(--color-gray-dark);*/
/*}*/

/*.logo span {*/
/*  color: var(--color-primary);*/
/*}*/

/* =================================
   HEADER ALIGNMENT – FINAL FIX
================================= */

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo a.custom-logo-link img.custom-logo {
    max-height: 70px;
    width: auto;
}


/* Logo left */
.header-logo {
  display: flex;
  align-items: center;
}

/* Push desktop menu to right */
.header-nav {
  margin-left: auto;
}

/* Burger stays right */
.burger-menu {
  margin-left: 1rem;
}

/* Desktop menu flex */
.nav-menu {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}


/* Desktop Menu */
.nav-menu {
  display: flex;
  gap: 1.75rem;
  
}

.nav-menu li a {
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition-speed);
}

.nav-menu li a:hover {
  color: var(--color-primary);
}

/* Hamburger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--color-white);
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav li a {
  font-weight: 500;
  color: var(--color-text-light);
}

/* =====================================================
   4. HERO SECTION
===================================================== */
.hero {
  background: linear-gradient(135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: var(--color-white);
  padding: 4rem 1.25rem;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color:white;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Search */
.hero-search {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  outline: none;
}

.hero-search button {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 0 1.25rem;
  font-weight: 600;
}

/* =====================================================
   5. MAIN CONTENT
===================================================== */
.main-content {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Tools Section */
.tools-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tool-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tool-name {
  font-weight: 500;
}

.tool-arrow {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: bold;
}

.tool-card img {
    margin-left: auto;
    margin-right: 5px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget-block {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* =====================================================
   6. FOOTER
===================================================== */
.footer {
  background-color: var(--color-gray-dark);
  color: #9ca3af;
  padding: 3.5rem 1.25rem 2rem;
  position: relative;
  box-sizing: border-box;
  overflow: hidden; /* Prevent ::before overflow */
}

.footer h2{
    color:white;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;          /* Ensure start from left */
  right: 0;         /* Stretch to full width */
  height: 3px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  gap: 2.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0 15px;
}

.footer-widget-col .widget-title {
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;
  font-size: 12px;
  box-sizing: border-box;
}

/* ------------------ Responsive Fixes ------------------ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr; /* Stack vertically on small screens */
  }
  
  .footer-widget-col {
    margin-bottom: 25px;
  }
}

@media (max-width: 480px) {
  .footer-widget-col {
    margin-bottom: 20px;
    font-size: 0.875rem; /* Slightly smaller text for mobile */
  }
}



/* =====================================================
   7. RESPONSIVE BREAKPOINTS
===================================================== */
@media (min-width: 768px) {
  .main-content {
    grid-template-columns: 3fr 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .burger-menu {
    display: none;
  }

  .nav-menu {
    display: flex;
  }
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }

  .burger-menu {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }
}


/* ===============================
   DESKTOP MENU FORCE FIX
=============================== */

.desktop-menu ul.menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-menu ul.menu > li {
    display: inline-block;
}

.desktop-menu ul.menu > li > a {
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
}

.desktop-menu ul.menu > li > a:hover {
    color: #38bdf8;
}

/* ===============================
   FRONT PAGE SIDEBAR LAYOUT
=============================== */

.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 16px;
}

.sidebar {
    /*background: #0f172a;*/
    padding: 20px;
    border-radius: 12px;
}

.sidebar .widget {
    margin-bottom: 24px;
}

.sidebar .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

/* Mobile */
@media (max-width: 991px) {
    .with-sidebar {
        grid-template-columns: 1fr;
    }
}



