/* =========================================================
   CovoCamp - Main Stylesheet

   Sections:
   01. Theme Variables
   02. Reset + Global Base
   03. Shared Layout Helpers
   04. Buttons + Shared Links
   05. Top Navigation / Header
   06. Landing Page / Login Page
   07. Auth + Form Pages
   08. Dashboard Layout
   09. Sidebar Cards
   10. Feed + Post Cards
   11. Comments + Replies
   12. Profile Pages
   13. Group Pages + Topics
   14. Event Posts
   15. Messages
   16. Notifications
   17. Empty States
   18. Responsive Rules
   ========================================================= */


/* =========================================================
   01. THEME VARIABLES
   Used across dashboard, profile, groups, posts, comments,
   buttons, and shared cards.
   ========================================================= */
:root {
    --bg-page: #f5f1e8;
    --bg-card: #fffdf8;

    --text-main: #2e372d;
    --text-muted: #7a8172;
    --text-soft: #5f6b5b;

    --border-soft: #e9e1d2;

    --teal-100: #eef6ec;
    --teal-500: #5f7c5b;

    --indigo-100: #edf4ea;
    --indigo-700: #6f8c69;

    --danger: #b84a4a;
    --danger-dark: #8b2f2f;

    --shadow-card:
        0 6px 18px rgba(70, 72, 55, 0.06);

    --shadow-card-hover:
        0 10px 24px rgba(70, 72, 55, 0.12);

    --shadow-auth-card:
        0 10px 30px rgba(70, 72, 55, 0.12);
}


/* =========================================================
   02. RESET + GLOBAL BASE
   Used on every page.
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}


/* =========================================================
   03. SHARED LAYOUT HELPERS
   Used by index.php, dashboard.php, profile.php, group.php,
   messages.php, notifications.php, and form pages.
   ========================================================= */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-layout {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 18px;
    display: flex;
    gap: 18px;
}

.feed-area {
    flex: 1;
}

.feed-area h1 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.inline-form {
    display: inline;
}

.divider {
    width: 1px;
    min-height: 250px;
    background: #d1d5db;
}


/* =========================================================
   04. BUTTONS + SHARED LINKS
   Used throughout profiles, groups, feeds, post actions,
   comments, and auth pages.
   ========================================================= */
.profile-btn {
    display: block;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    text-decoration: none;
}

.light-btn {
    background: linear-gradient(135deg, var(--teal-100), var(--indigo-100));
    color: var(--indigo-700);
}

.danger-btn {
    background: var(--danger);
    color: white;
}

.post-action-button {
    background: none;
    border: none;
    color: var(--indigo-700);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.post-action-button:hover {
    color: var(--teal-500);
}

.post-action-button.delete {
    color: var(--danger);
}

.post-action-button.delete:hover {
    color: var(--danger-dark);
}

.group-list a,
.post-user-link,
.post-group-link,
.quick-links a {
    color: inherit;
    text-decoration: none;
}

.group-list a:hover,
.post-user-link:hover,
.post-group-link:hover,
.quick-links a:hover {
    text-decoration: underline;
    color: var(--indigo-700);
}


/* =========================================================
   05. BOTTOM SITE NAVIGATION
   Section 2: global site controls only.
   Used by include/header.php.
   ========================================================= */

body {
    padding-bottom: 96px;
}

.site-bottom-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 999;
    background: rgba(250, 246, 236, 0.96);
    border: 1px solid #e7decd;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(45, 55, 40, 0.14);
    backdrop-filter: blur(10px);
}

.bottom-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bottom-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
    color: #365b34;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.bottom-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #365b34;
    color: #faf6ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bottom-search {
    flex: 1;
}

.bottom-search input {
    width: 100%;
    border: 1px solid #ded5c4;
    background: #fffdf7;
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 14px;
    outline: none;
    color: #2f332c;
}

.bottom-search input:focus {
    border-color: #4a7146;
    box-shadow: 0 0 0 3px rgba(74, 113, 70, 0.14);
}

.bottom-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bottom-nav a {
    color: #33402f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bottom-nav a:hover {
    color: #365b34;
}

.bottom-create-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #365b34;
    color: #faf6ec !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px !important;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(54, 91, 52, 0.3);
}

