/* ==========================================================================
   1. VARIABLES & BASE STYLES
   ========================================================================== */
:root {
  /* Primary Green Scale */
  --epj-green-050: #F2FFDA;
  --epj-green-100: #E0FFAC;
  --epj-green-200: #BCF177;
  --epj-green-300: #8FD857;
  --epj-green-400: #50B344;
  --epj-green-500: #00674A;
  --epj-green-600: #03543D;
  --epj-green-700: #043C2C;
  --epj-green-800: #03261C;
  --epj-green-900: #031812;

  /* Existing aliases */
  --epj-dark-green: var(--epj-green-500);
  --epj-lime: var(--epj-green-200);
  --epj-lime-light: #DCF6A8;
  --epj-light-green-hover: #B1EA5B;
  --epj-lime-lighter: #EFFCE0;
  --epj-lime-lightest: #F6FCE3;

  /* Neutral Gray Scale */
  --epj-gray-050: #F3F8F4;
  --epj-gray-100: #E5EDE6;
  --epj-gray-200: #C6D1C7;
  --epj-gray-300: #9BA79C;
  --epj-gray-400: #7B877C;
  --epj-gray-500: #677168;
  --epj-gray-600: #535B53;
  --epj-gray-700: #3C423D;
  --epj-gray-800: #242825;
  --epj-gray-900: #171A18;

  /* Text & Base */
  --epj-text-dark: var(--epj-gray-900);
  --nav-black: #000000;
  --epj-separator: var(--epj-gray-200);

  /* Semantic Colors */
  --epj-info: #183CC0;
  --epj-success: #006748;
  --epj-warning: #FFA100;
  --epj-error: #DC3545;

  /* Optional semantic light backgrounds */
  --epj-info-light: #E3E9FF;
  --epj-success-light: #DFF5EC;
  --epj-warning-light: #FFF4D6;
  --epj-error-light: #FDE2E5;
}


html,
body {
  max-width: 100%;
}


.flogin {
  white-space: nowrap;
  display: inline-block;
}

/* ==========================================================================
   2. UTILITY CLASSES & CONTAINERS
   ========================================================================== */
