/* Training & Education Page Styles */
:root {
    --primary-color: #8B0000;
    --secondary-color: #D32F2F;
    --accent-color: #FFAB91;
    --light-color: #FFCCBC;
    --dark-color: #4E0000;
    --text-color: #333;
    --light-text: #fff;
    --background-color: #FBE9E7;
    --dark-background: #FFE0B2;
}
.training-hero-section {
    background: url('training-hero.jpg') no-repeat center center/cover;
    padding: 150px 0;
    text-align: center;
    color: #fff;
}

.training-hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.training-hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-garti-section {
    background: var(--light-text);
    padding: 80px 0;
    color:black
}

.about-garti-section .about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-garti-section .about-image img {
    width: 100%;
    border-radius: 10px;
    height:723px;
}



.course-card {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #8B0000;
}

.course-card ul {
    list-style: none;
    padding: 0;
}

.course-card ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.collaborations-section {
    background-color: var(--light-text);
    padding: 80px 0;
}

.collaboration-card {
    text-align: center;
    margin-bottom: 30px;
}

.collaboration-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.collaboration-card h3 {
    font-size: 1.2rem;
    color: #8B0000;
}
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire section */
    z-index: -1; /* Sends the video behind the content */
    }
    /* Hero Section */
    .training-hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/AMEERIADVERTISING.mp4') no-repeat center center;
        background-size: cover;
        height: 80vh;
        display: flex;
        align-items: center;
        color: white;
        z-index: 100;
    }
    
    .timeline-section {
        padding: 60px 0;
 
        background-image: url("/images\ website.jpg");
        background-size: cover;
        background-attachment: fixed;
        position: relative;
    
    }
    
    .timeline-container {
        position: relative;
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .section-title3 {
        text-align: center;
      
    }
    
    .section-title3 h2 {
        font-size: 36px;
        font-weight: 700;
        color: #333;
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }
    
    .section-title3 h2:after {
        content: "";
        position: absolute;
        width: 70px;
        height: 3px;
        background-color: #c1272d;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .section-title3 {
        text-align: center;
        margin-bottom: 60px;
        margin-top: 60px;
    
    }
    .section-title3 h2 {
        font-family: 'Rufina', serif;
        color: white;
        font-size: 36px;
        font-weight: 700;
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }
    
    .section-title3 h2:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background-color: yellow;
    }

    .section-title4 {
        text-align: center;
      
    }
    
    .section-title4 h2 {
        font-size: 36px;
        font-weight: 700;
        color: #333;
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }
    
    .section-title4 h2:after {
        content: "";
        position: absolute;
        width: 70px;
        height: 3px;
        background-color: #c1272d;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .section-title4 {
        text-align: center;
        margin-bottom: 60px;
        margin-top: 60px;
    
    }
    .section-title4 h2 {
        font-family: 'Rufina', serif;
        color: var(--primary-color);
        font-size: 36px;
        font-weight: 700;
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }
    
    .section-title4 h2:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background-color: var(--secondary-color);
    }
    .timeline {
        position: relative;
        padding: 30px 0;
    }
    
    .timeline:before {
        content: "";
        position: absolute;
        width: 3px;
        background-color: #c1272d;
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -1.5px;
    }
    
    .timeline-item {
        position: relative;
        margin-bottom: 50px;
        width: 100%;
    }
    .timeline-item ul {
       font-size:medium;
       font-weight: 600;
       font-style: italic;
    }
    .timeline-item:last-child {
        margin-bottom: 0;
    }
    
    .timeline-content {
        width: 45%;
        padding: 20px 25px;
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    .timeline-content.left {
        margin-right: auto;
        text-align: left;
    }
    
    .timeline-content.right {
        margin-left: auto;
    
    }
    
    .timeline-content h3 {
        font-size: 22px;
        color: #333;
        margin-top: 0;
        font-weight: 700;
    }
    
    .timeline-content ul {
        font-size: 16px;
        line-height: 1.6;
        color: #666;
        margin-bottom: 0;
       
    }
    
    .timeline-content.left ul {
     
        padding-right: 20px;
        padding-left: 0;
        list-style-position: inside;
    }
    
    .timeline-content.right ul {
        padding-left: 20px;
        list-style-position: inside;
    }
    
    .timeline-content ul li {
        margin-bottom: 8px;
    }
    
    .timeline-content ul li:last-child {
        margin-bottom: 0;
    }
    
    .timeline-marker {
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: #c1272d;
        top: 20px;
        left: 50%;
        margin-left: -10px;
        z-index: 1;
        box-shadow: 0 0 0 4px #fff;
    }
    
    .timeline-date {
        position: absolute;
        top: 20px;
        font-weight: 700;
        font-size: 18px;
        color: #c1272d;
    }
    
    .timeline-content.left .timeline-date {
        right: -140px;
    }
    
    .timeline-content.right .timeline-date {
        left: -140px;
    }
    
    /* Improved Mobile Styles */
    @media (max-width: 991px) {
        .timeline:before {
            left: 30px;
        }
        
        .timeline-content {
            width: calc(100% - 80px);
            margin-left: 80px !important; /* Force all content to left */
            text-align: left;
            margin-right: 0;
        }
        
        .timeline-content.left {
            text-align: left;
        }
        
        .timeline-content.left ul {
            text-align: left;
            padding-right: 0;
            padding-left: 20px;
            list-style-position: outside;
        }
        
        .timeline-marker {
            left: 30px;
            margin-left: 0;
        }
        
        .timeline-date {
            position: absolute;
            top: 20px;
            left: -50px !important;
            right: auto !important;
            width: 40px;
            text-align: center;
            /* Fix for overlapping */
            transform: translateX(-100%);
            background-color: white;
            border-radius: 4px;
            padding: 2px 0;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }
    }
    
    /* Additional Small Screen Adjustments */
    @media (max-width: 575px) {
        .timeline-content {
            width: calc(100% - 70px);
            margin-left: 70px !important;
            padding: 15px;
        }
        
        .timeline-date {
            font-size: 14px; /* Reduced font size */
            left: -55px !important;
            transform: translateX(-100%);
            margin-left: 10px;
        }
        
        .section-title3 h2 {
            font-size: 24px; /* Reduced font size */
        }
        
        .timeline-content ul {
            font-size: 12px; /* Reduced font size */
            padding-left: 15px;
        }
        
        .timeline-content ul li {
            margin-bottom: 6px; /* Reduced spacing */
        }
        
        /* Additional fix for smallest screens */
        .timeline-marker {
            width: 14px;
            height: 14px;
            left: 30px;
            margin-left: 0;
        }
        
        .timeline:before {
            left: 30px;
        }
    }
    /* Courses Section Styles */
.courses-section {
    padding: 80px 0;
    background: var(--ligt);
}

.section-title3 h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden; /* Ensures the image doesn't overflow the card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.course-card img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.course-card h3 {
    font-size: 1.5rem;
    margin: 20px 15px 10px;
    color: #8B0000;
}

.course-card ul {
    list-style: none;
    padding: 0 15px 20px;
    margin: 0;
}

.course-card ul li {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}
.training-hero-section {
    position: relative;
    overflow: hidden;
    height: 100vh; /* Adjust as needed */
}









