/* ================= GENERAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* ================= DASHBOARD ================= */
.dashboard {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
}

/* ================= COVER AREA ================= */
.cover-area {
    position: relative;
    width: 100%;
    height: 250px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a234d, #1c3a70);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cover-area .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================= COVER EDIT BUTTON ================= */
.cover-area .edit-cover {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
    z-index: 3;
}

.cover-area .edit-cover:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* ================= PROFILE INFO ================= */


.profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: -70px;
    padding-left: 30px;
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
}


/* ================= PROFILE PICTURE ================= */
.profile-pic-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.profile-pic {
    width: 160px;
    height: 160px;
    border: 4px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    flex-shrink: 0;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.edit-profile .edit-avatar {
    background-color: #0a234d;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background 0.2s;
}

.edit-profile .edit-avatar:hover {
    background-color: #1c3a70;
}

/* ================= USERNAME & DETAILS ================= */
.username {
    font-size: 20px;
    font-weight: bold;
    /*color: #7b97c7;*/
    color: #f6f7f8;               /* PURE WHITE */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);

    margin-top: 5px;
}

/* ================= USERNAME & DETAILS ================= */
.username {
    font-size: 20px;
    font-weight: bold;
    color: #f6f7f8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    margin-top: 5px;
}

/* Updated Resilient Details Block */
.user-details {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    margin-top: 10px;
    width: 100%;
}

.detail-item {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px;
    font-weight: 500;
    color: #ffffffcc;
    white-space: nowrap;
}

.detail-item i {
    color: #94d2f1;
    font-size: 14px;
    width: 20px;
    margin-right: 8px;
    text-align: center;
}

.detail-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
}

/* ================= FOLLOWERS / FOLLOWING ================= */


/* ================= FOLLOWERS / FOLLOWING ================= */

.profile-info .stats {
    display: flex;
    gap: 15px;
    margin-top: 6px;
    margin-left: 0px;
    padding: 0;
    background: none;
    color: #ffffff;               /* PURE WHITE */
    font-size: 13px;
    font-weight: 600;
}

.profile-info .stats div {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
}

.profile-info .stats b {
    font-weight: 700;
    color: #ffffff;
}

/* ================= POST BOX ================= */
.post-box {
    margin-top: 20px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.post-box textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    font-size: 14px;
    margin-bottom: 10px;
    min-height: 80px; /* Minimum height so it's not too small */
    
}

.post-box input[type="file"] {
    margin-bottom: 10px;
}

.post-box button {
    padding: 8px 16px;
    background: #0a234d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.post-box button:hover {
    background: #1c3a70;
}

/* ================= PROFILE TABS ================= */
.profile-tabs {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap; /* ensures tabs wrap on smaller screens */
}

.profile-tabs a {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    background: #ddd;
    color: #333;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
    text-align: center;
}

.profile-tabs a:hover {
    background: #bbb;
}

.profile-tabs a.active {
    background: #0d2a5e;
    color: #fff;
}

/* ================= POST CARD ================= */
.post-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    
    display: block;
}
.post-crd-padding {
    padding: 12px;
}

/* VISITOR CAPTION LEFT-ALIGNED */
.post-card .post-caption {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    background: #f5f7fa;
    border-left: 4px solid #1a73e8;
    border-radius: 8px;
    white-space: pre-line;
    word-wrap: break-word;
    max-height: 150px;
    overflow-y: auto;
    text-align: left;
}

/* OWNER EDIT TEXTAREA */
.post-card .post-edit-area {
    width: 100%;
    min-height: 70px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    font-size: 14px;
    margin-bottom: 8px;
    box-sizing: border-box;
    text-align: left;
    
}

/* IMAGE BELOW CAPTION */
.post-card img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

/* POST ACTION BUTTONS */
.post-card .post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

/* LIKE BUTTONS */
.like-btn {
    background: none;
    border: none;
    color: #0a234d;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.like-btn i {
    color: #e74c3c;
}

/* COMMENTS COUNTER */
.comment-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0a234d;
    font-weight: bold;
}

.comment-count i {
    font-size: 16px;
}

/* UPDATE / DELETE / CHOOSE IMAGE BUTTONS */
.update-btn, .delete-btn, .edit-btn {
    padding:5px 12px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
    font-size:13px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    transition: 0.2s;
}

