* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo img {
    max-height: 125px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 10px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-weight: 600;
    color: #222;
}

/* Dropdown */
.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 10px 15px;
    font-weight: 500;
}

.dropdown a:hover {
    background: #f5f5f5;
}

/* =========================
   HERO
========================= */
.hero-search {
    padding: 60px 0 30px;
}

.hero-search .container {
    background: #fff;
    padding: 70px 40px;
    border-radius: 16px;
    text-align: center;
}

.hero-search h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-search p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input {
    width: 100%;
    max-width: 500px;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
}

.search-form button {
    padding: 14px 22px;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* =========================
   GROUP CARDS
========================= */
.group-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px auto 50px;
}

.group-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    color: #222;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.group-card:hover {
    transform: translateY(-4px);
}

/* =========================
   PROFILE PAGE
========================= */
.profile-page {
    padding: 30px 0 60px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    font-weight: 600;
    color: #3b82f6;
}

.profile-hero {
    margin-bottom: 25px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-logo-box {
    width: 180px;
    height: 180px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.profile-heading h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #f3f4f6;
}

.badge-category {
    border: 1px solid #d1d5db;
    color: #374151;
}

/* Top Image Strip */
.profile-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.strip-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

/* Top Info Row */
.profile-top-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Main Layout */
.profile-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.info-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 22px;
}

.info-card h2,
.info-card h3 {
    margin-bottom: 15px;
}

.info-card p {
    line-height: 1.8;
    color: #333;
}

.profile-inline-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.mini-button {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-weight: 600;
    background: #fff;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card .button {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    text-align: center;
}

/* Gallery */
.profile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.profile-gallery-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .profile-top-grid,
    .profile-main-grid {
        grid-template-columns: 1fr;
    }

    .profile-strip,
    .profile-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-logo-box {
        width: 140px;
        height: 140px;
    }

    .profile-heading h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .profile-strip,
    .profile-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FOOTER
========================= */
.site-footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 0.95rem;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .header-wrap {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .hero-search h1 {
        font-size: 2.2rem;
    }

    .group-cards {
        grid-template-columns: 1fr;
    }
}