/* --- Base Styles & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --light-gray: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 16px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 20%);
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.navbar {
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* --- Hero Section (Homepage) --- */
.hero {
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
}

/* .hero-badge { ... }  /* REMOVED */


.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--gray-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: var(--gray-color);
}

.search-container input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1.05rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0 1.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
}

/* --- Section Headers (Homepage) --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    background: var(--card-bg);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* --- Profiles Section (Homepage) --- */
.profiles-section {
    padding: 2rem 0 4rem;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    transform: translateY(0);
    backdrop-filter: blur(10px);
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -6px rgba(0, 0, 0, 0.1);
}

/* --- Featured Badge (Homepage & Profile) --- */
.profile-card .profile-badge.featured,
.profile-detail .profile-badge.featured /* For profile page main card */
{
    position: absolute;
    top: 1rem; /* Default for homepage cards */
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--box-shadow);
}

/* Adjust position for main profile detail card */
.profile-detail .profile-badge.featured {
    top: -10px;
    right: 20px;
    z-index: 3; /* Ensure it's above other content in the card */
}


.profile-image {
    width: 100%;
    height: 220px;
    /* Background gradient for placeholder */
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem; /* Smaller icon */
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7); /* Lighter icon color */
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.profile-info {
    padding: 1.5rem;
}

.profile-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.profile-info p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.profile-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-color);
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.profile-category {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- Load More Button (Homepage) --- */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--light-gray);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
}

.load-more-btn i {
    display: none;
}

.load-more-btn.loading i {
    display: inline-block;
}

