/* Global Font Reset to match apptesterhub.html */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.spacetop {
    padding-top: 1rem;
}

body {
    background-color: #f8f9fa;
    color: #1e293b;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
    text-decoration: none;
}

.logo img {
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #6366f1;
}

.btn {
    background-color: #6366f1;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #4f46e5;
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e293b;
}

/* Mobile Navigation Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e293b;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
}

.mobile-nav ul li a:hover {
    color: #6366f1;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mobile-nav-footer .btn {
    display: block;
    width: 100%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Dropdown Menu Styles */
/* Dropdown outer container: always present but initially hidden via opacity/visibility */
.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    /* directly below the parent LI (no visible gap) */
    left: -60px;
    /* move left */
    transform-origin: top left;
    z-index: 9999;
    min-width: 560px;
    /* adjust to suit your layout */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(23, 35, 58, 0.08);
    padding: 16px;
    box-sizing: border-box;
    /* grid layout: 2 columns, auto rows (2x2 for 4 items) */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    /* hidden state to avoid flicker on hover */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    /* small lift animation */
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

/* show the menu on hover or keyboard focus-within */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* each service item */
.service-item {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 160ms ease, transform 160ms ease;
    cursor: default;
}

/* make whole item feel interactive on hover */
.service-item:hover {
    background: rgba(76, 175, 239, 0.06);
    /* subtle tint */
    transform: translateY(-3px);
}

/* service link: now wraps everything */
.service-link {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    width: 100%;
}

.service-link i {
    font-size: 18px;
    color: #4CAFEF;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
    /* align with text */
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* title */
.service-title {
    font-size: 0.96rem;
    display: block;
}

.service-desc {
    margin: 0;
    font-size: 0.86rem;
    color: #666;
    line-height: 1.35;
    font-weight: 400;
    /* override parent link weight */
}

/* small visual polish for the angle icon rotation when open */
.dropdown .dropdown-toggle i {
    transition: transform 180ms ease;
}

.dropdown:hover .dropdown-toggle i,
.dropdown:focus-within .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Media Queries */
@media (max-width: 992px) {
    nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
        margin-right: 15px;
    }

    .header-container .btn {
        display: none;
    }
}

.hero-section {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    /* Replaced image with gradient as images might be missing */
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
}

.space {
    margin-top: 1rem;
}

.content-section {
    padding: 40px 0;
}

footer {
    background: #343a40;
    color: white;
    padding: 15px 0;
}