@media (max-width: 800px) {
    .site-bottom-bar {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .bottom-bar-inner {
        gap: 10px;
        padding: 10px;
    }

    .bottom-brand span:last-child {
        display: none;
    }

    .bottom-brand {
        min-width: auto;
    }

    .bottom-nav {
        gap: 10px;
    }

    .bottom-nav a {
        font-size: 12px;
    }

    .bottom-create-btn {
        width: 44px;
        height: 44px;
    }
}


/* =========================================================
   06. LANDING PAGE / LOGIN PAGE
   Used by index.php.
   ========================================================= */
.hero-section {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(to bottom, #dbeafe, #eaf4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 50px 30px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('images/hero-bg.jpg') center center / cover no-repeat;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
}

.logo-circle {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 20px;
    font-weight: 800;
    color: #111827;
}

.hero-text p {
    font-size: 28px;
    line-height: 1.5;
    color: var(--text-soft);
}

.hero-images {
    flex: 1;
    min-height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    background: white;
}

.image-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card-large {
    width: 360px;
    height: 440px;
    position: relative;
    z-index: 2;
}

.image-card-small {
    width: 280px;
    height: 360px;
    position: absolute;
    right: -30px;
    top: 20px;
    z-index: 3;
}

.auth-section {
    min-height: 40vh;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px 60px;
}

.auth-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.login-box,
.signup-box {
    flex: 1;
    max-width: 420px;
}

.login-box h2,
.signup-box h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #111827;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-box input {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    outline: none;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-box input:focus {
    border-color: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.login-box button {
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    padding: 18px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #1877f2, #2f80ed);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.login-box button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.forgot-link {
    display: inline-block;
    margin-top: 22px;
    color: #1877f2;
    font-size: 16px;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.signup-box p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-soft);
    margin-bottom: 28px;
}

.signup-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 18px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #19c2d1, #23c6b6);
    color: white;
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.signup-button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}


/* =========================================================
   07. AUTH + FORM PAGES
   Used by register.php, forgot_password.php, create_group.php,
   create_post.php, edit_profile.php, and topic/settings forms.
   ========================================================= */
.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--bg-page);
}

.register-card {
    width: 100%;
    max-width: 460px;
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-auth-card);
}

.register-card h1 {
    font-size: 30px;
    margin-bottom: 8px;
    color: #111827;
    text-align: center;
}

.register-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-form input,
.register-form select,
.register-form textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    background: white;
}

.register-form textarea {
    resize: vertical;
    font-family: Arial, Helvetica, sans-serif;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
    border-color: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.register-form button {
    margin-top: 6px;
    border: none;
    border-radius: 999px;
    padding: 15px;
    background: linear-gradient(135deg, #19c2d1, #2f80ed);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.register-form button:hover {
    opacity: 0.96;
}

.register-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.register-footer a {
    color: #2f80ed;
    text-decoration: none;
}

.register-footer a:hover {
    text-decoration: underline;
}

.form-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: -6px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
}

.checkbox-row input {
    width: auto;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}


/* =========================================================
   08. DASHBOARD LAYOUT
   Used mainly by dashboard.php.
   ========================================================= */

.dashboard-layout {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 26px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.page-content {
    flex: 1;
    min-width: 0;
}

/* MAIN DASHBOARD AREA */

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* HERO / WELCOME CARD */

.dashboard-welcome-card {
    background:
        linear-gradient(
            135deg,
            #eef7eb 0%,
            #f6f3ea 100%
        );

    border-radius: 24px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    box-shadow:
        0 10px 30px rgba(50, 60, 45, 0.08);
}

.dashboard-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: #6d7765;
    margin-bottom: 8px;
}

.dashboard-welcome-card h1 {
    font-size: 40px;
    line-height: 1.05;
    color: #243126;
    margin-bottom: 12px;
}

.dashboard-welcome-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #677065;
    max-width: 620px;
}

/* CREATE BUTTON */

.dashboard-create-button {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 24px;
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #365b34,
            #4a7146
        );

    color: white;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    box-shadow:
        0 10px 22px rgba(54, 91, 52, 0.25);

    transition:
        transform .15s ease,
        opacity .15s ease,
        box-shadow .15s ease;
}

.dashboard-create-button:hover {
    opacity: 0.96;
    transform: translateY(-1px);

    box-shadow:
        0 14px 28px rgba(54, 91, 52, 0.32);
}

/* FEED SECTION */

.dashboard-feed-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-feed-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-feed-heading h2 {
    font-size: 24px;
    color: #243126;
}

