@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');
:root {
    --primary-color: #005792;
    --secondary-color: #00334e;
    --accent-color: rgb(43, 125, 233);
    --light-accent: #3ab6f8;
    --text-color: #000000;
    --light-color: #ffffff;
    --bg-color: #f8f9fc;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #0077c2);
    --shadow: 0 10px 30px rgba(0, 87, 146, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 87, 146, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-radius: 12px;
  }

body {
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--bg-dark);
    position: relative;

    background: 
        radial-gradient(circle at 30% 40%, rgba(0, 198, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(74, 144, 226, 0.18) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(0, 123, 255, 0.08), transparent 80%),
        linear-gradient(to bottom right, #0a0a0a, #121620);
    
    background-blend-mode: screen, screen, screen, normal;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.2), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: floatingGlow 8s ease-in-out infinite;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.4;
}

@keyframes floatingGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-48%, -52%) scale(1.25);
        opacity: 0.6;
    }
}


/***********************************************
* SECTION 1 - SWIPER SLIDER 
***********************************************/
#section1 {
            width: 100%;
            height: 100vh;
            overflow: hidden;
            position: relative;
        }

        .swiper {
            width: 100%;
            height: 100%;
        }

        .swiper-slide {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background-size: cover;
            background-position: center;
            width: 100%;
            height: 100%;
            transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .swiper-slide::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: linear-gradient(45deg, rgba(0, 31, 51, 0.5), rgba(4, 63, 95, 0.6));
          z-index: 1;
        }

        .swiper-slide::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4));
            z-index: 2;
        }

        .slide-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            max-width: 1200px;
            text-align: center;
            color: #fff;
            z-index: 10;
            opacity: 0;
            animation: slideInContent 1.2s ease-out 0.3s forwards;
        }

        .swiper-slide-active .slide-content {
            animation: slideInContent 1.2s ease-out 0.3s forwards;
        }

        @keyframes slideInContent {
            0% {
                opacity: 0;
                transform: translate(-50%, -30%) scale(0.9);
            }
            100% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        .slide-content h2 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #ffffff, #3ab6f8, #ffffff);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 3s ease-in-out infinite;
            text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
            position: relative;
        }

        @keyframes gradientShift {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }

        .slide-content h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, transparent, #3ab6f8, transparent);
            border-radius: 2px;
            animation: underlineGlow 2s ease-in-out infinite;
        }

        @keyframes underlineGlow {
            0%, 100% {
                width: 100px;
                opacity: 0.7;
            }
            50% {
                width: 150px;
                opacity: 1;
            }
        }

        .slide-content p {
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            line-height: 1.8;
            margin: 2rem auto;
            font-weight: 400;
            max-width: 800px;
            opacity: 0;
            animation: fadeInUp 1s ease-out 0.8s forwards;
            color: rgba(255, 255, 255, 0.95);
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .enhanced-cta-wrapper {
            margin-top: 3rem;
            opacity: 0;
            animation: fadeInScale 1s ease-out 1.2s forwards;
        }

        @keyframes fadeInScale {
            0% {
                opacity: 0;
                transform: scale(0.8) translateY(20px);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .enhanced-cta {
            display: inline-flex;
            align-items: center;
            padding: 18px 40px;
            text-decoration: none;
            font-family: 'Poppins', sans-serif;
            font-size: 1.1rem;
            font-weight: 600;
            color: white;
            background: linear-gradient(135deg, #2baae1, #005792);
            border-radius: 50px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 8px 25px rgba(43, 170, 225, 0.4);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .enhanced-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s ease;
        }

        .enhanced-cta:hover::before {
            left: 100%;
        }

        .enhanced-cta:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 15px 40px rgba(43, 170, 225, 0.6);
            background: linear-gradient(135deg, #3ab6f8, #0077c2);
        }

        .enhanced-cta .cta-text {
            margin-right: 15px;
        }

        .enhanced-cta .cta-icon {
            width: 24px;
            height: 24px;
            transition: transform 0.3s ease;
        }

        .enhanced-cta:hover .cta-icon {
            transform: translateX(5px);
        }

        /* Floating particles effect */
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 3;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
                opacity: 0;
            }
            10%, 90% {
                opacity: 1;
            }
            50% {
                transform: translateY(-100px) rotate(180deg);
            }
        }

        /* Swiper customization */
        .swiper-button-next, .swiper-button-prev {
            color: white;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            margin-top: -30px;
            transition: all 0.3s ease;
            margin: auto 40px;

            
        }

        .swiper-button-next::after, .swiper-button-prev::after {
            font-size: 20px;
            font-weight: bold;
        }

        .swiper-button-next:hover, .swiper-button-prev:hover {
            background: rgba(43, 170, 225, 0.3);
            transform: scale(1.1);
        }

        .swiper-pagination {
            bottom: 30px !important;
        }

        .swiper-pagination-bullet {
            background: rgba(255, 255, 255, 0.5);
            opacity: 1;
            width: 12px;
            height: 12px;
            margin: 0 6px;
            transition: all 0.3s ease;
        }

        .swiper-pagination-bullet-active {
            background: #2baae1;
            transform: scale(1.3);
            box-shadow: 0 0 20px rgba(43, 170, 225, 0.8);
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .slide-content {
                width: 95%;
                padding: 0 20px;
            }

            .slide-content h2 {
                margin-bottom: 1.5rem;
                letter-spacing: 1px;
            }

            .slide-content p {
                margin: 1.5rem auto;
            }

            .enhanced-cta {
                padding: 15px 30px;
                font-size: 1rem;
            }

            .swiper-button-next, .swiper-button-prev {
                width: 50px;
                height: 50px;
                margin-top: -25px;
                margin: auto 0;
            }

            .swiper-button-next::after, .swiper-button-prev::after {
                font-size: 18px;
            }
        }

        @media (max-width: 480px) {
            .enhanced-cta {
                padding: 12px 25px;
                font-size: 0.9rem;
            }

            .swiper-button-next, .swiper-button-prev {
                width: 45px;
                height: 45px;
                margin-top: -22px;
            }
        }

/***********************************************
* SECTION 2 - PRODUCT SEARCH 
***********************************************/

/* Main section container */
.section_2 {
padding: 4rem 0 2rem 0;
color: white;
margin-top: 2rem;
}

/* Two-column layout container */
.section_2 .container {
display: flex;
flex-direction: row;
gap: 2rem;
align-items: stretch; /* This ensures both columns stretch to match heights */
}

/* Left column - search fields */
.section_2 .left-column {
flex: 1; /* Take up available space */
display: flex;
flex-direction: column;
justify-content: space-between; /* Distribute space between the two search containers */
}

/* Right column - rest container */
.section_2 .rest-container {
flex: 1; /* Take up available space */
background-color: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}

.section_2 .text_container{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 4rem;
}

/* Style rest-container dropdowns to match */
.section_2 .rest-container .selects {
margin-bottom: 1rem;
position: relative;
z-index: 2;
}

.section_2 .rest-container .catalog-search-input {
color: #333;
border-bottom-color: #ccc;
}

/* Search containers */
.section_2 .search-container {
background-color: white;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
}

/* First search container */
.section_2 .search-container.horizontal-search {
margin-bottom: 1.5rem;
flex: 1; /* Takes up space but allows second container to push to bottom */
}

/* Second search container - will align with bottom of rest-container */
.section_2 .search-container.horizontal-search1 {
margin-bottom: 0;
flex: 1; /* Takes equal space as first container */
}

/* Horizontal search with image */
.section_2 .horizontal-search, .horizontal-search1 {
display: flex;
flex-direction: column;
padding: 40px;
background-color: white;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
position: relative;
overflow: hidden;
}

/* Background images */
.section_2 .horizontal-search::after {
content: "";
position: absolute;
right: 0;
top: 0;
width: 240px;
height: 100%;
background-image: url("/static/assets/images/rot_sus_nobg.png");

background-size: contain;
background-position: right center;
background-repeat: no-repeat;
z-index: 1;
}

.section_2 .horizontal-search1::after {
content: "";
position: absolute;
right: 0;
top: 0;
width: 240px;
height: 100%;
/* background-image: url('{% static "assets/images/triangle_nobg.png" %}'); */
background-image: url("/static/assets/images/triangle_nobg.png");

background-size: contain;
background-position: right center;
background-repeat: no-repeat;
z-index: 1;
}

/* Labels styling */
.section_2 .search-labels {
display: flex;
margin-bottom: 15px;
position: relative;
z-index: 2;
}

.section_2 .search-labels label {
font-size: 20px;
font-weight: bold;
color: #000;
}

/* Input and button wrapper */
.section_2 .search-input-wrapper {
display: flex;
align-items: center;
width: 100%;
position: relative;
z-index: 2;
}

/* Input group styling */
.section_2 .search-input-group {
flex: 0.7;
margin-right: 15px;
max-width: 70%;
}

/* Input field styling */
.section_2 .search-input-group .catalog-search-input {
width: 100%;
padding: 14px 20px;
border: 1px solid #e0e0e0;
border-radius: 30px;
background-color: #f5f5f5;
color: #333;
margin-bottom: 0;
font-size: 16px;
}

/* Button area - MODIFIED for smaller button width */
.section_2 .search-button-area {
position: relative;
z-index: 3;
flex: 0.3;
max-width: 130px; /* ADDED: Limit width of search button area */
}

/* Search button styling - MODIFIED for smaller text */
.section_2 .searchBtn, .bulk_btns button {
display: flex;
align-items: center;
justify-content: center;
background-color: #0277bd;
color: white;
border: none;
border-radius: 30px;
padding: 10px 15px; /* MODIFIED: Reduced padding */
font-size: 14px; /* MODIFIED: Smaller font size */
font-weight: 500;
height: auto;
margin: 0;
width: 100%;
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
transition: background-color 0.2s;
cursor: pointer;
}

.section_2 .searchBtn:hover, .section_2 .bulk_btns button:hover {
background-color: #01579b;
}

/* Clear button styling */
.section_2 .bulk_btns button[type="button"],
.section_2 .bulk_btns button[type="DeleteBtn"] { 
background-color: #dc4141;
}

.section_2 .bulk_btns button[type="button"]:hover,
.section_2 .bulk_btns button[type="DeleteBtn"]:hover {
background-color:rgb(199, 37, 37);
}

/* Search icon inside button - MODIFIED to be proportional */
.section_2 .search-icon-inline {
display: inline-block;
width: 18px; /* MODIFIED: Smaller icon */
height: 18px; /* MODIFIED: Smaller icon */
/* background-image: url('{% static "assets/images/search_icon.png" %}'); */
background-image: url("/static/assets/images/search_icon.png");

background-size: contain;
background-repeat: no-repeat;
margin-right: 5px; /* MODIFIED: Smaller margin */
}

/* Search buttons row */
.section_2 .bulk_btns {
display: flex;
justify-content: space-between;
gap: 1rem;
position: relative;
z-index: 2;
}

.section_2 .bulk_btns button {
width: auto;
flex: 1;
}

/* Title */
.section_2 .product-search-title {
font-size: 16px;
font-weight: bold;
text-decoration: underline;
text-align: left;
margin-left: 0;
padding-left: 0;
color: white;
margin-bottom: 20px;
}

/* Add background image to rest-container */
.section_2 .rest-container::after {
content: "";
position: absolute;
right: 0;
top: 80px;
width: 400px;
height: 100%;
/* background-image: url('{% static "assets/images/bg-section2.png" %}'); */
background-image: url("/static/assets/images/bg-section2.png");

background-size: contain;
background-position: right center;
background-repeat: no-repeat;
z-index: 1;
opacity: 0.8; /* Make the background image a bit transparent */
}

/* Rest container styling */
.section_2 .rest-container h4 {
font-size: 20px;
font-weight: bold;
color: #000;
position: relative;
z-index: 2;
margin-bottom: 20px;
}

.section_2 .rest-container p {
font-size: 16px;
font-weight: 400;
color: #000;
margin-bottom: 30px;
position: relative;
z-index: 2;
}

/* Select with icon container */
.section_2 .select-with-icon {
position: relative;
display: flex;
align-items: center;
width: 100%;
margin-bottom: 1rem;
}

/* Position the icon */
.section_2 .select-with-icon .select-icon {
position: absolute;
left: 15px;
width: 20px;
height: 20px;
pointer-events: none;
z-index: 10;
}

/* Make the select take full width */
.section_2 .catalog-search-input {
width: 100%;
}

/* Custom styling for Select2 container */
.section_2 .select2-container {
width: 100% !important;
}

/* Style the Select2 selection field */
.section_2 .select2-container--default .select2-selection--single {
background-color: #f5f5f5 !important;
border: 1px solid #e0e0e0 !important;
border-radius: 30px !important;
height: 46px !important;
padding: 8px 20px 8px 45px !important; /* Add padding for the icon */
display: flex !important;
align-items: center !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Style the selected text */
.section_2 .select2-container--default .select2-selection--single .select2-selection__rendered {
color: #333 !important;
line-height: 30px !important;
padding: 0 !important;
font-size: 15px;
}

/* Style the dropdown arrow */
.section_2 .select2-container--default .select2-selection--single .select2-selection__arrow {
height: 44px !important;
right: 15px !important;
}

.section_2 .select2-container--default .select2-selection--single .select2-selection__arrow b {
border-color: #888 transparent transparent transparent;
border-width: 6px 5px 0 5px;
}

/* Style the dropdown menu */
.section_2 .select2-container--default .select2-dropdown {
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
overflow: hidden;
margin-top: 4px;
}

/* Style the search field */
.section_2 .select2-container--default .select2-search--dropdown .select2-search__field {
border: 1px solid #ddd;
border-radius: 4px;
padding: 8px;
}

/* Style the dropdown options */
.section_2 .select2-container--default .select2-results__option {
padding: 10px 15px;
font-size: 14px;
transition: background-color 0.2s;
}

/* Style the highlighted option */
.section_2 .select2-container--default .select2-results__option--highlighted[aria-selected] {
background-color: #0277bd;
color: white;
}

/* Style the selected option */
.section_2 .select2-container--default .select2-results__option[aria-selected=true] {
background-color: #e6f7ff;
}

/* Style for disabled selects */
.section_2 select.catalog-search-input:disabled + .select2-container--default .select2-selection--single {
background-color: #e9ecef !important;
opacity: 0.7;
cursor: not-allowed;
}

/* Enhanced scrollbar styling exactly as in the image */
.section_2 .select2-results__options::-webkit-scrollbar {
width: 8px;
background-color: #f1f1f1;
}

.section_2 .select2-results__options::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}

.section_2 .select2-results__options::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}

.section_2 .select2-results__options::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}

