/* ============================================================================
   TOOLS & RESOURCES PAGE - MODERN REDESIGN
   ============================================================================ */

/* Remove all section gaps */
.tools-hero,
.tools-section,
.resources-section,
.about-cta-section {
  margin: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

/* ============================================================================
   1. HERO SECTION
   ============================================================================ */

.tools-hero {
  background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

/* Decorative background patterns - matching homepage */
.tools-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 60, 48, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.tools-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(95, 160, 10, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.tools-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Title */
.tools-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.75rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.2;
}

.hero-highlight {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 14px;
  background: rgba(95, 160, 10, 0.15);
  z-index: -1;
  border-radius: 4px;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto 2.5rem;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-hero-primary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 6px 20px rgba(0, 60, 48, 0.3);
}

.btn-hero-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 60, 48, 0.4);
  color: #fff;
}

.btn-hero-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 60, 48, 0.15);
}

.btn-hero-secondary:hover {
  background: var(--color-secondary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(95, 160, 10, 0.3);
}

.btn-hero-primary i,
.btn-hero-secondary i {
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover i,
.btn-hero-secondary:hover i {
  transform: scale(1.15);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--color-primary-hover);
  opacity: 0.8;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ============================================================================
   2. TOOLS SECTION
   ============================================================================ */

.tools-section {
  padding: 80px 0;
  background: #f8faf9;
  margin: 0;
  border-top: 1px solid #e9ecef;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.section-header p {
  font-size: 1.15rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.tool-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 60, 48, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 48, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Decorative top border */
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #5fa00a 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 60, 48, 0.15);
  border-color: rgba(95, 160, 10, 0.2);
}

.tool-icon-wrapper {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.tool-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 60, 48, 0.1) 0%,
    rgba(95, 160, 10, 0.1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
}

.tool-icon::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #5fa00a);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tool-card:hover .tool-icon::before {
  opacity: 0.15;
}

.tool-icon i {
  font-size: 3rem;
  color: var(--color-primary);
  transition: all 0.4s ease;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
}

.tool-card:hover .tool-icon i {
  color: #5fa00a;
}

.tool-card h3 {
  font-size: 1.75rem;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.tool-card h4 {
  font-size: 1.25rem;
  text-align: center;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.tool-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 60, 48, 0.3);
  white-space: nowrap;
  margin: 0 auto;
}

.btn-tool:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 60, 48, 0.4);
  color: #ffffff;
}

.btn-tool i {
  transition: transform 0.3s ease;
}

.btn-tool:hover i {
  transform: translateX(5px);
}

/* ============================================================================
   3. RESOURCES SECTION
   ============================================================================ */

.resources-section {
  padding: 80px 0;
  background: #ffffff;
  margin: 0;
  border-top: 1px solid #e9ecef;
}

.resource-card {
  background: #f8faf9;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}

.resource-card:hover {
  background: #ffffff;
  border-color: rgba(95, 160, 10, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 60, 48, 0.1);
}

.resource-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #5fa00a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(95, 160, 10, 0.3);
}

.resource-icon i {
  font-size: 2rem;
  color: #ffffff;
}

.resource-card h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.resource-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================================
   4. CTA SECTION (Inherited from about.css)
   ============================================================================ */

.about-cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a5c3d 100%);
  padding: 80px 0;
  width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.about-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 15% 25%,
      rgba(95, 160, 10, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%
    );
  z-index: 0;
}

.cta-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), #5fa00a);
}

.cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.cta-content {
  padding-right: 2rem;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.2;
}

.cta-description {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

.feature-item i {
  color: #5fa00a;
  font-size: 1.25rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #004d3e 100%);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 60, 48, 0.3);
}

.btn-cta-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 60, 48, 0.4);
  color: #fff;
}

.btn-cta-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-cta-secondary:hover {
  background: var(--color-secondary-hover);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 60, 48, 0.2);
}

.btn-cta-primary i,
.btn-cta-secondary i {
  transition: transform 0.3s ease;
}

.btn-cta-primary:hover i,
.btn-cta-secondary:hover i {
  transform: scale(1.1);
}

/* ============================================================================
   5. RESPONSIVE DESIGN
   ============================================================================ */

/* Large tablets and small desktops (1199px) */
@media (max-width: 1199px) {
  .tools-hero {
    padding: 100px 0 80px;
  }

  .tools-hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 14px 32px;
    font-size: 1.05rem;
  }

  .stat-item i {
    font-size: 2.25rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .tools-section,
  .resources-section {
    padding: 60px 0;
  }

  .tool-card {
    padding: 2rem 1.75rem;
  }

  .about-cta-section {
    padding: 70px 0;
  }

  .cta-card {
    padding: 2.5rem 2rem;
  }

  .cta-title {
    font-size: 2.2rem;
  }

  .cta-description {
    font-size: 1.05rem;
  }
}