/* FEED AREA */

.feed-area {
    flex: 1;
    min-width: 0;
}

.feed-area h1 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-main);
}

/* LOADERS */

#loading-posts,
#no-more-posts {
    padding: 16px 0;
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-content {
        width: 100%;
    }

    .site-sidenav {
        width: 100%;
    }
}

@media (max-width: 700px) {

    .dashboard-layout {
        padding: 16px;
    }

    .dashboard-welcome-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .dashboard-welcome-card h1 {
        font-size: 32px;
    }

    .dashboard-create-button {
        width: 100%;
    }

    .dashboard-feed-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =========================================================
   08B. GLOBAL SIDENAV
   Section 1 application navigation.
   Used by include/sidenav.php.
   ========================================================= */

.site-sidenav {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidenav-profile-card,
.sidenav-section {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.sidenav-profile-card {
    text-align: center;
}

.sidenav-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 4px solid #eef6ec;
}

.sidenav-profile-card h2 {
    font-size: 20px;
    margin-bottom: 4px;
    color: #243126;
}

.sidenav-username {
    font-size: 13px;
    color: #7b8478;
    margin-bottom: 18px;
}

.sidenav-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.sidenav-stats strong {
    display: block;
    font-size: 18px;
    color: #243126;
}

.sidenav-stats span {
    font-size: 12px;
    color: #7b8478;
}

.sidenav-section h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6f776c;
    margin-bottom: 14px;
}

.sidenav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidenav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #314030;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s ease;
}

.sidenav-links a:hover {
    background: #f3f6ef;
}

.sidenav-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #365b34;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
}

.sidenav-empty {
    color: #7b8478;
    font-size: 13px;
}

@media (max-width: 900px) {
    .site-sidenav {
        width: 100%;
    }
}

.sidenav-event-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sidenav-event-tabs a {
    flex: 1;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f3f6ef;
    color: #314030;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.sidenav-event-tabs a.active-event-tab {
    background: #365b34;
    color: #fffdf8;
}

.sidenav-event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidenav-event-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8faf6;
    color: inherit;
    text-decoration: none;
}

.sidenav-event-card:hover {
    background: #eef3ea;
}

.sidenav-event-card strong {
    font-size: 13px;
}

.sidenav-event-card span,
.sidenav-event-card small {
    font-size: 12px;
    color: #7a8172;
}
.sidenav-event-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: inherit;
    text-decoration: none;
}

.sidenav-rsvp-form {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.sidenav-rsvp-form button {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 6px 8px;
    background: #eef3ea;
    color: #314030;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.sidenav-rsvp-form button:hover {
    background: #365b34;
    color: #fffdf8;
}
/* =========================================================
   09. SIDEBAR CARDS
   Used by dashboard.php, group.php, profile.php.
   ========================================================= */
.profile-card,
.sidebar-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.profile-card {
    text-align: center;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 3px solid var(--teal-100);
}

.profile-card h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.profile-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.profile-stats-list {
    margin: 16px 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-soft);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span {
    color: var(--text-soft);
}

.stat-row strong {
    color: var(--text-main);
    font-weight: 700;
}

.profile-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.profile-stat {
    text-align: center;
}

.profile-stat strong {
    display: block;
    font-size: 18px;
    color: var(--text-main);
}

.profile-stat span {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.group-list,
.quick-links {
    list-style: none;
}

.group-list li,
.quick-links li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-soft);
}

.create-group-item {
    margin-top: 8px;
}

.create-group-link {
    display: block;
    font-weight: 600;
    color: var(--teal-500);
    text-decoration: none;
}

.create-group-link:hover {
    text-decoration: underline;
}

.member-role {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: capitalize;
}

.site-sidenav {
    width: 280px;
    flex-shrink: 0;
}

.sidenav-profile-card,
.sidenav-section {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    margin-bottom: 18px;
}

.sidenav-profile-card {
    text-align: center;
}

.sidenav-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 4px solid var(--teal-100);
}

.sidenav-profile-card h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.sidenav-username {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.sidenav-stats {
    display: flex;
    justify-content: center;
    gap: 26px;
}

.sidenav-stats strong {
    display: block;
    font-size: 18px;
}

.sidenav-stats span {
    font-size: 12px;
    color: var(--text-muted);
}

.sidenav-section h3 {
    font-size: 14px;
    margin-bottom: 14px;
}

.sidenav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidenav-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
}