/* Training Hero Section Styles */
.training-hero-section {
    height: 90vh; /* Adjust to make the total height 100vh with the header */
    position: relative;
    background: var(--light-text);
    overflow: hidden;
}


  /* @media (max-width: 767px) {
    .training-hero-section {
      display: flex;
      flex-direction: column;
    }
  } */



   



/* Media Query for Mobile Devices */
@media (max-width: 767px) {
    .training-hero-section {
        background: var(--light-text);
        flex-direction: column;
        height: auto;
        margin: 0;
        padding: 0;
    }
    
   
    
    .container2 {
        width: 100%;
        padding: 2rem 1.5rem;
        
        height: auto;
        margin-top: -1px; /* This eliminates any potential gap */
    }
    
  
    
  
    
   
}
/* Hero Section */

/* Base styles for the carousel section */
.carousel-section.carousel-2 {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Container for the carousel */
.carousel-2-container {
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    position: relative;
}

/* Inner container for the carousel items */
.carousel-2-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Individual carousel items */
.carousel-2-item {
    min-width: 100%;
    box-sizing: border-box;
    display: none; /* Hide all items by default */
}

.carousel-2-item.active {
    display: block; /* Show the active item */
}

/* Ensure images are responsive */
.carousel-2-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-2-container {
        max-width: 100%;
    }

    .carousel-2-item img {
        height: auto;
    }
}

@media (max-width: 480px) {
    .carousel-2-item img {
        height: 200px; /* Adjust height for smaller screens */
    }
}