/* Tablets (991px) */
@media (max-width: 991px) {
  .tools-hero {
    padding: 80px 0 60px;
  }

  .tools-hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 13px 30px;
    font-size: 1rem;
  }

  .stat-item i {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .tools-section,
  .resources-section {
    padding: 50px 0;
  }

  .tool-icon {
    width: 90px;
    height: 90px;
  }

  .tool-icon i {
    font-size: 2.5rem;
  }

  .tool-card h3 {
    font-size: 1.5rem;
  }

  .tool-card h4 {
    font-size: 1.15rem;
  }

  .about-cta-section {
    padding: 60px 0;
  }

  .cta-card {
    padding: 2.5rem 2rem;
  }

  .cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .cta-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-features {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    gap: 0.875rem;
  }
}

/* Mobile devices (767px) */
@media (max-width: 767px) {
  .tools-hero {
    padding: 60px 0 50px;
  }

  .tools-hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero-cta-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 320px;
    padding: 14px 28px;
    font-size: 1rem;
  }

  .stat-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .stat-item i {
    font-size: 2rem;
  }

  .stat-content {
    align-items: center;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .tools-section,
  .resources-section {
    padding: 40px 0;
  }

  .tool-card {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .tool-card h3,
  .tool-card h4 {
    text-align: center;
  }

  .tool-card p {
    text-align: center;
  }

  .tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
  }

  .tool-icon i {
    font-size: 2.25rem;
  }

  .tool-card h3 {
    font-size: 1.4rem;
  }

  .tool-card h4 {
    font-size: 1.1rem;
  }

  .btn-tool {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }

  .resource-card {
    text-align: center;
  }

  .resource-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
  }

  .resource-icon i {
    font-size: 1.75rem;
  }

  .resource-card h5 {
    font-size: 1.15rem;
    text-align: center;
  }

  .resource-card p {
    font-size: 0.9rem;
    text-align: center;
  }

  .about-cta-section {
    padding: 50px 0;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-content {
    padding-right: 0;
  }

  .cta-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .cta-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .cta-features {
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
  }

  .feature-item {
    justify-content: center;
  }

  .cta-buttons {
    gap: 0.75rem;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* Small mobile devices (576px) */
@media (max-width: 576px) {
  .tools-hero {
    padding: 50px 0 40px;
  }

  .tools-hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    max-width: 280px;
    padding: 13px 24px;
    font-size: 0.95rem;
  }

  .stat-item i {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .tools-section,
  .resources-section {
    padding: 35px 0;
  }

  .tool-card {
    padding: 1.75rem 1.25rem;
    text-align: center;
  }

  .tool-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
  }

  .tool-icon i {
    font-size: 2rem;
  }

  .tool-card h3 {
    font-size: 1.3rem;
  }

  .tool-card h4 {
    font-size: 1.05rem;
  }

  .tool-card p {
    font-size: 0.95rem;
  }

  .btn-tool {
    padding: 11px 28px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 250px;
  }

  .resource-card {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .resource-icon {
    margin: 0 auto 0.875rem;
  }

  .about-cta-section {
    padding: 40px 0;
  }

  .cta-card {
    padding: 1.75rem 1.25rem;
  }

  .cta-title {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
  }

  .cta-description {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .cta-features {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .feature-item {
    font-size: 0.9rem;
  }

  .feature-item i {
    font-size: 1rem;
  }

  .cta-buttons {
    gap: 0.625rem;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

/* Very small devices (480px) */
@media (max-width: 480px) {
  .tools-hero {
    padding: 40px 0 35px;
  }

  .tools-hero h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    max-width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .stat-item i {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.35rem;
  }

  .tool-card {
    text-align: center;
  }

  .tool-card h3 {
    font-size: 1.2rem;
  }

  .tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
  }

  .tool-icon i {
    font-size: 1.75rem;
  }

  .btn-tool {
    width: 100%;
    max-width: 220px;
  }

  .resource-card {
    text-align: center;
  }

  .resource-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 0.75rem;
  }

  .resource-icon i {
    font-size: 1.5rem;
  }

  .about-cta-section {
    padding: 35px 0;
  }

  .cta-card {
    padding: 1.5rem 1rem;
  }

  .cta-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .cta-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .cta-features {
    gap: 0.625rem;
    margin-bottom: 1.25rem;
  }

  .feature-item {
    font-size: 0.85rem;
  }

  .feature-item i {
    font-size: 0.95rem;
  }

  .cta-buttons {
    gap: 0.5rem;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 11px 24px;
    font-size: 0.9rem;
  }
}
