﻿.section-title {
    margin-bottom: 40px;
}

.section-title__tagline {
    /* font-size: 28px;
        font-weight: 700;
        color: #1a1a1a;
        position: relative;
        display: inline-block; */
    padding-bottom: 10px;
    /* text-transform: uppercase;
        letter-spacing: 1px; */
}

    /* underline decoration */
    .section-title__tagline::after {
        content: "";
        width: 60px;
        height: 3px;
        background-color: #ff7518;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

.success {
    color: white;
}

.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.popup-box {
    width: 330px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    animation: zoomIn 0.4s ease;
}

.popup-header {
    background: #7AC943;
    color: #fff;
    text-align: center;
    padding: 25px 15px;
    border-radius: 16px 16px 0 0;
}

.success-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 26px;
    border: 3px solid #fff;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 10px;
}

.popup-body {
    padding: 25px 20px;
    text-align: center;
}

    .popup-body p {
        color: #555;
        font-size: 14px;
        margin-bottom: 20px;
    }

.continue-btn {
    background: #7AC943;
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    transition: .2s;
    font-size: 15px;
}

    .continue-btn:hover {
        background: #6ab03d;
    }

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* ------------------------------
           Responsive Upcoming Events
        ------------------------------ */

/* Title Arrow SVG */


/* Grid Responsive */
#eventList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Tablet */
@media (max-width: 992px) {
    #eventList {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    #eventList {
        grid-template-columns: 1fr;
        gap: 20px;
        padding:10px;
    }
}

/* Event Card */
.event-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.10);
    overflow: hidden;
    transition: 0.3s;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--bs-gutter-x) * .5);
}

    .event-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }

/* Image */
.event-image img {
    width: 100%;
    /*height: 350px;*/
    /*margin-top:15px;*/
/**/    
    object-fit: cover;
}

.event-image {
    position: relative;
    overflow: hidden;
}

.event-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 12px;
}


/* Info Icons */
.event-info {
     font-size: 17px; 
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    flex-direction: row;
    justify-content: center;
    font-weight:500;
}
.event-date{
    font-weight:800;
}

.event-info i {
    color: #F57005;
    font-size: 16px;
    margin-top:5px;
    font-weight:500;
}
/*
.event-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}*/

.event-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: auto; /* 👈 Magic Line: Push buttons to bottom */
    gap: 10px;
}

    /* Buttons take equal width */
    .event-buttons a {
        flex: 1;
        text-align: center;
        padding:10px;
    }




/* Past Event Card */
.event-card.past .event-image {
    position: relative;
    overflow: hidden;
}

    /* Image normal */
    .event-card.past .event-image img {
        display: block;
        width: 100%;
        height: auto;
        transition: all 0.5s ease;
    }

    /* Gray overlay */
    .event-card.past .event-image::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(200, 200, 200, 0.5); /* light gray overlay */
        z-index: 2;
        transition: opacity 0.5s ease;
    }

    /* Hover effect */
    .event-card.past .event-image:hover::before {
        opacity: 0;
    }

/* Ribbon stays above overlay */
.event-card .event-ribbon {
    position: absolute;
    top: 18px;
    right: -45px;
    transform: rotate(45deg);
    width: 180px;
    text-align: center;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 3; /* overlay ni upar */
}
/* -------- Modal Styling -------- */
#regModal .modal-body {
    padding: 20px 25px;
}

.trainer-modal-close{
    /*display:flex;*/
    margin-left:95%;
    margin-top:1%;
}


#regModal h5 {
    font-weight: 600;
    color: black;
}

#regModal .form-control {
    border-radius: 8px;
    height: 42px;
    border: 1px solid #d1d1d1;
}

    #regModal .form-control:focus {
        box-shadow: none;
        border-color: #0d6efd;
    }

/* Table Styling */
#teacherTable {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

    #teacherTable thead th {
        background: #f3f6f9;
        color: #333;
        font-weight: 600;
        padding: 10px;
        border-bottom: 2px solid #dee2e6 !important;
    }

    #teacherTable tbody td {
        padding: 2px 3px;
        vertical-align: middle;
    }

    #teacherTable tbody tr:hover {
        background: #f8fafc;
    }

    /* Remove Button */
    #teacherTable .btn-danger {
        padding: 5px 10px;
        border-radius: 6px;
    }

        #teacherTable .btn-danger i {
            font-size: 14px;
        }


