/* ===== BASE STYLES ===== */
:root {
    --primary: #d94f4f; /* A modern, slightly muted red */
    --primary-dark: #b33e3e;
    --primary-writing:#bbbbbb;
    --secondary: #1e3953; /* A slightly softer dark blue-gray */
    --secondary-light: #848484;
    --excel-primary: #1D6F42; /* A richer green for Excel */
    --word-primary: #2B579A; /* Keeping the classic Word blue */
    --accent: #f4f4f4; /* A light gray for accents */
    --light: #ffffff; /* Pure white for a cleaner look */
    --dark: #333333; /* A softer black for text */
    --danger: #e53935;
    --gradient: linear-gradient(to right, #cccccc, #bbbbbb);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
  }
  
  @font-face {
    font-family: 'Roboto', sans-serif;
    /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; */
    src: url('/fonts/roboto-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
  
  /* ===== PRIVACY BANNER ===== */
  .privacy-banner {
    background-color: var(--accent);
    color: var(--primary-dark);
    font-size: 1.5rem;
    text-align: center;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(225, 29, 72, 0.2);
    font-weight: 600;
    z-index: 1101;
    position: relative;
  }
  
  /* ===== HEADER ===== */
  .header {
    background: var(--gradient);
    padding: 0.8rem 2rem;
    box-shadow: var(--primary-dark);
    z-index: 1100;
  }

  .header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  .logo a {
    color: var(--main);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: color 0.2s;
  }
  .logo a:hover, .logo a:focus {
    text-decoration: none;
  }
  .logo img{
    width: 7.5rem;
    height: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
  }

  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    align-items: center;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: tomato;
    transition: width 0.3s ease;
  }

  .nav-links a:hover {
    color: var(--primary);
  }

  .nav-links .dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .nav-links .dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .dropdown-menu a {
    color: var(--secondary);
    padding: 0.7rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dropdown-menu a:hover {
    color: var(--primary);
  }

  .dropdown-menu a:hover::after {
    width: 0;
  }
  
  /* ===== HERO SECTION ===== */
  
  .hero {
    background: var(--accent);
    background-size: cover;
    padding: 5rem 2rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }
  
  .hero-title span {
    color: var(--primary-dark);
    position: relative;
  }
  
  .hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(225, 29, 72, 0.2);
    z-index: -1;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    color: var(-primary-writing);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
  }
  
  .cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
  }
  
  /* ===== TOOLS SECTION ===== */
  .tools-section {
    padding: 5rem 2rem;
    /* background-color: var(--secondary) */
    background-color: #cccccc;
  }
  
  #tools-sec {
    color: var(--primary-dark)
  }
    
  .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 3rem;
    position: relative;
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #bbbbbb, #999999);
    border-radius: 2px;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
  } 
  
.tool-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.tool-card {
    background: rgb(255, 255, 255);
    border-radius: 12px;
    text-align: center;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow: hidden; 
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  }

  .tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
  }

.tool-icon i {
    font-size: 3.5rem;
    transition: all 0.3s ease;
    color: var(--primary);
  }

  .tool-card:hover .tool-icon i {
    transform: scale(1.1);
}

  .tool-card h3 {
    margin: 0.5rem 0 1rem;
    /* color: var(--secondary); */
    color: var(--dark);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}
  
  .tool-card p{
    font-size: 1rem;
    color: var(--secondary-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
  }
  
  .tool-card:hover h3 {
    color: var(--secondary-light);
}

.coming-soon {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;    
    display: inline-block;
    background: var(--primary-dark);
    color: white;   
    margin-top: 15px;
}
  
  /* ===== FEATURES SECTION ===== */
  .features {
    padding: 5rem 2rem;
    background: var(--accent);
  }
  
  .features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
  }
  
  .feature-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
  }
  
  .feature-card p {
    text-align: center;
    color: var(--secondary-light);
    line-height: 1.7;
  }
  
  /* ===== FOOTER ===== */
  .footer {
    background: var(--gradient);
    color: white;
    padding: 3rem 2rem 2rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .footer-column {
    min-width: 200px;
    margin-bottom: 2rem;
    flex: unset;
  }
  
  .footer-logo-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    text-align: center;
  }
  .footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #bbbbbb, #999999);
  }
  
  .footer-links {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 0.8rem;
  }
  
  .footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  .footer-links a:hover {
    color: var(--secondary-light);
    /* color: var(--primary-dark); */
    transform: translateX(5px);
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #aaaaaa;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none; /* Prevent underline */
}