/* Styling for the dropdown options with radio buttons to match the image exactly */
.section_2 .select2-results__option {
position: relative;
padding-left: 40px !important;
line-height: 1.5;
}

/* Radio button styling for options - improved to match image */
.section_2 .select2-results__option::before {
content: "";
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
border: 2px solid #ddd;
border-radius: 50%;
background-color: #fff;
}

/* Selected option styling */
.section_2 .select2-results__option[aria-selected=true]::before {
border-color: #0277bd;
}

.section_2 .select2-results__option[aria-selected=true]::after {
content: "";
position: absolute;
left: 20px;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #0277bd;
}

/* Active/highlighted option in blue with white text */
.section_2 .select2-container--default .select2-results__option--highlighted[aria-selected] {
background-color: #0277bd;
color: white;
}

/* Ensure proper button styling */
.section_2 .bulk_btns button {
display: flex;
align-items: center;
justify-content: center;
background-color: #0277bd;
color: white;
border: none;
border-radius: 30px;
padding: 10px 20px;
font-size: 14px;
font-weight: 500;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
cursor: pointer;
min-width: 120px;
}

.section_2 .bulk_btns button:hover {
background-color: #01579b;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Make Select2 dropdown follow the theme */
.section_2 .select2-container--open .select2-dropdown--below {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
}

.section_2 .select2-container--open .select2-dropdown--above {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}


.section_2 .title {
text-align: center;
color: #fff;
margin-bottom: 50px;
font-size: 2.5rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
}

.section_2 .section_2 .desc {
text-align: center;
color: #fff;
font-size: 18px;
font-weight: 400;
margin: 0 50px;
margin-bottom: 50px;
}

/* Responsive layout */
@media (max-width: 992px) {
  .section_2 .container {
flex-direction: column;
}

.section_2 .left-column, .section_2 .rest-container {
width: 100%;
}

.section_2 .search-container.horizontal-search {
margin-bottom: 1.5rem;
}

.section_2 .search-container.horizontal-search1 {
margin-bottom: 1.5rem;
}

.section_2 .title {
  font-size: 1.5rem;
  }

}

/* Mobile styling */
@media (max-width: 768px) {
  .section_2 .horizontal-search::after, .section_2 .horizontal-search1::after {
opacity: 0.2;
width: 100%;
}

.section_2 .search-input-wrapper {
flex-direction: column;
}

.section_2 .search-input-group {
margin-right: 0;
margin-bottom: 15px;
max-width: 100%;
width: 100%;
}

.section_2 .search-button-area {
max-width: 100%; /* Full width on mobile */
}

.section_2 .searchBtn, .section_2 .bulk_btns button {
width: 100%;
padding: 12px 20px;
}

.section_2 .bulk_btns {
flex-direction: column;
}

.section_2 .sc {
margin-bottom: 1rem;
}

.section_2 .select-with-icon .select-icon {
left: 12px;
}

.section_2 .select2-container--default .select2-selection--single {
padding-left: 40px !important;
}

.section_2 .bulk_btns button {
width: 100%;
min-width: 0;
}
}




/***********************************************
* SECTION 3 - company profile
***********************************************/
/* SECTION 3 */
#section3 {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

/* Conteneur principal */
#section3 .container {
  width: 5px;
  height: 0;
  background-color:  #2b7de9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  opacity: 0;
  position: relative;
  color: white;
  
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 20px;

}

