/* ============================================
   MODERN.CSS - Univants Site Modernization
   Override file - loads after styles.css
   ============================================ */

/* --- Typography --- */
body {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #273044;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2fbfa7, #28a89a);
    margin: 12px auto 0;
    border-radius: 2px;
}

.sub-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2fbfa7;
}

/* --- Buttons --- */
.butn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    text-decoration: none;
}

.butn:not(.white):not([class*="white"]) {
    background: linear-gradient(135deg, #2fbfa7 0%, #28a89a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(47, 191, 167, 0.3);
}

.butn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 191, 167, 0.4);
    color: #fff;
}

.butn.white {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.butn.white:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.butn-style1.secondary {
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-style3 .card-body {
    padding: 28px 24px;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(47, 191, 167, 0.1), rgba(47, 191, 167, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #2fbfa7;
    flex-shrink: 0;
}

.card-style3 h4 {
    font-size: 16px;
    font-weight: 700;
}

.card-style3 p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* --- Section Spacing --- */
.section-padding {
    padding: 70px 0;
}

/* --- Counter --- */
.counter-wrapper {
    text-align: center;
    padding: 30px 15px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.counter-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.counter-number {
    font-size: 36px;
    font-weight: 800;
    color: #2fbfa7;
    margin-bottom: 4px;
}

.counter-content p {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* --- Category Items --- */
.category-item-01 {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-item-01:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-img {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

/* --- Event / Info Sections --- */
.event-seprator h2 {
    font-size: 24px;
}

.event-info-list li {
    font-size: 14px;
}

.event-details-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-details-img img {
    width: 100%;
    transition: transform 0.5s ease;
}

.event-details-img:hover img {
    transform: scale(1.03);
}

/* --- Sidebar --- */
.sidebar .widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.sidebar .widget-title h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.course-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    transition: all 0.2s;
}

.course-list li:hover {
    padding-left: 6px;
    color: #2fbfa7;
}

.course-list li:last-child {
    border-bottom: none;
}

/* --- Footer --- */
footer.bg-dark {
    background: linear-gradient(135deg, #1a2332 0%, #273044 100%) !important;
}

.footer-list li {
    padding: 5px 0;
}

.footer-list li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s;
}

.footer-list li a:hover {
    color: #2fbfa7;
    padding-left: 4px;
}

.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
}

.footer-logo img {
    max-height: 60px;
    filter: brightness(1.1);
}

/* --- Page Title --- */
.page-title-section {
    padding: 100px 0 80px;
}

.page-title-section h1 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
}

.page-title-section ul li {
    display: inline-block;
    font-size: 14px;
}

.page-title-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.page-title-section ul li a:hover {
    color: #2fbfa7;
}

/* --- Scroll to Top --- */
.scroll-to-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2fbfa7, #28a89a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(47, 191, 167, 0.4);
    transition: all 0.3s;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 191, 167, 0.5);
    color: #fff;
}

/* --- Preloader --- */
#preloader:before,
#preloader:after {
    border-color: #2fbfa7;
}

/* --- Partner Entreprise Cards --- */
.portfolio-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-wrapper img {
    transition: transform 0.5s ease;
}

.portfolio-wrapper:hover img {
    transform: scale(1.05);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .section-heading h2 {
        font-size: 26px;
    }

    .counter-number {
        font-size: 28px;
    }

    .page-title-section h1 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }

    .page-title-section {
        padding: 70px 0 50px;
    }

    .page-title-section h1 {
        font-size: 24px;
    }
}

/* --- Smooth Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Selection Color --- */
::selection {
    background: rgba(47, 191, 167, 0.2);
    color: #273044;
}

/* --- Links --- */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #2fbfa7;
}

/* --- Text utilities --- */
.text-primary {
    color: #2fbfa7 !important;
}

.bg-primary {
    background-color: #2fbfa7 !important;
}

.border-radius-5 {
    border-radius: 12px !important;
}

/* --- Media items --- */
.media {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.media:last-child {
    border-bottom: none;
}

.media img {
    border-radius: 8px;
    width: 60px;
    height: 60px;
    object-fit: cover;
}
