.active-class{
    background: linear-gradient(to right, rgba(252, 115, 122, 1),rgba(236, 58, 109, 1));
    border: 2px solid #FF939B;
}
.active-class > span > h1{
    color: #fff !important;
}
.active-class > h6{
    color: #fff !important;
}

    .shady{
box-shadow: 0px 6px 15px 0px rgba(24, 39, 75, 0.12);
}

.flexy{
    display: flex;
}

.small-font{
    color: rgba(34, 34, 34, 1);
}

#head-text{
    position: relative;
    left: 1.4rem;
  }
  
  .dashboard__content{
    /*display: none;*/
    margin: 0px;
  }

  .dashboard_title_area{
    margin-top: 2rem;
  }

  .middle {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(255,255,255,1);
    border-radius: 4px;
    margin: 1.5rem;
    padding: 1rem; /* Add consistent padding */
  }
  
  .profile {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: rgba(255,255,255,1);
    padding-right: 0.6rem;
    height: auto;
    gap: 1rem; /* Add gap between profile and details sections */
  }
  
  .profile-dscrp {
    margin: 0; /* Remove inconsistent margin */
    border-radius: 8px; /* Consistent border radius */
    background-color: white;
    padding: 1.5rem; /* Consistent padding */
    width: 25%; /* Adjusted width for better balance */
    height: fit-content; /* Remove fixed height */
    box-shadow: 0px 6px 15px 0px rgba(24, 39, 75, 0.12); /* Add shadow */
  }

  #profile-div{
    justify-content: center;
    margin-bottom: 1rem; /* Add consistent spacing */
  }
  
  .profile-dscrp img {
    border-radius: 1rem;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
  
  #cosmetic{
    padding-bottom: 1rem;
  border-bottom: 1px dashed #999;
  text-decoration: none;
    margin-bottom: 1rem; /* Add consistent margin */
}
  
  .disc {
    padding: 1rem 0; /* Consistent padding */
    border-bottom: 1px solid #cbc7c7;
    text-decoration: none;
    margin-bottom: 1rem; /* Add consistent margin */
  }
  
  #budget-btn{
    border: none;
    background: linear-gradient(to right, rgba(253, 116, 122,1), rgba(235, 54, 108,1));
    color: white;
    margin-top: 1rem; /* Consistent margin */
    width: 100%;
    padding: 0.75rem; /* Add padding */
    border-radius: 8px; /* Add border radius */
    font-weight: 600; /* Better typography */
  }
  
  #budget-btn-out{
    border: none;
    background: linear-gradient(to right, rgba(253, 116, 122,1), rgba(235, 54, 108,1));
    color: white;
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    display: none;
  }
  
  /* Contact Me Button Styles */
  .contact-me-btn{
    border: none;
    background: linear-gradient(to right, rgba(253, 116, 122,1), rgba(235, 54, 108,1));
    color: white;
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .contact-me-btn:hover{
    background: linear-gradient(to right, rgba(235, 54, 108,1), rgba(253, 116, 122,1));
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(235, 54, 108, 0.3);
  }
  
  #contact-me-btn-out{
    display: none;
  }
  
#name {
    font-size: 1.25rem; /* Use relative units */
    font-weight: 600;
    margin-bottom: 0.5rem; /* Add consistent spacing */
  }
  
  #name img {
    margin-left: 0.5rem; /* Consistent spacing for verification badge */
  }
  
  .checked {
    color: rgba(206, 206, 58, 0.816);
  }
  
  .details {
    padding: 0; /* Remove inconsistent padding */
    display: flex;
    flex-direction: column;
    width: 75%; /* Adjusted to balance with profile section */
    height: auto;
    gap: 1rem; /* Add consistent gap between sections */
  }
  
  .media {
    display: flex;
    margin-bottom: 1rem; /* Consistent margin */
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem; /* Consistent gap */
  }
  
  .mobile-media{
    display: none;
  }
  
  .social span{
    display: flex;
    justify-content: space-between;
    align-items: center; /* Better alignment */
  }  
  
  .social img{
    width: 28px; /* Slightly larger for better visibility */
    height: 26px;
  }
  
  .media div {
    display: flex;
    padding: 1rem 1.25rem; /* Consistent padding */
    background-color: white;
    border: 2px solid rgb(238, 237, 237);
    width: -webkit-fill-available;
    height: auto;
    min-height: 5rem; /* Consistent minimum height */
    flex-direction: column;
    border-radius: 12px; /* More consistent border radius */
    transition: all 0.3s ease; /* Smooth transitions */
    box-shadow: 0px 2px 8px 0px rgba(24, 39, 75, 0.08); /* Subtle shadow */
    }
  
  .media div:hover{
    background: linear-gradient(to right, rgba(252, 115, 122, 1),rgba(236, 58, 109, 1));
    border: 2px solid #FF939B;
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0px 6px 15px 0px rgba(24, 39, 75, 0.15); /* Enhanced shadow on hover */
  }
  
  .social:hover h1,.social:hover h6{
    color: white;
  }
  