/* Contenu texte */
#section3 .content {
  width: 50%;
  text-align: left;
  opacity: 0;
  margin: 0 20px;
}

#section3 .title {
text-align: left;
margin-bottom: 20px;
}

#section3 .description {
text-align: justify;
}

/* Conteneur image */
#section3 .image-container {
  width: 40%;
  text-align: right;
  opacity: 0;
  
}

#section3 .image-container img {
  max-width: 100%;
  display: block;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 20px;
}

/* Bouton */
#section3 .btn {
padding: 12px 25px;
background:rgb(5, 80, 177);
color: white;
border: none;
border-radius: 30px;
font-weight: 700;
letter-spacing: 1px;
transform: translateY(20px);
opacity: 0;
transition: all 0.3s ease;
cursor: pointer;
box-shadow: 0 5px 15px rgba(43, 125, 233, 0.4);
margin-top: 10px;
}

.animated-text, .animated-tt {
opacity: 0; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  #section3 .container {
    width: 90%;
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  #section3 .content {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  #section3 .title {
    text-align: center;
  }

  #section3 .description {
    text-align: justify;
    font-size: 14px;
  }

  #section3 .image-container {
    width: 80%;
    text-align: center;
  }

  #section3 .btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  #section3 {
    height: auto;
    padding: 50px 0;
  }

  #section3 .container {
    width: 95%;
    padding: 20px;
  }

  #section3 .content {
    width: 100%;
    margin: 0;
  }

  #section3 .title {
    font-size: 24px;
  }

  #section3 .description {
    font-size: 14px;
    line-height: 1.5;
  }

  #section3 .image-container {
    width: 100%;
  }

  #section3 .image-container img {
    width: 90%;
    margin: 0 auto;
  }

  #section3 .btn {
    font-size: 14px;
    padding: 8px 18px;
  }
}