.sidenav-links a:hover {
    background: #f3f4f6;
}

.sidenav-badge {
    background: var(--indigo-700);
    color: white;
    font-size: 11px;
    border-radius: 999px;
    padding: 3px 7px;
}

.sidenav-empty {
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================================
   10. FEED + POST CARDS
   Used by dashboard.php, group.php, profile.php, post.php.
   ========================================================= */
.post-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.post-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal-100);
}

.post-user h4 {
    font-size: 14px;
    color: var(--text-main);
}

.post-user h4 span {
    color: var(--text-muted);
    font-weight: normal;
}

.post-user p {
    font-size: 12px;
    color: #9ca3af;
}

.post-body p {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.5;
}

.post-image {
    width: 100%;
    max-height: 680px;

    object-fit: contain;

    border-radius: 16px;
    margin-top: 12px;
    display: block;

    background: #f4f1e8;
    border: 1px solid #e9e1d2;
}

.post-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    gap: 14px;
}

.post-actions a {
    font-size: 13px;
    color: var(--indigo-700);
    font-weight: 600;
    text-decoration: none;
}

.post-actions a:hover {
    color: var(--teal-500);
}

.deleted-post-note {
    color: #9ca3af;
    font-style: italic;
}


/* =========================================================
   11. COMMENTS + REPLIES
   Used by dashboard.php, group.php, post.php, delete_comment.php.
   ========================================================= */
.comments-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.comment-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.comment-item strong {
    font-size: 13px;
}

.comment-item strong a {
    color: var(--indigo-700);
    text-decoration: none;
}

.comment-item strong a:hover {
    text-decoration: underline;
}

.comment-item p {
    font-size: 13px;
    margin-top: 4px;
    color: var(--text-main);
}

.comment-form,
.comment-reply-form {
    display: flex;
    gap: 8px;
}

.comment-form {
    margin-top: 10px;
}

.comment-reply-form {
    margin-top: 8px;
}

.comment-form input,
.comment-reply-form input {
    flex: 1;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-size: 13px;
}

.comment-form input {
    padding: 10px 12px;
}

.comment-reply-form input {
    padding: 8px 10px;
}

.comment-form button {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--teal-500), var(--indigo-700));
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.comment-reply {
    margin-left: 24px;
    margin-top: 10px;
    padding: 10px;
    background: #ffffff;
    border-left: 3px solid var(--teal-100);
    border-radius: 8px;
}

.comment-reply-form button,
.comment-delete-button {
    border: none;
    background: none;
    color: var(--indigo-700);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.comment-delete-button:hover,
.comment-reply-form button:hover {
    color: var(--teal-500);
}


/* =========================================================
   12. PROFILE PAGES
   Used by profile.php and edit_profile.php.
   ========================================================= */

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

/* HERO */

.profile-hero-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.profile-banner-placeholder {
    height: 150px;
    background:
        linear-gradient(
            135deg,
            #e7efe1 0%,
            #f7efe0 100%
        );
    position: relative;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,0.75),
            transparent 45%
        );
}

.profile-hero-body {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 24px;
    margin-top: -58px;
    position: relative;
    z-index: 2;
}

.profile-hero-avatar {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-card);
    background: var(--bg-card);
    box-shadow: 0 10px 24px rgba(70, 72, 55, 0.14);
    flex-shrink: 0;
}

.profile-hero-main {
    flex: 1;
    padding-top: 58px;
    min-width: 0;
}

.profile-hero-main h1 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 6px;
    color: #243126;
}

.profile-username {
    font-size: 14px;
    color: #7a8172;
    margin-bottom: 8px;
}

.profile-hero-meta {
    font-size: 14px;
    color: #7a8172;
    margin-bottom: 14px;
}

.profile-bio {
    font-size: 15px;
    color: #4d584a;
    line-height: 1.7;
    max-width: 760px;
}

.profile-hero-actions {
    width: 180px;
    flex-shrink: 0;
    padding-top: 58px;
}

.profile-action-form {
    margin: 0;
}

.profile-action-form .profile-btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* TABS */

