.main-timeline{
    overflow: hidden;
    position: relative;
}
.main-timeline .timeline{
    position: relative;
    margin-top: -79px;
}
.main-timeline .timeline:first-child{ margin-top: 0; }
.main-timeline .timeline:before,
.main-timeline .timeline:after{
    content: "";
    display: block;
    width: 100%;
    clear: both;
}
.main-timeline .timeline:before{
    content: "";
    width: 100%;
    height: 100%;
    box-shadow: -8px 0 5px -5px rgba(0, 0, 0, 0.5) inset;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}
.main-timeline .timeline-icon{
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 25px solid transparent;
    border-top-color: #f44556;
    border-right-color: #f44556;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    transform: rotate(45deg);
}
.main-timeline .year{
    display: block;
    width: 110px;
    height: 110px;
    line-height: 110px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    margin: auto;
    font-size: 30px;
    font-weight: bold;
    color: #f44556;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transform: rotate(-45deg);
}
.main-timeline .timeline-content{
    width: 35%;
    float: right;
    background: #f44556;
    padding: 30px 20px;
    margin: 50px 0;
    z-index: 1;
    position: relative;
}
.main-timeline .timeline-content:before{
    content: "";
    width: 20%;
    height: 15px;
    background: #f44556;
    position: absolute;
    top: 50%;
    left: -20%;
    z-index: -1;
    transform: translateY(-50%);
}
.main-timeline .title{
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 10px 0;
}
.main-timeline .description{
    font-size: 16px;
    color: #fff;
    line-height: 24px;
    margin: 0;
}
.main-timeline .timeline:nth-child(2n):before{ box-shadow: 8px 0 5px -5px rgba(0, 0, 0, 0.5) inset; }
.main-timeline .timeline:nth-child(2n) .timeline-icon{ transform: rotate(-135deg); }
.main-timeline .timeline:nth-child(2n) .year{ transform: rotate(135deg); }
.main-timeline .timeline:nth-child(2n) .timeline-content{ float: left; }
.main-timeline .timeline:nth-child(2n) .timeline-content:before{
    left: auto;
    right: -20%;
}
.main-timeline .timeline:nth-child(2n) .timeline-icon{
    border-top-color: #e97e2e;
    border-right-color: #e97e2e;
}
.main-timeline .timeline:nth-child(2n) .year{ color: #e97e2e; }
.main-timeline .timeline:nth-child(2n) .timeline-content,
.main-timeline .timeline:nth-child(2n) .timeline-content:before{ background: #e97e2e; }
.main-timeline .timeline:nth-child(3n) .timeline-icon{
    border-top-color: #13afae;
    border-right-color: #13afae;
}
.main-timeline .timeline:nth-child(3n) .year{ color: #13afae; }
.main-timeline .timeline:nth-child(3n) .timeline-content,
.main-timeline .timeline:nth-child(3n) .timeline-content:before{ background: #13afae; }
.main-timeline .timeline:nth-child(4n) .timeline-icon{
    border-top-color: #105572;
    border-right-color: #105572;
}
.main-timeline .timeline:nth-child(4n) .year{ color: #105572; }
.main-timeline .timeline:nth-child(4n) .timeline-content,
.main-timeline .timeline:nth-child(4n) .timeline-content:before{ background: #105572; }
@media only screen and (max-width: 1199px){
    .main-timeline .timeline{ margin-top: -103px; }
    .main-timeline .timeline-content:before{ left: -18%; }
    .main-timeline .timeline:nth-child(2n) .timeline-content:before{ right: -18%; }
}
@media only screen and (max-width: 990px){
    .main-timeline .timeline{ margin-top: -127px; }
    .main-timeline .timeline-content:before{ left: -2%; }
    .main-timeline .timeline:nth-child(2n) .timeline-content:before{ right: -2%; }
}
@media only screen and (max-width: 767px){
    .main-timeline .timeline{
        margin-top: 0;
        overflow: hidden;
    }
    .main-timeline .timeline:before,
    .main-timeline .timeline:nth-child(2n):before{
        box-shadow: none;
    }
    .main-timeline .timeline-icon,
    .main-timeline .timeline:nth-child(2n) .timeline-icon{
        margin-top: -30px;
        margin-bottom: 20px;
        position: relative;
        transform: rotate(135deg);
    }
    .main-timeline .year,
    .main-timeline .timeline:nth-child(2n) .year{ transform: rotate(-135deg); }
    .main-timeline .timeline-content,
    .main-timeline .timeline:nth-child(2n) .timeline-content{
        width: 100%;
        float: none;
        border-radius: 0 0 20px 20px;
        text-align: center;
        padding: 25px 20px;
        margin: 0 auto;
    }
    .main-timeline .timeline-content:before,
    .main-timeline .timeline:nth-child(2n) .timeline-content:before{
        width: 15px;
        height: 25px;
        position: absolute;
        top: -22px;
        left: 50%;
        z-index: -1;
        transform: translate(-50%,0);
    }
}

/*footer section */
@media (max-width: 768px) {
    .logo-reverse {
        width: 120px; /* Adjust the size as needed */
    }
}

@media (max-width: 480px) {
    .logo-reverse {
        width: 200px; /* Even smaller on very small screens */
    }
}
 
    /* Container for image & icons */
    .image-container {
        position: relative;
        display: inline-block;
        animation: floatImage 3s infinite ease-in-out alternate;
    }

    /* Main image styles */
    .image-container img.main-image {
        width: 100%;
        max-width: 500px;
        border-radius: 10px;
        display: block;
    }

    /* Icon images floating */
    .icon-overlay {
        position: absolute;
        width: 60px; /* Adjust icon size */
        height: 60px;
        animation: floatIcon 2s infinite ease-in-out alternate;
    }

    /* Different positions for icons */
    .icon-top {
        top: 10px;
        left: 55%;
        transform: translateX(-50%);
    }

    .icon-middle {
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        animation-delay: 0.5s;
    }

    .icon-bottom {
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        animation-delay: 1s;
    }

    /* Floating animation for image */
    @keyframes floatImage {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-15px);
        }
    }

    /* Floating animation for icons */
    @keyframes floatIcon {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-10px);
        }
    }

    .reveal-container {
        display: inline-block;
        overflow: hidden;
    }

    /* Animated Text */
    .reveal-text {
        display: inline-block;
        font-size: 2rem; /* Adjust size */
        font-weight: bold;
        opacity: 0;
        transform: translateY(100%);
        animation: reveal 1.5s ease-out forwards;
    }

    /* Animation Keyframes */
    @keyframes reveal {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
   
    .header-style {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Ensures proper spacing */
        background-color: #123897;
        padding: 10px 80px; /* Adds space from left & right */
        color: white;
        flex-wrap: nowrap; /* Prevents stacking */
    }
  
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
  
    .header-item {
        display: flex;
        align-items: center;
        gap: 7px;
    }
  
    .header-item a {
        color: white;
        text-decoration: none;
        font-size: 14px;
    }
  
    .header-item i {
        font-size: 16px;
    }
  
    /* Responsive Design */
    @media screen and (max-width: 768px) {
        .header-style {
            padding: 10px 20px; /* Reduce padding for mobile */
        }
  
        .header-content {
            display: flex;
            flex-direction: row; /* Keep it horizontal */
            justify-content: space-between;
            width: 100%;
        }
    }
  
    /* Initial hidden state */
  .fade-in {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  }
  
  /* Visible when scrolled into view */
  .fade-in.active {
      opacity: 1;
      transform: translateY(0);
  }
  
   
        /* Sidebar Styling */
        .section-sidebar {
            background: #3eb3b5;
            padding: 15px;
            border-right: 1px solid #dee3e6;
            height: 100%;
           
        }

        .section-sidebar a {
            display: block;
            padding: 10px 15px;
            color: #c43737;
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
        }

        .section-sidebar a.active,
        .section-sidebar a:hover {
            background: #ffffff;
            color: #0056b3;
        }

        /* Content padding */
        .section-content {
            padding: 15px;
        }

        /* Content sections hidden by default */
        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
            animation: fadeIn 0.5s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        /* Mobile Responsive Styling */
        @media (max-width: 768px) {
            .section-sidebar {
                border-right: none;
                border-bottom: 1px solid #ddd;
                padding: 0;
                display: flex;
                justify-content: space-around;
            }

            .section-sidebar a {
                flex-grow: 1;
                text-align: center;
                padding: 8px 0;
                font-size: 14px;
            }

            .section-content {
                padding-top: 15px;
            }
        }
        @media (max-width: 768px) {
            .container {
                width: 100%;
                max-width: 100%;
                padding: 0 10px; /* Small padding to avoid touching screen edges */
            }
        
            .row.justify-content-center {
                display: flex;
                flex-wrap:wrap; /* Prevents wrapping */
                justify-content: space-between;
                align-items: center;
                width: 100%;
            }
        
            .col-12.col-md-auto {
                flex: 1; /* Each element takes equal space */
                min-width: 30%; /* Ensures proper spacing */
            }
        
            select.form-control,
            button.btn {
                width: 100%; /* Full width */
                font-size: 12px; /* Comfortable size */
                padding: 10px;
                /* Proper spacing */
            }
        }
           /* Unique IT Course Card Styling */
        .it-course-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            color: #fff;
            font-weight: bold;
            font-size: 18px;
            cursor: pointer;
        }

        /* Hover Effect */
        .it-course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
        }

        /* Custom colors */
        .it-card-web { background: linear-gradient(145deg, #204d22, #3b7a44); }
.it-card-data { background: linear-gradient(145deg, #32724f, #209872); }
.it-card-cyber { background: linear-gradient(145deg, #2fab8e, #206042); }
.it-card-mobile { background: linear-gradient(145deg, #134e33, #19846b); }
.it-card-ai { background: linear-gradient(145deg, #62ccdf, #217481); }
.it-card-cloud { background: linear-gradient(145deg, #8edff5, #1d647b); }
.it-card-blockchain { background: linear-gradient(145deg, #08525c, #99afb1); }
.it-card-game { background: linear-gradient(145deg, #2889a4, #15a0ac); }
.it-card-uiux { background: linear-gradient(145deg, #4d82d8, #4861e0); }
.it-card-marketing { background: linear-gradient(145deg, #709bcd, #377b91); }
.it-card-testing { background: linear-gradient(145deg, #253670, #70a4dc); }
.it-card-python { background: linear-gradient(145deg, #0f6ecc, #5eb3dd); }
.it-card-java { background: linear-gradient(145deg, #c08dfd, #2f64a1); }
.it-card-cpp { background: linear-gradient(145deg, #486085, #e8a7a7); }
.it-card-devops { background: linear-gradient(145deg, #82e5dd, #2990a3); }
.it-card-bigdata { background: linear-gradient(145deg, #72a3f8, #72c9d8); }


        /* Media Query for Mobile */
        @media (max-width: 576px) {
            .it-course-card {
                font-size: 14px;
                padding: 10px;
            }

            .col-it-course {
                flex: 0 0 50%;
                max-width: 50%;
            }
        }
        @media (max-width: 576px) {
            .col-it-course {
                flex: 0 0 50%;
                max-width: 50%;
            }
        }