@media (max-width: 480px) {
  #section3 {
    height: auto;
    padding: 30px 0;
  }

  #section3 .container {
    width: 100%;
    padding: 15px;
  }

  #section3 .content {
    width: 100%;
    text-align: center;
  }

  #section3 .title {
    font-size: 20px;
  }

  #section3 .description {
    font-size: 12px;
  }

  #section3 .image-container {
    width: 100%;
  }

  #section3 .image-container img {
    width: 100%;
  }

  #section3 .btn {
    font-size: 12px;
    padding: 6px 16px;
    margin-bottom: 20px;
  }
}

/* ===================================================
 * SECTION 4 - Enhanced & Responsive Product Slider
 * =================================================== */

/* Use GPU acceleration and optimize animations */
#section4 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Initial state for entrance animation */
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

#section4.visible {
  transform: translateX(0);
  opacity: 1;
}

#section4 .slider-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

#section4 .slider-title {
  text-align: center;
  color: #fff;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;

  /* Initial state for entrance animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
  will-change: transform, opacity;
}

#section4.visible .slider-title {
  opacity: 1;
  transform: translateY(0);
}

#section4 .slider-track {
  display: flex;
  width: max-content; /* Let the track width be determined by its content */
  height: 500px;
  align-items: center;
  position: relative;
  /* Smooth transition for the track movement */
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

#section4 .card {
  flex-shrink: 0; /* Prevents cards from shrinking */
  width: 220px;
  height: 350px;
  position: relative;
  margin: 0 20px;
  border-radius: 15px;
  background: #202020;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;

  /* Smooth transitions for all properties */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, box-shadow, width, height, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

#section4 .card.active {
  width: 320px;
  height: 420px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* Card Image Container */
#section4 .card-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  z-index: 1;
}