.social h1 {
    margin: 0; /* Remove default margins */
    font-size: 1.5rem; /* Consistent font size */
    font-weight: 700;
}

.social h6 {
    margin: 0.5rem 0 0 0; /* Consistent margin */
    font-size: 0.875rem; /* Consistent font size */
    font-weight: 500;
    color: #666; /* Better color contrast */
}

/* Instagram Details Section */
.instagram-details {
    margin-top: 0; /* Remove inconsistent margins */
}

.info {
    margin-bottom: 1rem; /* Consistent spacing */
}

.instagram1 {
    background-color: white;
    border-radius: 12px; /* Consistent border radius */
    padding: 1.5rem; /* Consistent padding */
    display: flex;
    gap: 1rem; /* Add gap between left and right sections */
}

.left {
    flex-shrink: 0; /* Prevent shrinking */
}

.image11 {
    width: 100px; /* Consistent size */
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0; /* Add border */
}

.image11 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Consistent spacing */
}

.head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.name img {
    width: 18px;
    height: 18px;
}

.followers_info {
    display: flex;
    gap: 1.5rem; /* Consistent spacing between stats */
}

.followers_info p {
    margin: 0;
    font-size: 0.875rem;
    color: #555;
}

.followers_info p span {
    color: #888;
    font-size: 0.8rem;
}

.bio h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.bio p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Recent Posts Section Improvements */
.recent-posts {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.recent-posts-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.post-item {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-image {
    position: relative;
    width: 100%;
    height: 280px; /* Fixed height for consistent image area */
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
}

.instagram-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.instagram-gradient-bg:hover {
    background: linear-gradient(-45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    background-size: 400% 400%;
    animation: gradientShift 2s ease infinite;
    transform: scale(1.02);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.content-type-indicator {
    margin-bottom: 10px;
}

.content-type-indicator i {
    color: white;
    opacity: 0.9;
}

.content-type-label {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.engagement-preview {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 8px;
}

.engagement-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
}

.view-instruction {
    font-size: 10px;
    margin-top: 8px;
    opacity: 0.8;
}

.instagram-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.instagram-image.stored-image {
    z-index: 2;
}

.instagram-image.fallback-image {
    z-index: 1;
    display: none;
}

.post-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

.post-details {
    padding: 12px;
    background: white;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow shrinking */
}

.post-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-shrink: 0; /* Don't shrink */
}

.engagement-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #666;
    gap: 4px;
}

.engagement-item i {
    font-size: 12px;
}

.text-danger {
    color: #e91e63 !important;
}

.text-primary {
    color: #2196f3 !important;
}

.text-success {
    color: #4caf50 !important;
}

.post-caption {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
    padding: 6px 0;
    border-top: 1px solid #f0f0f0;
    flex: 1; /* Take available space */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.post-date {
    font-size: 10px;
    color: #aaa;
    text-align: right;
    margin-top: auto; /* Push to bottom */
    flex-shrink: 0; /* Don't shrink */
}

/* Stats Section Improvements */
.stats {
    display: flex;
    margin: 1rem 0;
    flex-direction: row;
    width: 100%;
    height: fit-content;
    gap: 1rem;
}

.graph {
    background-color: white;
    display: flex;
    flex-direction: column;
    width: 50%;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0px 2px 8px 0px rgba(24, 39, 75, 0.08);
}

.heading123 {
    padding: 0 0 1rem 0;
    color: #333;
    width: 100%;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
}

.graph-bottom {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.graph-details {
    width: 60%;
    padding: 0.5rem;
    border-right: 1px solid #e0e0e0;
    text-decoration: none;
}

.graph-details div {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #555;
}

.graph-details img {
    margin-right: 0.5rem;
}

.graph-footer span {
    background-color: #ffe9e3;
    display: flex;
    color: #666;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 0 0;
    padding: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    line-height: 1.4;
}

.gauge-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    padding: 0.5rem;
}

.graph-details span {
    color: #333;
    font-weight: 600;
    margin-left: auto;
}

.campaign {
    background-color: white;
    width: 50%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0px 2px 8px 0px rgba(24, 39, 75, 0.08);
}

.campaign #left {
    color: #333;
    font-size: 1.125rem;
    font-weight: 600;
    float: left;
}

.campaign #right {
    color: #333;
    font-size: 1.125rem;
    font-weight: 600;
    float: right;
}

.campaign-head {
    padding: 0 0 1rem 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.campaign img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Commercial Section Improvements */
.My-commercial {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 2px 8px 0px rgba(24, 39, 75, 0.08);
}

.My-commercial #inner-span {
    color: white;
    width: 100%;
    margin: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, rgba(252, 115, 122, 1), rgba(236, 58, 109, 1));
    font-size: 1.125rem;
    font-weight: 600;
}

