* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
}

body {
    font-family: "Noto Sans KR", sans-serif;
    line-height: 1.6;
    color: #333;
}

.wrap {
    max-width: 1400px;
    padding: 0 50px;
    margin: auto;
}

/* Header */
header {
    background: linear-gradient(135deg, #11a7a4, #0d8f8c);
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.top-header .wrap {
    max-width: 1400px;
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

header a {
    color: white;
    transition: color 0.3s ease;
}

header a:hover {
    color: #e0f7fa;
}

header .logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-right: 20px;
}

header ul {
    display: flex;
    gap: 20px;
}

header ul li a {
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

header ul li a:hover,
header ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-dropdown {
    position: relative;
    display: inline-block;
}

.header-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.header-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

.header-dropdown .dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.header-dropdown .dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.header-dropdown:hover .dropdown-menu {
    display: block;
}

/* Top Banner Section */
.top-banner-section {
    background: linear-gradient(135deg, #ffedd5, #ffe6b8);
    color: #8b4513;
    padding: 20px 0;
    text-align: center;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-banner-section .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-banner-section p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.top-banner-section .close-banner {
    cursor: pointer;
    font-size: 24px;
    color: #8b4513;
}

/* Service Expert Section */
.service-expert-section {
    padding: 50px 0;
}

.service-expert-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.service-expert-section .subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-left: 10px;
}

.expert-category {
    margin-bottom: 40px;
}

.expert-category h3 {
    font-size: 24px;
    font-weight: 600;
    color: #079092;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.expert-grid {
    display: flex;
    gap: 30px;
}

.expert-card {
    padding: 30px 20px;
    border-radius: 15px;
    border: none;
    text-align: center;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expert-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #11a7a4, #0d8f8c);
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.expert-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #079092;
    margin-bottom: 20px;
}

.expert-card img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #11a7a4, #0d8f8c);
    margin-bottom: 15px;
}

.expert-card .rating {
    margin: 15px 0;
    color: #ffd700;
}

.expert-card .rating span {
    font-size: 16px;
}

.expert-card p {
    margin: 10px 0;
    color: #666;
}

.expert-card button {
    border: none;
    padding: 10px 25px;
    margin-top: 20px;
    background: linear-gradient(135deg, #11a7a4, #0d8f8c);
    color: white;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.expert-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 167, 164, 0.3);
}

.expert-grid-large {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.expert-detail-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.expert-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.expert-detail-card .status {
    background-color: #079092;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}

.expert-detail-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11a7a4, #0d8f8c);
    margin-bottom: 15px;
}

.expert-detail-card .location-detail {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.expert-detail-card .description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    text-align: left;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    right: 30px;
    top: 50%;
    height: 250px;
    background: white;
    color: #079092;
    display: flex;
    width: 60px;
    flex-direction: column;
    transform: translateY(-50%);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.floating-btn span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 0;
}

.floating-btn span:hover {
    background-color: #079092;
    color: white;
    transform: scale(1.1);
}

.floating-btn span:last-child {
    border: none;
}

/* Footer */
footer {
    height: 200px;
    width: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.card-container {
    background-color: white; /* Black background for the card */
    color: #333; /* White text color */
    font-family: Arial, sans-serif;
    border-radius: 8px; /* Slightly rounded corners */
    overflow: hidden; /* Ensures content stays within rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    opacity: 0.7; /* Slight transparency as seen in the example */
}

.company-name {
    position: absolute;
    bottom: 20px; /* Adjust positioning as needed */
    right: 70px;
    width: 50%;
    text-align: right;
    font-size: 1.5em; /* Adjust font size */
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* For better readability over image */
    z-index: 2; /* Ensure it's above the image */
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-thumbnail {
    position: absolute;
    bottom: 20px; /* Aligned with the company name, adjust as needed */
    right: 20px; /* Position from the right */
    width: 40px; /* Size of the thumbnail */
    height: 40px;
    border-radius: 50%; /* Makes it circular */
    overflow: hidden;
    border: 3px solid #fff; /* White border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2; /* Ensure it's above the image */
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-content {
    padding: 20px; /* Padding around the text */
    line-height: 1.6;
    font-size: 0.9em;
}

.text-content p {
    margin: 0; /* Remove default paragraph margin */
}

.expert-grid-large + button {
    margin: auto;
    display: block;
    outline: none;
    border: 0;
    background: #0d8f8c;
    color: white;
    border-radius: 50px;
    height: 50px;
    cursor: pointer;
    padding: 10px 40px;
    margin-top: 50px;
}

.customer-reviews-page {
    width: 100%;
    max-width: 1400px; /* Adjust max-width as needed for larger screens */
    margin: auto;
    padding: 100px 0;
}

.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.reviews-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-top: 0;
}

.reviews-grid {
    display: grid;
    /* For 4 columns, use repeat(4, 1fr) */
    /* For responsiveness, adjust grid-template-columns */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between cards */
}

.review-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures nothing overflows the card boundaries */
}

.review-thumbnail.placeholder {
    width: 100%; /* Take full width of the card */
    padding-top: 75%; /* Aspect ratio (e.g., 4:3) */
    background-color: #f0f0f0; /* Grey placeholder */
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative; /* For potential image positioning */
    overflow: hidden; /* For images that might be added later */
}

/* If you use an actual image, replace .placeholder with an img tag and use: */
/* .review-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
} */

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-right: 10px;
}

.star-rating {
    color: #ffc107; /* Gold color for stars */
    font-size: 1.2em;
    letter-spacing: -1px; /* Adjust spacing between stars */
}

.star.filled {
    /* If you have hollow stars, you'd style them differently */
}

.review-text {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
    margin: 0;
    /* To truncate text with ellipsis if it's too long */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .expert-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-header .wrap {
        flex-direction: column;
        height: auto;
        padding: 10px 50px;
    }

    .top-header ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .header-left {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .expert-grid {
        grid-template-columns: 1fr;
    }

    .expert-grid-large {
        grid-template-columns: 1fr;
    }

    .top-banner-section .wrap {
        flex-direction: column;
        gap: 15px;
    }

    .top-banner-section p {
        text-align: center;
    }
}