#section4 .card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 15px 15px 0 0;
  /* This is the key transition for the fade-out effect */
  transition: opacity 0.4s ease-in-out;
  will-change: opacity;
}

/* ★★★ YOUR REQUESTED CHANGE ★★★ */
/* When the card is active, this makes the background image completely disappear */
#section4 .card.active .card-image {
  opacity: 0;
}

/* 3D Floating Product Image */
#section4 .floating-product {
  position: absolute;
  width: 90%;
  max-width: 280px;
  height: auto;
  top: 35%;
  left: 50%;
  transform: translate3d(-50%, -50%, 50px) rotateY(20deg); /* Initial 3D position */
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));

  /* Smooth animation for the 3D effect */
  transition: opacity 0.5s ease 0.1s, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

#section4 .card.active .floating-product {
  opacity: 1;
  transform: translate3d(-50%, -60%, 80px) rotateY(0deg); /* Final 3D position */
}

/* Card Content */
#section4 .card-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30%;
  padding: 20px;
  background: #202020;
  border-radius: 0 0 15px 15px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: height;
  z-index: 2;
}

#section4 .card.active .card-content {
  height: 45%;
}

#section4 .card-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

#section4 .card.active .card-title {
  font-size: 24px;
  opacity: 1;
}

/* "See More" Button */
#section4 .see-more-btn {
  padding: 12px 25px;
  background: #2b7de9;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(43, 125, 233, 0.4);
  margin-top: 15px;

  /* Smooth appearance */
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
  will-change: transform, opacity;
  pointer-events: none; /* Inactive by default */
}

#section4 .card.active .see-more-btn {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto; /* Clickable only when active */
}

#section4 .see-more-btn:hover {
  background: #1e6bc7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 125, 233, 0.6);
}

/* Controls and Navigation */
#section4 .slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 20px;
}

#section4 .prev-btn,
#section4 .next-btn {
  width: 50px;
  height: 50px;
  background: #2b7de9;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(43, 125, 233, 0.4);
  transition: all 0.2s ease;
}

#section4 .prev-btn:hover,
#section4 .next-btn:hover {
  transform: scale(1.1);
}

#section4 .arrow {
  width: 12px;
  height: 12px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
}

#section4 .prev-btn .arrow { transform: rotate(135deg); }
#section4 .next-btn .arrow { transform: rotate(-45deg); }

#section4 .slider-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

#section4 .nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

#section4 .nav-dot.active {
  background: #2b7de9;
  transform: scale(1.2);
}

/* =================================
 * RESPONSIVE DESIGN
 * ================================= */

@media screen and (max-width: 768px) {
  #section4 {
    padding: 40px 0;
  }
  
  #section4 .slider-track {
    /* On mobile, we use opacity instead of transform for transitions */
    height: 480px;
    width: 100%;
    transform: none !important; /* Disable JS transform */
    display: grid; /* Use grid to center the single card */
    place-items: center;
  }
  
  #section4 .card {
    /* All cards occupy the same space */
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    margin: 0;
    opacity: 0;
    pointer-events: none; /* Prevent clicking on hidden cards */
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
    visibility: hidden;
  }

  #section4 .card.active {
    /* Only the active card is visible */
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    width: 300px;
    height: 400px;
  }

  #section4 .slider-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  #section4 .card.active {
    width: 90vw; /* Use viewport width for better fit */
    max-width: 280px;
    height: 380px;
  }
  
  #section4 .slider-title {
    font-size: 1.8rem;
  }
}

/************************************************ 
 SECTION 6 - HOTSPOTS INTERACTIONS
***********************************************/
#section6{
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: 2rem auto; 
}

.general_title{
text-align: center;
color: var(--light-color);
margin-bottom: 50px;
font-size: 2rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;

}

#sect6 {
display: flex;
align-items: flex-start;
justify-content: center;
gap: 2rem;
/* Increased top margin to prevent collision */
width: 1250px;
max-width: 100%;
padding: 0 15px;
  
}

#sect6 .container-sect6 {
position: relative;
width: 600px;
max-width: 100%;
}

.base-image {
width: 100%;
display: block;
transition: opacity 0.4s ease;
}

.base-image-hidden {
opacity: 0;
}

.overlay-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
opacity: 0; /* hidden by default */
transition: opacity 0.4s ease;
pointer-events: none;
}

.overlay-image-visible {
opacity: 1;
}

.overlay-image-visible.overlay-image-dimmed {
opacity: 0.7;
}

.hotspot {
position: absolute;
width: 10px;
height: 10px;
background-color: rgb(255, 255, 255);
border-radius: 50%;
cursor: pointer;
transform: translate(-50%, -50%);
transition: all 0.4s ease;
z-index: 5; /* Ensure hotspots are above images */
}

.hovered-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
opacity: 0;
transition: opacity 0.4s ease;
pointer-events: none;
}

.hovered-image-visible {
opacity: 1;
}

.product-info {
width: 800px;
max-width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
}

.product-details-container {
display: flex;
width: 100%;
min-height: 150px;
margin-top:60px;
}

.product-info img {
width: 100px;
height: 100px;
object-fit: contain;
margin-right: 1rem;
display: none;
}

.product-details {
flex: 1;
}

.product-name {
font-size: 1.2rem;
margin: 0 0 0.5rem;
color: var(--light-color);

}

.product-description {
margin: 0;
color: var(--light-color);

}

/* Styles for part titles */
.part-titles {
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 100%;
gap: 10px;
}