/* Modal Responsive */
@media (max-width: 576px) {
    /* Modal Dialog Full Width */
    .modal-dialog {
        margin: 10px;
        max-width: 100% !important;
    }

    .modal-content {
        border-radius: 10px;
    }
    /* Modal Title */
    .modal-title {
        font-size: 18px;
        font-weight: 600;
    }
    /* Body Padding */
    .modal-body {
        padding: 12px;
    }
        /* Labels */
        .modal-body .form-label {
            font-size: 14px;
            margin-bottom: 4px;
        }
        /* Inputs */
        .modal-body .form-control {
            font-size: 14px;
            padding: 6px 10px;
        }
        /* Teachers Header */
        .modal-body h5 {
            font-size: 16px;
            margin-bottom: 8px;
        }
    /* Add More Button */
    #addTeacherBtn {
        font-size: 12px;
        padding: 4px 8px;
    }
    /* Table Responsive */
    #teacherTable {
        font-size: 13px;
    }

    .table thead th {
        font-size: 13px;
        white-space: nowrap;
    }
    /* Table Scroll */
    .modal-body {
        overflow-y: auto;
        max-height: 70vh;
    }
    /* Modal Footer Button */
    .modal-footer .btn {
        font-size: 14px;
        padding: 6px 12px;
    }
    /* Suggestion box */
    #schoolSuggestions {
        font-size: 14px;
    }
}

@media(max-width:768px) {
    .trainer-modal-close {
        margin-left: 92%;
        margin-top: 3%;
    }
}
/* Add More */
#addTeacherBtn {
    border-radius: 6px;
    padding: 6px 12px;
}

    #addTeacherBtn i {
        margin-right: 4px;
    }


/* Modal Header */
#regModal .modal-header {
    /*background: var(--eduact-base);*/
    background: #f6f8fa;
    border-bottom: 1px solid #e1e4e8;
}

/* Modal Footer */
#regModal .modal-footer {
    background: #f6f8fa;
    border-top: 1px solid #e1e4e8;
    padding: 12px 20px;
}

/* Submit Button Enhancement */
#regModal .btn-primary {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
}


/* Responsive */
@media (max-width: 768px) {
    /*.event-image img {
        width: 100%;
         height: none; 
        margin-top: 15px;
        object-fit: cover;
    }*/
    .event-image img {
        width: 100%;
        height: auto; /* ← mobile ma height remove */
        /*margin-top: 15px;*/
        object-fit: cover;
    }

    .event-title {
        font-size: 18px;
    }

}

.schedule-title{
    font-size:30px;
}



.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease-in-out;
    margin-bottom: 30px;
    height:90%;
}

    .course-card:hover {
        transform: translateY(-6px);
    }

.course-title a {
    position: relative;
    text-decoration: none;
    /* color: #000; */
    transition: all 0.3s ease-in-out;
    font-size:18px;
}

    .course-title a::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -3px;
        left: 0;
        background: #eb3e31; /* red underline */
        transition: width 0.3s ease-in-out;
    }

    .course-title a:hover::after {
        width: 100%;
    }


.course-image img {
    width: 100%;
    /*height: 220px;*/
    /*object-fit: cover;*/
}

.course-content {
    padding: 20px;
    text-align: left;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.course-duration {
    font-size: 14px;
    color: #007bff;
    font-weight: 500;
}

.training-section{
    /*margin-top:3rem;*/
    padding:150px 0 50px;
}

.our-team-section {
    /*padding: 50px 0;*/
    /*background: #f3f6fb;*/
}

.trainer-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    transition: 0.3s;
    min-height: 200px;
    flex-direction: column;
}


.trainer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
}
.trainer-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* ketli line pachi ... show karvu */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .trainer-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 22px rgba(0,0,0,0.12);
    }
.read-more-text {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
}

    .read-more-text:hover {
        text-decoration: underline;
    }



/* Replace/override existing .trainer-img-box and .trainer-img rules with this */
.trainer-img-box {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    /* padding: 8px; */
    border: 1px solid lightgray;
}

