.a221 {
    font-size: 21px;
    color: white;
    font-weight: bold;
}

body {
  font-family: Arial, sans-serif;
}

*{
  font-family: 'Cairo', sans-serif; /* Arabic-friendly font */
  text-decoration: none !important;
}
.card a {
    color: #000000 !important;
}
.container-fluid {
    padding: 0px;
}

.olmmore {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.olmmore :hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

#topmenuid .navbar-nav {
    padding: 0;
}
#sidebar-first .block {
    border: 2px solid #b1adad78;
}
#sidebar-first h2 {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #198754;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 3px;
    padding-top: 13px;
    position: relative;
}
#sidebar-first h2:after {
  content: '';
  display: block;
  width: 80px; /* Decorative line width */
  height: 4px; /* Thickness of the line */
  background-color: #018c29; /* Bootstrap brighter blue */
  margin: 10px auto 0; /* Centered and with spacing */
  border-radius: 2px; /* Rounded edges for the line */
  transition: all 0.3s ease; /* Smooth hover effect for the underline */
}

#block-dgat-ban3 h2 {
    text-align: center;
}

.topmenuclass1{
    background-color: #00a551;
}
ul.dropdown-menu.nav-level-1.show li {
    border-bottom: 1px solid #666;
    text-align: left !important;
}

/* Style for the Article Title */
.view-content .views-row h2 a {
  font-size: 19px;
  font-weight: bold;
  text-decoration: none;
  color: #333; /* Dark color for the title */
  padding: 5px 10px;
  border-bottom: 1px solid #dc3545; /* Accent color for emphasis */
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

/* Hover effect */
.view-content .views-row h2 a:hover {
  background-color: #01a453;
  color: #fff; /* White text on hover */
  border-bottom-color: #b32c00; /* Slightly darker blue on hover */
  padding-left: 15px; /* Animates a subtle padding shift */
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .view-content .views-row h2 a {
    font-size: 18px;
  }

}

header {
  color: white;
  text-align: center;
}
#header {
    background: #fff;
    text-align: center;
}

.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 960px) {
header {
  color: white;
  text-align: center;
  
  position:relative;
}
header img{
  color: white;
  text-align: center;
  
}
.ploatforme .card {
    height: 163px;
}
}

.bg-rim{
    background-color: #32ac67;
    padding: 0px;
}

.topmenu {
  color: white;
  text-align: center;
  /* height: 60px; */
  /* padding: 10px; */
  --bs-navbar-padding-y: 0;
  border-bottom: 2px solid #d01e25;
}
.topmenu2 > li > a{
    
}
.topmenu li {
    padding: 5px 30px;
    /* background: #dc3545; */
    border-right: 2px solid #cbcbcb6e;
}
.topmenu li a{
  font-size: 1rem;
}
#block-dgat-views-block-a-block-1 .views-field-field-featured-image{
    width: 100%;
}
#block-dgat-views-block-a-block-1 .views-field-field-featured-image img{
    width: 95%;
}

#block-dgat-page-title h1 {
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgb(0 0 0 / 11%);
    text-decoration: none;
    line-height: 1.2;
}
#banner3 {
    border-top: 2px solid #6666664d;
}

@media (min-width: 992px) {
    .topmenu li {
    height: 60px;
    text-align:center !important;
    }
    .olmbody.card-body p {
    font-size: 0.8rem;
}
  .col22 {
    height: 131px;
}

.col63 {
    /* padding: 0; */
    margin-top: 18px;
}

.col631 {
    height: 142px;
}
}
.topmenu li:hover {
    background: #037c3e;
}
.topmenu li a:hover {
  color:beige;
    
  
}
.topmenu .nav-item:has(> a.nav-link.is-active) {
    background: #0d502e5e;
}
.topmenu .nav-item:has(> a.nav-link.is-active) > a.nav-link {
  color: white;
  text-align:center !important;
  
}

