* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    /* Softer background color */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #3b5998, #192f6a);
    /* Gradient header */
    color: white;
    padding: 15px 5px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Add shadow for depth */
}

h1 {
    margin: 0;
    font-size: 1.8em;
    letter-spacing: 1px;
}

p {
    font-size: 0.95em;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 30px;
}

.tabs {
    width: 100%;
    max-width: 80%;
}

.tab {
    background: #4a90e2;
    /* Modern blue background */
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.tab:hover {
    background: #357ABD;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Styling the Step Number */
.tab h2 {
    margin: 0;
    font-size: 1em;
    /* Smaller font size for Step */
    font-weight: bold;
    /* Bold for "Step X" */
    display: inline-block;
    width: 35%;
    /* Make step text take less space */
}

/* Styling the Tab Description */
.tab .description {
    font-size: 1.2em;
    /* Larger for the description */
    font-weight: 300;
    /* Light weight for the description */
    text-align: left;
    display: inline-block;
    width: 60%;
    /* Allow description to take more space */
    padding-left: 10px;
    /* Padding to separate from Step */
}

.arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.tab.active .arrow {
    transform: rotate(180deg);
}

.content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    margin-top: 10px;
    animation: fadeIn 0.5s ease-in-out;
}

.content img {
    width: 50%;
    height: auto;
    object-fit: cover;
    margin: 15px auto;
    display: block;
}

footer {
    text-align: center;
    padding: 12px 0;
    background: linear-gradient(135deg, #3b5998, #192f6a);
    color: white;
    font-size: 0.85em;
    position: relative;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* Laptop Styles */
@media screen and (min-width: 769px) {

    /* Ensure .tab is positioned relatively */
    .tab {
        position: relative;
        background: #4a90e2;
        color: white;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 8px;
        margin: 8px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: background 0.3s, box-shadow 0.3s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }

    /* Center the description in the middle of the tab */
    .tab .description {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        font-size: 1.2em;
        font-weight: 300;
    }

    /* Optional: Adjust alignment of h2 and .arrow */
    .tab h2 {
        font-size: 1em;
        font-weight: bold;
    }

    .tab .arrow {
        font-size: 1.2em;
        transition: transform 0.3s ease;
    }

    .tab h2,
    .tab .description {
        width: auto;
        /* Remove the width constraints */
        padding-left: 0;
        /* Remove left padding */
    }
}


/* Mobile Styles */
@media screen and (max-width: 768px) {
    .tab h2 {
        font-size: 0.9em;
        /* Reduce size for "Step X" */
    }

    .tab .description {
        font-size: 1em;
        /* Reduce size for description */
    }

    .content img {
        width: 70%;
        /* Increase size on mobile for better visibility */
    }

    main {
        padding: 15px;
        /* Reduce padding on mobile */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}