.container-xxl {
  max-width: 1600px;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Background Utilities */
.custom-bg-dark-green { background-color: var(--epj-dark-green) !important; }
.bg-lime { background-color: var(--epj-lime); }
.bg-lime-light { background-color: var(--epj-lime-light); }
.bg-lime-lighter { background-color: var(--epj-lime-lighter); }
.bg-lime-lightest { background-color: var(--epj-lime-lightest); }
.custom-bg-light { background-color: var(--epj-gray-050); padding-top: 6rem; padding-bottom: 4rem; }
.bg-light-green { background-color: var(--epj-gray-050) !important; }

/* ==========================================================================
   3. TYPOGRAPHY & GLOBAL ELEMENTS
   ========================================================================== */
.content-section {
  color: var(--epj-gray-700); 
  font-size: 1.25rem;
  line-height: 1.6;
}

.content-section p {
  margin-bottom: 1.5rem;
}


.content-section:first-child .section-title {
  margin-top: 0;
}

/* Breadcrumbs */
.breadcrumb {
  --bs-breadcrumb-divider-color: var(--epj-gray-300);
  --bs-breadcrumb-item-active-color: var(--epj-gray-200);
  font-size: 1.15rem;
}

.breadcrumb-item a {
  color: var(--epj-green-100);
  text-decoration: none;
  transition: opacity 0.2s;
}

.breadcrumb-item a:hover {
  opacity: 0.8;
}

/* Back to Top Link */
.back-to-top-link {
  color: var(--epj-dark-green);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
  display: inline-block;
}

.back-to-top-link:hover {
  color: var(--epj-green-600);
  transform: translateY(-3px);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn-dark-green {
  background-color: var(--epj-dark-green);
  color: #ffffff;
  font-weight: 750;
  font-size: 1.05rem;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-dark-green:hover {
  background-color: var(--epj-green-600);
  color: #ffffff;
}

.btn-outline-dark-green {
  color: var(--nav-black);
  border: 2px solid var(--epj-dark-green);
  background-color: transparent;
  font-weight: 750;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-dark-green:hover {
  background-color: var(--epj-dark-green);
  color: #ffffff !important;
}


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.btn-search-custom {
  background-color: var(--epj-dark-green) !important;
  color: #ffffff !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login-custom {
  background-color: var(--epj-lime) !important;
  color: var(--epj-dark-green) !important;
  border-radius: 50px;
  font-weight: 800;
  height: 44px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  border: none;
  z-index: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}


/* ==========================================================================
   6. HERO SECTIONS
   ========================================================================== */

.hero-section {
  background-color: var(--epj-dark-green) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Text Content Container: Removed overflow scroll, relying on tight sizing */
.hero-text-content {
  position: relative;
  z-index: 2;
  padding: 1rem 0.75rem 0.5rem;
}

@media (min-width: 992px) {
  .hero-text-content {
    padding-right: 2rem;
    padding-bottom: 4rem;
    padding-left: 0;
  }
}

/* Scaled down for mobile, original clamp size preserved for desktop */
.hero-title {
  color: var(--epj-lime);
  font-weight: 600;
  font-size: 1.6rem; /* Smaller base font for mobile */
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

@media (min-width: 576px) {
  .hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
  }
}

/* Reduced size and tighter spacing for mobile */
.hero-text {
  color: #ffffff;
  font-size: 0.95rem; /* Dropped from 1.1rem for mobile density */
  line-height: 1.4;   /* Compressed line height slightly */
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
}

/* --- FIXED HEIGHT LAYOUT ENGINE --- */

/* --- FIXED HEIGHT LAYOUT ENGINE --- */

.hero-section .carousel-inner {
  display: flex;
  overflow: hidden;
}

.hero-section .carousel-item {
  display: block;            /* keep all slides in layout so height is stable */
  float: none;
  flex: 0 0 100%;
  min-width: 0;
  margin-right: -100%;       /* stack slides on top of each other */
  visibility: hidden;
  transition: none;          /* no animation unless a slide is actually moving */
}

.hero-section .carousel-item.active,
.hero-section .carousel-item-next,
.hero-section .carousel-item-prev {
  visibility: visible;
}

/* Only animate while Bootstrap's direction classes are applied */
.hero-section .carousel-item-start,
.hero-section .carousel-item-end {
  transition: transform .6s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .hero-section .carousel-item-start,
  .hero-section .carousel-item-end {
    transition: none;
  }
}

.hero-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

/* Controls: inline below the slide on mobile */
.hero-controls {
  position: relative;
  z-index: 3;
  padding: 0 0.75rem 1.25rem;
}

@media (min-width: 992px) {
  .hero-section .carousel-item,
  .hero-section .carousel-item > .container-xxl,
  .hero-section .carousel-item > .container-xxl > .row {
    min-height: 600px;
  }
  .hero-image {
    height: 500px;
    border-radius: 100px;
  }
  /* Controls: pinned bottom-left over the text column on desktop */
  .hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.5rem;
    padding: 0;
    pointer-events: none;    /* let clicks pass through the empty area */
  }
  .hero-controls button {
    pointer-events: auto;
  }
}

/* --- SMALLER BUTTON FOR MOBILE --- */
.btn-hero-primary {
  background-color: var(--epj-lime) !important;
  color: var(--var-dark-green) !important;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  font-size: 0.9rem; /* Smaller typography */
  padding: 0.5rem 1.5rem !important; /* Shrunk padding override for mobile */
  transition: transform 0.2s ease;
}

@media (min-width: 992px) {
  .btn-hero-primary {
    font-size: 1.25rem; /* Returns to Bootstrap's btn-lg default on desktop */
    padding: 0.5rem 3rem !important; /* Matches your px-5 desktop design */
    border-radius: 8px;
    font-weight: 800;
  }
}

.btn-hero-nav {
  width: 44px; /* Slightly more compact navigation on mobile */
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  background: transparent;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .btn-hero-nav {
    width: 48px;
    height: 48px;
  }
}

.hero-indicators button {
  width: 35px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
}
.hero-indicators button.active {
  background-color: var(--epj-lime);
}

.page-hero-image {
  height: 400px;
  object-fit: cover;
  border-radius: 30px 30px 30px 30px ;
}
/* ==========================================================================
   7. MAIN SECTIONS & COMPONENTS
   ========================================================================== */
/* Categories Grid Section */
.categories-section {
  background-color: #ffffff;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--epj-gray-050);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-img {
  transform: scale(1.05);
}

.btn-category {
  position: relative;
  z-index: 2;
  background-color: var(--epj-lime);
  color: var(--nav-black);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card .btn-category::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.btn-category:hover {
  background-color: var(--epj-light-green-hover);
  color: var(--nav-black);
}

.btn-category i {
  font-size: 1.2rem;
}

/* Services Section */


.services-section__title { 
  font-size: 2.5rem;
  font-weight: 800; 
  word-break: break-word;
  color: var(--nav-black); 
}


.service-card__link { 
  text-decoration: none; 
  display: block; 
}

.service-card__image {
  overflow: hidden;
  border-radius: 20px;
}

.service-card__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card__link:hover .service-card__image img { transform: scale(1.05); }

.service-card__title {
  margin: 20px 0 12px 0;
  font-size: 1.5rem;
  color: var(--nav-black);
  font-weight: 800;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.service-card__link:hover .service-card__title { color: var(--epj-dark-green); }
.service-card__arrow { display: inline-block; transition: transform 0.3s ease; }
.service-card__link:hover .service-card__arrow { transform: translateX(10px); }

/* Blog Elements */
.btn-all-articles {
  color: var(--nav-black);
  font-weight: 750;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.btn-all-articles i {
  color: var(--epj-dark-green);
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.btn-all-articles:hover { color: var(--epj-dark-green); }
.btn-all-articles:hover i { transform: translateX(4px); }

.blog-img-wrapper {
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.blog-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-img { transform: scale(1.04); }
.blog-date { color: var(--epj-gray-400); font-size: 0.95rem; font-weight: 500; }
.blog-title { font-size: 1.35rem; line-height: 1.35; transition: color 0.2s ease; }
.blog-card:hover .blog-title { color: var(--epj-dark-green) !important; }
.blog-tags { color: var(--epj-gray-400); font-size: 0.95rem; }

.blog-arrow-link {
  color: var(--epj-dark-green);
  font-size: 1.5rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-arrow-link { transform: translateX(5px); }

/* Stats Wrapper */
.stats-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-box {
  color: var(--epj-dark-green);
  border-right: 4px solid #ffffff;
}

.col-lg-3:last-child .stat-box { border-right: none; }
.stat-title { font-weight: 700; font-size: 1.1rem; line-height: 1.4; }
.stat-number { font-weight: 800; font-size: 4rem; letter-spacing: -1px; }
.stat-desc { font-weight: 700; font-size: 1.1rem; line-height: 1.4; }

.info-image-wrap {
  width: 100%;
  max-width: 420px;
}

.info-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Web Apps Section */
.app-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  display: block;
}

.app-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.app-card:hover .app-img { transform: scale(1.04); }

.app-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 95px;
  height: 95px;
  background-color: var(--epj-lime);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.app-badge img { width: 65px; height: auto; }
.app-title { font-size: 1.4rem; color: var(--nav-black); line-height: 1.3; }

.app-link {
  color: var(--nav-black);
  font-weight: 750;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-link i {
  color: var(--epj-dark-green);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.app-card:hover .app-link i { transform: translateX(5px); }

/* Testimonials */
.testimonial-link { color: var(--nav-black); font-weight: 750; font-size: 1.1rem; text-decoration: none; transition: color 0.2s ease; }
.testimonial-link i { color: var(--epj-dark-green); font-size: 1.4rem; transition: transform 0.2s ease; }
.testimonial-link:hover i { transform: translateX(4px); }

.testimonial-card {
  background-color: var(--epj-green-050);
  border: 1px solid var(--epj-green-100);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-top: 15px; 
}

.quote-badge {
  position: absolute;
  top: -25px;
  left: -20px;
  width: 60px;
  height: 60px;
  background-color: var(--epj-dark-green);
  color: var(--epj-lime);
  border-radius: 50%;
  font-size: 2.5rem;
  line-height: 0;
  box-shadow: 0 4px 10px rgba(0, 50, 0, 0.15);
}

.quote-badge i { margin-top: -5px; }
.testimonial-text { font-size: 1.15rem; line-height: 1.6; color: var(--epj-gray-800); }
.testimonial-author-img { width: 65px; height: 65px; object-fit: cover; border: 2px solid #ffffff; }

/* Contact CTA / Newsletter */
.contact-box {
  background-color: var(--epj-lime);
  border-radius: 20px;
}

/* Desktop: add left padding to clear the icon */
@media (min-width: 992px) {
  .contact-box {
    padding-left: 160px !important;
  }
}

.contact-icon {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.contact-icon i {
  font-size: 100px !important;
  line-height: 1;
  color: var(--epj-dark-green) !important;
}



.newsletter-wrapper {
  background-color: var(--epj-gray-050); 
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.newsletter-img-col img { width: 100%; height: 100%; object-fit: cover; min-height: 350px; }
.newsletter-form-group { background: #fff; border: 1px solid var(--epj-gray-200); border-radius: 8px; padding: 4px; }
.newsletter-form-group .form-control { border: none; box-shadow: none; padding-left: 15px; }
.newsletter-form-group:focus-within { border-color: var(--epj-dark-green); box-shadow: 0 0 0 0.25rem rgba(0, 103, 76, 0.1); }
.newsletter-body h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--epj-gray-900); }

/* ==========================================================================
   8. SIDEBAR & WIDGETS
   ========================================================================== */
.sticky-sidebar {
  position: sticky;
  top: 120px; 
  padding-left: 2rem; 
}

.sidebar-title {
  letter-spacing: 2px;
  color: var(--nav-black);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.sidebar-nav .nav-link {
  color: var(--epj-gray-700);
  padding: 0.6rem 0; 
  font-weight: 600;  
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.content-section h2[id] {
  scroll-margin-top: 120px; 
}

.sidebar-nav .nav-link:hover { color: var(--epj-dark-green); transform: translateX(3px); }
.sidebar-nav .nav-link.active { color: var(--epj-dark-green); font-weight: 800; background-color: transparent !important; }

/* Contact Widget */
.contact-widget { background-color: var(--epj-lime); color: var(--epj-text-dark); }
.contact-photo { width: 140px; height: 140px; object-fit: cover; border-radius: 20px; }
.contact-link { color: var(--epj-dark-green); text-decoration: none; font-weight: 500; }
.contact-link:hover { text-decoration: underline; }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  color: var(--epj-gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative; 
  overflow: hidden;  
  padding-bottom: 2rem;
  z-index: 1;
}

.site-footer a { color: var(--epj-gray-700); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--epj-green-500); }
.site-footer .text-success { color: var(--epj-green-500) !important; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--epj-green-500);
  color: #fff !important;
  border-radius: 50%;
  font-size: 1rem;
}

.footer-bottom-text { font-size: 0.85rem; color: var(--epj-gray-400); }
.footer-bottom-text a { text-decoration: underline; color: var(--epj-gray-400); }

.site-footer::before {
  content: "";
  position: absolute;
  bottom: -22%; 
  left: -8%; 
  width: 500px; 
  height: 500px;
  background-image: url('../images/watermark.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom left;
  filter: brightness(2) grayscale(1); 
  opacity: 0.1; 
  z-index: -1; 
  pointer-events: none;
}

/* ==========================================================================
   10. MEDIA QUERIES & SEARCH
   ========================================================================== */
@media (max-width: 991.98px) {
  .sticky-sidebar {
    position: static;
    padding-left: 0;
    margin-top: 3rem;
    border-top: 1px solid var(--epj-gray-100);
    padding-top: 2rem;
  }
  .stat-box {
    border-right: none;
    border-bottom: 4px solid #ffffff;
    padding: 2rem 1rem !important;
  }
}

.search-results a {
  color: var(--epj-green-600);
  font-weight: 600;
  text-decoration: none;
}

.pagination .page {
  background: var(--epj-gray-100);
  color: var(--epj-gray-800);
}

.pagination .page:hover,
.pagination .current {
  background: var(--epj-green-600);
  color: #fff;
}

.doc-row {
    border: 1px solid var(--epj-gray-050);
    transition: all 0.2s ease;
}

.doc-row:hover {
    background-color: var(--epj-gray-050) !important;
    border-color: var(--epj-gray-200);
}

.file-icon-wrapper {
    background: var(--epj-gray-100);
}

/* Lingilist */

		/* --- LingiList Text-Only Grid Styling --- */
.lingiList ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    list-style: none;
    margin: 2rem 0;
}

.lingiList li {
    background-color: var(--epj-gray-050); /* Very light gray/green tint */
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--epj-gray-100);
    display: flex;
}

.lingiList li a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 2.5rem 2rem; /* Generous padding for a "premium" feel */
    color: var(--epj-dark-green) !important;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    min-height: 180px; /* Ensures all cards are a consistent height */
}

/* The Green Arrow from the screenshot */
.lingiList li a::after {
    content: "→"; /* Using standard text arrow, or use '\F135' if using Bootstrap Icons */
    margin-top: auto; /* Pushes arrow to the bottom of the card */
    padding-top: 1.5rem;
    font-size: 2rem;
    color: var(--epj-green-500);
    transition: transform 0.3s ease;
}

/* Hover States */
.lingiList li:hover {
    background-color: #ffffff;
    border-color: var(--epj-green-300);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.lingiList li:hover a {
    color: var(--epj-green-500) !important;
}

.lingiList li:hover a::after {
    transform: translateX(10px);
}

/* Simple Responsive Fix */
@media (max-width: 768px) {
    .lingiList ul {
        grid-template-columns: 1fr;
    }
    .lingiList li a {
        min-height: auto;
        padding: 2rem;
    }
}

/* Container for the app links */
.mega-app-list {
    max-width: 280px; /* Adjust based on your menu width */
}

/* The Pill Shape */
.app-pill {
    display: flex;
    align-items: center;
    background-color: var(--epj-lime); /* #BCF177 */
    padding: 8px 16px 8px 8px; /* Extra padding on right for the arrow */
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.app-pill:hover {
    background-color: var(--epj-light-green-hover);
    transform: translateX(5px);
}

/* The white circle for the icon */
.app-icon-circle {
    background-color: var(--epj-green-050); /* #F2FFDA or white */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

/* Text and Arrow colors */
.app-name {
    color: var(--epj-gray-900);
    font-weight: 700;
    font-size: 1.1rem;
}

.app-pill i.bi-arrow-right {
    color: var(--epj-dark-green);
    font-size: 1.4rem;
    font-weight: bold !important;
}

/* If using SVGs for the cow/pig icons */
.app-icon-circle img {
    filter: none; /* Keeps original icon color */
}

.service-list-item {
    display: flex;
    padding: 1rem 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    background-color: var(--epj-dark-green) ;
    transition: all 0.2s ease;
}

.service-list-item:hover {
    background-color: var(--epj-green-600);
}

.service-list-item__title {
    font-weight: 500;
}

.service-list-item__icon {
    font-size: 1.25rem;
    color: var(--epj-green-100);
}

.mastiit-link {
  color: var(--epj-dark-green) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mastiit-link:hover {
  color: var(--epj-green-600) !important;
  text-decoration: underline;
}
 
/* Filter buttons — no Bootstrap .btn classes to avoid color conflicts */
.mastiit-filter {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--epj-gray-200);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  color: var(--epj-gray-600);
  transition: all 0.15s ease;
  text-decoration: none;
  vertical-align: middle;
  user-select: none;
}
.mastiit-filter:hover {
  border-color: var(--epj-green-400);
  color: var(--epj-dark-green);
  background: var(--epj-green-050);
}
.mastiit-filter.active {
  background-color: var(--epj-dark-green) !important;
  border-color: var(--epj-dark-green) !important;
  color: #ffffff !important;
}
 
/* Category badges */
.mastiit-badge-nakkuslik {
  background-color: #dbeafe;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.75rem;
}
.mastiit-badge-kns {
  background-color: #ede9fe;
  color: #5b21b6;
  font-weight: 600;
  font-size: 0.75rem;
}
.mastiit-badge-keskkond {
  background-color: var(--epj-green-050);
  color: var(--epj-green-700);
  font-weight: 600;
  font-size: 0.75rem;
}
.mastiit-badge-teised {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 600;
  font-size: 0.75rem;
}
 
/* Table zebra + hover */
#mastiitTable tbody tr:nth-child(even) td {
  background-color: var(--epj-gray-050);
}
#mastiitTable tbody tr:hover td {
  background-color: var(--epj-green-050) !important;
}

 .tips-section {
      margin-top: 2rem;
      border: 1px solid #e2e2e0;
      background: #fff;
    }
 
    .tips-section-title {
      text-align: center;
      font-size: 0.9rem;
      color: #888;
      font-weight: 400;
      padding: 1.5rem 1rem 0.25rem;
      margin: 0;
    }
 

    .tips-nav .nav-link:hover  { color: #333; border-bottom-color: #bbb; }
    .tips-nav .nav-link.active { color: #111; border-bottom-color: #111; background: none; }
 
    .tips-nav {
  border-bottom: 1px solid #e0e0de;
  display: flex; /* Ensure flexbox is active */
  width: 100%;
  padding: 0; /* Removed side padding to let tabs touch edges if desired */
}

.tips-nav .nav-item {
  flex: 1; /* This forces all items to take up equal width */
  display: flex;
}

.tips-nav .nav-link {
  width: 100%; /* Makes the link fill the equal-width item */
  text-align: center; /* Centers the text in the wider tab */
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #999;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.85rem 0.5rem; /* Adjusted horizontal padding */
  white-space: nowrap;
  background: none;
  transition: color 0.15s, border-color 0.15s;
}

.tips-panel {
  display: flex;
  flex-direction: row; /* Forces side-by-side */
  align-items: stretch;
  width: 100%;
}

/* Image container styling */
.tips-image {
  width: 42%; /* Keeps image at 42% width */
  flex-shrink: 0;
  background: #f8f7f5; 
  padding: 20px; /* This creates your internal margin */
  display: flex;
}

.tips-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px; /* Rounded corners */
}

/* Text container styling */
.tips-text {
  flex: 1; /* Takes up the remaining 58% of the width */
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
 
    .tips-text {
      flex: 1;
      padding: 2.25rem 2.5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .tips-text p {
      font-size: 1rem;
      color: #555;
      line-height: 1.8;
      margin: 0;
    }
 
    @media (max-width: 640px) {
      .tips-panel { flex-direction: column; }
      .tips-image { width: 100%; min-height: 200px; }
      .tips-text { padding: 1.5rem; }
	  .tips-panel {
    flex-direction: column; /* Only stack on mobile screens */
  }
  .tips-image {
    width: 100%;
  }
    }

	.relevant-info-block { background-color: #f8f9fa; border-left: 4px solid #198754; border-radius: 8px; }
  .description-links { display: flex; flex-direction: column; gap: 12px; }
  .description-links a { color: #4a554e; text-decoration: none; font-weight: 500; font-size: 1rem; transition: all 0.2s ease; width: fit-content; display: inline-block; }
  .description-links a::before { content: "→"; margin-right: 10px; color: #198754; font-weight: bold; }
  .description-links a:hover { color: #198754; padding-left: 8px; }

  .custom-card { background-color: #f1f8f4; border: none; border-radius: 4px; min-height: 450px; }
  .card-icon { height: 180px; width: auto; }
  .card-label { text-transform: uppercase; color: #6c757d; font-size: 11px; font-weight: 600; letter-spacing: 1px; margin-bottom: 10px; }
  .card-title { font-size: 1.25rem; font-weight: 700; color: #333; margin-bottom: 15px; }
  .card-text { font-size: 0.9rem; color: #000000; line-height: 1.5; }


.search-results-inner {
  margin: 0 auto;
  padding: 1.5rem 0;
}

.sr-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--epj-green-600);
}

.sr-label {
  font-size: 15px;
  font-weight: 600;
  color: #555;
}

.sr-count {
  font-size: 13px;
  color: #777;
}

/* Result card */
.sr-item {
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  border: 0.5px solid var(--epj-green-600);
  margin-bottom: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sr-item:hover {
  border-color: var(--epj-green-600);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.08);
}

.sr-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--epj-green-600);
  text-decoration: none;
  display: block;
  margin-bottom: 3px;
}

.sr-item-title:hover {
  color: var(--epj-green-600);
  text-decoration: underline;
}

.sr-item-url {
  font-size: 11.5px;
  color: #666;
  display: block;
  margin-bottom: 6px;
}

.sr-item-excerpt {
  font-size: 13.5px;
  color: #222;
  line-height: 1.55;
  margin: 0;
}

/* Keyword highlight */
.sr-item mark {
  background: #9FE1CB;
  color: #04342C;
  border-radius: 3px;
  padding: 1px 3px;
  font-weight: 600;
}

/* ── Pagination ───────────────────────────────── */
.simplesearch-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between buttons */
    margin-top: 30px;
    font-family: inherit; /* Inherits your site's font */
}

/* Base styles for all buttons and numbers */
.simplesearch-pagination .page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d0e3d9; /* Light green border */
    border-radius: 6px;
    background-color: #ffffff;
    color: #126e51; /* Dark green text */
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

/* Hover state for clickable links */
.simplesearch-pagination a.page-item:hover {
    border-color: #126e51;
    background-color: #f4f9f6; 
}

/* Active current page */
.simplesearch-pagination .page-item.active {
    background-color: #126e51; /* Dark green background */
    color: #ffffff; /* White text */
    border-color: #126e51;
}

/* Specific styling for Previous and Next buttons */
.simplesearch-pagination .page-item.prev,
.simplesearch-pagination .page-item.next {
    padding: 0 16px;
    gap: 6px; /* Space between text and SVG arrow */
}


    /* Tootevõrgustik ja ühtne pildi suurus */
    .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
    .product-card { background: #fff; border: 1px solid #edf2ee; border-radius: 12px; transition: transform 0.2s ease, box-shadow 0.2s ease; overflow: hidden; height: 100%; display: flex; flex-direction: column; text-decoration: none !important; }
    .product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    
    .product-card .img-wrapper { 
        width: 100%;
        aspect-ratio: 1 / 1; 
        overflow: hidden; 
        background: #f8f9fa; 
        border-bottom: 1px solid #f0f0f0; 
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
    }

    .product-card img { 
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: transform 0.4s ease; 
        display: block; 
    }

    .product-card .card-body { padding: 0.85rem; flex-grow: 1; display: flex; align-items: center; }
    .product-card .card-text { font-size: 0.85rem; font-weight: 600; line-height: 1.3; color: #333; margin: 0; text-decoration: none !important; }

    /* Tabeli stiilid */
    .table-responsive-container { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #edf2ee; margin-top: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
    table.korvamargid_tangid_tabel { width: 100%; border-collapse: collapse; margin-bottom: 0; }
    .korvamargid_tangid_tabel thead th { background-color: #e2f9b0 !important; color: #333; padding: 1.25rem 1rem; font-weight: 700; border: none; text-align: center; }
    .korvamargid_tangid_tabel thead th:first-child { text-align: left; padding-left: 1.5rem; }
    .korvamargid_tangid_tabel tbody td { padding: 1rem; text-align: center; vertical-align: middle; border: none; border-bottom: 1px solid #f8faf7; color: #444; }
    .korvamargid_tangid_tabel tbody td:first-child { text-align: left; padding-left: 1.5rem; font-weight: 600; color: #333; }
    
    .korvamargid_tangid_tabel tbody tr:nth-child(even) { background-color: #f7faf2; }

    .status-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: white; font-size: 0.85rem; font-weight: bold; }
    .status-ok { background-color: #198754; }
    .status-no { background-color: #dc3545; }

    .sobivus_mark { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; background: #f8f9fa; padding: 1rem 1.5rem; border-radius: 10px; margin-bottom: 1.5rem; font-size: 0.9rem; border: 1px solid #eee; }
    .sobivus_mark span { display: flex; align-items: center; gap: 8px; font-weight: 500; }

    @media (max-width: 768px) {
        .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    }


.archive-intro {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.archive-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem 1rem;
  align-items: start;
}

.archive-decade {
  grid-column: 1 / -1;
  font-size: 22px;
  font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-tertiary);
  margin-top: 1rem;
}

.archive-decade:first-child {
  margin-top: 0;
}

.archive-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.book-cover {
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 0.5px solid var(--color-border-tertiary);
  transition: transform 0.15s ease, border-color 0.15s ease;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.book-cover:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-secondary);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dl-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 6px 0;
  opacity: 0;
  transition: opacity 0.15s ease;
  letter-spacing: 0.02em;
}

.book-cover:hover .dl-badge {
  opacity: 1;
}

.book-year {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
}

.badge-latest {
  font-size: 11px;
  font-weight: 500;
  background-color: #e6f4ee;
  color: #1a6b4a;
  border-radius: 100px;
  padding: 2px 8px;
}

@media (max-width: 600px) {
  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

.proc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}
.proc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.proc-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E6F1FB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    color: #0C447C;
    flex-shrink: 0;
}
.proc-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0;
}
.proc-desc {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .proc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .proc-grid { grid-template-columns: 1fr; }
}

.nav-nolink {
    cursor: default !important;
    pointer-events: none;
}
/* Re-enable pointer events on the mobile chevron/toggle so it can still expand the submenu on tap, if you want that — see note below */
.nav-nolink .toggle-submenu-main {
    pointer-events: auto;
}