.topmenu li a{
  color: white !important;
  font-weight: 700;
  /* padding: 0 24px; */
}
.nav-link{
  color: white !important;
  text-align:center !important;
}
.topmenu li span{
  color: white;
}

.banner {
  background-color: #f4f4f4;
  text-align: center;
  /* padding: 50px 0; */
}

.content {
  display: flex;
  margin: 20px;
}
.olmrow {
    --bs-gutter-x: 0;
}
.sidebar {
  width: 25%;
  padding: 10px;
  background-color: #f9f9f9;
}

.main-content {
  width: 75%;
  padding: 10px;
}

footer {
  background-color: #028234;
  color: white;
  text-align: center;
  padding: 10px;
  /* margin-top: 20px; */
}


/*lang switch*/
/* Style for the container */
#block-dgat-languageswitcher {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #f8f9fa; /* Light background for better visibility */
  border: 1px solid #ddd; /* Subtle border for structure */
}

/* Style for the list */
#block-dgat-languageswitcher ul {
  list-style: none;
  display: flex;
  gap: 15px; /* Space between items */
  margin: 0;
  padding: 0;
}

/* Style for list items */
#block-dgat-languageswitcher li {
  display: inline-block;
}

/* Style for links */
#block-dgat-languageswitcher a.language-link {
  text-decoration: none;
  font-size: 16px;
  color: #007bff; /* Bootstrap's primary color */
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

#block-dgat-languageswitcher a.language-link:hover {
  background-color: #00a651;
  color: #fff; /* White text on hover */
  border-color: #198754;
}

#block-dgat-languageswitcher a.language-link.is-active {
    background-color: #ce1c25;
    color: #fff;
    border-color: #fad607;
}

/*end*/

/* Style for the list */
.language-list {
  list-style: none;
  display: flex;
  gap: 14px; /* Space between list items */
  justify-content: center;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid #d01e25;
}

/* Style for each language item */
.language-item {s
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
   /* color: #007bff;Bootstrap's primary blue */
  padding: 1px 15px;
  border: 1px solid #007bff;
  border-radius: 5px;
  background-color: #f8f9fa; /* Light background */
  transition: all 0.3s ease-in-out, transform 0.3s ease-in-out; /* Added animation for smooth transitions */
}

/* Hover effect */
.language-item:hover {
  color: #fff;
  background-color: #007bff;
  transform: scale(1.1); /* Makes the item slightly larger when hovered */
}

/* Active language item */
.language-item.active {
  color: #fff;
  background-color: #0056b3; /* Darker blue for active state */
  border-color: #0056b3;
  box-shadow: 0 0 10px rgba(0, 87, 179, 0.5); /* Adds a subtle glow */
  transform: scale(1.05); /* Slightly larger size for active item */
}


/* General Container Styling: Two Columns */
#block-dgat-views-block-actualites-block-1 .view-content {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */ /* Two equal columns */
  gap: 10px; /* Space between columns */
  height: 100%; /* Make it fill the container */
  align-items: stretch;
}



.olameview1-1.views-row  {
    border-radius: 5px;
    border-bottom: 1px solid #00000029;
    height: 58px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}
.field-content.articleimageleft img {
    width: 100px !important;
    height: 55px;
    border-radius: 5px;
    border-bottom: 1px solid #00000029;
}

.field-content.articleimageleft {
    width: 100px;
    height: 55px;
    padding-right: 5px;
}
.olameview1-1.views-row .views-field.views-field-title {
    padding: 2px;
}
.olameview1-1.views-row a {
    color: #060505;
    text-decoration: none;
    font-size: 12px;
}

.olameview1-2.views-row a {
    color: #060505;
    text-decoration: none;
    font-size: 12px;
}

.olameview1-2.views-row  {
    border-radius: 5px;
    border: 1px solid #00000029;
}
.olameview1-2.views-row .views-field.views-field-title {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    padding: 7px;
}

