.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.image-container {
    padding: 3px;
    /* Adjust this to manage how items wrap */
    flex-basis: calc(33.333% - 6px); 
    box-sizing: border-box;
}

.image-container img {
    width: 100%; /* Makes the image responsive within the container */
    height: auto; /* Keeps the aspect ratio of the image */
}


.plus-list li::before {
    content: "+ ";
    /* Additional styling to make it look nicer */
    color: green; /* Example color */
    font-weight: bold;
}


.minus-list li::before {
    content: "- ";
    color: red; /* Example color */
    font-weight: bold;
}

a.read_more {
  text-align: center !important;
  background-color: #f6f6f6 !important;
  color: black !important;
  padding: 15px 25px !important;
  text-decoration: none !important;
}

a.tag {
  color: black !important;
}

/* notification bar */
#notification {
    font-family: "Roboto", sans-serif !important;
    font-size: 11px !important;
    width: 100%;
    height: 50px;
    background-color: #f4ffd5;
    color: black;
    text-align: center;
    line-height: 50px; /* This vertically centers the text in the bar */
    font-size: 16px; /* Adjust the font size as needed */
    position: relative;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures the bar is on top of other elements */
}

.notification-icon {
    margin-right: 10px;
    color: black;
}



/* Enhanced Register Button Style */
#registerBtn {
    font-family: "Roboto", sans-serif;
    background-color: #e077b2; /* Green background */
    color: black; /* White text */
    padding: 10px 32px; /* Padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* No underline */
    display: inline-block; /* Inline block display */
    font-size: 11px; /* Font size */
    margin: 4px 2px; /* Margin */
    cursor: pointer; /* Pointer cursor */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    max-width:100px;
    outline: none; /* Remove outline */
}

#registerBtn:hover {
    background-color: #e077b2; /* Darker green background on hover */
}

/* Enhanced Register Button Style */
#registerBtnComment {
    font-family: "Roboto", sans-serif;
    background-color: #e077b2; /* Green background */
    color: black; /* White text */
    padding: 10px 32px; /* Padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* No underline */
    display: inline-block; /* Inline block display */
    font-size: 11px; /* Font size */
    margin: 4px 2px; /* Margin */
    cursor: pointer; /* Pointer cursor */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    max-width:100px;
    outline: none; /* Remove outline */
}

#registerBtnComment:hover {
    background-color: #e077b2; /* Darker green background on hover */
}


/* Enhanced Register Button Style */
#loginBtn {
    font-family: "Roboto", sans-serif;
    background-color: #e1fcff; /* Green background */
    color: black; /* White text */
    padding: 10px 32px; /* Padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* No underline */
    display: inline-block; /* Inline block display */
    font-size: 11px; /* Font size */
    margin: 4px 2px; /* Margin */
    cursor: pointer; /* Pointer cursor */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    max-width:100px;
    outline: none; /* Remove outline */
}

#loginBtn:hover {
    background-color: #e1fcff; /* Darker green background on hover */
}

/* Enhanced Register Button Style */
#loginBtnComment {
    font-family: "Roboto", sans-serif;
    background-color: #e1fcff; /* Green background */
    color: black; /* White text */
    padding: 10px 32px; /* Padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* No underline */
    display: inline-block; /* Inline block display */
    font-size: 11px; /* Font size */
    margin: 4px 2px; /* Margin */
    cursor: pointer; /* Pointer cursor */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    max-width:100px;
    outline: none; /* Remove outline */
}

#loginBtnComment:hover {
    background-color: #e1fcff; /* Darker green background on hover */
}

/* Enhanced Register Button Style */
#logoutBtn {
    font-family: "Roboto", sans-serif;
    background-color: #f4ffd5; /* Green background */
    color: black; /* White text */
    padding: 10px 32px; /* Padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* No underline */
    display: inline-block; /* Inline block display */
    font-size: 11px; /* Font size */
    margin: 4px 2px; /* Margin */
    cursor: pointer; /* Pointer cursor */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    max-width:100px;
    outline: none; /* Remove outline */
}