#commercial {
    width: 100%;
    border-collapse: collapse;
}

table {
    border: 0;
}

.table-head {
    background: linear-gradient(to right, rgba(252, 115, 122, 1), rgba(236, 58, 109, 1));
    display: flex;
    color: white;
    width: 100%;
    font-weight: 600;
}

.table-div {
    padding: 0;
    border: 0;
    width: 100%;
}

#item {
    display: flex;
    width: 40%;
    padding: 1rem;
    justify-content: flex-start;
    align-items: center;
  }
  
#prices {
    display: flex;
    width: 30%;
    padding: 1rem;
    justify-content: center;
    align-items: center;
}

#comments {
    display: flex;
    width: 30%;
    padding: 1rem;
    justify-content: center;
    align-items: center;
  }
  
th {
    background-color: #fc8a8a;
    color: white;
    text-align: center;
    padding: 1rem;
}

tr {
    border-bottom: 1px solid #f0f0f0;
}

tr:last-child {
    border-bottom: none;
}

td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border: none;
    color: #555;
}

td:first-child {
    font-weight: 500;
}

td:nth-child(2) {
    text-align: center;
    font-weight: 600;
    color: #333;
}

td:last-child {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

/* Enhanced Mobile Responsive Design */
@media only screen and (max-width: 967px) {
    .middle {
        margin: 0.5rem;
        padding: 0.75rem;
    }
    
    .profile {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-dscrp {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .details {
        width: 100%;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .graph,
    .campaign {
        width: 100%;
    }
    
    .graph-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .graph-details {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 1rem;
    }
    
    .gauge-chart {
        width: 100%;
        padding: 1rem 0.5rem;
    }
}

@media only screen and (max-width: 767.98px) {
    .dashboard_title_area {
        margin: 0;
    }
    
    .dashboard__content {
        margin: 0;
    }
    
    .details {
        padding: 0;
    }
    
    #head-text {
      display: none;
    }
    
    .middle {
        padding: 0.5rem;
    background-color: #fff1f1;
        margin: 0;
      flex-wrap: wrap;
      flex-direction: column; 
    }
    
    .profile {
        padding: 0;
    background-color: #fff1f1;
    height: fit-content;
        margin-right: 0;
    flex-direction: column;
    }
  
    #budget-btn {
      display: none;
    }
  
    #budget-btn-out {
      display: flex;
        margin: 0;
      justify-content: center;
      align-items: center;
        width: 60%;
      position: relative;
        left: 20%;
        bottom: 1rem;
      z-index: 5;
      height: 2.5rem;
        border-radius: 8px;
    }
    
      /* Contact Me Button Mobile Styles */
  .contact-me-btn {
    display: none;
  }
  
  #contact-me-btn-out {
    display: flex;
    margin: 0;
    justify-content: center;
    align-items: center;
    width: 60%;
    position: relative;
    left: 20%;
    bottom: 1rem;
    z-index: 5;
    height: 2.5rem;
    border-radius: 8px;
  }
  
  /* Contact Send Button Styles */
  .contact-send-btn {
    border: none;
    background: linear-gradient(to right, rgba(253, 116, 122,1), rgba(235, 54, 108,1));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .contact-send-btn:hover {
    background: linear-gradient(to right, rgba(235, 54, 108,1), rgba(253, 116, 122,1));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 54, 108, 0.3);
  }
    
    .mobile-media {
        display: flex;
        width: 100%;
        margin-top: 0.5rem;
        flex-direction: row;
        padding: 0.5rem;
        justify-content: space-between;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }
    
    .mobile-media::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-media div {
        display: inline-block;
        padding: 0.75rem;
        background-color: white;
        min-width: 80px;
        height: auto;
        border-radius: 12px;
        box-shadow: 0px 2px 8px 0px rgba(24, 39, 75, 0.08);
        text-align: center;
        flex-shrink: 0;
    }
    
    .mobile-media div:hover {
        background: linear-gradient(to right, rgba(252, 115, 122, 1), rgba(236, 58, 109, 1));
        color: white;
        transform: translateY(-2px);
    }
    
    .media {
      display: none;
    }
    
    .instagram1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .left {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .right {
        width: 100%;
    }
    
    .image11 {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .followers_info {
        justify-content: center;
      flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
        margin: 1rem 0;
    }
    
    .My-commercial #inner-span {
        text-align: center;
        padding: 1rem;
    }
    
    .table-head {
        display: none;
    }
    
    #commercial {
        margin: 1rem;
    }
    
    #commercial td {
        display: block;
        text-align: left;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    #commercial td:first-child {
        background-color: #f8f9fa;
        font-weight: 600;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px 8px 0 0;
    }
    
    #commercial td:last-child {
        border-radius: 0 0 8px 8px;
        margin-bottom: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media only screen and (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mobile-media div {
        min-width: 70px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .followers_info {
        gap: 0.75rem;
    }
}

/* Campaign Section Improvements */
.campaign-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 16px 0px rgba(24, 39, 75, 0.12);
}