/* Images: Full Size in Their Box */
#block-dgat-views-block-actualites-block-1 .view-content .olameview1-2 .views-field-field-image img {
  width: 100%;
  height: 200px; /* Fill the container */
  object-fit: cover; /* Crop proportionally */
  padding:5px;
  border-radius: 5px; /* Rounded corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover animation */
}

/* Hover Effect for Images */
#block-dgat-views-block-actualites-block-1 .view-content .olameview1-2 .views-field-field-image img:hover {
  transform: scale(1.05); /* Slight enlargement */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Titles: Centered and Animated */
#content .view-content .olameview1-2 .views-field-title a {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease, transform 0.3s ease; /* Smooth animation for hover */
}

#content .view-content .olameview1-2 .views-field-title a:hover {
  color: #0056b3; /* Darker blue for hover effect */
  transform: scale(1.1); /* Slightly enlarge title */
}

/* Adjust Layout for Smaller Screens */
@media (max-width: 768px) {
  #content .view-content {
    grid-template-columns: 1fr; /* Single column layout */
  }

  #content .view-content .olameview1-2 {
    width: 100%; /* Full width for small screens */
    height: auto; /* Adjust height */
  }

  #content .view-content .olameview1-2 .views-field-field-image img {
    height: auto; /* Adjust image height */
    object-fit: contain; /* Avoid cropping on smaller screens */
  }
}
/* Title Styling */
#banner2 h2,#content h2 {
  font-family: 'Arial', sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: #b95b05; /* Bootstrap primary blue for a professional look */
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-top: 1rem !important;
}

/* Add a decorative underline */
#banner2 h2:after,#content h2:after {
  content: '';
  display: block;
  width: 80px; /* Decorative line width */
  height: 4px; /* Thickness of the line */
  background-color: #018c29; /* Bootstrap brighter blue */
  margin: 10px auto 0; /* Centered and with spacing */
  border-radius: 2px; /* Rounded edges for the line */
  transition: all 0.3s ease; /* Smooth hover effect for the underline */
}

/* Hover Effect for Title */
#banner2 h2:hover:after,#content h2:hover:after {
  width: 120px; /* Expand the line on hover */
  background-color: #003f8a; /* Slightly darker blue */
}
.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.icon-box i {
  color: #007bff; /* Bootstrap primary blue */
  transition: transform 0.3s ease-in-out;
}

.icon-box:hover i {
  transform: scale(1.2); /* Hover effect */
}

.icon-box span {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 8px;
}
/*slidshow*/

@media (min-width: 960px) {
    #views_slideshow_cycle_teaser_section_slid-block_1 .views-row img {
    height: 400px;
    width: 950px;
}
}
#views_slideshow_cycle_main_slid-block_1 {
   
}

.views-slideshow-controls-bottom.clearfix img{
    width:100px;
    height:80px;
    padding:2px;
}

div#views_slideshow_cycle_div_slid-block_1_0 {
    width: 100% !important;
}

.views-row.slid {
  /* position: relative; */ /* To position the text overlay */
  overflow: hidden; /* To contain the image and background */
  display: flex;
  margin-bottom: 20px;
  border-right: 1px solid #eee;
  border-left: 1px solid #eee;
  padding: 0px;
  border-radius: 6px;
}
.views-row.slid img{border-radius: 1px;}

.views-row.slid > div:first-child { /* Style the image container if needed */
  display: block; /* Ensure it takes full width */
  /* width: 20%; */
}

.views-row.slid img {
  display: block; /* Remove extra space below the image */
  width: 100%; /* Make the image take full width */
  height: auto; /* Maintain aspect ratio */
}

.views-row.slid .views-field-title {
  /* position: relative; */ /* Overlay the image */
  /* bottom: 0; */ /* Position at the bottom */
  /* left: 0; */
  width: 36%; /* Full width background */
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
  color: white; /* White text color */
  padding: 15px; /* Add some padding for readability */
  font-size: 18px;
  font-weight: 700;
  float: right;
  text-align: initial; /* Center the text */
  box-sizing: border-box; /* Include padding in width calculation */
  /* transform: translateY(0); */  /* Initially hidden below the image */
  /* transition: transform 0.3s ease-in-out; */ /* Smooth animation */
}

