/* Custom styles for the auth_customauth plugin */

/* Style the login container */
.login-container,
html body #page-login-signup .login-container,
body .login-container {
    max-width: 460px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    z-index: 1000 !important;
    background-color: white !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    border-radius: 5px !important;
}

/* Add media queries for responsive behavior */
@media (max-width: 500px) {
    .login-container,
    html body #page-login-signup .login-container,
    body .login-container {
        max-width: 95% !important; /* Slightly smaller on very small screens */
    }
}

/* Custom login page styles */
body.pagelayout-login {
    /* Override page structure */
    #page {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    #page-content {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .container, 
    .container-fluid,
    #page .container,
    #page .container-fluid {
        padding-left: 0 !important;
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Style the login container */
    .login-container,
    html body #page-login-signup .login-container,
    body .login-container {
        max-width: 30% !important;
        width: 30% !important;
        margin: 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: 35% !important;
        transform: none !important;
    }
    
    /* Style the login wrapper */
    .login-wrapper {
        display: flex !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Style the custom content containers */
    #theme-custom-login-content,
    #php-custom-login-content,
    #boost-custom-content,
    #custom-login-content {
        background: url(/moodle/auth/customauth/assets/greenframe.jpeg) no-repeat center center;
        background-size: cover;
        justify-content: center;
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        margin: 20px 0 0 0 !important;
        right: 20px !important;
        width: 30vw !important;
        height: auto !important;
        min-height: auto !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
        padding: 15px !important;
        border-radius: 8px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25) !important;
        z-index: 9999 !important;
        max-height: 95vh !important;
        overflow-y: auto !important; /* Enable vertical scrolling */
    }
    
    /* Custom scrollbar styles */
    #theme-custom-login-content::-webkit-scrollbar,
    #php-custom-login-content::-webkit-scrollbar,
    #boost-custom-content::-webkit-scrollbar,
    #custom-login-content::-webkit-scrollbar {
        width: 8px !important;
    }

    #theme-custom-login-content::-webkit-scrollbar-track,
    #php-custom-login-content::-webkit-scrollbar-track,
    #boost-custom-content::-webkit-scrollbar-track,
    #custom-login-content::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05) !important;
        border-radius: 4px !important;
    }

    #theme-custom-login-content::-webkit-scrollbar-thumb,
    #php-custom-login-content::-webkit-scrollbar-thumb,
    #boost-custom-content::-webkit-scrollbar-thumb,
    #custom-login-content::-webkit-scrollbar-thumb {
        background: rgba(0,90,135,0.4) !important;
        border-radius: 4px !important;
    }

    #theme-custom-login-content::-webkit-scrollbar-thumb:hover,
    #php-custom-login-content::-webkit-scrollbar-thumb:hover,
    #boost-custom-content::-webkit-scrollbar-thumb:hover,
    #custom-login-content::-webkit-scrollbar-thumb:hover {
        background: rgba(0,90,135,0.6) !important;
    }
    
    /* Hide custom content on smaller screens */
    @media (max-width: 768px) {
        #theme-custom-login-content,
        #php-custom-login-content,
        #boost-custom-content,
        #custom-login-content {
            display: none !important;
        }
        
        /* Ensure login container takes full width on small screens */
        .login-container,
        html body #page-login-signup .login-container,
        body .login-container {
            max-width: 95% !important;
            width: 95% !important;
            margin: 0 auto !important;
            left: 0 !important;
        }
    }
    
    /* Style the custom content headers */
    .custom-login-header h2 {
        color: #005a87 !important;
        font-size: 20px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
    }
    
    .custom-login-header h3 {
        color: #007c3d !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
        text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6) !important;
    }
    
    /* Style the custom content body */
    .custom-login-body {
        margin-top: 10px !important;
    }
    
    .custom-login-body p {
        font-size: 14px !important;
        line-height: 1.4 !important;
        color: #333 !important;
        margin-bottom: 8px !important;
    }
}

/* Testimonials Styles */
.testimonials {
  padding: 5px 0;
}

.testimonials_text_block {
  padding: 5px 0;
  position: relative;
}