.profile-section-tabs {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-section-tabs a,
.profile-tabs a {
    padding: 10px 16px;
    border-radius: 999px;
    background: transparent;
    color: #52614e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background .15s ease, color .15s ease;
}

.profile-section-tabs a:hover,
.profile-tabs a:hover {
    background: #f0f4ec;
}

.profile-section-tabs a.active-tab,
.profile-tabs a.active-tab {
    background: #365b34;
    color: #fffdf8;
}

/* CONTENT */

.profile-section-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-section-heading h2 {
    font-size: 24px;
    color: #243126;
}

/* ABOUT */

.profile-about-panel {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.about-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e9e1d2;
}

.about-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-label {
    font-size: 12px;
    font-weight: 800;
    color: #7a8172;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about-value {
    font-size: 15px;
    color: #2e372d;
    line-height: 1.5;
}

/* GROUPS */

.profile-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-group-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.profile-group-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(70, 72, 55, 0.09);
}

.profile-group-card strong {
    color: #243126;
    font-size: 16px;
}

.profile-group-card span {
    color: #7a8172;
    font-size: 13px;
}

/* ACTIVITY */

.profile-activity-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.profile-activity-card p {
    font-size: 14px;
    color: #2e372d;
    line-height: 1.5;
}

.profile-activity-card blockquote {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f4f1e8;
    border-left: 4px solid #6f8c69;
    border-radius: 10px;
    color: #4d584a;
    font-size: 14px;
    line-height: 1.5;
}

.profile-activity-card span {
    display: block;
    margin-top: 10px;
    color: #7a8172;
    font-size: 12px;
}

/* BACKWARD COMPATIBILITY */

.profile-page {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px 32px;
}

.profile-header-card,
.profile-layout,
.profile-sidebar,
.profile-feed,
.profile-tabs {
    /* Kept so older pages/forms do not break while converting layouts. */
}

.profile-meta,
.profile-meta-line {
    color: #7a8172;
}

.profile-meta {
    font-size: 14px;
    margin-bottom: 14px;
}

.profile-meta-line {
    font-size: 13px;
    margin-top: 6px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .profile-hero-body {
        flex-direction: column;
        margin-top: -50px;
    }

    .profile-hero-main,
    .profile-hero-actions {
        padding-top: 0;
        width: 100%;
    }

    .profile-hero-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-hero-main h1 {
        font-size: 28px;
    }

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

@media (max-width: 600px) {
    .profile-banner-placeholder {
        height: 120px;
    }

    .profile-hero-body {
        padding: 18px;
    }

    .profile-hero-main h1 {
        font-size: 24px;
    }

    .profile-section-tabs a {
        flex: 1;
        text-align: center;
    }
}
/* =========================================================
   13. GROUP PAGES + TOPICS
   Used by group.php, create_group.php, group topic settings,
   create_group_topic.php, and member request pages.
   ========================================================= */

.page-content {
    flex: 1;
    min-width: 0;
}

.group-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* HERO */

.group-hero-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.group-banner-placeholder {
    height: 180px;

    background:
        linear-gradient(
            135deg,
            #e8f3e5 0%,
            #f5efe4 100%
        );

    position: relative;
}

.group-banner-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,0.72),
            transparent 42%
        );
}

.group-hero-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;

    padding: 24px;

    margin-top: -64px;

    position: relative;
    z-index: 2;
}

.group-hero-avatar {
    width: 122px;
    height: 122px;

    border-radius: 24px;
    object-fit: cover;

    border: 5px solid white;
    background: white;

    box-shadow:
        0 10px 24px rgba(0,0,0,0.12);

    flex-shrink: 0;
}

.group-hero-main {
    flex: 1;
    min-width: 0;
    padding-top: 60px;
}

.group-hero-main h1 {
    font-size: 36px;
    line-height: 1.05;
    margin-bottom: 10px;
    color: #243126;
}

.group-hero-meta {
    font-size: 14px;
    color: #7a8172;
    margin-bottom: 14px;
}

.group-hero-description {
    font-size: 15px;
    line-height: 1.7;
    color: #4d584a;
    max-width: 760px;
}

.group-hero-actions {
    width: 220px;
    flex-shrink: 0;
    padding-top: 60px;
}

/* SECTION TABS */

.group-section-tabs {
    background: white;
    border-radius: 18px;
    padding: 10px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    box-shadow: var(--shadow-card);
}

.group-section-tabs a {
    padding: 10px 16px;
    border-radius: 999px;

    text-decoration: none;

    color: #52614e;
    font-size: 14px;
    font-weight: 700;

    transition:
        background .15s ease,
        color .15s ease;
}