.part-title {
padding: 12px 12px;
font-size:14px;
background:#2b7de9;
color: white;
border: none;
border-radius: 30px;
font-weight: 600;
letter-spacing: 1px;
transform: translateY(20px);

cursor: pointer;
transition: background-color 0.3s ease;
box-shadow: 0 5px 15px rgba(43, 125, 233, 0.4);
margin-top: 10px;
}

.active-title {
background-color: rgb(4, 29, 63);
color: #fff;
font-weight: bold;
}

/* Responsive adjustments for section 6 */
@media (max-width: 1280px) {
#sect6 {
  width: 100%;
  flex-direction: column;
  align-items: center;
}

#sect6 .container,
.product-info {
  width: 90%;
}
}

@media (max-width: 768px) {
.part-titles {
  flex-direction: column;
}

.part-title {
  width: 100%;
  text-align: center;
}

.general_title{
  font-size: 1.5rem;
  }
}

.container-sect6,  .product-info , .general_title{
opacity: 0;  /* Caché au départ */
transform: translateY(50px); /* Déplacé vers le bas */
}


/***********************************************
* SECTION 7 - company profile
***********************************************/
/* SECTION 7 */


.section7 {
width: 100%;
padding: 40px 20px;
text-align: center;
/* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */

}


.section7 .section-container {
position: relative;
width: 100%;
display: flex;
flex-direction: column-reverse;
gap: 20px;
margin-top: 30px;
}

/* Swiper Container */
.section7 .swiper-container {
position: relative;
height: 500px;
display: flex;
justify-content: center;
align-items: center;
perspective: 1000px;
}

/* Main Content Area */
.section7 .main-content {
padding: 25px;
background-color: #1a1a1a;
border-radius: 20px;
display: flex;
flex-direction: column;
justify-content: center;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
margin-left: 60px;
}




/* Card Styles */
.section7 .blog-card {
position: absolute;
width: 300px;
height: 420px;
border-radius: 16px;
background-color: #fff;
color: #333;
overflow: hidden;
display: flex;
flex-direction: column;
cursor: pointer;
transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
transform-origin: center;
z-index: 1;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
backface-visibility: hidden;
}

.section7 .blog-card:hover {
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
transform: translateY(-5px) scale(1.02);
}

.section7 .blog-card.orange {
border-top: 5px solid rgb(90, 167, 255);
}

.section7 .blog-card.purple {
border-top: 5px solid rgb(21, 74, 218);
}

.section7 .blog-card.yellow {
border-top: 5px solid rgb(7, 0, 104);
}

/* Card Components */
.section7 .feature-image {
width: 100%;
height: 160px;
background-size: cover;
background-position: center;
}

.section7 .blog-content {
padding: 20px;
flex-grow: 1;
display: flex;
flex-direction: column;
}

.section7 .category {
display: inline-block;
font-size: 12px;
font-weight: bold;
color: #666;
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.section7 .blog-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
line-height: 1.3;
}

.section7 .blog-excerpt {
font-size: 13px;
line-height: 1.5;
color: #666;
margin-bottom: 15px;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}

/* Tags */
.section7 .tags {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-top: auto;
margin-bottom: 10px;
}

.section7 .tag {
font-size: 11px;
color: #777;
background-color: #f0f0f0;
padding: 3px 8px;
border-radius: 10px;
}

/* Author Meta */
.section7 .blog-meta {
display: flex;
align-items: center;
margin-top: auto;
padding-top: 15px;
border-top: 1px solid #eee;
}

.section7 .author-image {
width: 36px;
height: 36px;
border-radius: 50%;
background-size: cover;
background-position: center;
margin-right: 12px;
}

.section7 .author-details {
flex-grow: 1;
text-align: left;
}

.section7 .author-name {
font-size: 14px;
font-weight: bold;
}

.section7 .publish-date {
font-size: 12px;
color: #999;
}

.section7 .reading-time {
font-size: 12px;
color: #999;
margin-left: auto;
}

/* Card Footer */
.section7 .blog-footer {
padding: 12px 20px;
background-color: #f9f9f9;
display: flex;
justify-content: space-between;
align-items: center;
}