.trainer-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* show entire image without cropping */
    object-position: center;
    /* If you prefer the image to fully cover the box (may crop edges), use:
       object-fit: cover;
       object-position: center;
    */
}

.trainer-info h4 {
    margin: 0;
    font-size: 18px;
    color: #ff6b00;
    font-weight: 600;
}

.trainer-info p {
    margin: 4px 0 0;
    /*font-size: 14px;*/
    color: #555;
}

/* Modal Layout */
#trainerModal .modal-body {
    padding: 25px;
}

#trainerModal img {
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    border:1px solid lightgray;
    width:70%;
}

/* Trainer Name in Modal */
#modalTrainerName {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--bs-orange);
    margin-top:1rem;
}

.modal-trainer-info {
    display: flex;
    flex-direction:column;
    
}

.trainer-modal-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    text-transform: capitalize;
}
/* Trainer Description */
#modalTrainerDesc {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    text-align:center;
}

/* Header */
#trainerModal .modal-header {
    
    padding: 20px 25px;
}

#trainerModal .modal-title {
    font-size: 20px;
    font-weight: 700;
}

/* Modal Responsive */
@media(max-width: 768px) {
    #trainerModal .row {
        flex-direction: column;
        text-align: center;
    }

    #trainerModal img {
        max-height: 250px;
        margin-bottom: 15px;
    }
    .training-section .container{
        padding:20px;
    }

    .our-team-section .container{
        padding:20px;
    }
}




/* ==== SECTION BACKGROUND WITH ANIMATION ==== */
.testimonial-one {
    position: relative;
    overflow: hidden;
    background: #f3f4f8;
}

    /* Animated floating shapes */
    .testimonial-one::before,
    .testimonial-one::after {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        background: rgba(255, 107, 0, 0.15);
        filter: blur(120px);
        border-radius: 50%;
        animation: floatAnim 6s infinite alternate ease-in-out;
        z-index: 1;
    }

    .testimonial-one::before {
        top: -60px;
        left: -80px;
    }

    .testimonial-one::after {
        bottom: -50px;
        right: -90px;
        animation-delay: 2s;
    }

@keyframes floatAnim {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.1);
    }
}
/* Responsive */
@media (max-width: 992px) {
    .event-card {
        width: calc(50% - 40px);
    }
}





/* Perticular Workshop Details Page start */
.venue-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loaction-box{
    display:flex;
}

.venue-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    color: var(--eduact-secondary);
    font-weight: 600;
}

    .venue-detail i {
        color: #d63384;
    }

.venue-title {
    font-weight: 600;
    white-space: nowrap;
}

.venue-text {
    margin: 0;
    font-size: large;
}

.venue-detail i {
    font-size: 16px;
    color: #d63384; /* Nice highlight color */
}
#wsVenue {
    /*text-decoration: underline;*/
    color: #0075ff;
}

    #wsVenue:hover {
        opacity: 0.8;
    }

.program-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

/*.program-item {
    display: flex;
    gap: 25px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    align-items: center;
}*/
.program-item {
    display: flex;
    gap: 25px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* NEW IMAGE BOX */
.program-img-box {
    width: 150px;
    aspect-ratio: 1 / 1; /* box ratio */
    background: #f2f2f2;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--edxl-blue-color);
}

    .program-img-box img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* image FULL visible */
        padding:20%;
    }


.program-content {
    flex: 1;
}

.program-name {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: var(--edxl-blue-color);
}

.program-desc {
    margin: 6px 0 0;
    font-size: 18px;
    color: #555;
    line-height: 1.4;
}

/*program container*/
@media(max-width:768px) {

    .program-title {
        font-size: 20px;
        margin-top: 0rem;
    }

    .program-name {
        font-size: 20px;
        margin-top:1rem;
    }

    
    .course-details__thumb {
        aspect-ratio: 9 / 9; /* Mobile ma perfect ratio */
        /*padding: 10px;*/ /* Thodu space jovatu hoy to */
        margin: 0rem;
    }

    #wsBanner {
        /*object-fit: contain;*/
    }

    .schedule-title {
        margin-top: 1rem;
        font-size: 20px;
        margin-bottom: 1rem;
    }
    /* .program-item img{
        width:100%;
    }*/
    .program-item {
        display: block; /* image upar, text niche */
        text-align: center; /* center all text */
        gap: 10px;
    }

    .program-img-box {
        /*width: 70%;*/
        margin: 0 auto; /* CENTER the image box */
        aspect-ratio: 1 / 1;
    }

        .program-img-box img {
            object-fit: contain; /* proper fit */
        }

    .program-desc {
        font-size: 15px;
    }

}


