
/* Custom CSS */
:root {
--primary-color: #2c3e50;
--secondary-color: #3498db;
--text-color: #ffffff;
--white-color: #ffffff;
--black-color: #000000;
--cefprepas-green-color: #b9dda3;
}
/* Default style (for mobile/tablet) */
section {
height: auto;
}

/* Desktop style */
@media (min-width: 992px) { /* or whatever breakpoint you consider "desktop" */
#home section {
    height: 100vh;
}
}
.header_top_bar_socs, .header_top_bar_socs a
{
font-family: Raleway;
font-weight: 700;
font-style: normal;
color: #5f625e;
}
.header_top_bar .header_login_url a:hover, .header_top_bar_socs ul li a:hover {
color: #adcd62;
}
.btn-grey {
border-radius: 20px;
}
.text-cef-green {
    color:  var(--cefprepas-green-color)!important;
}
.btn-cef-green {
background-color: #adcd62 !important;
color: #ffffff !important;
}
.btn-cef-green:hover {
background-color: #aabb82 !important;
}

/* Mega dropdown menu styles */
.dropdown-mega .dropdown-menu {
width: 100vw;
left: 50% !important;
right: 0 !important;
transform: translateX(-50%) !important;
padding: 20px;
border-radius: 0;
border: none;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mega-menu {
padding: 20px 0;
}

.mega-menu-content {
max-width: 1200px;
margin: 0 auto;
}

.mega-menu h5 {
color: var(--primary-color);
font-weight: bold;
margin-bottom: 15px;
padding-bottom: 5px;
border-bottom: 2px solid var(--cefprepas-green-color);
}


@media (max-width: 992px) {
.dropdown-mega .dropdown-menu {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    padding: 0 !important;
}

.mega-menu-content .row > div {
    margin-bottom: 20px;
}
}


/* Hero section for demonstration */
.hero-section {
height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://via.placeholder.com/1920x1080");
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
color: white;
text-align: center;
}

/* Custom CSS for the slideshow */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    color: white;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

/* Background zoom animation on active slide */
.slide.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: scale(1);
    z-index: -1;
    animation: zoomBackground 30s linear infinite;
    filter: brightness(1);
}

.slide:not(.active)::before {
    display: none;
}

