/* Homepage Improvements CSS */

/* Modern Welcome Section */
.modern-welcome {
    background: #fff;
    color: #333;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

.modern-welcome::after {
    content: "";
    display: table;
    clear: both;
}

.welcome-content {
    margin-top: 20px;
}

.modern-welcome h1 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.modern-welcome p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: left;
    color: #444;
}

.btn-modern {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-modern:hover {
    background: #1a252f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

/* Modern Video Section */
.video-wrapper {
    float: right;
    width: 50%;
    padding-left: 20px;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 360px;
    border: none;
}

/* Modern Courses Section */
.section-title-modern {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-modern h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title-modern h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #2e86ab;
    border-radius: 2px;
}

/* Course Carousel Height Fix */
.owl-carousel-height {
    min-height: 500px;
    overflow: visible;
}

/* Modern Course Cards */
.course-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.course-card .thumb {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.course-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .thumb img {
    transform: scale(1.05);
}

.course-card .content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card .content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.course-card .list-icon {
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-card .list-icon li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.course-card .list-icon li i {
    color: #2e86ab;
    margin-right: 8px;
}

.btn-course {
    background: #2e86ab;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-course:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 134, 171, 0.4);
}

/* Modern Stats Section */
.stats-section {
    background: #2e86ab;
    color: white;
    padding: 60px 0;
    border-radius: 10px;
    margin: 50px 0;
}

.stats-item {
    text-align: center;
    padding: 20px;
}

.stats-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.stats-item h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stats-item h5 {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modern News & Events */
.news-events-modern h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-card h4 a {
    color: #333;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.news-card h4 a:hover {
    color: #2e86ab;
}

.news-card .list-inline {
    margin: 15px 0;
}

.news-card .list-inline li {
    color: #2e86ab;
    font-size: 0.9rem;
}

.news-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-news {
    background: #2e86ab;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-news:hover {
    background: #256d8a;
    transform: translateY(-2px);
}

/* Modern Accordion */
.accordion-modern .panel {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.accordion-modern .panel-title a {
    display: block;
    padding: 20px 25px;
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.accordion-modern .panel-title a:hover {
    background: #e9ecef;
}

.accordion-modern .panel-title a.active,
.accordion-modern .panel-title a:not(.collapsed) {
    background: #2e86ab;
    color: white;
}

.accordion-modern .panel-title a:after {
    content: '\f068';
    font-family: 'FontAwesome';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.accordion-modern .panel-title a.collapsed:after {
    content: '\f067';
}

.accordion-modern .panel-content {
    padding: 25px;
    background: #fff;
    line-height: 1.7;
    color: #666;
}

/* Accordion icon improvements */
.accordion-modern .panel-title a:after,
.accordion-modern .panel-title a.collapsed:after {
    font-size: 18px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

/* Section heading improvements */
h3.line-bottom {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.8rem;
}

h3.line-bottom:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2e86ab;
    border-radius: 2px;
}

h3.line-bottom span.text-theme-color-2 {
    color: #2e86ab;
}

/* Modern Testimonials */
.testimonials-modern {
    background: #2e86ab;
    color: white;
    padding: 80px 0;
    border-radius: 10px;
    margin: 50px 0;
}

.testimonials-modern .section-title h2 {
    color: white;
}

.testimonials-modern .section-title h5 {
    color: rgba(255,255,255,0.8);
}

.testimonial-item {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-item .author {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* Modern Clients */
.clients-modern {
    padding: 40px 10px;
    background: #f8f9fa;
    border-radius: 0;
    margin: 30px 0;
}

.clients-modern .item {
    padding: 10px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.clients-modern .item:hover {
    transform: scale(1.1);
}

.clients-modern .item img {
    max-width: 220px;
    max-height: 110px;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.clients-modern .item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive Improvements */
@media (max-width: 991px) {
    .modern-welcome h1 {
        font-size: 2rem;
    }
    
    .stats-item {
        margin-bottom: 30px;
    }
    
    .section-title-modern h2 {
        font-size: 2rem;
    }
    
    .video-wrapper {
        float: none;
        width: 100%;
        padding-left: 0;
        padding-bottom: 20px;
    }
    
    h3.line-bottom {
        font-size: 1.6rem;
    }
    
    .accordion-modern .panel-title a {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .accordion-modern .panel-title a:after,
    .accordion-modern .panel-title a.collapsed:after {
        font-size: 16px;
        right: 20px;
    }
    
    .accordion-modern .panel-content {
        padding: 20px;
    }
    
    .owl-carousel-height {
        min-height: 400px;
    }
    
    .course-card .thumb {
        height: 160px;
    }
    
    .course-card .content {
        padding: 15px;
    }
    
    .course-card .content h4 {
        font-size: 1.1rem;
    }
    
    .clients-modern .item {
        padding: 8px 12px;
    }
    
    .clients-modern .item img {
        max-width: 180px;
        max-height: 90px;
    }
}

@media (max-width: 767px) {
    .accordion-modern .panel-title a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .accordion-modern .panel-title a:after,
    .accordion-modern .panel-title a.collapsed:after {
        font-size: 14px;
        right: 15px;
    }
    
    .owl-carousel-height {
        min-height: 400px;
    }
    
    .course-card .thumb {
        height: 150px;
    }
    
    .course-card .content {
        padding: 20px;
    }
    
    .course-card .content h4 {
        font-size: 1.1rem;
    }
    
    .clients-modern .item {
        padding: 8px 12px;
    }
}

@media (max-width: 767px) {
    .modern-welcome {
        padding: 30px 20px;
    }
    
    .modern-welcome h1 {
        font-size: 1.8rem;
    }
    
    .video-container iframe {
        height: 250px;
    }
    
    .video-wrapper {
        float: none;
        width: 100%;
        padding-left: 0;
        padding-bottom: 20px;
    }
    
    .course-card .thumb {
        height: 150px;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .stats-item h2 {
        font-size: 2rem;
    }
    
    .testimonials-modern {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .section-title-modern h2 {
        font-size: 1.6rem;
    }
    
    .course-card .content {
        padding: 20px;
    }
    
    .course-card .content h4 {
        font-size: 1.1rem;
    }
    
    .clients-modern .item {
        padding: 5px 10px;
    }
    
    .clients-modern .item img {
        max-width: 150px;
        max-height: 75px;
    }
}

/* Additional fixes for banner/slider images to prevent cutting off on sides */
.hero-slider {
  width: 100%;
  min-height: 300px;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.slide-inner {
  width: 100%;
  height: 100%;
  background-size: cover !important; /* Force cover to prevent cutting off */
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure images are not cut off on sides */
.slide-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Responsive adjustments for slider to maintain proper aspect ratio */
@media (max-width: 1200px) {
  .hero-slider {
    min-height: 280px;
  }
  
  .slide-inner {
    background-size: cover !important;
  }
}

@media (max-width: 991px) {
  .hero-slider {
    min-height: 250px;
  }
  
  .slide-inner {
    background-size: cover !important;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    min-height: 200px;
  }
  
  .slide-inner {
    background-size: cover !important;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    min-height: 150px;
  }
  
  .slide-inner {
    background-size: cover !important;
  }
}

/* Additional global fix for slider container */
.swiper-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