.section7 .read-more {
display: inline-block;
padding: 8px 15px;
background-color: #333;
color: white;
font-size: 14px;
font-weight: bold;
border-radius: 20px;
text-decoration: none;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section7 .read-more:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section7 .orange .read-more {
background-color:rgb(90, 167, 255);
}

.section7 .purple .read-more {
background-color:rgb(21, 74, 218);
}

.section7 .yellow .read-more {
background-color:rgb(7, 0, 104);
}

/* Social Sharing */
.section7 .social-share {
display: flex;
gap: 8px;
}

.section7 .social-icon {
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 14px;
background-color: #333;
transition: transform 0.3s ease;
}

.section7 .social-icon:hover {
transform: scale(1.1);
}

.section7 .social-icon.twitter {
background-color: #1DA1F2;
}

.section7 .social-icon.facebook {
background-color: #4267B2;
}

.section7 .social-icon.linkedin {
background-color: #0077B5;
}

/* Main Content Typography */
.section7 h1 {
font-size: 36px;
margin-bottom: 20px;
color: white;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section7 .main-content p {
font-size: 16px;
line-height: 1.6;
margin-bottom: 20px;
color: #bbb;
}

/* Navigation Controls */
.section7 .swiper-controls {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 30px;
}

.section7 .swiper-button {
width: 50px;
height: 50px;
border-radius: 50%;
background-color: #333;
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.section7 .swiper-button:hover {
background-color: #444;
transform: translateY(-3px);
}

.section7 .swiper-button i {
font-size: 18px;
}

/* Responsive Styles - Enhanced */
@media (min-width: 992px) {
.section7 .section-container {
  flex-direction: row;
  gap: 40px;
}

.section7 .main-content {
  width: 45%;
}

.section7 .swiper-container {
  width: 55%;
}

}

@media (max-width: 991px) {
.section7 .section-container {
  flex-direction: column-reverse;
}

.section7 .main-content {
  width: 100%;
  margin-left: auto;
}

.section7 .swiper-container {
  width: 100%;
}

.section7 .read-more {
  padding: 5px 10px;
  font-size: 10px;
}
}

@media (max-width: 768px) {
.section7 {
  padding: 30px 15px;
}

.section7 h1 {
  font-size: 28px;
}

.section7 .main-content p {
  font-size: 14px;
}

.section7 .blog-card {
  width: 280px;
  height: 400px;
}

.section7 .swiper-container {
  height: 450px;
}
}

@media (max-width: 576px) {
.section7 .blog-card {
  width: 260px;
  height: 380px;
}

.section7 .feature-image {
  height: 140px;
}

.section7 .blog-content {
  padding: 15px;
}

.section7 .blog-title {
  font-size: 16px;
}

.section7 .swiper-button {
  width: 40px;
  height: 40px;
}

.section7 .swiper-controls {
  margin-top: 20px;
}

.section7 .swiper-container {
  height: 430px;
}
}

@media (max-width: 400px) {
.section7 .blog-card {
  width: 240px;
  height: 360px;
}



.section7 .feature-image {
  height: 130px;
}

.section7 .swiper-container {
  height: 400px;
}

.section7 h1 {
  font-size: 24px;
}
}

/* Animation classes - Improved */
.section7 .card-active {
z-index: 10 !important;
transform: translateZ(0) scale(1) !important;
opacity: 1 !important;
}

.section7 .card-left {
transform: translate3d(-150px, 0, -100px) rotateY(10deg) scale(0.8);
opacity: 0.7;
}

.section7 .card-right {
transform: translate3d(150px, 0, -100px) rotateY(-10deg) scale(0.8);
opacity: 0.7;
}

/* Additional responsiveness for card positions */
@media (max-width: 576px) {
.section7 .card-left {
  transform: translate3d(-100px, 0, -100px) rotateY(10deg) scale(0.8);
}

.section7 .card-right {
  transform: translate3d(100px, 0, -100px) rotateY(-10deg) scale(0.8);
}
}


/***********************************************
* SECTION 8 - ISO Quality
***********************************************/
/* SECTION 8 */

.section8 {
  width: 100%;
  padding: 0px 20px;
  text-align: center;
}

.section8 .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 20px;
}

.section8 .header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  color: var(--light-color);
}

.section8 .badge{
  line-height: 1.6;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600 ;
}

.section8 .header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section8 .header h1 {
  text-align: center;
color: var(--light-color);
margin-bottom: 50px;
font-size: 2.5rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
}

.section8 .header p {
  font-size: 1.3rem;
color: var(--light-color);
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}

.section8 .cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.section8 .card {
  background-color: var(--light-color);
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 400px; /* Fixed height for all cards */
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section8 .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
  border-radius: var(--border-radius);
}

.section8 .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.section8 .card:hover::before {
  opacity: 0.05;
}

.section8 .card-icon-wrapper {
  width: 100%;
  height: 180px; /* Increased height */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #eaeaea;
}

.section8 .card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  transition: var(--transition);
  opacity: 0.9;
}