@keyframes zoomBackground {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.slide-content {
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    z-index: 2;
}

.slide h1 {
    color: var(--white-color);
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.slide p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.slide .btn {
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
    background-color: var(--cefprepas-green-color);
    color: white;
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.slide .btn:hover {
    background-color: #218838;
}

/* Animation classes */
.animate-slide {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    will-change: opacity, transform;
}

[data-animation="slide-up"] {
    transform: translateY(40px);
}

[data-animation="fade-up"] {
    transform: translateY(20px);
    opacity: 0;
}

.slide.active .animate-slide {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Slide navigation */
.slide-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.slide-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slide-dot.active {
    background-color: var(--cefprepas-green-color);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-slide,
    .slide::before {
        animation: none !important;
        transition: none !important;
    }
    .animate-slide {
        opacity: 1;
        transform: none;
        visibility: visible;
    }
}
/* === Updated .slide-content === */
.slide-content {
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    z-index: 2;

    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;

    /* Remove transition here */
    /* We'll add it only when active for cleaner control */
}

.slide.active .slide-content {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    transition: all 0.7s ease-out;
    transition-delay: 0.2s;
}
/* Custom CSS for the cards section */
.filiere-section {
padding: 4rem 0;
background-color: #f9f5ff;
}

.section-title {
text-align: center;
text-transform: uppercase;
margin-bottom: 3rem;
font-weight: bold;
color: #2c3e50;
}

.cards-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
padding: 0 1rem;
}

.card-item {
position: relative;
/* width: 300px; */
margin: auto;
height: 20em;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: all 0.5s ease;
cursor: pointer;
}

.card-image {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
transition: all 0.5s ease;
}

.card-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: var(--cefprepas-green-color);
color: var(--black-color);
padding: 1.5rem;
transform: translateY(100%);
transition: all 0.5s ease;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}

.card-title {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 1rem;
text-transform: uppercase;
}

.card-description {
margin-bottom: 1.5rem;
}

.card-btn {
align-self: flex-start;
padding: 0.5rem 1.5rem;
color: var(--cefprepas-green-color);
background-color: white;
border: none;
border-radius: 30px;
font-weight: bold;
text-transform: uppercase;
transition: all 0.3s;
}

.card-btn:hover {
background-color: var(--cefprepas-green-color);
}

/* Hover effects */
.card-item:hover .card-image {
transform: scale(1.1);
}

.card-item:hover .card-content {
transform: translateY(0);
}

/* Initial state - shows title only */
.card-front {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: var(--cefprepas-green-color);
color: white;
padding: 1rem;
text-align: center;
transition: all 0.3s ease;
}

.card-front-title {
font-size: 1.2rem;
font-weight: bold;
text-transform: uppercase;
margin: 0;
}

.card-item:hover .card-front {
opacity: 0;
}

/* Main container */

/* Image box styling */
.image-box {
position: relative;
}
.image-box > a {
background-color: transparent !important;
}
.image-box a:hover::before {
font-family: "Font Awesome 6 Free";
font-weight: 900;
content: "\f055"; /* Font Awesome plus-circle icon */
position: absolute;
top: 108px;
left: calc(35% - 20px);
font-size: 30px;
color: #fff;
z-index: 3;
background: transparent;

text-transform: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.image-box a:hover .image-overlay {
display: block;
width: 217px;
height: 217px;
position: absolute;
top: 0;
border-radius: 50%;
line-height: 14px;
font-size: 14px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 23px 0 0;
background-color: #000;
opacity: 0.5;
}
/* .image-box:hover {
    transform: translateY(-5px);
} */

.image-box-link {
display: block;
text-decoration: none;
color: inherit;
}

/* Image wrapper */
.image-wrapper {
position: relative;
overflow: hidden;
border-radius: 8px;
height: 217px;
}

.image-box img {
width: 217px;
height: 217px;
position: absolute;
border-radius: 50%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 23px 0 0;

/* object-fit: cover; */
/* transition: transform 0.5s ease; */
}

.image-box:hover .image-wrapper img {
transform: scale(1.05);
}

.image_box .image_box__icon {
position: absolute;
bottom: 20px;
/* right: 20px; */
width: 71px;
height: 71px;
line-height: 57px;
font-size: 27px;
border: 5px solid #fff;
border-radius: 50%;
color: #fff;
left: 50%;
right: auto;
margin-left: 36px;
z-index: 9999999;
background-color: #eff5e0;
}
/* Icon styling */
.icon {
position: absolute;
top: 20px;
right: 20px;
color: white;
font-size: 24px;
z-index: 2;
}

/* Content styling */
.image-box-content {
padding: 20px 0;
text-align: center;
}

.image-box-content h2 {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}

.about-section .image {
    height: 70vh;
    max-height: 500px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-section .image {
    height: 70vh;
    max-height: 500px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-section .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    
    /* Continuous smooth zoom animation */
    animation: continuousZoom 8s ease-in-out infinite;
}

/* Continuous subtle zoom in and out */
@keyframes continuousZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1); /* Zoom in to 110% */
    }
    100% {
        transform: scale(1);
    }
}
.testimonial-slider {
position: relative;
max-width: 800px;
margin: 0 auto;
}

.testimonial-slide {
display: none;
animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
display: block;
}

.testimonial-card {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.student-info {
text-align: center;
margin-bottom: 20px;
}

.student-name {
font-size: 1.8rem;
color: #2c3e50;
margin-bottom: 5px;
}

.student-program {
font-size: 1.2rem;
color: #7f8c8d;
margin: 0;
}

.testimonial-text {
font-size: 1.1rem;
line-height: 1.6;
color: #555;
font-style: italic;
position: relative;
padding: 0 20px;
}

.testimonial-text::before,
.testimonial-text::after {
content: '"';
font-size: 40px;
color: var(--cefprepas-green-color);
opacity: 0.3;
position: absolute;
}

.testimonial-text::before {
top: -15px;
left: -5px;
}

.testimonial-text::after {
bottom: -30px;
right: -5px;
}

.slider-dots {
text-align: center;
margin-top: 30px;
}

.dot {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: #ccc;
margin: 0 5px;
cursor: pointer;
transition: background-color 0.3s;
}

.dot.active {
background-color: var(--cefprepas-green-color);
}

@keyframes fadeIn {
from {
    opacity: 0.4;
}
to {
    opacity: 1;
}
}

.testimonials-section {
padding: 60px 0;
background-color: #f8f9fa;
font-family: "Arial", sans-serif;
}

@media (max-width: 768px) {
.section-title {
    font-size: 2rem;
}

.testimonial-card {
    padding: 20px;
}
}
.testimonials_single {
border: 1px solid #f1f1f1;
padding: 40px;
-webkit-box-shadow: 0 10px 20px 0 rgba(131, 113, 170, 0.14);
box-shadow: 0 10px 20px 0 rgba(131, 113, 170, 0.14);
border-radius: 18px;
height: 100%;
}

.carousel-container {
width: 100%;
max-width: 1200px;
margin: 50px auto;
padding: 20px;
}
.owl-carousel .item {
padding: 20px;
}
.card {
height: 300px;
background: #fff;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
font-size: 24px;
font-weight: bold;
color: white;
}
.owl-dots {
text-align: center;
margin-top: 20px;
}
.owl-dot span {
width: 40px;
height: 4px;
margin: 5px;
background: #ddd;
display: inline-block;
}
.owl-dot.active span {
color: var(--cefprepas-green-color);
}
.partners-section {
padding: 80px 0;
background: #f9f9f9;
text-align: center;
}
.partner-logo {
height: 100px;
width: auto;
max-width: 200px;
object-fit: contain;
filter: grayscale(100%);
opacity: 0.7;
transition: all 0.3s ease;
}

.partner-logo:hover {
filter: grayscale(0);
opacity: 1;
}

.owl-stage {
display: flex;
align-items: center;
}

/* Footer Styles */
footer {
font-family: "Arial", sans-serif;
background-color: #f5f5f5;
color: #333;
padding: 40px 0 20px;
border-top: 1px solid #ddd;
}

.footer-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
padding: 0 20px;
}

.footer-section {
margin-bottom: 20px;
}

.footer-section h3 {
color: #2c5e1a; /* Green color for headings */
font-size: 1.2rem;
margin-bottom: 15px;
border-bottom: 2px solid #2c5e1a;
padding-bottom: 5px;
display: inline-block;
}

.footer-section ul {
list-style: none;
padding: 0;
margin: 0;
}

.footer-section li {
margin-bottom: 8px;
}

.footer-section a {
color: #555;
text-decoration: none;
transition: color 0.3s;
}

.footer-section a:hover {
color: #2c5e1a;
text-decoration: underline;
}

.footer-divider {
border-top: 1px solid #ddd;
margin: 30px 0;
width: 100%;
grid-column: 1 / -1;
}

.footer-bottom {
grid-column: 1 / -1;
text-align: center;
padding-top: 20px;
border-top: 1px solid #ddd;
font-size: 0.9rem;
color: #777;
}

@media (max-width: 768px) {
.footer-container {
    grid-template-columns: 1fr;
}
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-slideshow {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    .hero-slideshow {
        height: 60vh;
    }
}

@media (max-width: 576px) {
    .hero-slideshow {
        height: 50vh;
    }
}
