/* ===== Modern UI Enhancements ===== */

/* Base Typography Improvements */
body {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #222;
}

p {
    margin-bottom: 1.5rem;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #555;
}

/* Section Styling */
.section-padding {
    padding: 90px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    color: #222;
}

.section-title span {
    color: #1b55e2;
}

/* Enhanced Section Subtitle */
.section-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: #555;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    letter-spacing: 0.2px;
}

/* Content Text Improvements */
.content p, .service-content p, .team-desc, .white-popup p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    letter-spacing: 0.2px;
}

.tab-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.box-white p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* List Item Enhancements */
ul, ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #555;
}

/* Time and Schedule Info */
.time, .duration, .route {
    font-size: 16px;
    color: #333;
}

/* Other Text Elements */
.item h5, .service-content h5, .popup-header {
    font-weight: 600;
    margin-bottom: 14px;
    color: #333;
}

small, .small {
    font-size: 90%;
    font-weight: 400;
}

/* Contrast and Readability */
.bg-gray {
    background-color: #f8f9fa;
}

.bg-gray p, .bg-gray h5, .bg-gray h6 {
    color: #444;
}

.box-white, .service-card, .team-card {
    padding: 25px;
}

/* Container and Card Modernization */
.container {
    padding: 0 25px;
}

/* Card Styling */
.service-card, .team-card, .schedule-table-card, .box-white {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

.service-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover .service-link i {
    transform: translateX(4px);
}

.service-card-link:hover .service-link span {
    color: #1b55e2;
}

.service-card:hover, .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Re-inserting the enhanced hover effect for service card links */
.service-card-link:hover .service-card {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Enhanced Header Styles */
.header .item.bg-img {
    background-size: cover;
    background-position: center;
}

[data-overlay-dark="3"]:before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.3));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.slider-content {
    position: relative;
    z-index: 5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-content .title {
    color: #ffffff;
    font-weight: 700;
}

.slider-content .title span {
    color: #1b55e2;
}

.slider-content .description {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    max-width: 600px;
}

.slider-navigation button {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slider-navigation button:hover {
    background: rgba(255,255,255,0.25);
}

.slider-indicators .indicator {
    background: rgba(255,255,255,0.3);
}

.slider-indicators .indicator.active {
    background: #1b55e2;
}

/* Enhanced Popup and Card Styles */
.white-popup {
    position: relative;
    background: #fff;
    padding: 0;
    width: auto;
    max-width: 650px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.popup-header {
    padding: 20px 25px;
    background-color: #008080;
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    position: relative;
}

.popup-header .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    padding: 8px;
}

.popup-header .icon img {
    width: 100%;
    height: auto;
}

.white-popup .content {
    padding: 25px;
}

.white-popup .content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

.white-popup .content p:last-child {
    margin-bottom: 0;
}

.white-popup .image-content {
    margin-bottom: 20px;
}

.white-popup .image-content img {
    border-radius: 8px;
    max-width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Enhanced Card Hover Effects */
.service-card, .team-card, .schedule-table-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card:hover, .team-card:hover, .schedule-table-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Popup Animation */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
    transform: translateY(0);
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
    transform: translateY(20px);
}

/* Enhanced Footer Styles */
footer {
    padding: 60px 0 30px;
    position: relative;
    background-color: #008080;
}

footer .footer-content {
    position: relative;
    z-index: 10;
}

footer .logo {
    display: inline-block;
    margin-bottom: 25px;
}

footer .social {
    margin-bottom: 20px;
}

footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    margin: 0 12px;
    font-size: 22px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

footer .social-icon:hover {
    background: #fff;
    color: #1b55e2;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #fff;
}

footer .copyright {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Navbar Logo Wrapper Styles */
.navbar-logo-wrapper {
    background: transparent;
    margin-bottom: -60px;
}

.custom-navbar {
    background: #030A78 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    min-height: 70px;
    padding-top: 70px;
    border: none;
}

.custom-navbar .navbar-nav .nav-link {
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 18px 24px;
    transition: color 0.2s;
    position: relative;
}

.custom-navbar .navbar-nav .nav-link.active,
.custom-navbar .navbar-nav .nav-link:hover {
    color: #1bffea !important;
}

.custom-navbar .navbar-nav {
    align-items: center;
}

.custom-navbar .navbar-toggler .icon-bar {
    color: #fff;
}

@media (max-width: 991px) {
    .navbar-logo-wrapper { margin-bottom: -30px; }
    .custom-navbar .navbar-nav {
        flex-direction: column;
        gap: 0;
    }
    .custom-navbar .navbar-nav .nav-link {
        padding: 12px 18px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
} 