body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* PAGE CENTER LAYOUT */
.center-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    background: linear-gradient(135deg, #60a5fa, #93c5fd, #bfdbfe);
    color: #1a1a1a;
    position: relative;
}

/* BACKGROUND CIRCLES */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(35px);
    opacity: 0.8;
    pointer-events: none;
    animation: float 14s ease-in-out infinite;
}

.circle1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #93c5fd, #60a5fa);
    top: -180px;
    left: -180px;
}

.circle2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #bfdbfe, #3b82f6);
    bottom: -200px;
    right: -200px;
    animation-duration: 18s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(70px, -60px); }
    100% { transform: translate(0, 0); }
}

/* GLASS CONTAINER */
.glass-container {
    max-width: 600px;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.glass-container h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #0f172a;
}

.glass-container p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #334155;
}

/* BUTTON */
.btn {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #60a5fa;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn:hover {
    background-color: #3b82f6;
}


/* FULL PAGE */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #60a5fa, #93c5fd, #bfdbfe);
    color: #1a1a1a;
}

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

/* NAVBAR */
.navbar {
    display: flex;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    z-index: 2;
}

.nav-btn {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.05);
}

.nav-btn.active {
    border-bottom: 3px solid #2563eb;
}

/* PAGE CONTENT */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.container h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.container p {
    max-width: 500px;
    margin-bottom: 30px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-content {
    width: 500px;
    background: #eff6ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #60a5fa;
    padding: 15px 20px;
}

.close-x {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
    text-align: left;
}

.section-title {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
}

/* BAR GRAPH */
.bar {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.bar-label {
    width: 60px;
    font-size: 14px;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin-left: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #60a5fa;
}

/* ACTION BUTTONS */
.modal-btn-row {
    text-align: right;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #60a5fa;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
}

.modal-btn:hover {
    background: #3b82f6;
}

/* SCROLLABLE CONTENT */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* SECTIONS */
.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0f172a;
    cursor: pointer;
}
.content {
    overflow-y: auto;
}
/* ROWS */
.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* or 4 if you want */
    gap: 15px;
}

/* CARDS */
.card {
    min-width: 280px;
    max-width: 280px;
    background: #fff3e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.card:hover {
    transform: scale(1.02);
}

.card-header {
    background: #60a5fa;
    padding: 12px 15px;
    font-weight: bold;
}

.card-body {
    padding: 15px;
    font-size: 14px;
    line-height: 1.4;
}

/* GRID */
.grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
/* BACK BUTTON */
.back-btn {
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 18px;
}

/* PAGE LAYOUT */
.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* NAVBAR */
.navbar {
    display: flex;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    z-index: 2;
}

.nav-btn {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 3px solid transparent;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.05);
}

.nav-btn.active {
    border-bottom: 3px solid black;
}

/* HEADER */
.header {
    text-align: center;
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #0f172a;
    z-index: 2;
}

/* LIST */
.list-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    z-index: 2;
}

/* CARDS */
.card {
    width: 75%;
    max-width: 720px;
    min-width: 280px;
    background: #fff3e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: 0.2s;
}

.card:hover {
    transform: scale(1.01);
}

.card-header {
    background: #60a5fa;
    padding: 12px 15px;
    font-weight: bold;
}