/* Additional utility classes needed for testimonials */
.color-primary {
  color: #005a87 !important;
}

.mb-8 {
  margin-bottom: 4px !important;
}

.mb-16 {
  margin-bottom: 8px !important;
}

.py-5 {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.py-10 {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.py-20 {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.fm-sec {
  font-family: "Playfair Display", serif !important;
}

/* Simple styles for testimonial items */
.testimonial-item {
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 8px !important;
  padding: 12px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
  text-align: center !important;
  margin: 5px !important;
  border-bottom: 3px solid #005a87 !important;
}

.testimonial-item h4 {
  color: #005a87 !important;
  margin-bottom: 5px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.testimonial-item .stars {
  margin-bottom: 8px !important;
}

.testimonial-item .stars i {
  color: #ffc107 !important;
  margin: 0 2px !important;
}

.testimonial-item p {
  color: #444 !important;
  font-style: italic !important;
  line-height: 1.4 !important;
  font-size: 13px !important;
  margin-bottom: 0 !important;
}

/* Swiper Styles */
.swiper {
  width: 100%;
  height: 100%;
  margin: 10px 0;
  background-color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 8px !important;
  padding: 10px !important;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(0, 90, 135, 0.5) !important;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #005a87 !important;
}

.swiper-pagination {
  position: relative;
  margin-top: 10px;
}

/* Add Font Awesome CDN for star icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* Add Swiper CSS */
@import url('https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css');

/* Program text in testimonials */
.program {
    font-size: 13px !important;
    color: #666 !important;
    margin: 2px 0 5px 0 !important;
}

/* Feature box styling */
.feature-box {
    background: rgba(255, 255, 255, 0.9) !important;
    border-left: 4px solid #005a87 !important;
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Stat container styling */
.stat-container {
    display: flex !important;
    justify-content: space-around !important;
    margin: 15px 0 !important;
    flex-wrap: wrap !important;
}

.stat-box {
    text-align: center !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    width: 45% !important;
    margin-bottom: 10px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.stat-number {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #005a87 !important;
}

.stat-label {
    font-size: 14px !important;
    color: #444 !important;
}

/* Adjust spacing for feature items and testimonials in the lib.php custom HTML */
#php-custom-login-content .custom-login-body > div {
    margin-top: 10px !important;
}

#php-custom-login-content .custom-login-body > div > div {
    margin-bottom: 10px !important;
}

#php-custom-login-content .custom-login-header {
    padding-bottom: 10px !important;
    border-bottom: 1px solid #005a87 !important;
}

/* Make stats more compact */
#php-custom-login-content .stat-container,
#php-custom-login-content div[style*="display: flex"] {
    margin: 10px 0 !important;
}

#php-custom-login-content .testimonials-swiper {
    margin: 5px 0 !important;
}

.login-container .signupform #fitem_id_city,
.login-container .signupform #fitem_id_country {
    display: none !important;
}

/* Features Swiper Styles */
.features-swiper {
  margin: 10px 0 15px 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
}

.feature-slide {
  height: auto !important;
  padding: 5px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.features-swiper .swiper-wrapper {
  align-items: stretch !important;
  min-height: 180px !important; /* Set a minimum height to ensure consistent slide height */
}

.features-swiper .swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 10px !important;
}

.features-swiper-pagination {
  text-align: center !important;
  margin-top: 10px !important;
}

/* Keep the feature box styling the same, just ensure it works well in the slider */
.feature-box {
  height: auto !important;
  margin: 0 0 8px 0 !important;
  overflow: hidden !important;
}

/* Add specific styling for the last feature box in a slide to remove bottom margin */
.feature-slide .feature-box:last-child {
  margin-bottom: 0 !important;
}

.features-swiper-button-next,
.features-swiper-button-prev {
  color: #005a87 !important;
  background-color: rgba(255, 255, 255, 0.7) !important;
  padding: 8px !important;
  border-radius: 50% !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.features-swiper-button-next {
  right: 5px !important;
}

.features-swiper-button-prev {
  left: 5px !important;
}

.features-swiper-button-next:hover,
.features-swiper-button-prev:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}