.views-row.slid:hover .views-field-title {
}

.views-field-title .field-content {
  margin: 0; /* Remove default margins from the span */
}
.views-field-title a {
  color: white; /* White link color */
  text-decoration: none; /* Remove underline */
  /* font-size: 16px; */
  /* border-bottom: 2px solid red !important; */
}


.views-field-title a:hover {
  text-decoration: none; /* Add underline on hover for link indication */
}


/*services*/

.custom-card {
            background-color: #f8f9fa; /* Light background for the cards, like in the image */
            border: none; /* Remove default border */
            border-radius: 10px; /* Add rounded corners */
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
            height: 100%; /* Make cards stretch to equal height */
            display: flex;
            flex-direction: column;
            justify-content: center; /* Vertically center the content */
            align-items: center; /* horizontally center content */
            text-align: center;
        }
        .custom-card img{
          width: 50%; /* make the image smaller */
          height: auto;
          margin-bottom: 1rem;
        }

        

        .custom-card-text {
            color: #343a40; /* Darker text for better readability */
        }
        .full-height-grid {
          display: flex;
          flex-direction: column;
          height: 100vh; /* Make the grid container take up the full viewport height */
        }
        .card-title{
            font-size: 0.8rem !important;
        }
        @media (max-width: 992px) { /* Medium screens and smaller */
            .full-height-grid {
                height: auto; /* Revert to auto height on smaller screens */
            }
            .custom-card{
              margin-bottom: 1rem;
            }
        }
.green-card {
            background-color: #4CAF50; /* Example green color */
            color: white;
        }
        
        .green-card2 {
    background-color: #0d6efd;
    color: white;
}

/**/
.horizontal-scroll-container {
            overflow-x: auto;
            white-space: nowrap;
            padding-bottom: 20px; /* Add some padding at the bottom for scrollbar */
            -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
            scroll-snap-type: x mandatory;
            padding-top: 20px;
        }

        .horizontal-scroll-container::-webkit-scrollbar {
            display: none;  /* Hide scrollbar for Chrome, Safari and Opera */
        }

        .horizontal-scroll-container {
          -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
        }


        .scroll-item {
            display: inline-block;
            margin-right: 20px; /* Space between items */
            width: 250px; /* Width of each item */
            height: 200px; /* Height of each item */
            border-radius: 10px;
            background-color: #25ac4c; /* Default background color */
            overflow: hidden; /* Hide overflowing image */
            position: relative; /* For absolute positioning of overlay */
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow */
            transition: transform 0.3s ease; /* Smooth transition */
            scroll-snap-align: start;
            text-align: center;
        }

        .scroll-item:hover {
            transform: translateY(-5px); /* Move up slightly on hover */
        }

        .scroll-item img {
            width: 81%;
            height: 100%;
            object-fit: cover; /* Ensure image covers the whole area */
            transition: transform 0.3s ease; /* Smooth transition on image */
        }

        .scroll-item:hover img {
            /*transform: scale(1.1);  Slightly scale up image on hover */
        }

        .scroll-item-text {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent overlay */
            color: white;
            padding: 10px;
            text-align: center;
            font-size: 14px;
            opacity: 1; /* Initially hidden */
            transition: opacity 0.3s ease; /* Smooth transition */
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }

        .scroll-item:hover .scroll-item-text {
            opacity: 0.8; /* Show text on hover */
          transform: scale(1.1);
        }

        .section-title {
            text-align: center;
            margin-bottom: 20px;
            font-size: 24px;
            color: #083344;
            font-weight: 600;
        }
        .horizontal-scroll-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            display: flex;
            padding-bottom: 20px;
            margin-left: -20px;
        }

        .horizontal-scroll-wrapper > * {
            flex: 0 0 auto;
            width: 280px;
            margin-left: 20px;
            scroll-snap-align: start;
        }

        .horizontal-scroll-wrapper::-webkit-scrollbar {
            display: none;
        }

        .horizontal-scroll-wrapper {
            -ms-overflow-style: none;
        }