.update-btn { background:#1c3a70; color:white; }
.update-btn:hover { background:#0a234d; }
.delete-btn { background:#a60000; color:white; }
.delete-btn:hover { background:#d00000; }
.edit-btn { background:#0a234d; color:white; }
.edit-btn:hover { background:#1c3a70; }

/* ================= POST COMMENTS ================= */
.post-comments {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-comments p {
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    max-width: 80%;
    word-wrap: break-word;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.post-comments p b {
    color: #0a234d;
    margin-right: 6px;
}

.post-comments p span.timestamp {
    font-size: 11px;
    color: #888;
    margin-left: 8px;
}

/* ================= COMMENT INPUT ================= */
.comment-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.comment-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.comment-form button {
    padding: 6px 16px;
    border-radius: 20px;
    background: #0a234d;
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form button:hover {
    background: #1c3a70;
}

/* ================= PORTFOLIO ADD BOX ================= */
.portfolio-box {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.portfolio-box input[type="text"],
.portfolio-box textarea,
.portfolio-box input[type="file"] {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.portfolio-box button {
    padding: 8px 16px;
    background: #0a234d;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.portfolio-box button:hover {
    background: #1c3a70;
}

/* ================= PORTFOLIO CARD ================= */

.portfolio-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    margin-bottom: 15px;
    
    display: block;
}

/* VISITOR CAPTION LEFT-ALIGNED */
.portfolio-card .post-caption {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    background: #f5f7fa;
    border-left: 4px solid #1a73e8;
    border-radius: 8px;
    white-space: pre-line;
    word-wrap: break-word;
    max-height: 150px;
    overflow-y: auto;
    text-align: left;
}

/* IMAGE BELOW CAPTION */
.portfolio-card img.portfolio-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    
    display: block;
    margin-bottom: 10px;
}

/* OWNER EDIT FIELDS */
.portfolio-card input[type="text"],
.portfolio-card textarea {
    width: 100%;
    border: 1px solid #ccc;
    background: #fefefe;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    text-align: left;
    
    min-height: 70px; /* Minimum height so it's not too small */
    

}

.portfolio-card input[type="text"]:focus,
.portfolio-card textarea:focus {
    border: 1px solid #1a73e8;
    outline: none;
}

/* PORTFOLIO ACTION BUTTONS */
.portfolio-card .post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.profile-content {
    margin: 0px;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {
    .profile-info { padding-left: 20px; margin-top: -40px; }
    .profile-pic { width: 90px; height: 90px; }
    .username { font-size: 18px; }
    
    .profile-info .stats { gap: 15px; font-size: 13px; }
    .cover-area { height: 180px; }
    .post-actions { flex-wrap: wrap; }
}


/* ===== FORCE CLEAN WHITE STATS (NO BOXES) ===== */
.profile-info .stats,
.profile-info .stats div {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ================= USER BIO ================= */
/* ================= USER BIO ================= */
/* ================= USER BIO ================= */
.user-bio{
    width:70%;
    margin:6px 0 8px 0;
    padding:0;
    font-size:14px;
    line-height:1.6;
    color:#b5cbe0;
    word-break:break-word;
    white-space:normal;
    text-align:left;
}


/* ===== FOLLOW / UNFOLLOW BUTTONS ===== */
.follow-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}



.follow-box button {
    width: 100px;
    padding: 10px 0;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.4px;
}

/* Follow */
.follow-btn {
    background: linear-gradient(135deg,#1da1f2,#0a234d);
    color: white;
}
.follow-btn :hover {
    background: linear-gradient(135deg,#0a234d,#1da1f2);
}   

/* Unfollow */
.unfollow-btn {
    background: #e8e8e8;
    color: #333;
}

.unfollow-btn:hover {
    background: #ccc;
}   


/* ================= FOLLOW / UNFOLLOW SOFT DEPTH ================= */
.contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 5px;
    
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1.2em;
    height: 1.2em;
    min-width: 40px;
    min-height: 40px;

    border-radius: 50%;
    text-decoration: none;

    font-size: 1.8rem;
    line-height: 1;

    color: #fff;
}

.message-btn { background: #007bff; }
.whatsapp-btn { background: #25D366; }
.email-btn { background: #6c757d; }
.call-btn { background: #28a745; font-size: 1.4rem;}
.info-btn{ background:#1d63aa ;}

.icon-btn:hover {
    opacity: 0.85;
}


.update-btn[name="follow"],
.delete-btn[name="unfollow"]{
    transition: all .18s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,.18);
}

/* Gentle lift */
.update-btn[name="follow"]:hover,
.delete-btn[name="unfollow"]:hover{
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0,0,0,.28);
}

/* Soft press */
.update-btn[name="follow"]:active,
.delete-btn[name="unfollow"]:active{
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
/* ===================================Contactinfor display================*/


/* =================== Contact Info Section =================== */
.contact-info-section {
    background: #ffffff; /* clean white for corporate look */
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 10px;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* subtle shadow for depth */
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;


/* Animation */

    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
    will-change: max-height, opacity, transform;
}

/* Section title */
.contact-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a; /* dark text for professional look */
    border-bottom: 2px solid #e0e0e0; /* subtle line under title */
    padding-bottom: 6px;
}

/* Each row with icon + text */
.contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px; /* spacing between icon and text */
}

/* Remove margin for last row */
.contact-row:last-child {
    margin-bottom: 0;
}

/* Icons styling */
.contact-icon {
    font-size: 18px;
    color: #0a234d; /* corporate blue */
    min-width: 22px;
    text-align: center;
}

/* Optional action icons (call/whatsapp) */
.contact-action-icon {
    font-size: 18px;
    margin-left: 6px;
    color: #0a234d;
}

/* Contact text styling */
.contact-text {
    font-size: 14px;
    color: #333; /* dark grey for readability */
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none; /* remove underline */
}

/* Disable hover effects */
.contact-text:hover,
.contact-action-icon:hover,
.contact-icon:hover {
    text-decoration: none !important;
    color: inherit !important;
    cursor: default;
}

/* Professional colors */
.dark-grey { color: #333; }
.blue-text { color: #0a234d; font-weight: 600; }
.red-text { color: #b02a37; font-weight: 500; }



/* Responsive tweaks */
@media (max-width: 768px) {
    .contact-info-section {
        padding: 15px 20px;
    }
    .contact-text {
        font-size: 13px;
    }
    .contact-icon,
    .contact-action-icon {
        font-size: 16px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .contact-info-section {
        padding: 12px 16px;
    }
    .contact-icon { width: 20px; font-size: 14px; }
    .contact-text { font-size: 13px; }
}




@media (max-width: 768px) {
    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
    .whatsapp-btn { background: #25D366; font-size: 1.9em;}
    .call-btn { background: #28a745; font-size: 1.3rem;}
}

/* 1. Hide all toggle checkboxes (static and dynamic) */
#rqbx, 
.request-toggle-check,
[id^="rqbx_"] {
    display: none !important;
}

/* 2. Unified Dropdown Container Styles */
.contact-info-section, 
.request-dropdown-content,
.request-dropdown-section {
    display: none; /* Hidden by default */
    margin-top: 15px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

/* 3. The Toggle Logic: The magic "+" selector */
#rqbx:checked + .contact-info-section,
#rqbx:checked + .request-dropdown-section,
.request-toggle-check:checked + .request-dropdown-content,
.request-toggle-check:checked + .request-dropdown-section,
[id^="rqbx_"]:checked + .request-dropdown-section,
[id^="rqbx_"]:checked + .request-dropdown-content {
    display: block !important;
    animation: slideDown 0.3s ease-out forwards;
}

/* 4. Smooth Slide & Fade Animation */
@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 5. Form Element Styling */
.request-msg {
    width: 100%;
    min-height: 80px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 10px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.rqstbtn {
    margin-top: 10px;
    width: 80%;
    padding: 12px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.rqstbtn:hover {
    background-color: #1d4ed8;
}

.word-counter {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}





/* =================== Request Dropdown Section =================== */

/* ================= TOGGLE LOGIC (MERGED) ================= */

/* Hide all logic-controlling checkboxes */
#checkbx, 
.request-toggle-check,
[id^="rqbx_"] {
    display: none !important;
}

/* 1. Contact Info Section - Initial State */
.contact-info-section {
    display: block !important; /* Must be block for max-height transition */
    background: #ffffff;
    padding: 0 20px; /* Padding is handled by max-height */
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.4s ease;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* 2. Request Section - Initial State */
.request-dropdown-section {
    display: none; /* Uses display toggle for form safety */
    margin-top: 15px;
    padding: 5px;
    background: #e4e8eb;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
}

/* 3. SHOW LOGIC */

/* Show Info Section: Uses ~ to find the div anywhere inside contact-wrapper */
#checkbx:checked ~ .contact-info-section {
    max-height: 500px;
    opacity: 1;
    padding: 15px 20px;
    transform: translateY(0);
    margin-top: 10px;
}

/* Show Request Section: Uses + for immediate sibling */
[id^="rqbx_"]:checked + .request-dropdown-section {
    display: block !important;
    animation: slideDown 0.3s ease-out forwards;
}

/* ================= REQUEST BUTTON STYLING ================= */

/* Style the 'Request' Label so it looks like the Follow button */
label[for^="rqbx_"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 180px;
    padding: 10px 0;
    background: #0a7ce7; /* Match your corporate theme */
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    text-align: center;
}

label[for^="rqbx_"]:hover {
    background: #3067cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ================= ANIMATION & FORM DECOR ================= */

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.request-msg {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
    margin-bottom: 5px;
}


/* Final override to prevent any other CSS from breaking the alignment */
@media screen and (max-width: 768px) {
    .user-details {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .detail-divider {
        display: none !important;
    }
    .detail-item {
        font-size: 13px !important;
    }
}