#logoutBtn:hover {
    background-color: #f4ffd5; /* Darker green background on hover */
}


/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 30%;
  /* Responsive width */
  max-width: 500px;
}


/* The Modal (background) */
.loginmodal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

/* Modal Content */
.loginmodal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 30%;
  /* Responsive width */
  max-width: 500px;
}


/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Input fields styling */
input[type=email], input[type=text], input[type=password], input[type=file] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Submit button styling */
input[type=submit] {
  background-color: #e077b2;
  color: black;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

input[type=submit]:hover {
  opacity: 0.8;
}

.go-button {
  background-color: #e1fcff !important;
  color: black !important;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

.go-button:hover {
  opacity: 0.8;
}

/* Media query for smaller screens */
@media (max-width: 600px) {
  .modal-content {
    width: 90%; /* Take up more width on smaller screens */
    margin: 10% auto; /* Less margin on top and bottom */
  }

  .loginmodal-content {
    width: 90%; /* Take up more width on smaller screens */
    margin: 10% auto; /* Less margin on top and bottom */
  }

  .close {
    font-size: 20px; /* Smaller close button */
  }
}

/* Hamburger Menu Styles */
.logo-container {
    position: relative;
}

.hamburger-menu-btn {
    background: linear-gradient(135deg, #c90272, #9c0038);
    border: none;
    cursor: pointer;
    padding: 12px;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(201, 2, 114, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hamburger-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 8px;
    pointer-events: none;
}

.hamburger-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hamburger-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 2, 114, 0.4);
    background: linear-gradient(135deg, #9c0038, #7a0029);
}

.hamburger-menu-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(201, 2, 114, 0.3);
}

.hamburger-menu-btn:hover span {
    background-color: #ffffff;
}

/* Sidebar Menu */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -380px;
    width: 380px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #9c0038;
    padding-left: 15px;
}

.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: color 0.3s ease;
}

.close-sidebar-btn:hover {
    color: #333;
}

.sidebar-content {
    padding: 20px;
}

.quick-menu-item {
    margin-bottom: 15px;
}