.node--type-article {
  width: 100%;
}
.publish-date {
    float: right;
    background: #e5dede;
}
/* Style for the title */
.node__content h2 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.node__content h2 a {
  text-decoration: none;
  color: inherit;
}

.node__content h2 a:hover {
  color: #007bff;
}

/* Style for the image container */
article.node.node--type-article.node--promoted.node--view-mode-full .field--name-field-image {
  flex: 0 0 auto;
  margin-right: 15px;
  max-width: 704px; /* Increased max-width */
  height: auto;
}

.field--name-field-image img {
  display: block;
  max-width: 100%;
  height: auto;
  padding: 5px;
  border-radius: 5px;
}

/* Style for the body text */
.field--name-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* Style for the metadata (footer) - Display only the date */
.node__meta {
  margin-top: 10px;
  font-size: 0.9em;
  color: #777;
  display: none;
}

.node__submitted > *:not(.field--name-created) {
  display: none !important; /* Hide everything except the created date */
}

.node__links {
  margin-top: 10px;
}

.node__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.node__links li {
  display: inline;
  margin-right: 10px;
}

.node__links a {
  text-decoration: none;
  color: #007bff;
}

.node__links a:hover {
  text-decoration: underline;
}

/* Media query for larger screens */
@media (min-width: 768px) {
  .node--promoted.node--view-mode-teaser .node--type-article {
    display: block;
    /* align-items: flex-start; */
  }

  .node--promoted.node--view-mode-teaser .field--name-field-image {
    /* Increased flex-basis and max-width for a larger image */
    flex-basis: 216px;
    max-width: 440px;
    /* height: 296px; */
    margin-right: 2px; /* Slightly increased margin */
    margin-left: 2px;
    display: inline-block;
  }
  .node--promoted.node--view-mode-teaser .field--name-field-image img{
    width: 100%;
  }
  .node--promoted.node--view-mode-teaser .node__content {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
  }

  .node--promoted.node--view-mode-teaser .node__content h2 {
    /* Keep the same title styles */
  }

  .node--promoted.node--view-mode-teaser .field--name-body {
    /* Keep the same body styles */
  }
}
 .node--promoted.node--view-mode-teaser .field--name-field-tags {
  margin-top: 15px;
  padding: 10px;
  background-color: #f8f9fa; /* Light background */
  border: 1px solid #dee2e6; /* Light border */
  border-radius: 5px;
  font-size: 0.9em;
}

.node--promoted.node--view-mode-teaser .field--name-field-tags .field__label {
  display: block;
  color: #6c757d; /* Gray label text */
  margin-bottom: 5px;
  font-weight: bold;
}

.node--promoted.node--view-mode-teaser .field--name-field-tags .field__items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px; /* Spacing between tags */
  display: inline-block;
  background-color: #e9ecef; /* Light gray tag background */
  color: #495057; /* Darker text color */
  padding: 5px 10px;
  border-radius: 3px;
  text-decoration: none; /* Remove link underline */
}


.field--name-field-tags .field__item:hover {
  background-color: #d3d7db; /* Slightly darker on hover */
}

.field--name-field-tags .field__item a {
  color: inherit; /* Inherit color from parent */
  text-decoration: none; /* Ensure no underline on the link */
}

.field--name-field-tags .field__item a:hover {
  text-decoration: none; /* Keep no underline on hover for the link */
}
@media (min-width: 1200px) {
    .h1, h1 {
        font-size: 1.5rem;
    }
}



/*map css*/
.map-container {
    position: relative;
}

.map path {
    fill: #ccc;
    stroke: #000;
    cursor: pointer;
    transition: fill 0.3s;
}

