/* ------------------------- */
/* GLOBAL STYLES & VARIABLES */
/* ------------------------- */
:root {
    --primary-color: #281D52;
    --secondary-color: #C82B89;
    --accent-color: #F5D41F;
    --text-dark: #FFFFFF;
    --text-light: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F0F0F0;
    --border-color: rgba(40, 29, 82, 0.21);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #FAFAFA;
    color: #333;
}

* {
    box-sizing: border-box;
}

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

.card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-white);
}

.icon-btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.icon-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.icon-btn.primary { background-color: var(--primary-color); color: white; }
.icon-btn.secondary { background-color: var(--secondary-color); color: white; }
.icon-btn.light { background-color: #E7E3E8; color: var(--primary-color); }

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


/* ------------------------- */
/* HEADER SECTION */
/* ------------------------- */
.site-header {
    background-color: var(--primary-color);
    min-height: 147px;
    padding-top: 55px;
    padding-bottom: 51px;
}

.header-container {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 45px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon-wrapper {
    position: relative;
    width: 43px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-bg { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.social-icon { position: relative; z-index: 1; }

.standard-badge {
    background: #d1d3d2;
    border-radius: 10px;
    padding: 12px 27px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 26px;
}
.standard-badge span {
    font-size: 26px;
    font-weight: 600;
    color: #000;
}

/* ------------------------- */
/* HERO SECTION */
/* ------------------------- */
.profile-hero-section {
    position: relative;
    margin-top: -99px; /* This creates the overlap effect */
    padding-bottom: 33px;
}

.profile-header-grid {
    display: flex;
    align-items: flex-end;
    gap: 26px;
    position: relative;
    z-index: 10;
}

.profile-avatar-wrapper { flex-shrink: 0; }
.profile-avatar {
    width: 262px;
    height: 263px;
    border-radius: 50%;
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.25);
    border: 5px solid white;
}

.profile-info-main {
    display: flex;
    flex-direction: column;
    gap: 27px;
    padding-bottom: 13px;
    flex-grow: 1;
}

.profile-info-top {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-name { font-size: 53px; font-weight: 600; margin: 0; line-height: 1; }

.ref-id-card {
    background-color: var(--bg-light-gray);
    border-radius: 10px;
    padding: 15px 26px;
    display: flex;
    gap: 7px;
    font-size: 17px;
    font-weight: 700;
}
.ref-id-value { color: var(--secondary-color); }

.rating-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: white;
}
.stars img { width: 32.6px; }
.views-count { font-size: 17px; font-weight: 700; color: var(--primary-color); margin-left: 5px; }

.profile-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 708px) minmax(0, 387px);
    gap: 28px;
    margin-top: 21px;
    align-items: start;
}

.contact-info-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px 30px;
    padding: 36px;
}
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-text { font-size: 18px; font-weight: 400; word-break: break-all; }

.endorsement-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 28px;
}
.endorsement-title { font-size: 19px; font-weight: 600; margin: 0; text-align: center; }
.endorsement-stars {
    background-color: var(--bg-light-gray);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}
.captcha-input { border: 0.6px solid rgba(40, 29, 82, 0.3); border-radius: 6px; display: flex; align-items: center; }
.captcha-input span { padding: 17px; font-weight: 600; color: var(--primary-color); background-color: var(--bg-white); border-radius: 6px 0 0 6px; }
.captcha-input input { border: none; background: transparent; padding: 17px; flex-grow: 1; font-size: 15px; min-width: 0; }
.submit-btn-pro { background-color: var(--accent-color); border: none; border-radius: 3px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; }


/* ------------------------- */
/* MAIN CONTENT SECTION */
/* ------------------------- */
.main-content-section { padding-top: 28px; padding-bottom: 64px; }
.main-content-grid {
    display: grid;
    grid-template-columns: 512px 1fr;
    gap: 29px;
    align-items: start;
}
.profile-sidebar { display: flex; flex-direction: column; gap: 24px; }
.card-title { font-size: 22px; font-weight: 600; margin: 0 0 16px 0; }