.section8 .card:hover .card-icon {
  animation: floatIcon 2s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.section8 .card-image {
  max-width: 100px;
  max-height: 80px;
  transition: var(--transition);
}

.section8 .card:hover .card-image {
  transform: scale(1.1);
  animation: floatImage 2s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.section8 .card-content {
  padding: 0 25px 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.section8 .card h2 {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: -0.3px;
}

.section8 .card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.section8 .card-link {
  display: inline-block;
  color: #005792;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid #005792;
  align-self: flex-start;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.section8 .card-link:hover {
  color: #003a61;
  border-bottom-color: #003a61;
}

.section8 .card .meta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.section8 .card .meta i {
  margin-right: 5px;
}

/* Modal/Popup Styles */
.section8 .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 51, 78, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  backdrop-filter: blur(5px);
}

.section8 .modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.section8 .modal {
  background-color: var(--light-color);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 51, 78, 0.3);
  transform: scale(0.9) translateY(30px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.section8 .modal-overlay.active .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.section8 .modal-header {
  display: flex;
  padding: 30px;
  background: var(--gradient-primary);
  color: var(--light-color);
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
  
  align-items: center;
  justify-content: center;
}

.section8 .modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.section8 .modal-icon {
  font-size: 3rem;
  color: var(--light-color);
  margin-right: 25px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.section8 .modal-header h2 {
  color: var(--light-color);
  font-size: 2.2rem;
  margin: 0;
  font-weight: 600;
}

.section8 .modal-content {
  padding: 30px;
  color: var(--text-color);
}

.section8 .modal-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.9;
}

.section8 .modal-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.section8 .modal-image {
  text-align: center;
  margin: 30px 0;
}

.section8 .modal-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.section8 .modal-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.section8 .modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px 30px 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.section8 .btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section8 .btn i {
  margin-right: 10px;
}

.section8 .btn-primary {
  background: var(--gradient-primary);
  color: var(--light-color);
  border: none;
  box-shadow: 0 10px 20px rgba(0, 87, 146, 0.2);
}

.section8 .btn-primary:hover {
  box-shadow: 0 15px 25px rgba(0, 87, 146, 0.4);
  transform: translateY(-3px);
}

.section8 .close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.section8 .close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.section8 .certificate-features {
margin-top: 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 30px;
}


.section8 .feature-item {
  background-color: rgba(0, 87, 146, 0.05);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.section8 .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.section8 .feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section8 .feature-title {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.section8 .timeline {
  position: relative;
  max-width: 100%;
  margin: 40px auto 20px;
}

.section8 .timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: rgba(0, 87, 146, 0.2);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.section8 .timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.section8 .timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--light-color);
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.section8 .timeline-left {
  left: 0;
  text-align: right;
}

.section8 .timeline-right {
  left: 50%;
  text-align: left;
}

.section8 .timeline-left::after {
  right: -10px;
}

.section8 .timeline-right::after {
  left: -10px;
}

.section8 .timeline-content {
  padding: 15px 20px;
  background-color: rgba(0, 87, 146, 0.05);
  position: relative;
  border-radius: 10px;
}

.section8 .timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Animation Classes */
@keyframes cardEnter {
  0% {
      opacity: 0;
      transform: scale(0.8) translateY(50px);
  }
  100% {
      opacity: 1;
      transform: scale(1) translateY(0);
  }
}

.section8 .modal-entrance {
  animation: modalEntrance 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes modalEntrance {
  0% {
      opacity: 0;
      transform: scale(0.8) translateY(50px);
  }
  70% {
      transform: scale(1.02) translateY(-10px);
  }
  100% {
      opacity: 1;
      transform: scale(1) translateY(0);
  }
}

.section8 .content-fade {
  animation: contentFade 0.8s ease-out forwards;
}

@keyframes contentFade {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}


.section8 .animated-in {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .section8 .header h1 {
      font-size: 2.4rem;
  }
  
  .section8 .header p {
      font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .section8 .container {
      padding: 30px 15px;
  }
  
  .section8 .header {
      margin-bottom: 40px;
  }
  
  .section8 .cards-container {
      grid-template-columns: 1fr;
      max-width: 450px;
  }
  
  .section8 .modal {
      width: 95%;
      padding: 0;
  }
  
  .section8 .modal-header {
      flex-direction: column;
      text-align: center;
      padding: 25px 20px;
  }
  
  .section8 .modal-icon {
      margin-right: 0;
      margin-bottom: 15px;
  }

  .section8 .timeline::after {
      left: 31px;
  }

  .section8 .timeline-item {
      width: 100%;
      padding-left: 70px;
      padding-right: 25px;
  }

  .section8 .timeline-left, .section8 .timeline-right {
      left: 0;
      text-align: left;
  }

  .section8 .timeline-left::after, .section8 .timeline-right::after {
      left: 21px;
  }
  
  .section8 .header h1 {
      font-size: 1.5rem;
  }

  .section8 .header p {
      font-size: 1.1rem;
  }
} 
/* Important modal styles (copy the most essential parts) */
.section8 .modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999 !important;
  background-color: rgba(0, 51, 78, 0.85) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.section8 .modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ****************************************************************** */
    /* ******************** news section ****************************  */
/* ************************************************************** */
/* Home Page News Section - Inspired by News Page Design */

/* Latest News Section */
.latest-news {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(2%) translateY(-1%); }
    50% { transform: translateX(-1%) translateY(2%); }
    75% { transform: translateX(1%) translateY(-2%); }
}

/* Container */
.latest-news .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Section Title */
.latest-news h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

/* News Grid */
.latest-news .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* News Cards */
.latest-news .news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.latest-news .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

/* News Image */
.latest-news .news-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.latest-news .news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 87, 146, 0.1) 0%,
        rgba(43, 125, 233, 0.05) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.latest-news .news-card:hover .news-image::before {
    opacity: 1;
}

.latest-news .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-news .news-card:hover .news-image img {
    transform: scale(1.05);
}

/* News Content */
.latest-news .news-content {
    padding: 1.25rem;
    color: #ffffff;
}

.latest-news .news-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.latest-news .news-date::before {
    content: '📅';
    font-size: 0.75rem;
}

.latest-news .news-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
    color: #ffffff;
}

.latest-news .news-content h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-news .news-content h3 a:hover {
    color: var(--accent-color);
}

.latest-news .news-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news .read-more {
    background: var(--gradient-primary);
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 87, 146, 0.3);
}

.latest-news .read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 87, 146, 0.4);
}

/* News Actions */
.latest-news .news-actions {
    text-align: center;
    margin-top: 2rem;
}

.latest-news .btn {
    background: var(--gradient-primary);
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 87, 146, 0.3);
    border: none;
}

.latest-news .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 87, 146, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .latest-news {
        padding: 2rem 0;
    }
    
    .latest-news .container {
        padding: 0 1rem;
    }
    
    .latest-news .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .latest-news h2 {
        font-size: 1.8rem;
    }
    
    .latest-news .news-image {
        height: 160px;
    }
    
    .latest-news .news-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .latest-news .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .latest-news .news-image {
        height: 140px;
    }
    
    .latest-news .news-content {
        padding: 1rem;
    }
    
    .latest-news .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Remove excessive animations and decorations */