.group-section-tabs a:hover {
    background: #eef3ea;
}

.group-section-tabs a.active-tab {
    background: #365b34;
    color: #fffdf8;
}

/* FEED */

.group-feed-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.group-feed-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-feed-heading h2 {
    font-size: 24px;
    color: #243126;
}

/* TOPICS */

.group-topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.group-topic-pill {
    padding: 10px 15px;

    border-radius: 999px;

    background: #f1f4ef;

    color: #586555;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.group-topic-pill:hover {
    background: #e7efe1;
    transform: translateY(-1px);
}

.group-topic-pill.active {
    background:
        linear-gradient(
            135deg,
            #365b34,
            #4a7146
        );

    color: white;
}

/* TAB CONTENT */

.group-tab-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* EVENTS */

.group-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.group-event-card {
    background: white;
    border-radius: 18px;

    padding: 18px;

    text-decoration: none;
    color: inherit;

    box-shadow: var(--shadow-card);

    display: flex;
    flex-direction: column;
    gap: 8px;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.group-event-card:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(70, 72, 55, 0.09);
}

.group-event-card strong {
    font-size: 17px;
    color: #243126;
}

.group-event-card span {
    font-size: 13px;
    color: #7a8172;
}

.group-event-card p {
    margin-top: 4px;

    font-size: 14px;
    line-height: 1.6;

    color: #4d584a;
}

/* MEMBERS */

.group-member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.group-member-card {
    background: white;

    border-radius: 18px;

    padding: 20px;

    text-decoration: none;
    color: inherit;

    box-shadow: var(--shadow-card);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.group-member-card:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(70,72,55,0.09);
}

.group-member-card img {
    width: 82px;
    height: 82px;

    border-radius: 50%;
    object-fit: cover;

    margin-bottom: 14px;

    border: 4px solid #eef6ec;
}

.group-member-card strong {
    font-size: 15px;
    color: #243126;
    margin-bottom: 4px;
}

.group-member-card span {
    font-size: 12px;
    color: #7a8172;
    text-transform: capitalize;
}

/* ABOUT */

.group-about-panel {
    background: white;

    border-radius: 20px;

    padding: 24px;

    box-shadow: var(--shadow-card);
}

.group-about-panel h2 {
    font-size: 26px;
    margin-bottom: 18px;
    color: #243126;
}

.group-about-panel p {
    font-size: 15px;
    line-height: 1.7;
    color: #4d584a;
    margin-bottom: 18px;
}

/* TOPIC SETTINGS */

.topic-checkbox-list {
    background: #f8fafc;

    border: 1px solid #e6ebf0;

    border-radius: 12px;

    padding: 14px;
}

/* LOADERS */

#loading-posts,
#no-more-posts {
    padding: 14px 0;
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

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

    .group-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .group-hero-body {
        flex-direction: column;
        margin-top: -52px;
    }

    .group-hero-main,
    .group-hero-actions {
        width: 100%;
        padding-top: 0;
    }

    .group-hero-avatar {
        width: 102px;
        height: 102px;
    }

    .group-hero-main h1 {
        font-size: 30px;
    }

    .group-feed-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 700px) {

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

@media (max-width: 600px) {

    .group-banner-placeholder {
        height: 120px;
    }

    .group-hero-body {
        padding: 18px;
    }

    .group-hero-main h1 {
        font-size: 24px;
    }

    .group-section-tabs a {
        flex: 1;
        text-align: center;
    }

    .group-topic-pill {
        width: 100%;
        text-align: center;
    }
}


/* =========================================================
   14. EVENT POSTS
   Used by create_post.php and group.php upcoming events area.
   ========================================================= */
.event-card-info {
    background: linear-gradient(135deg, var(--teal-100), var(--indigo-100));
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.event-card-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-main);
}

.event-card-info p {
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-soft);
}

.event-list-item {
    margin-bottom: 10px;
}

.event-rsvp-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.event-rsvp-form button {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: #eef3ea;
    color: #314030;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.event-rsvp-form button:hover {
    background: #dfe9d8;
}

.active-rsvp {
    background: #365b34 !important;
    color: #fffdf8 !important;
}

.clear-rsvp-button {
    background: #f3e7e7 !important;
    color: #8b3a3a !important;
}

/* =========================================================
   15. MESSAGES
   Used by messages.php, conversation.php, send_message.php,
   and group messaging pages.
   ========================================================= */