.map path:hover {
    fill: #f08080; /* Highlight color */
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    display: none;
    border-radius: 5px;
}
/*project*/
.rowolm {
    background-image: linear-gradient(to right, #a4fa84 0%, #8fd3f4 51%, #edfa84 100%);
}
.rowolm2 {
    background-image: linear-gradient(to right, #838881 0%, #0775aa 51%, #acaea4 100%);
}

.rowolm3 {
    background-image: linear-gradient(to right, #89eff8 0%, #2c7889 91%, #acaea4 100%);
}


#block-dgat-views-block-a-block-1 .views-field-title a{
      color: white; /* White link color */
  text-decoration: none; /* Remove underline */
  /* font-size: 16px; */
  /* border-bottom: 2px solid red !important; */
  font-family: Arial Black;
  font-weight: normal;
  font-style: normal;
  text-align: left;
  text-transform: none;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  color: #111;
  display: inherit;
}

#block-dgat-views-block-a-block-1 .views-field.views-field-field-content strong{
    font-weight: normal;
}  
#block-dgat-views-block-a-block-1 .views-field.views-field-field-content em{
    font-weight: normal;
    font-style: normal;
}
#block-dgat-views-block-a-block-1 .views-field.views-field-field-content{
  
}

#banner2 {
    background: radial-gradient(#282928, transparent);
    padding: 10px;
}


/* Ensure the main slider container fills its parent and manages overflow */
/* This is often 'views_slideshow_cycle_main' or a direct parent of 'views_slideshow_cycle_teaser_section' */
.views_slideshow_cycle_main {
    position: relative;
    width: 100% !important; /* Crucial: Override any inline width */
    max-width: 100%; /* Ensure it doesn't exceed its parent */
    overflow: hidden;
    margin: 0 auto;
}

/* The actual "viewport" or "stage" for the slides */
.views_slideshow_cycle_teaser_section {
    position: relative;
    width: 100% !important; /* Override inline width */
    height: auto !important; /* Override inline height */
    padding-bottom: 56.25% !important; /* Maintain 16:9 aspect ratio for the container. Adjust as needed. */
    /* If you prefer a fixed height, use: height: 450px !important; and remove padding-bottom */
    overflow: hidden; /* Hide overflowing parts of slides during transition */
}

/* Individual slide wrappers */
.views_slideshow_cycle_slide {
    position: absolute !important; /* Ensure positioning is absolute */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important; /* Force slides to take 100% of the teaser section's width */
    height: 100% !important; /* Force slides to take 100% of the teaser section's height */
    /* The opacity and display properties here are controlled by the JS slider, so don't !important them
       unless you are fully replacing the module's JS. */
    /* opacity: 0; */
    /* transition: opacity 1s ease-in-out; */
    display: flex; /* Use flexbox for inner content alignment */
    align-items: center; /* Vertically center content if needed */
    justify-content: center; /* Horizontally center content if needed */
    /* background-color: #eee; /* Placeholder for debugging */
}


/* Your existing .newsslid class styles - apply to the views-row inside each slide */
/* This targets the div that contains the image and title for each slide item */
.views_slideshow_cycle_slide .newsslid { /* Target newsslid specifically within a slide */
    position: relative; /* Keep it relative for absolute children like title */
    width: 100%; /* Take full width of the slide */
    height: 100%; /* Take full height of the slide */
    overflow: hidden; /* Important for containing images */
    object-fit: cover;
    align-items: center;
    justify-content: center;
}


/* Image Styling - Fully Responsive */
.newsslid img {
    /* These properties are crucial for making the image fill its container correctly */
    width: 100% !important; /* Override the inline width attribute from Drupal */
    height: 100% !important; /* Override the inline height attribute from Drupal */
    object-fit: cover; /* This is key: crops image to fit, maintaining aspect ratio */
    object-position: center; /* Centers the visible part of the image */
    display: block; /* Removes extra space below image */
}