.card-body {
    padding: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.small-text {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.modal-content {
    width: 500px;
    background: #fff3e6;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #60a5fa;
    padding: 15px 20px;
}

.modal-body {
    padding: 20px;
    text-align: left;
}

.close-x {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.section-title {
    font-weight: bold;
    margin-top: 15px;
}

/* BAR GRAPH */
.bar {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.bar-label {
    width: 40px;
    font-size: 13px;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    margin-left: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #60a5fa;
}

/* PAGE */
.page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* HEADER */
.header {
    position: relative;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    padding: 18px 20px;
    font-size: 22px;
    font-weight: bold;
    color: #0f172a;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    right: 15px;
    top: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #60a5fa;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    background: #3b82f6;
}

/* CONTENT */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* MAIN CARD */
.main-card {
    width: 80%;
    max-width: 850px;
    min-width: 300px;
    background: #fff3e6;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* SECTIONS */
.section-title {
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #0f172a;
}

/* DESCRIPTION */
.description {
    line-height: 1.6;
    font-size: 15px;
}

/* BAR GRAPH */
.bar {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.bar-label {
    width: 45px;
    font-size: 14px;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: #ddd;
    border-radius: 6px;
    margin-left: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #60a5fa;
}

/* COMMENTS */
.comment {
    background: white;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comment-user {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

.comment-text {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.comment-stars {
    font-size: 13px;
    opacity: 0.75;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* HEADER (BUSINESS STYLE OVERRIDE) */
.header {
    background: rgba(219, 234, 254, 0.8);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    padding: 18px 20px;
    font-size: 22px;
    font-weight: bold;
    color: #0f172a;
}

/* CLOSE BUTTON (BUSINESS LOOK) */
.close-btn {
    background: #2563eb;
    color: white;
}

.close-btn:hover {
    background: #1d4ed8;
}

/* MAIN CARD (BUSINESS SIDE FEEL) */
.main-card {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-radius: 14px;
    padding: 25px;
}

/* OPTIONAL: stronger business feel */
.right-side .section-title {
    color: #1e3a8a;
}
.box {
    background: rgba(219, 234, 254, 0.6);
}

.comment {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
}

.comment-user {
    font-weight: bold;
}

.comment-text {
    font-size: 14px;
    margin-top: 5px;
}

.comment-stars {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}



.business-side {
    background: #eff6ff;
    padding: 20px;
    border-radius: 12px;
}

.business-side .comment {
    border-left: 4px solid #2563eb;
}

/* --- CUSTOM STYLES FOR MOST POPULAR SECTION (BLUE THEME) --- */

/* Formats the container section with a glass panel variant and extra clearance space */
.popular-section {
    background: rgba(111, 209, 255, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 45px; /* Creates explicit separation distance from categories below */
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08);
}

/* Modifies the section heading with a blue accent line marker */
.popular-section .section-title {
    color: #0f172a;
    font-size: 24px;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
    margin-bottom: 18px;
}

/* Enhances popular card components using deep gradient headers */
.card.popular-card {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}


/* Scales matching card element physics upon client focus hover actions */
.card.popular-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
}

/* ================================================
   MOBILE — max-width: 768px
   ================================================ */
@media (max-width: 768px) {

    /* Suppress overflow hidden on mobile so content can scroll */
    html, body {
        overflow: auto;
        height: auto;
    }

    .page {
        height: auto;
        min-height: 100vh;
    }

    /* Shrink glow blobs so they don't cause horizontal scroll */
    .circle1,
    .circle2 {
        width: 280px;
        height: 280px;
    }

    /* NAVBAR — smaller text & padding */
    .nav-btn {
        padding: 10px 4px;
        font-size: 13px;
    }

    /* HEADINGS */
    .container h1 {
        font-size: 26px;
    }

    .container p {
        font-size: 14px;
        max-width: 100%;
    }

    /* INPUTS fill the screen */
    .input-group {
        max-width: 100%;
    }

    /* BUTTON full-width */
    .btn {
        width: 100%;
        text-align: center;
    }

    /* CARDS take full available width */
    .card {
        width: 95%;
    }

    /* MODAL takes nearly full screen */
    .modal-content {
        width: 95vw;
    }

    .modal-content-large {
        width: 95vw;
        height: 90vh;
    }

    /* 3-column rows collapse to 1 column */
    .row {
        grid-template-columns: 1fr;
    }

    /* auto-fill grid: force single column on very small screens */
    .grid {
        grid-template-columns: 1fr;
    }

    /* split-row stacks vertically */
    .split-row {
        flex-direction: column;
        gap: 12px;
    }

    /* split-section (2-col grid) stacks vertically */
    .split-section {
        grid-template-columns: 1fr;
    }

    /* Problem title scales down */
    .problem-title {
        font-size: 20px;
    }

    /* Section titles scale down */
    .section-title {
        font-size: 18px;
    }

    .popular-section .section-title {
        font-size: 20px;
    }

    /* Comment input fills width */
    .comment-input {
        width: 100%;
    }

    /* Width utility helpers get a mobile cap */
    .width-20 { width: 50%; }
    .width-30 { width: 60%; }
    .width-80 { width: 100%; }
    .width-90 { width: 100%; }

    /* comment actions wrap if needed */
    .comment-actions {
        flex-wrap: wrap;
    }

    /* popular section padding tightens */
    .popular-section {
        padding: 15px;
        margin-bottom: 30px;
    }

    /* create-comment box tightens */
    .create-comment,
    .create-comment-box {
        padding: 15px;
    }

    /* list container tighter padding */
    .list-container {
        padding: 12px;
    }

    /* content tighter padding */
    .content {
        padding: 12px;
    }

    /* modal btn row centers on mobile */
    .modal-btn-row {
        text-align: center;
    }
}