.quick-menu-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-menu-link:hover {
    background-color: #e9ecef;
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quick-menu-link i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.quick-menu-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-menu {
        width: 280px;
        left: -280px;
    }
    
    .hamburger-menu-btn {
        margin-right: 10px;
        width: 36px;
        height: 36px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .sidebar-menu {
        width: 100%;
        left: -100%;
    }
    
    .sidebar-header {
        padding: 15px;
    }
    
    .sidebar-content {
        padding: 15px;
    }
    
    .hamburger-menu-btn {
        width: 32px;
        height: 32px;
        padding: 8px;
        margin-right: 8px;
    }
}

/* Search Bar Styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 6px 12px;
    max-width: 400px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: #c90272;
    box-shadow: 0 2px 8px rgba(201, 2, 114, 0.15);
}

#searchInput {
    border: none;
    outline: none;
    font-size: 14px;
    padding: 4px 8px;
    width: 100%;
    background: transparent;
    color: #333;
    height: 24px;
}

#searchInput::placeholder {
    color: #999;
    opacity: 1;
}

.search-icon {
    color: #c90272;
    font-size: 14px;
    margin-left: 6px;
    cursor: pointer;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    border: 1px solid #e9ecef;
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-dropdown div {
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.autocomplete-dropdown div:hover {
    background-color: #f8f9fa;
    color: #c90272;
}

.autocomplete-dropdown div:last-child {
    border-bottom: none;
}

.autocomplete-dropdown div:first-child {
    border-radius: 8px 8px 0 0;
}

.autocomplete-dropdown div:last-child {
    border-radius: 0 0 8px 8px;
}

/* Responsive search bar */
@media (max-width: 768px) {
    .search-wrapper {
        max-width: 300px;
        padding: 6px 12px;
    }
    
    #searchInput {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .search-wrapper {
        max-width: 250px;
        padding: 5px 10px;
    }
    
    #searchInput {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Article Page Styles */
.article-content {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.main-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.article-header {
    position: relative;
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

.article-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(201, 2, 114, 0.9) 0%, rgba(156, 0, 56, 0.8) 50%, transparent 100%);
    color: white;
    border-radius: 0 0 12px 12px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.article-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-info i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.article-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-info a:hover {
    color: white;
    text-decoration: underline;
}

.article-body {
    padding: 40px 30px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body blockquote {
    border-left: 4px solid #c90272;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.article-footer {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Related Articles */
.related-articles {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.related-articles h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.related-card-image {
    height: 200px;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.1);
}

.related-card-content {
    padding: 20px;
}

.related-card-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.4;
}

.related-card-meta {
    font-size: 12px;
    color: #666;
}

/* Sidebar Styles */
.author-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.author-header {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #c90272;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.author-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.author-link {
    color: #c90272;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.author-link:hover {
    color: #a0015a;
    text-decoration: underline;
}

.trending-articles {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.trending-articles h3 {
    margin-bottom: 1.25rem;
    color: #212121; /* Fallback for --text-dark */
    color: var(--text-dark, #212121);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.trending-articles h3 i {
    color: #c90272; /* Fallback for --primary */
    color: var(--primary, #c90272);
}

.trending-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 80px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.trending-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.trending-card-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.trending-card-image {
    width: 80px;
    min-width: 80px;
    height: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.trending-card:hover .trending-card-image img {
    transform: scale(1.05);
}

.trending-card-content {
    flex-grow: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.trending-card-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: #212121;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #757575;
    margin-top: auto;
}

.trending-card-meta .date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trending-card-meta .comments {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trending-card-read-more {
    display: none;
    font-size: 12px;
    color: #c90272;
    font-weight: 600;
    margin-top: 8px;
}

.trending-card:hover .trending-card-read-more {
    display: block;
}

.trending-card-tags {
    display: none;
}

.trending-card-badge {
    display: none;
}

.post-tags, .card-tags {
    display: none;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-logo {
    margin-bottom: 20px;
    text-align: left;
}

.footer-logo a {
    display: inline-block;
    text-decoration: none;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.footer-logo img:hover {
    filter: brightness(1) invert(0);
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 14px;
    text-align: left;
}

.footer p:last-child {
    margin-bottom: 0;
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive Article Styles */
@media (max-width: 768px) {
    .article-content {
        padding: 20px 0;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        padding: 1.5rem;
    }
    
    .article-body {
        padding: 25px 20px;
        font-size: 16px;
    }
    
    .article-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .related-articles {
        padding: 20px;
    }
    
    .author-card,
    .trending-articles,
    .social-media-card {
        padding: 20px;
    }
    
    /* Adjust sidebar sticky positioning on mobile */
    .col-lg-4 {
        position: static;
        top: auto;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-meta {
        padding: 1rem;
    }
    
    .article-body {
        padding: 20px 15px;
        font-size: 15px;
    }
    
    .article-info {
        gap: 0.5rem;
    }
    
    .article-info span {
        font-size: 0.8rem;
    }
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #ffffff; /* Fallback for --bg-white */
    background: var(--bg-white, #ffffff);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Fallback for --shadow */
    box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.1));
}

.comments-section h3 {
    color: #212121; /* Fallback for --text-dark */
    color: var(--text-dark, #212121);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-section h3 i {
    color: #c90272; /* Fallback for --primary */
    color: var(--primary, #c90272);
}

/* Comment Form */
.comment-form-container {
    background: #e1fcff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-form-title {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #c90272; /* Fallback for --primary */
    border-color: var(--primary, #c90272);
    box-shadow: 0 0 0 2px rgba(201, 2, 114, 0.1);
}

.comment-submit-btn {
    align-self: flex-end;
    background: #c90272; /* Fallback for --primary */
    background: var(--primary, #c90272);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 150px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Disable the red sliding background effect for comment button */
.comment-submit-btn::before {
    display: none !important;
}

.comment-submit-btn:hover {
    background: #9c0038; /* Fallback for --primary-dark */
    background: var(--primary-dark, #9c0038) !important;
    transform: scale(1.05);
    color: white !important;
}

/* Login Prompt */
.login-prompt {
    background: #f4ffd5;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.login-prompt span {
    display: block;
    margin-bottom: 1rem;
    color: #212121; /* Fallback for --text-dark */
    color: var(--text-dark, #212121);
    font-size: 0.9rem;
}

.login-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.login-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Disable the red sliding background effect */
.login-buttons .btn::before {
    display: none !important;
}

.login-buttons .btn-primary {
    background: #c90272; /* Fallback for --primary */
    background: var(--primary, #c90272);
    color: white;
}

.login-buttons .btn-primary:hover {
    background: #9c0038; /* Fallback for --primary-dark */
    background: var(--primary-dark, #9c0038) !important;
    transform: scale(1.05);
    color: white !important;
}

.login-buttons .btn-secondary {
    background: #6c757d;
    color: white;
}

.login-buttons .btn-secondary:hover {
    background: #5a6268 !important;
    transform: scale(1.05);
    color: white !important;
}

/* Comments List */
.comments-list {
    margin-top: 2rem;
}

.comments-list > div {
    background: #f6f6f6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #c90272; /* Fallback for --primary */
    border-left: 3px solid var(--primary, #c90272);
}

.comments-list .comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comments-list img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comments-list .comment-meta {
    font-size: 0.8rem;
    color: #757575; /* Fallback for --text-light */
    color: var(--text-light, #757575);
}

.comments-list .comment-text {
    font-size: 0.9rem;
    color: #212121; /* Fallback for --text-dark */
    color: var(--text-dark, #212121);
    line-height: 1.4;
    margin-left: 3.5rem; /* Align with username, not avatar */
}

/* Responsive Comments */
@media (max-width: 768px) {
    .comments-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .comment-form-container,
    .login-prompt {
        padding: 1rem;
    }
    
    .login-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .login-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .comments-section {
        padding: 1rem;
    }
    
    .comments-section h3 {
        font-size: 1.25rem;
    }
    
    .comment-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Sidebar Styling */
.col-lg-4 {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Trending Articles */
.trending-articles {
    height: fit-content;
}

.trending-articles h3 {
    margin-bottom: 1.25rem;
    color: #212121; /* Fallback for --text-dark */
    color: var(--text-dark, #212121);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.trending-articles h3 i {
    color: #c90272; /* Fallback for --primary */
    color: var(--primary, #c90272);
}

/* Tag badge compact styling for overlays */
.post-tags, .card-tags {
    display: none;
}

.social-media-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.social-media-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 18px;
}

.social-link i {
    margin-right: 8px;
}

/* Modern Articles Page Header */
.modern-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb-nav {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
    opacity: 0.7;
    color: white;
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 10px;
    opacity: 0.6;
}

.breadcrumb-current {
    font-weight: 500;
}

.page-title-section {
    margin-bottom: 25px;
}

.modern-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.decoration-line {
    height: 2px;
    width: 60px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.decoration-icon {
    font-size: 18px;
    opacity: 0.8;
    color: #ffd700;
}

.page-intro {
    margin-bottom: 30px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.page-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-item i {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Articles Grid Styling */
.articles-listing {
    padding: 0 0 40px 0;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.card-meta .date,
.card-meta .comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    color: #999;
}

.read-more {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.news-card:hover .read-more {
    color: #764ba2;
}

.read-more i {
    transition: transform 0.3s ease;
}

.news-card:hover .read-more i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-page-header {
        padding: 40px 0 30px;
        margin-bottom: 30px;
    }
    
    .modern-page-title {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .page-stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 12px 20px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .breadcrumb-nav {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .modern-page-header {
        padding: 30px 0 25px;
        border-radius: 0 0 15px 15px;
    }
    
    .modern-page-title {
        font-size: 1.8rem;
    }
    
    .title-decoration {
        gap: 10px;
    }
    
    .decoration-line {
        width: 40px;
    }
    
    .page-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 10px 20px;
    }
    
    .stat-item i {
        margin-bottom: 0;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
}