/* Title Styling - relative to .newsslid parent */
.newsslid .views-field-title {
    position: absolute;
    /* bottom: 15%; /* Consider absolute pixel value or responsive units like vh for consistency */
    bottom: 20px; /* Example fixed bottom padding */
    left: 0; /* Align to the left edge of its parent */
    width: 100%; /* Take full width of its parent (.newsslid) */
    text-align: center;
    z-index: 2;
    pointer-events: none; /* Allows clicks to pass through to the underlying slide link if any */
    box-sizing: border-box; /* Include padding in width */
    padding: 10px 20px; /* Add some padding to prevent text from hitting edges */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    /* remove transform: translateX(-50%); if width is 100% and left is 0 */
}

.newsslid .views-field-title a {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    text-decoration: none;
    line-height: 1.2; /* Adjust line height for multi-line titles */
}

@media (max-width: 576px){
    .newsslid .views-field-title a {
    color: #fff;
    font-size: 1em;
}
  .newsslid img {
    width: 100% !important;
    min-height: 240px !important;
    object-fit: cover;
    object-position: center;
    display: block;
}
}
/* Grid chiffres cles */
/* Container for the grid */
#block-dgat-views-block-chiffres-cles-view-block-1 .view-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; /* spacing between items */
  margin: 2rem 0;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  #block-dgat-views-block-chiffres-cles-view-block-1 .view-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #block-dgat-views-block-chiffres-cles-view-block-1 .view-content {
    grid-template-columns: 1fr;
  }
}

/* Each grid item */
.gridchiffrescles {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gridchiffrescles:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Image styling */
.gridchiffrescles img {
  width: 100%;
  height: 220px; /* fixed height for consistency */
  object-fit: cover;
  display: block;
}

/* Title styling */
.gridchiffrescles .views-field-title {
  padding: 1rem;
  text-align: center;
}

.gridchiffrescles .views-field-title a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #004d40; /* deep green accent */
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.gridchiffrescles .views-field-title a:hover {
  color: #00796b; /* lighter green on hover */
}


/*Terrain*/
/* Container for the terrain view */
.terrain.view-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Desktop: deux colonnes */
.terrain .views-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  background: #fff;
}

/* Texte */
.terrain .views-field-title,
.terrain .views-field-field-content {
  flex: 1;
  padding: 1rem;
  color: #333;
}

.terrain .views-field-title a {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #004d40;
  text-decoration: none;
  line-height: 1.3;
  display: block;
  margin-bottom: 1rem;
}

.terrain .views-field-field-content {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.6;
  opacity: 1;
}

/* Image */
.terrain .views-field-field-featured-image {
  flex: 2;
  position: relative;
}

.terrain .views-field-field-featured-image img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  display: block;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .terrain .views-row {
    flex-direction: column;
  }

  /* Image au-dessus */
  .terrain .views-field-field-featured-image {
    order: -1;
    height: auto;
  }

  .terrain .views-field-field-featured-image img {
    height: auto;
    max-height: 280px;
  }

  /* Masquer le contenu descriptif */
  .terrain .views-field-field-content {
    display: none;
  }

  /* Centrer le titre */
  .terrain .views-field-title {
    padding: 1rem;
    text-align: center;
  }

  .terrain .views-field-title a {
    font-size: 1.4rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .terrain .views-field-title a {
    font-size: 1.rem;
  }
}
/* Hover animation */
#block-dgat-views-block-terrain-block-1 h2:hover {
  background: #824403;
  transform: translateX(-10%) scale(1.5);
  box-shadow: 0 10px 24px rgba(0, 163, 137, 0.45);
}

/* Optional pulse animation on load */
@keyframes pulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); }
}

#block-dgat-views-block-terrain-block-1 h2 {
  animation: pulse 1.8s ease-in-out 1;
}


#block-dgat-views-block-terrain-block-1 h2 {
  z-index: 2;
  width:200px;
  margin: 0 auto;
  padding: 12px 28px;
  background: #008415; /* rimbg */
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 163, 137, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}