/* ===========================
   Service Pages Styles
   =========================== */

/* ===========================
   Navigation Logo Fix
   =========================== */
.nav-logo {
    width: 55px !important;
    height: 55px !important;
    border-radius: 12px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar.scrolled .nav-logo {
    width: 48px !important;
    height: 48px !important;
}

@media (max-width: 480px) {
    .nav-logo {
        width: 45px !important;
        height: 45px !important;
    }
}

@media (max-width: 360px) {
    .nav-logo {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Service Hero (extends course-hero) */
.service-hero {
    background: linear-gradient(135deg, #0a1f44 0%, #1a3a6e 50%, #0d2d5a 100%);
}

/* ===========================
   Service Packages
   =========================== */
.service-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    border: 2px solid #e8effe;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(10, 31, 68, 0.12);
    border-color: var(--primary-blue);
}

.featured-package {
    border-color: var(--gradient-pink);
    background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
    position: relative;
    transform: scale(1.03);
}

.featured-package:hover {
    transform: scale(1.03) translateY(-6px);
}

/* Package Header */
.package-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.package-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

/* Package Badge */
.package-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-blue), #1a3a6e);
    color: #fff;
    letter-spacing: 0.3px;
}

.package-badge.popular {
    background: linear-gradient(135deg, var(--gradient-pink), var(--gradient-orange));
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 78, 119, 0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(233, 78, 119, 0); }
}

/* Package Feature List */
.package-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    flex: 1;
}

.package-card ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.package-card ul li:last-child {
    border-bottom: none;
}

.package-card ul li i {
    color: #25D366;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Block button inside package */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* ===========================
   Tech Used Grid (service pages)
   =========================== */
.tech-used-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.tech-used-grid span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cdd5e8;
    transition: all 0.25s ease;
}

.tech-used-grid span:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ===========================
   Clickable Service Cards (index.html)
   =========================== */
a.service-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

a.service-card:hover {
    color: inherit;
}

a.service-card::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 18px;
    left: 18px;
    font-size: 0.85rem;
    color: var(--gradient-pink);
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.3s ease;
}

a.service-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .service-packages {
        grid-template-columns: 1fr;
    }

    .featured-package {
        transform: scale(1);
    }

    .featured-package:hover {
        transform: translateY(-6px);
    }
}
