/* =========================
   Base Styles
========================= */
html, body {
    height: 100%;
}

body {
    font-family: "Segoe UI", sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper > section,
.page-wrapper > .container {
    flex: 1;
}

/* =========================
   Navbar
========================= */
.navbar-logo {
    height: 42px;
    width: auto;
    animation: logoPop 0.8s ease-out;
}

@keyframes logoPop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.navbar-light .navbar-nav .nav-link {
    color: #0d6efd;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #084298;
    font-weight: 600;
}

/* =========================
   Hero Section
========================= */
.hero,
.service-hero {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #ffffff;
    padding: 45px 0;
}

.hero h1,
.service-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
}

.hero p,
.service-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* =========================
   Section Titles
========================= */
.section-title {
    font-weight: 700;
    margin-bottom: 25px;
    color: #0d6efd;
}

/* =========================
   Cards (Global)
========================= */
.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.card-title {
    font-weight: 600;
}

.card-text {
    font-size: 0.95rem;
    color: #555;
}

/* =========================
   Services Listing
========================= */
.services-section {
    background: linear-gradient(180deg, #f8f9fa, #ffffff);
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    transition: all 0.35s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(13,110,253,0.25);
}

/* Icon Circle */
.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(13,110,253,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box i {
    font-size: 28px;
    color: #0d6efd;
}

.service-card h5 {
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: #555;
}

/* =========================
   Service Detail Page
========================= */
.service-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.service-points li {
    font-size: 0.95rem;
    padding: 6px 0;
}

/* =========================
   Buttons
========================= */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #084298;
    border-color: #084298;
}

/* =========================
   Responsive Tweaks
========================= */
@media (max-width: 768px) {
    .hero h1,
    .service-hero h1 {
        font-size: 2rem;
    }
}

/* =========================
   Clean Service Card UI
========================= */
.service-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    padding-top: 155px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(13,110,253,0.25);
}

/* Image Area */
.service-cover {
    position: absolute;
    top: 0;
    left: 0;
    height: 120px;
    width: 100%;
    overflow: hidden;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.service-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,110,253,0.15),
        rgba(13,110,253,0.85)
    );
}

.service-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.85);
    transition: transform 0.5s ease;
}

.service-card:hover .service-cover img {
    transform: scale(1.08);
}

/* Icon inside image */
.floating-icon {
    position: absolute;
    top: 70px;
    left: 28px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    z-index: 3;
}

.floating-icon i {
    font-size: 24px;
    color: #0d6efd;
}

/* Text Content */
.service-card h5 {
    font-weight: 700;
    margin-top: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Button */
.service-card .btn {
    margin-top: 10px;
}

.course-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

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

.course-img {
    height: 180px;
    background: #f6f8fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-img img {
    max-height: 140px;
    max-width: 85%;
    object-fit: contain;
}

.course-body {
    padding: 20px;
}

.course-body h5 {
    font-weight: 600;
    margin-bottom: 12px;
}

.course-meta {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
    font-size: 14px;
}

.course-meta li {
    margin-bottom: 4px;
}