.program-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--eduact-secondary);
    margin-top: 3rem;
}


.trainer-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--eduact-secondary);
    margin-top: 3rem;
}

.trainer-item img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid lightgray;
}
@media (max-width: 768px) {
    .trainer-title {
       font-size:20px;
       margin-top:0rem;
    }
    .trainer-item img {
        width: 150px;
        height: 150px;
    }
    
}

.trainer-list {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-evenly;
}

.trainer-item {
    display: flex;
    height: 50%;
    gap: 10px;
    background: #fff;
    padding: 12px 12px;
    border-radius: 8px;
    /*border: 1px solid #eee;*/
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 50%;
}

   

.trainer-name {
    /*font-size: 15px;*/
    margin: 0;
    text-align:center;
    margin-top:1rem;
}


.success {
    color: white;
}




.course-details__thumb {
    display: flex;
    aspect-ratio: 16/9;
    /*aspect-ratio: 2 / 1;*/
    width: 100%;
    object-fit: cover;
    height: auto;
}

#wsBanner {
    width: 100%;
    /*object-fit: contain;*/
}

.course-details__sidebar__item{
    margin-top:3rem;
}



@media (max-width: 768px) {
    /* Container spacing */
    /* Book button */
    .course-details__sidebar .eduact-btn,
    #registerBtn1 {
        width: 100%;
        margin-top: 20px;
        padding: 12px 0;
        font-size: 16px;
        border-radius: 8px;
    }
    /* Trainer & Program container spacing */
    .course-details__meta,
    #programContainer {
        margin-top: 25px;
    }
    /* Reduce padding inside sections */
    .trainers-wrapper {
        padding: 10px 0;
    }
}


.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.popup-box {
    width: 330px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    animation: zoomIn 0.4s ease;
}

.popup-header {
    background: #7AC943;
    color: #fff;
    text-align: center;
    padding: 25px 15px;
    border-radius: 16px 16px 0 0;
}

.success-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 26px;
    border: 3px solid #fff;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 10px;
}

.popup-body {
    padding: 25px 20px;
    text-align: center;
}

    .popup-body p {
        color: #555;
        font-size: 14px;
        margin-bottom: 20px;
    }

.continue-btn {
    background: #7AC943;
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    transition: .2s;
    font-size: 15px;
}

    .continue-btn:hover {
        background: #6ab03d;
    }

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}



/* FULL WIDTH BOTTOM STRIP */
.event-bottom-overlay {
    /*position: absolute;*/
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight:600;
}


    /* Left + Right text structure */
    .event-bottom-overlay .left-info,
    .event-bottom-overlay .right-info {
        display: flex;
        align-items: center;
        gap: 6px;
    }

@media (max-width: 992px) {
    .event-card {
        width: 100%;
        margin: 15px 0;
    }

    .event-bottom-overlay {
        font-size: 14px;
        font-weight:200;
    }

    .training-section {
        padding: 120px 0 4px;
    }
}

.ticket-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    margin: 8rem 50rem 0; /* Desktop default */
}

/* 🔥 Mobile View Fix */
@media (max-width: 768px) {
    .ticket-container {
        margin: 8rem auto 0 !important; /* only top margin, left-right center */
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .ticket-container {
        margin: 6rem auto 0 !important;
        max-width: 90%;
    }
}



@media (max-width: 768px) {
    /* Container spacing */
    /* Book button */
    .course-details__sidebar .eduact-btn,
    #registerBtn1 {
        width: 100%;
        margin-top: 20px;
        padding: 12px 0;
        font-size: 16px;
        border-radius: 8px;
    }
    /* Trainer & Program container spacing */
    .course-details__meta,
    #programContainer {
        margin-top: 25px;
    }
    /* Reduce padding inside sections */
    .trainers-wrapper {
        padding: 10px 0;
    }
}