.social-links a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  text-decoration: none; /* Prevent underline on hover */
}
  
  .copyright {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
  }
  .coming-soon-footer {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    color: var(--);
}
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .header {
      padding: 0.8rem 1.5rem;
    }
    
    .logo {
      font-size: 1.5rem;
    }
    
    .nav-links {
      gap: 1.2rem;
    }
    
    .hero-title {
      font-size: 2.5rem;
    }
    
    .hero-subtitle {
      font-size: 1.1rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    .tools-container {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.8rem;
    }
    
    .tool-card {
      padding: 2rem 1.2rem;
    }
    .footer-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .footer-column {
      min-width: unset;
      width: 100%;
      margin-bottom: 1.5rem;
    }
    .footer-logo-social {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    .dropdown-menu {
      left: 0 !important;
      right: 0 !important;
      min-width: 100vw !important;
      width: 100vw !important;
      max-width: 100vw !important;
      box-sizing: border-box !important;
      border-radius: 0 !important;
      position: fixed !important;
      top: 60px !important;
      z-index: 2000 !important;
    }
  }
  
  @media (max-width: 576px) {
    .container {
      flex-direction: column;
      gap: 1rem;
    }
    
    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .hero {
      padding: 3rem 1.5rem;
    }
    
    .hero-title {
      font-size: 2rem;
    }
  }

.coming-soon-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 60%, var(--primary) 100%);
  padding: 2rem 1rem;
}

.coming-soon-content {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(30, 57, 83, 0.12), 0 1.5px 6px rgba(217, 79, 79, 0.08);
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) 1;
}

.coming-soon-content h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.coming-soon-message {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.coming-soon-content .cta-button {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 2rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(217, 79, 79, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

.coming-soon-content .cta-button:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30, 57, 83, 0.12);
}

@media (max-width: 600px) {
  .coming-soon-content {
    padding: 2rem 1rem 1.5rem 1rem;
    max-width: 95vw;
  }
  .coming-soon-content h1 {
    font-size: 2rem;
  }
  .coming-soon-message {
    font-size: 1rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticky header group to preserve sticky stacking context */
.sticky-header-group {
  position: sticky;
  top: 0;
  z-index: 1100;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
  }
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-column {
    min-width: unset;
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .footer-logo-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer {
    text-align: center;
  }
  .hamburger {
    margin-left: auto;
    order: 3;
  }
  .logo {
    order: 1;
  }
}
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    background: none !important;
    width: auto !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    align-items: flex-start;
  }
  
  
  .footer-column {
    min-width: 200px;
    width: auto;
    margin-bottom: 2rem;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .footer-logo-social {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
  }
  .footer-column h3 {
    text-align: left;
  }
  .footer-column h3::after {
    left: 0;
    transform: none;
  }
}
@media (max-width: 576px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-column {
    min-width: unset;
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .footer {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .container {
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 0;
  }
  .logo {
    align-self: flex-start;
    text-align: left;
  }
}

/* Header logo always left-aligned */
.header .logo {
  align-items: center;
  text-align: left;
  align-self: flex-start;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  /* Footer logo centered on mobile */
  .footer-logo-social {
    align-items: center;
    text-align: center;
    justify-content: center;
  }
  .footer .logo {
    text-align: center;
  }
  /* Bring footer logo column to top */
  .footer-column {
    order: 2;
  }
  .footer-column:first-child {
    order: 1;
  }
}
@media (min-width: 769px) {
  /* Footer logo left-aligned on desktop */
  .footer-logo-social {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
  }
  .footer .logo {
    text-align: left;
  }
}

/* Ensure footer logo is always at the top and centered above social icons */
.footer-logo-social {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
}
.footer-logo-social .logo {
  order: 0;
  margin-bottom: 0.5rem;
}
.footer-logo-social p {
  order: 1;
  margin-bottom: 0.5rem;
}
.footer-logo-social .social-links {
  order: 2;
}

.footer-links a .coming-soon-footer {
  display: none;
  transition: background 0.2s, color 0.2s;
}
.footer-links a:hover .coming-soon-footer,
.footer-links a:focus .coming-soon-footer {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: bold;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--light);
  padding: 5rem 2rem 4rem;
  color: var(--dark);
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(30,57,83,0.07);
  padding: 2.5rem 2rem 2rem 2rem;
  border: 1px solid #e3eaf2;
}
.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.faq-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.faq-header p {
  font-size: 1.15rem;
  color: var(--secondary-light);
  margin: 0 auto;
  max-width: 520px;
}
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e3eaf2;
  padding-bottom: 1.5rem;
}
.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
.faq-question::before {
  content: "❓";
  margin-right: 0.7rem;
  color: var(--primary);
  font-size: 1.3rem;
}
.faq-answer {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-left: 2.1rem;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .faq-container {
    padding: 1.2rem 0.5rem;
  }
  .faq-header h1 {
    font-size: 1.5rem;
  }
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  color: #333;
  border-top: 2px solid var(--primary-dark);
  padding: 1rem;
  z-index: 9999;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.cookie-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cookie-buttons button {
  background: var(--primary-dark);
  color: white;
  border: none;
  padding: 8px 16px;
  margin-right: 10px;
  border-radius: 5px;
  cursor: pointer;
}
.cookie-buttons button:hover {
  background: darkred;
}

/* Example fallback */
body[data-browser-supports~="not:grid"] .grid-layout {
  display: block;
  /* Alternative styling for older browsers */
}