/* --- Categories Section (Homepage) --- */
.categories-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.category-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.category-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.category-card p {
    color: var(--gray-color);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.category-stats {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-logo p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}
.footer-bottom script {
    display: none; /* Hide the script tag itself */
}

/* --- Profile Page Specific Styles --- */

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

.breadcrumbs .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a,
.breadcrumbs span {
    color: var(--gray-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs span:last-child {
    color: var(--dark-color);
    font-weight: 500;
}

/* Main Profile Content */
.profile-content {
    padding: 3rem 0;
}

/* --- Updated Profile Detail Section Layout (Two Columns) --- */
.profile-detail {
    /* Use flexbox for layout */
    display: flex;
    gap: 2.5rem; /* Space between columns */
    margin: 2rem 0;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    /* On small screens, it will stack by default (flex-direction: column) */
    flex-direction: column;
    position: relative; /* Add this for absolute badge positioning */
}

/* --- Left Column (Image and Share Buttons) --- */
.profile-detail-left-column {
    /* This will take up available space, but we'll control width with flex properties */
    flex: 0 0 auto; /* Don't grow, don't shrink, base size auto (we'll set max-width) */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center image and buttons within this column */
    gap: 1.5rem; /* Space between image and share buttons */
}

/* --- Updated Profile Image Container --- */
.profile-detail-image {
    /* Set a fixed size for the image container */
    width: 250px;
    height: 350px; /* Approx 7:5 portrait ratio */
    border-radius: calc(var(--border-radius) - 4px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--box-shadow);
    position: relative;
    /* Center the image container itself if needed */
    margin: 0 auto;
}

.profile-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to fill the container */
    display: block;
    border: none;
    border-radius: calc(var(--border-radius) - 4px);
}

/* --- Updated Social Share Section --- */
.social-share {
    text-align: center; /* Center buttons within the left column */
    width: 100%; /* Take full width of the left column for centering */
}

.social-share h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.share-buttons {
    display: flex;
    justify-content: center; /* Center buttons horizontally */
    flex-wrap: wrap;
    gap: 0.75rem; /* Space between buttons */
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    background-color: var(--card-bg);
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.share-button:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
/* Improve focus styles for share buttons (accessibility) */
.share-button:focus {
    outline: 2px dashed var(--primary-color);
    outline-offset: 2px;
}


.share-button i {
    font-size: 1rem;
}

/* --- Right Column (Info List) --- */
.profile-detail-right-column {
    /* This column will grow to take up remaining space */
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Align content to the start (left) of this column */
    align-items: flex-start;
}

/* --- Profile Info Section (within right column) --- */
.profile-detail-info {
    width: 100%; /* Take full width of the right column */
    text-align: center; /* Center the main name/title */
}

.profile-detail-info h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-subtitle {
    font-size: 1.25rem;
    color: var(--gray-color);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
}

/* Profile List Info (Details Grid) - placed directly in right column */
.profile-list-info {
    /* Remove auto margins for centering, align to start */
    margin: 1.5rem 0 0 0;
    background: rgba(99, 102, 241, 0.03);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
    /* Max width can be controlled by the parent column or removed */
    /* max-width: 600px; */
    /* Keep text left-aligned */
    text-align: left;
    width: 100%; /* Ensure it fills the column width */
}

.info-item {
    display: flex;
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 140px; /* Adjusted width */
    flex-shrink: 0;
    font-size: 0.95rem;
}

.info-value {
    color: var(--gray-color);
    flex: 1;
    font-size: 0.95rem;
    word-break: break-word;
}


/* Bio Sections */
.bio-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

.bio-section:last-child {
    margin-bottom: 2rem;
}

.bio-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 1.7rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.bio-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.bio-section p {
    line-height: 1.7;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.bio-section ul,
.bio-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.bio-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--dark-color);
}

/* --- Responsive Design --- */
/* Large screens: Two columns */
@media (min-width: 992px) {
    .profile-detail {
        flex-direction: row; /* Switch to row layout */
        align-items: flex-start; /* Align items to the top */
    }

    .profile-detail-left-column {
        /* Set a specific max-width for the left column on large screens */
        max-width: 250px; /* Or use flex: 0 0 250px; */
        align-items: center; /* Keep image/buttons centered in the column */
    }

    .profile-detail-right-column {
        /* The right column takes the remaining space */
    }

    .profile-detail-info {
        text-align: left; /* Align name/title to the left on large screens */
    }

    .profile-list-info {
        /* Align list to the left on large screens */
        text-align: left;
        margin: 1.5rem 0 0 0; /* Reset margin */
    }

    /* Other large screen adjustments */
    .profile-detail-info h1 {
        font-size: 2.5rem;
    }
    .profile-subtitle {
        font-size: 1.25rem;
    }
    .bio-section h2 {
        font-size: 1.7rem;
    }
}

/* Medium screens: Adjustments */
@media (max-width: 991px) and (min-width: 768px) {
    .profile-detail {
        padding: 2rem;
        gap: 2rem;
    }
    .profile-detail-image {
        width: 220px; /* Slightly smaller */
        height: 310px;
    }
    .profile-detail-info h1 {
        font-size: 2.2rem;
    }
    .profile-subtitle {
        font-size: 1.15rem;
    }
    .info-label {
        min-width: 120px;
    }
    .bio-section h2 {
        font-size: 1.6rem;
    }
}

/* Tablets and smaller: Stacked layout */
@media (max-width: 767px) {
    /* (Keep existing responsive styles for header, hero, etc.) */

    /* --- Profile Page Responsive Adjustments --- */
    .profile-detail {
        flex-direction: column; /* Ensure stacking */
        padding: 2rem;
        margin: 1.5rem 0;
        gap: 1.5rem; /* Adjust gap for smaller screens */
    }

    .profile-detail-left-column,
    .profile-detail-right-column {
        /* On small screens, both columns take full width */
        max-width: 100%;
        align-items: center; /* Center content on small screens */
    }

    .profile-detail-image {
        width: 200px; /* Smaller width */
        height: 280px; /* Smaller height (maintaining ~7:5 ratio) */
    }

    .profile-detail-info {
        text-align: center; /* Center text on small screens */
    }

    .profile-list-info {
        text-align: left; /* List items left-aligned */
        padding: 1rem;
        margin: 1.5rem 0 0 0; /* Adjust margin for stacking */
    }

    .info-item {
        flex-direction: column; /* Stack label and value */
        gap: 0.25rem; /* Space between label and value */
    }

    .info-label {
        min-width: auto; /* Reset min-width */
        font-weight: 600; /* Keep label bold */
    }

    .social-share {
        margin-top: 0; /* Margin handled by gap */
        padding-top: 0; /* Padding handled by gap */
    }

    .share-buttons {
        justify-content: center; /* Center buttons on small screens */
    }

    .bio-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .bio-section h2 {
        font-size: 1.5rem;
    }

    .breadcrumbs .container {
        justify-content: center; /* Center breadcrumbs if they wrap */
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        padding: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* --- Profile Page Responsive Adjustments --- */
    .profile-detail {
        padding: 1.5rem;
        margin: 1.25rem 0;
        gap: 1.25rem;
    }

    .profile-detail-image {
        width: 170px; /* Even smaller width */
        height: 240px; /* Even smaller height */
    }

    .profile-detail-info h1 {
        font-size: 1.8rem;
    }

    .profile-subtitle {
        font-size: 1rem;
    }

    .profile-list-info {
        padding: 0.9rem;
    }

    .info-item {
        padding: 0.5rem 0;
    }

    .info-label,
    .info-value {
        font-size: 0.9rem; /* Smaller text on very small screens */
    }

    .share-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .bio-section {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }

    .bio-section h2 {
        font-size: 1.4rem;
    }

    .bio-section p,
    .bio-section li {
        font-size: 0.95rem; /* Slightly smaller body text */
    }

    .profile-content {
        padding: 2rem 0;
    }
}
/* --- End of Profile Page Specific Styles --- */


/* --- Global Refinements --- */

/* Add print styles (example) */
@media print {
    .social-share, .share-buttons, .nav-menu, .hamburger, .newsletter-form, .footer-section:not(:first-child) {
        display: none !important;
    }
    .profile-detail {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    .profile-detail-image img {
        /* Ensure image prints, override lazy loading if needed */
        display: block !important;
    }
}

/* Respect user's preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    /* Specifically target the hover effects we added */
    .profile-card:hover,
    .category-card:hover {
        transform: none !important; /* Disable lift effect */
        /* Box-shadow change is less critical, but you could remove it too */
    }
    .share-button:hover {
        transform: none !important;
        /* Box-shadow change is less critical */
    }
}

/* --- End of Global Refinements --- */
