:root {
    --modern-card-primary: #fe4f70;
    --modern-card-accent: #ffa387;
    --modern-card-white: #ffffff;
    --modern-card-bg: rgba(255, 255, 255, 0.8);
    --modern-card-text: #2d3436;
    --modern-card-gray: #636e72;
    --modern-card-radius: 25px;
    --modern-card-shadow: 0 10px 30px rgb(0 0 0 / 12%), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Icon Header Styles */
.icon-header {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    border: none;
    min-height: 250px;
}

.icon-background {
    position: relative;
    padding: 50px 40px;
    min-height: 250px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

/* Icon elements with contextual icons */
.icon-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.icon-element {
    position: absolute;
    opacity: 0.4;
    transition: all 0.5s ease;
    z-index: 1;
    color: var(--modern-card-primary);
}

.icon-element:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.element-1 {
    top: 15%;
    left: 10%;
}

.element-2 {
    top: 20%;
    right: 10%;
}

.element-3 {
    bottom: 15%;
    left: 15%;
}

.element-4 {
    bottom: 20%;
    right: 15%;
}

.birthday-theme .icon-element {
    color: #fe4f70;
}

.scenario-theme .icon-element {
    color: #fe6b8b;
}

.toast-theme .icon-element {
    color: #ff7f66;
}

/* Thematic Header with Contextual Elements */
.thematic-header {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    border: none;
    min-height: 250px;
}

.thematic-background {
    position: relative;
    padding: 50px 40px;
    min-height: 250px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

/* Birthday theme - warm coral tones with gift elements */
.birthday-theme {
    background: linear-gradient(135deg, #fff5f7 0%, #ffd6d9 100%);
}

/* Scenario theme - coral tones with communication elements */
.scenario-theme {
    background: linear-gradient(135deg, #fff5f7 0%, #fff0e6 100%);
}

/* Toast theme - coral tones with glass elements */
.toast-theme {
    background: linear-gradient(135deg, #ffe5ec 0%, #fff0e6 100%);
}

/* Thematic elements with contextual illustrations */
.thematic-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.thematic-element {
    position: absolute;
    opacity: 0.5;
    transition: all 0.5s ease;
    z-index: 1;
}

.thematic-element:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.element-1 {
    top: 3%;
    left: 3%;
    width: 70px;
    height: 70px;
}

.element-2 {
    top: 80%;
    right: 3%;
    width: 60px;
    height: 60px;
}

.element-3 {
    bottom: 7%;
    left: 10%;
    width: 50px;
    height: 50px;
}

.thematic-svg {
    width: 100%;
    height: 100%;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.category-title {
    font-size: 36px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--modern-card-primary), var(--modern-card-accent));
    border-radius: 3px;
}

.category-description {
    font-size: 18px;
    color: #7f8c8d;
    line-height: 1.7;
    margin: 40px 0 0 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
}

/* Birthday styles - warm coral tones */
.birthday-theme .category-title {
    color: #fe4f70;
}

/* Scenario styles - soft coral tones */
.scenario-theme .category-title {
    color: #fe6b8b;
}

/* Toast styles - warm coral tones */
.toast-theme .category-title {
    color: #ff7f66;
}

/* Birthday styles */
.birthday-theme .category-title {
    color: #e74c3c;
}

/* Scenario styles - more subtle colors */
.scenario-theme .category-title {
    color: #fe6b8b;
}

/* Toast styles - more subtle colors */
.toast-theme .category-title {
    color: #d38067;
}

/* Responsive styles for creative header */
@media (max-width: 992px) {
    .float-3 {
        display: none;
    }
}

@media (max-width: 768px) {
    .creative-background {
        padding: 40px 20px;
    }

    .category-title {
        font-size: 28px;
    }

    .category-description {
        font-size: 16px;
    }

    .floating-element {
        opacity: 0.3;
    }

    .float-1, .float-2 {
        width: 40px;
        height: 40px;
    }

    .float-1 {
        top: 8%;
        left: 5%;
    }

    .float-2 {
        top: 12%;
        right: 5%;
    }
}

@media (max-width: 992px) {
    .element-4 {
        display: none;
    }
}

@media (max-width: 768px) {
    .icon-background {
        padding: 40px 20px;
    }

    .category-title {
        font-size: 28px;
    }

    .category-description {
        font-size: 16px;
    }

    .element-1, .element-2, .element-3 {
        font-size: 24px;
    }

    .element-3 {
        display: none;
    }

    .element-1 {
        top: 10%;
        left: 5%;
    }

    .element-2 {
        top: 15%;
        right: 5%;
    }
}

@media (max-width: 480px) {
    .icon-background {
        padding: 30px 15px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-description {
        font-size: 15px;
    }

    .category-title::after {
        width: 60px;
        height: 4px;
        bottom: -10px;
    }

    .icon-element {
        display: none;
    }
}

/* Icon Hero Styles for Main Page */
.icon-hero {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    border: none;
    min-height: 250px;
}

.icon-hero-background {
    position: relative;
    padding: 50px 40px;
    min-height: 250px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff5f7 0%, #ffeaea 100%);
    border-radius: 20px;
}

/* Icon elements for hero section */
.icon-hero-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.icon-hero-element {
    position: absolute;
    opacity: 0.4;
    transition: all 0.5s ease;
    z-index: 1;
    color: #fe4f70;
}

.icon-hero-element:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

.icon-hero .element-1 {
    top: 14%;
    left: 5%;
}

.icon-hero .element-2 {
    top: 30%;
    right: 16%;
}

.icon-hero .element-3 {
    bottom: 7%;
    left: 15%;
}

.icon-hero .element-4 {
    bottom: 17%;
    right: 15%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.icon-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #fe4f70;
    margin: 0 0 20px 0;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

.icon-hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, #fe4f70, #ffa387);
    border-radius: 3px;
}

.icon-hero-description {
    font-size: 18px;
    color: #7f8c8d;
    line-height: 1.7;
    margin: 40px 0 0 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
}

/* Responsive styles for icon hero */
@media (max-width: 992px) {
    .icon-hero .element-4 {
        display: none;
    }
}

@media (max-width: 768px) {
    .icon-hero-background {
        padding: 40px 20px;
    }

    .icon-hero-title {
        font-size: 28px;
    }

    .icon-hero-description {
        font-size: 16px;
    }

    .icon-hero .element-1, .icon-hero .element-2, .icon-hero .element-3 {
        font-size: 24px;
    }

    .icon-hero .element-3 {
        display: none;
    }

    .icon-hero .element-1 {
        top: 10%;
        left: 5%;
    }

    .icon-hero .element-2 {
        top: 15%;
        right: 5%;
    }
}

@media (max-width: 480px) {
    .icon-hero-background {
        padding: 30px 15px;
    }

    .icon-hero-title {
        font-size: 24px;
    }

    .icon-hero-description {
        font-size: 15px;
    }

    .icon-hero-title::after {
        width: 60px;
        height: 4px;
        bottom: -10px;
    }

    .icon-hero-element {
        display: none;
    }
}

/* Rest of the existing CSS code */
.modern-card {
    background: var(--modern-card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--modern-card-radius);
    box-shadow: var(--modern-card-shadow);
    overflow: hidden;
    position: relative;
    padding: 30px;
    margin-bottom: 7px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    font-weight: 400; /* Changed from default (likely 700) to 400 */
}

/* Removed hover animation effect */

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 0;
    pointer-events: none;
}

.modern-card > * {
    position: relative;
    z-index: 1;
}

.modern-card-meta {
    margin-bottom: 15px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #6c6c6c;
    padding: 5px 0;
}

@media (max-width: 768px) {
    .modern-card-meta {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .modern-card-meta {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .modern-card-meta ul.meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 0;
        scrollbar-width: none;
    }

    .modern-card-meta ul.meta::-webkit-scrollbar {
        display: none;
    }
}

.modern-card-meta ul.meta {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.modern-card-meta ul.meta li {
    margin-right: 15px;
    position: relative;
    color: #6c6c6c;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.modern-card-meta ul.meta li:last-child {
    margin-right: 0;
    color: #203656;
    font-weight: 500;
}

.modern-card-meta ul.meta li + li::before {
    content: '›';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #ccc;
    font-weight: 600;
}

.modern-card-meta a {
    color: #FE4F70;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 4px;
}

.modern-card-meta a:hover {
    color: #203656;
    text-decoration: none;
}

.modern-card-meta a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #FE4F70;
    transition: width 0.3s ease;
}

.modern-card-meta a:hover::after {
    width: 100%;
}

.modern-card-title {
    font-size: 19px;
    font-weight: 400;
    margin: 0 0 15px 0;
    position: relative;
    color: #203656;
}

.modern-card-title a {
    color: #203656;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-card-title a:hover {
    color: #FE4F70;
}

.modern-card-excerpt {
    font-size: 16px;
    color: #6c6c6c;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.modern-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    margin-top: auto;
}

.modern-social-share {
    display: flex;
    gap: 12px;
}

.modern-social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 36px;
    border-radius: 50%;
    color: #9faabb;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 17px;
}

.modern-social-share a:hover {
    color: #FE4F70FF;
    transform: scale(1.1);
}

.modern-interaction-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.modern-interaction-buttons button,
.modern-interaction-buttons a {
    background: none;
    border: none;
    color: #9faabb;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 0;
    text-decoration: none;
}

.modern-interaction-buttons .like-btn i,
.modern-interaction-buttons .dislike-btn i {
    font-size: 16px;
}

.modern-interaction-buttons .like-btn:hover i {
    color: #1dc500;
}

.modern-interaction-buttons .dislike-btn:hover i {
    color: #FE4F70;
}

.modern-interaction-buttons .save-greeting-btn:hover {
    color: #FE4F70;
}

.modern-interaction-buttons .like-btn i,
.modern-interaction-buttons .dislike-btn i {
    font-size: 16px;
}

.modern-interaction-buttons .like-btn:hover i,
.modern-interaction-buttons .dislike-btn:hover i {
    transform: scale(1.2);
}

.modern-interaction-buttons .like-count,
.modern-interaction-buttons .dislike-count {
    margin-left: 3px;
}

.modern-interaction-buttons .save-greeting-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.modern-interaction-buttons .save-greeting-btn:hover {
    transform: scale(1.1);
    color: #FE4F70;
}

/* Main page specific styles - simpler without highlight features */
.main-page .modern-card {
    /* No highlight for saved items on main page */
    font-weight: 400; /* Ensure consistent font weight */
}

.main-page .modern-interaction-buttons {
    display: none; /* Hide interaction buttons on main page as requested */
}

.main-page .modern-interaction-buttons .like-btn i,
.main-page .modern-interaction-buttons .dislike-btn i {
    font-size: 16px;
}

/* Special styles for content page */
.modern-post-card {
    background: var(--modern-card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--modern-card-radius);
    box-shadow: var(--modern-card-shadow);
    overflow: hidden;
    position: relative;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 400; /* Changed from default (likely 700) to 400 */
}

.modern-post-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.modern-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 0;
    pointer-events: none;
}

.modern-post-card > * {
    position: relative;
    z-index: 1;
}

.modern-post-title-content {
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 20px 0;
    position: relative;
    color: #203656;
    letter-spacing: -0.5px; /* Improved readability with slight negative letter spacing */
}

.modern-post-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #9faabb;
}

.modern-post-excerpt {
    font-size: 17px;
    color: #6c6c6c;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modern-post-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 25px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-copy-btn {
    /*background: linear-gradient(135deg, var(--modern-card-primary) 0%, var(--modern-card-accent) 100%);*/
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a4a4a4;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.modern-copy-btn:hover {
    /*box-shadow: 0 5px 15px rgba(254, 79, 112, 0.4);*/
    /*transform: scale(1.1);*/
}

/* Responsive styles for content page */
@media (max-width: 768px) {
    .modern-post-card {
        padding: 20px;
    }

    .modern-post-title-content {
        font-size: 24px;
    }

    .modern-post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .modern-post-footer {
        gap: 12px;
        padding-top: 12px;
        width: 100%;
    }

    .modern-post-footer .modern-social-share {
        align-self: flex-start;
        justify-content: flex-start;
        width: 100%;
    }

    .modern-post-footer .modern-interaction-buttons {
        /* Swap positions of like and save buttons on mobile */
        flex-direction: row-reverse;
        width: 100%;
        justify-content: flex-start;
    }

    .modern-post-footer .modern-interaction-buttons button,
    .modern-post-footer .modern-interaction-buttons a {
        font-size: 15px;
        gap: 5px;
    }

    .modern-post-footer .modern-interaction-buttons .like-btn i,
    .modern-post-footer .modern-interaction-buttons .dislike-btn i {
        font-size: 16px;
    }

    .modern-post-footer .modern-interaction-buttons .save-greeting-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modern-post-footer .modern-interaction-buttons .like-count,
    .modern-post-footer .modern-interaction-buttons .dislike-count {
        margin-left: 5px;
    }
}

/* Highlight for saved greetings */
.saved-greeting-highlight {
    border-left: 4px solid #FE4F70;
    background-color: rgba(254, 79, 112, 0.1); /* Increased opacity for better visibility */
    padding-left: 20px; /* Added padding to make text stand out more */
}

/* Saved greeting items in modal */
.saved-greeting-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.saved-greeting-category {
    font-size: 12px;
    color: #FE4F70;
    margin-bottom: 5px;
}

.saved-greeting-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #192c48;
}

.saved-greetings-content {
    font-size: 14px;
    color: #6c6c6c;
    margin-bottom: 15px;
    line-height: 1.5;
}

.saved-greeting-actions {
    display: flex;
    justify-content: space-between;
}

.saved-greeting-remove {
    background: none;
    border: none;
    color: #FE4F70;
    cursor: pointer;
    font-size: 14px;
}

.saved-greeting-remove:hover {
    text-decoration: underline;
}

.saved-greeting-compare {
    background: linear-gradient(to right, #FE4F70 0%, #FFA387 100%);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.saved-greeting-compare:hover {
    opacity: 0.9;
}

/* Responsive styles */
@media (max-width: 768px) {
    .modern-card {
        padding: 30px;
    }

    .modern-card-title {
        font-size: 20px;
    }

    .modern-card-excerpt {
        font-size: 15px;
    }

    .modern-post-card {
        padding: 20px;
    }

    .modern-post-title-content {
        font-size: 24px;
    }

    .modern-card-footer {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        padding-top: 15px;
        justify-content: space-between;
    }

    .modern-social-share {
        order: 2;
        align-self: center;
    }

    .modern-interaction-buttons {
        order: 1;
        align-items: center;
        display: flex;
        gap: 15px;
    }

    .modern-interaction-buttons button,
    .modern-interaction-buttons a {
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .modern-interaction-buttons .like-btn i,
    .modern-interaction-buttons .dislike-btn i {
        font-size: 18px;
    }

    /* Show dropdown on mobile */
    .modern-social-share {
        display: none;
    }

    .modern-social-share-dropdown {
        display: block;
        order: 2;
        align-self: center;
    }

    .modern-social-share-toggle {
        background: rgba(0, 0, 0, 0.03);
        color: #9faabb;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modern-card-footer {
        gap: 12px;
        padding-top: 12px;
    }

    .modern-social-share-dropdown {
        align-self: flex-start;
    }

    .modern-social-share-toggle {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .modern-interaction-buttons {
        /* Swap positions of like and save buttons on mobile */
        flex-direction: row-reverse;
    }

    .modern-interaction-buttons button,
    .modern-interaction-buttons a {
        font-size: 15px; /* Increased font size */
        gap: 5px;
    }

    .modern-interaction-buttons .like-btn i,
    .modern-interaction-buttons .dislike-btn i {
        font-size: 16px; /* Increased icon size */
    }

    .modern-interaction-buttons .save-greeting-btn {
        width: 40px; /* Increased size */
        height: 40px;
        font-size: 20px; /* Increased icon size */
    }

    .modern-interaction-buttons .like-count,
    .modern-interaction-buttons .dislike-count {
        margin-left: 5px; /* Increased margin */
    }
}

/* Modern Social Share Dropdown for Mobile */
.modern-social-share-dropdown {
    position: relative;
    display: none;
}

.modern-social-share-toggle {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #9faabb;
    background: rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

.modern-social-share-toggle:hover {
    color: #FE4F70;
    /*background: rgba(0, 0, 0, 0.05);*/
    transform: scale(1.1);
}

.modern-social-share-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 150px;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    margin-bottom: 10px;
}

.modern-social-share-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Ensure dropdown menu is always visible on screen */
@media (max-width: 768px) {
    .modern-social-share-menu {
        right: auto;
        left: 0;
        bottom: 100%;
        margin-bottom: 10px;
        transform: translateY(10px);
    }

    .modern-social-share-menu::before {
        right: 15px;
        left: auto;
    }

    .modern-social-share-menu.active {
        transform: translateY(0);
        width: 150px;
    }

    /* Ensure menu doesn't go off-screen on small devices */
    @media (max-width: 480px) {
        .modern-social-share-menu {
            left: -9px;
            right: 0;
            min-width: auto;
            /*margin-left: 10px;*/
            margin-right: 10px;
        }

        .modern-social-share-menu::before {
            right: auto;
            left: 20px;
        }
    }
}

.modern-social-share-menu::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.modern-social-share-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #6c6c6c;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.modern-social-share-menu a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #FE4F70;
}

.modern-social-share-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Hide regular social share on mobile, show dropdown instead */
@media (max-width: 768px) {
    .modern-card {
        padding: 30px;
    }

    .modern-card-title {
        font-size: 20px;
    }

    .modern-card-excerpt {
        font-size: 15px;
    }

    .modern-post-card {
        padding: 20px;
    }

    .modern-post-title-content {
        font-size: 24px;
    }

    .modern-card-footer {
        flex-direction: row-reverse;
        gap: 15px;
        align-items: flex-start;
        padding-top: 15px;
    }

    .modern-social-share {
        order: 2;
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }

    .modern-interaction-buttons {
        order: 1;
        width: 100%;
        justify-content: flex-start;
    }

    .modern-interaction-buttons button,
    .modern-interaction-buttons a {
        font-size: 16px;
    }

    .modern-interaction-buttons .like-btn i,
    .modern-interaction-buttons .dislike-btn i {
        font-size: 18px;
    }

    /* Show dropdown on mobile */
    .modern-social-share {
        display: none;
    }

    .modern-social-share-dropdown {
        display: block;
        order: 2;
        align-self: flex-end;
    }

    .modern-social-share-toggle {
        background: rgba(0, 0, 0, 0.0);
        color: #9faabb;
    }
}

@media (max-width: 480px) {
    .modern-card-footer {
        gap: 12px;
        padding-top: 12px;
    }

    .modern-social-share-dropdown {
        align-self: flex-start;
    }

    .modern-social-share-toggle {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .modern-interaction-buttons {
        /* Swap positions of like and save buttons on mobile */
        flex-direction: row-reverse;
    }

    .modern-interaction-buttons button,
    .modern-interaction-buttons a {
        font-size: 15px;
        gap: 5px;
    }

    .modern-interaction-buttons .like-btn i,
    .modern-interaction-buttons .dislike-btn i {
        font-size: 16px;
    }

    .modern-interaction-buttons .save-greeting-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modern-interaction-buttons .like-count,
    .modern-interaction-buttons .dislike-count {
        margin-left: 5px;
    }
}

/* Desktop - show regular social share */
@media (min-width: 769px) {
    .modern-social-share-dropdown {
        display: none;
    }
}

/* Responsive styles for content page */
@media (max-width: 768px) {
    .modern-post-card {
        padding: 20px;
    }

    .modern-post-title-content {
        font-size: 24px;
    }

    .modern-post-footer {
        /*flex-direction: row-reverse;*/
        gap: 15px;
        align-items: flex-start;
        padding-top: 15px;
    }

    /* Show dropdown on mobile */
    .modern-post-footer .modern-social-share {
        display: none;
    }

    .modern-post-footer .modern-social-share-dropdown {
        display: block;
        order: 2;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .modern-post-footer {
        gap: 12px;
        padding-top: 12px;
        width: 100%;
    }

    .modern-post-footer .modern-social-share-dropdown {
        align-self: flex-start;
    }

    .modern-post-footer .modern-interaction-buttons {
        /* Swap positions of like and save buttons on mobile */
        flex-direction: row-reverse;
        width: 100%;
        justify-content: flex-start;
    }

    .modern-post-footer .modern-interaction-buttons button,
    .modern-post-footer .modern-interaction-buttons a {
        font-size: 15px;
        gap: 5px;
    }

    .modern-post-footer .modern-interaction-buttons .like-btn i,
    .modern-post-footer .modern-interaction-buttons .dislike-btn i {
        font-size: 16px;
    }

    .modern-post-footer .modern-interaction-buttons .save-greeting-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modern-post-footer .modern-interaction-buttons .like-count,
    .modern-post-footer .modern-interaction-buttons .dislike-count {
        margin-left: 5px;
    }
}

/*
 * Example HTML structure for social share dropdown:
 * 
 * <div class="modern-social-share-dropdown">
 *     <button class="modern-social-share-toggle">
 *         <i class="fas fa-share-alt"></i>
 *     </button>
 *     <div class="modern-social-share-menu">
 *         <a href="#" target="_blank">
 *             <i class="fab fa-vk"></i> VK
 *         </a>
 *         <a href="#" target="_blank">
 *             <i class="fab fa-telegram"></i> Telegram
 *         </a>
 *         <a href="#" target="_blank">
 *             <i class="fab fa-whatsapp"></i> WhatsApp
 *         </a>
 *         <a href="#" target="_blank">
 *             <i class="fab fa-facebook-f"></i> Facebook
 *         </a>
 *     </div>
 * </div>
 */

/* Fix for iPad Mini and similar tablets */
@media (min-width: 480px) and (max-width: 1024px) {
    .modern-card-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .modern-social-share-dropdown {
        align-self: center;
    }

    .modern-interaction-buttons {
        align-self: center;
    }

    .modern-card-footer .modern-social-share {
        display: flex;
        align-self: center;
    }

    .modern-card-footer .modern-social-share-dropdown {
        display: none;
    }
}

/* Portrait orientation for iPad Mini */
@media (width: 480px) and (height: 1024px) {
    .modern-card-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .modern-social-share-dropdown {
        align-self: center;
    }

    .modern-interaction-buttons {
        align-self: center;
    }

    .modern-card-footer .modern-social-share {
        display: flex;
        align-self: center;
    }

    .modern-card-footer .modern-social-share-dropdown {
        display: none;
    }
}

/* Fix for iPad Mini - correct the order of elements to match desktop version */
@media (min-width: 480px) and (max-width: 1024px) {
    .modern-card-footer .modern-social-share {
        order: initial;
        display: flex;
        justify-content: flex-start;
    }

    .modern-card-footer .modern-interaction-buttons {
        order: initial;
        flex-flow: row-reverse;
    }

    .modern-card-footer .modern-social-share-dropdown {
        display: none;
    }
}

/* Portrait orientation for iPad Mini with specific element ordering */
@media (width: 480px) and (height: 1024px) {
    .modern-card-footer .modern-social-share {
        order: initial;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .modern-card-footer .modern-interaction-buttons {
        order: initial;
        flex-flow: row-reverse;
    }

    .modern-card-footer .modern-social-share-dropdown {
        display: none;
    }
}