.message-list-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
    color: inherit;
    text-decoration: none;
}

.message-list-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.unread-message-card {
    border-left: 4px solid var(--teal-500);
}

.message-list-content {
    flex: 1;
}

.message-list-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.message-list-top strong {
    font-size: 14px;
    color: var(--text-main);
}

.message-list-top span {
    font-size: 12px;
    color: var(--text-muted);
}

.message-list-content p {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.message-list-content small {
    font-size: 12px;
    color: var(--indigo-700);
    font-weight: 700;
}

.message-sender {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.85;
}

.message-bubble p {
    margin: 0;
}
/* Conversation Page */
.conversation-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message-row {
    display: flex;
    width: 100%;
}

.my-message {
    justify-content: flex-end;
}

.their-message {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.my-message .message-bubble {
    background: linear-gradient(
        135deg,
        var(--teal-500),
        var(--indigo-700)
    );
    color: white;
    border-bottom-right-radius: 4px;
}

.their-message .message-bubble {
    background: #f3f4f6;
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.message-bubble p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 4px;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.message-bubble span {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.message-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.message-form input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-size: 14px;
    outline: none;
    background: white;
}

.message-form input:focus {
    border-color: var(--indigo-700);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.message-form button {
    border: none;
    border-radius: 999px;
    padding: 0 20px;
    background: linear-gradient(
        135deg,
        var(--teal-500),
        var(--indigo-700)
    );
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.message-form button:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

/* =========================================================
   16. NOTIFICATIONS
   Used by notifications.php and dashboard notification snippets.
   Message notifications are intentionally excluded from this
   page; direct messages belong in messages.php.
   ========================================================= */
.profile-notifications {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.notification-item {
    background: linear-gradient(135deg, var(--teal-100), var(--indigo-100));
    color: var(--indigo-700);
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-weight: 600;
}

.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.notification-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
    border-color: #dfe9d8;
    background: #fffefb;
}

.notification-card.unread-notification,
.notification-card.notification-unread {
    border-left: 4px solid #365b34;
    background: linear-gradient(135deg, #fffdf8, #f4f8f0);
}

.notification-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal-100);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p,
.notification-meta {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 6px;
}

.notification-content strong {
    color: #243126;
}

.notification-content span,
.notification-time {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.notification-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3ea;
    color: #365b34;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}


/* =========================================================
   17. EMPTY STATES
   Used wherever no posts, no messages, no notifications,
   no group content, or no comments exist.
   ========================================================= */
.empty-state-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.empty-state-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.empty-state-card p {
    font-size: 14px;
    color: var(--text-muted);
}


/* =========================================================
   18. RESPONSIVE RULES
   Mobile and tablet adjustments across landing, dashboard,
   profile, and group pages.
   ========================================================= */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 700px;
    }

    .logo-circle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text p {
        font-size: 22px;
    }

    .hero-images {
        width: 100%;
        min-height: 500px;
    }

    .image-card-large {
        width: 320px;
        height: 400px;
    }

    .image-card-small {
        width: 240px;
        height: 300px;
        right: 20px;
        top: 40px;
    }

    .auth-container {
        flex-direction: column;
        align-items: center;
    }

    .divider {
        width: 100%;
        max-width: 420px;
        min-height: 1px;
    }
}

@media (max-width: 900px) {
    .dashboard-layout,
    .profile-layout {
        flex-direction: column;
    }

    .sidebar,
    .profile-sidebar {
        width: 100%;
    }

    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 35px 20px;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-images {
        min-height: 370px;
    }

    .image-card-large {
        width: 220px;
        height: 290px;
    }

    .image-card-small {
        width: 170px;
        height: 220px;
        right: 0;
        top: 25px;
    }

    .auth-section {
        padding: 30px 20px 40px;
    }

    .login-box h2,
    .signup-box h2 {
        font-size: 24px;
    }

    .login-box input,
    .login-box button,
    .signup-button {
        font-size: 17px;
        padding: 16px;
    }

    .notification-card,
    .message-list-card {
        padding: 14px;
        border-radius: 14px;
    }

    .notification-content p,
    .notification-meta {
        font-size: 13px;
    }

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

    .message-form button {
        padding: 13px 18px;
    }

    .event-rsvp-form,
    .sidenav-rsvp-form {
        flex-direction: column;
    }
}