.profile-summary-card { background-color: #e7e3e8; border: none; padding: 33px;box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; card-text }
.profile-summary-card .card-text { font-size: 22px; font-weight: 300; line-height: 1.5; margin: 0; border-radius: 10px;}

.education-card, .experience-card, .highlights-card { padding: 33px; }
.education-item, .experience-item { display: flex; gap: 20px; align-items: flex-start; }
.education-icon-wrapper { background-color: #1d2254; border-radius: 8px; width: 87px; height: 72px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.experience-icon-wrapper { background-color: #1d2254; border-radius: 8px; width: 87px; height: 74px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; color: white; font-size: 27px; font-weight: 600; }
.education-details h3, .experience-details h3 { font-size: 20px; font-weight: 500; margin: 0 0 4px 0; }
.education-details p, .experience-details p { margin: 0 0 4px 0; font-size: 17px; color: #000; }
.experience-desc { font-weight: 300; font-size: 15px; }

.highlight-items { display: flex; flex-direction: column; gap: 18px; }
.highlight-item { display: flex; align-items: center; padding: 24px; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 7px; font-size: 20px; font-weight: 300; }
.highlight-item img:first-child { margin-right: 20px; }
.highlight-item span { flex-grow: 1; }

.post-feed { border: 1px solid var(--border-color); border-radius: 14px; padding: 31px; display: flex; flex-direction: column; align-items: center; gap: 20px; background-color: white; }
.post-filters { display: flex; gap: 15px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-btn { color:#000; background-color: #f6f6f6; border: 1px solid transparent; border-radius: 5px; padding: 15px 25px; font-size: 17px; font-weight: 600; cursor: pointer; }
.filter-btn.active { border-color: var(--primary-color); background-color: transparent; }
.post-card { background-color: var(--bg-light-gray); border-radius: 10px; width: 100%; overflow: hidden; }
.post-header { display: flex; align-items: center; gap: 24px; padding: 20px; }
.post-avatar { width: 92px; height: 92px; border-radius: 50%; }
.post-author-info { flex-grow: 1; }
.post-author-name { font-size: 25px; margin: 0; }
.post-author-handle { font-size: 20px; font-weight: 300; margin: 0; }
.post-image { width: 100%; height: auto; display: block; }
.post-actions { display: flex; justify-content: space-around; padding: 20px; }
.post-action-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--primary-color); }
.see-all-posts-btn { border: 1px solid var(--primary-color); background: none; border-radius: 5px; padding: 15px 20px; font-size: 17px; cursor: pointer; margin-top: 20px; }
.pagination { display: flex; gap: 20px; margin-top: 30px; }
.pagination-btn { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 4px; font-weight: 600; font-size: 16px; }
.pagination-btn.prev { border: 1px solid rgba(40, 29, 82, 0.4); color: rgba(40, 29, 82, 0.4); }
.pagination-btn.next { border: 1px solid var(--primary-color); color: var(--primary-color); }


/* ------------------------- */
/* FOOTER SECTION */
/* ------------------------- */
/* .site-footer { background-color: var(--primary-color); color: var(--text-light); padding-top: 27px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; padding-bottom: 40px; }
.footer-column h4 { font-family: 'Lexend', sans-serif; font-size: 19px; margin-bottom: 14px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-column ul a { font-family: 'Manrope', sans-serif; font-size: 13px; }
.about-column p { font-family: 'Manrope', sans-serif; font-size: 13.7px; line-height: 1.36; margin: 0; }
.learn-more { color: var(--secondary-color); }
.footer-bottom { background-color: #1D1D1D; text-align: center; padding: 25px 20px; }
.footer-bottom p { margin: 0; font-size: 17.6px; } */

/* ------------------------- */
/* RESPONSIVE MEDIA QUERIES  */
/* ------------------------- */

/* LAPTOPS & LARGE TABLETS (<= 1200px) */
@media (max-width: 1200px) {
    .profile-details-grid { grid-template-columns: 1fr; }
    /* .footer-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } */
    .about-column { grid-column: 1 / -1; }
}

/* TABLETS (<= 992px) */
@media (max-width: 992px) {
    .header-container { flex-direction: column; gap: 20px; align-items: center; }
    .site-header { padding: 20px 0; }

    .profile-hero-section { margin-top: -50px; }
    .profile-header-grid { align-items: center; flex-direction: column; text-align: center;}
    .profile-info-main { align-items: center; }
    .profile-info-top { justify-content: center; }
    .profile-avatar { width: 200px; height: 200px; }
    .profile-name { font-size: 42px; }

    .main-content-grid { grid-template-columns: 1fr; }
}

/* MOBILE DEVICES (<= 768px) */
@media (max-width: 768px) {
    .profile-hero-section { margin-top: 0; padding-top: 30px; }
    .contact-info-card { grid-template-columns: 1fr; }
    .post-feed { padding: 15px; }
    .post-header { gap: 15px; flex-direction: column; text-align: center; }
    .post-avatar { width: 70px; height: 70px; }
    .post-author-name { font-size: 20px; }
    .post-author-handle { font-size: 16px; }
    .post-actions { flex-direction: column; gap: 15px; align-items: center; }
}

/* SMALL MOBILE DEVICES (<= 480px) */
@media (max-width: 480px) {
    body { font-size: 14px; }
    .container { padding: 0 15px; }
    .profile-avatar { width: 150px; height: 150px; }
    .profile-name { font-size: 32px; }
    .icon-btn { width: 100%; justify-content: center; }
    .card, .education-card, .experience-card, .highlights-card, .profile-summary-card, .contact-info-card { padding: 20px; }
    .post-filters { gap: 10px; }
    .filter-btn { padding: 10px 15px; font-size: 14px; }
}
.icon-btn-group.profile-actions {
    display: flex;
    gap: 15px;
    width: 100%; /* Ensures the container spans the full width */
}

.profile-actions .icon-btn {
    flex: 1; /* Allows each button to grow and take up equal space */
    justify-content: center; /* Centers the text within each button */
}.icon-btn{
    height: 54px;
    width: 170px;
}
.contact-item fa, span{
    font-size: 20px;
    font-weight: 500;
}
.endorsement-stars ul li{
    font-size: 20px;
}
ul #stars{
    margin-bottom: 0px !important;
}
.card-text-p p{
    font-size:18px;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
    border-radius: 10px;
}
/* A container to set the dark background and center the button, similar to the image */
.button-container {
    background-color: #242247; /* Dark purple background from the image */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    height: 100vh; /* Optional: Makes the container fill the screen */
    box-sizing: border-box;
}

/* The main button styling */
.premium-btn {
    /* Font and Text */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.75rem; /* ~28px */
    font-weight: bold;
    color: #000000; /* Black text color */
    text-transform: uppercase;
    letter-spacing: 1.5px;

    /* Background and Border */
    background: linear-gradient(to bottom, #f3e5b4, #d5c080); /* Gold gradient */
    border: none;
    border-radius: 12px; /* Defines the rounded corners */

    /* Spacing and Sizing */
    padding: 16px 50px;

    /* Effects */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* A subtle shadow for depth */
    transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */
}

/* An interactive hover effect to make the button feel more dynamic */
.premium-btn:hover {
    transform: translateY(-3px); /* Lifts the button slightly */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* A subtle effect for when the button is clicked */
.premium-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- KEY CHANGES ARE HERE --- */
.post-feed {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 31px;
    background-color: white;
    max-width: 800px;
    width: 100%;

    /* 1. Set a fixed height for the whole component */
    height: 90vh;

    /* 2. Use Flexbox to manage internal layout */
    display: flex;
    flex-direction: column;
}

.post-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    flex-wrap: wrap;

    /* 3. Prevent the filter section from shrinking */
    flex-shrink: 0;
}

/* The main scrollable container */
.posts-container {
    width: 100%;
    padding: 5px 15px 5px 5px; /* Space for scrollbar */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between cards */

    /* 4. THE MAGIC: Make this container grow and handle overflow */
    flex-grow: 1; /* Allows this element to fill available space */
    overflow-y: auto; /* Enables vertical scrolling ONLY when content exceeds the container's height */
    min-height: 0; /* Important flexbox fix to prevent overflow issues */
}
/* --- END OF KEY CHANGES --- */


/* Styling for the scrollbar (optional but looks nice) */
.posts-container::-webkit-scrollbar {
    width: 8px;
}
.posts-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.posts-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.posts-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.post-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
    /* 5. Prevent cards from shrinking in the flex container */
    flex-shrink: 0;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.post-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.post-author-info {
    flex-grow: 1;
}

.post-author-name {
    font-size: 20px;
    margin: 0;
}

.post-author-handle {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    color: #6c757d;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
}

.post-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #495057;
    font-weight: 600;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.post-action-btn:hover {
    background-color: var(--bg-light-gray);
    color: #281d52;
}

.post-action-btn .fa {
    color: #281d52;
}

.filter-btn {
    color: #000;
    background-color: #f6f6f6;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 15px 25px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e2e2e2;
}

.filter-btn.active {
    border-color: var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
}

.post-card.hide {
    display: none;
}

.video-container {
    background-color: #000;
}

.post-content {
    padding: 0 20px 20px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #343a40;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.dots-btn {
    background: none;
    border: none;
    font-size: 27px;
    color: #888;
    margin-left: 30px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
    position: relative;
}
.dots-btn:active, .dots-btn:hover {
    background: #f9f9fc;
    color: var(--primary-color);
}
.dots-menu {
    position: absolute;
    right: -20px;
    top: 55px;
    background: #fff;
    border: 1px solid #edeef2;
    border-radius: 10px;
    box-shadow: 0 7px 36px #4050b930;
    z-index: 30;
    min-width: 110px;
    display: none;
    flex-direction: column;
    padding: 7px 0;
    animation: popupFade 0.17s;
}
@keyframes popupFade {
    from { opacity: 0; transform: translateY(-5px);}
    to   { opacity: 1; transform: translateY(0);}
}
.form-endorse{
    position: relative;
    left: 200px;
}
/* --- Main Container for the buttons --- */
.pagination-nav {
    display: flex;
    justify-content: center; /* Aligns buttons in the center */
    gap: 16px; /* Creates space between the two buttons */
    margin: 49px 0 0;
}

/* --- General styling for BOTH buttons --- */
.nav-btn {
    /* Flexbox for aligning icon and text perfectly */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between icon and text */

    /* Sizing and Spacing to match the image */
    min-width: 160px;
    padding: 14px 28px;

    /* Appearance & Font */
    font-size: 1rem; /* 16px */
    font-weight: 500;
    text-align: center;
    border-radius: 6px; /* Slightly rounded corners */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* --- Specific styling for the 'Back' button --- */
.prev-btn {
    background-color: #ffffff; /* White background */
    color: #080e4a; /* Dark purple text */
    border: 1px solid #080e4a; /* Light greyish-purple border */
}

/* --- Specific styling for the 'Next' button --- */
.next-btn {
    background-color: rgba(255, 255, 255, 1) !important;
    color: #080e4a; /* White text */
    border: 1px solid #080e4a;
}

/* --- Simple Hover Effects --- */
.prev-btn:hover {
    background-color: #e1e1e1ff; /* Very light purple tint on hover */
    border-color: #080e4a; /* Darken border on hover for emphasis */
    color: #080e4a;
}

.next-btn:hover {
    background-color: #e1e1e1ff; /* Very light purple tint on hover */
    border-color: #080e4a; /* Darken border on hover for emphasis */
    color: #080e4a;
}

.next-btn:hover {
    opacity: 0.9; /* Slightly fade the button on hover */
}

/* --- Icon styling (recommended) --- */
.nav-icon {
    width: 1em; /* Makes the icon size relative to the font size */
    height: 1em;
}
@media only screen and (max-width: 600px) {
    .profile-info-top{
        margin-top: 15px !important;
    }.filter-btn {
        width: 92%; /* Full width on small screens */
    }.dots-btn{
        margin-left: 0px;
        width: 0px;
    }
    .form-endorse{
        position: relative;
        left: 0px;
    }

}