.campaign-image-container {
      position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.campaign-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-dp {
    position: absolute;
    bottom: -20px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.campaign-dp img {
      width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-content {
    padding: 30px 15px 15px 15px;
}

.campaign-brand-info {
    display: flex;
      justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.campaign-brand-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    flex-grow: 1;
}

.campaign-status-badge {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 500;
}

.campaign-status-badge i {
    margin-right: 4px;
}

.campaign-link-text {
    margin: 10px 0;
    font-size: 0.9rem;
}

.campaign-collaboration-link {
    color: #4285f4;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.campaign-collaboration-link:hover {
    color: #1565c0;
    text-decoration: none;
}

.campaign-collaboration-link i {
    margin-right: 5px;
}

.campaign-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.campaign-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
}

.campaign-tag i {
    font-size: 0.7rem;
    color: #999;
}



/* YouTube Specific Styles */
.youtube-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .youtube-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .youtube-posts-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.youtube-post-item {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.youtube-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.youtube-video-container {
    position: relative;
    width: 100%;
    height: 280px; /* Fixed height for consistent video area */
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
}

.youtube-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.youtube-gradient-bg:hover {
    background: linear-gradient(-45deg, #FF0000, #CC0000, #FF4444, #FF0000);
    background-size: 400% 400%;
    animation: youtubeGradientShift 2s ease infinite;
}

@keyframes youtubeGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.content-type-indicator {
    margin-bottom: 10px;
}

.content-type-indicator i {
      color: white;
    opacity: 0.9;
}

.content-type-label {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.engagement-preview {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.engagement-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
}

.view-instruction {
    font-size: 10px;
    margin-top: 8px;
    opacity: 0.8;
}

.youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
      width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.youtube-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255,0,0,0.8);
    border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.2s ease;
}

.youtube-play-button:hover {
    transform: scale(1.1);
}

.youtube-play-button i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    z-index: 3;
}

/* LinkedIn Specific Styles */
.linkedin-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .linkedin-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .linkedin-posts-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.linkedin-post-item {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.linkedin-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.linkedin-post-container {
    position: relative;
    width: 100%;
    height: 280px; /* Fixed height for consistent post area */
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
}

.linkedin-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0077B5, #005582);
      display: flex;
    flex-direction: column;
      align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.linkedin-gradient-bg:hover {
    background: linear-gradient(-45deg, #0077B5, #005582, #0088CC, #0077B5);
    background-size: 400% 400%;
    animation: linkedinGradientShift 2s ease infinite;
}

@keyframes linkedinGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.linkedin-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    z-index: 3;
    backdrop-filter: blur(5px);
}

.video-indicator i {
    margin-right: 2px;
}

/* Blog Specific Styles */
.blog-website-preview {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 2px 8px 0px rgba(24, 39, 75, 0.08);
}

.blog-services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .blog-services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.service-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.service-icon {
      margin-bottom: 1rem;
    }
  
.service-icon i {
    color: white;
    opacity: 0.9;
}

.service-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-details p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.service-price {
      display: flex;
    align-items: baseline;
      justify-content: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

.currency {
    font-size: 1rem;
    font-weight: 500;
}

.amount {
    font-size: 2rem;
    font-weight: 700;
}

.per-unit {
    font-size: 0.9rem;
    opacity: 0.8;
}

.service-features {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0px 2px 8px 0px rgba(24, 39, 75, 0.08);
}

.service-features h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.125rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
  display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #555;
}

.features-list i {
    color: #4caf50;
    font-size: 0.9rem;
}

/* Common Post Details Styles */
.post-details {
    padding: 0.75rem;
    background: white;
    border-top: 1px solid #eee;
}

.post-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
}

.engagement-item i {
    font-size: 0.8rem;
}

.engagement-item.duration-indicator,
.engagement-item.content-indicator {
    color: #666;
    font-size: 0.7rem;
}

.post-caption {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.post-date {
    font-size: 0.7rem;
    color: #aaa;
    text-align: right;
}

/* Utility Color Classes */
.text-linkedin {
    color: #0077B5 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* Additional Mobile Responsiveness */
@media (max-width: 480px) {
    .campaign-tags {
        gap: 6px;
    }
    
    .campaign-tag {
    font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .blog-services-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-price .amount {
        font-size: 1.5rem;
    }
    
    .post-engagement {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .engagement-item {
        font-size: 0.7rem;
    }
}

/* Hover Effects Enhancement */
.youtube-post-item:hover .youtube-thumbnail {
    transform: scale(1.05);
}

.linkedin-post-item:hover .linkedin-post-image {
    transform: scale(1.05);
}

.post-item:hover .instagram-image {
    transform: scale(1.05);
   }

/* Horizontal Scroll for Post Cards */
.horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding-bottom: 0.5rem;
}
.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 8px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 8px;
}

/* Instagram Horizontal Grid */
.posts-grid-horizontal {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
}
.posts-grid-horizontal .post-item {
  min-width: 300px;
  max-width: 320px;
  height: 420px; /* Fixed height for consistent card sizes */
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

/* YouTube Horizontal Grid */
.youtube-posts-grid-horizontal {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
}
.youtube-posts-grid-horizontal .youtube-post-item {
  min-width: 320px;
  max-width: 340px;
  height: 420px; /* Fixed height for consistent card sizes */
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

/* LinkedIn Horizontal Grid */
.linkedin-posts-grid-horizontal {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
}
.linkedin-posts-grid-horizontal .linkedin-post-item {
  min-width: 320px;
  max-width: 340px;
  height: 420px; /* Fixed height for consistent card sizes */
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .posts-grid-horizontal .post-item,
  .youtube-posts-grid-horizontal .youtube-post-item,
  .linkedin-posts-grid-horizontal .linkedin-post-item {
    min-width: 85vw;
    max-width: 90vw;
  }
}

/* Horizontal Scroll Arrow Buttons */
.horizontal-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0.5rem; /* Add padding to ensure buttons are visible */
}
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10; /* Increase z-index to ensure visibility */
  background: linear-gradient(to right, rgba(253, 116, 122, 1), rgba(235, 54, 108, 1));
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(24,39,75,0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  opacity: 0.9;
}
.scroll-arrow.prev {
  left: 0.5rem;
}
.scroll-arrow.next {
  right: 0.5rem;
}
.scroll-arrow:hover {
  background: linear-gradient(to right, rgba(235, 54, 108, 1), rgba(253, 116, 122, 1));
  box-shadow: 0 6px 20px rgba(24,39,75,0.25);
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}
.horizontal-scroll {
  scroll-behavior: smooth;
  margin: 0 1rem; /* Add margin to create space for buttons */
}
@media (max-width: 600px) {
  .horizontal-scroll-wrapper {
    padding: 0 2rem; /* Reduced padding for mobile */
  }
  .horizontal-scroll {
    margin: 0 0.5rem; /* Reduced margin for mobile */
  }
  .scroll-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .posts-grid-horizontal .post-item,
  .youtube-posts-grid-horizontal .youtube-post-item,
  .linkedin-posts-grid-horizontal .linkedin-post-item {
    height: 380px; /* Slightly smaller height for mobile */
  }
  .post-image,
  .youtube-video-container,
  .linkedin-post-container {
    height: 240px; /* Smaller image area for mobile */
  }
}