/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    z-index: 100;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .date {
    padding: 0 10px;
}

.top-bar .social a {
    color: white;
    margin-left: 15px;
    font-size: 14px;
}

.top-bar .social a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 700;
}

.logo a {
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 15px;
}


.writers-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 20px;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   Search Menu
   ========================================================================== */
.search-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-color);
    cursor: pointer;
    display: block;
}

@media (max-width: 768px) {
    .search-toggle {  /* Add the dot here */
        display: block;
    }
}


/* ==========================================================================
   Search
   ========================================================================== */
.search-container {
    position: absolute;
    top: 100%;
    right: 15px;
    width: 300px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 15px;
    display: none;
    z-index: 10000;
}

.search-container.active {
    display: block;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.search-form button {
    padding: 0 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

@media (min-width: 769px) {
    .search-container {
        position: fixed;
        top: 70px;
        right: 15px;
        width: 300px;
        z-index: 1100;
    }
}

@media (max-width: 768px) {
    .search-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 15px;
        display: none;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .search-container.active {
        display: block;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background-image: url('/hero.jpg');
    color: white;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    -webkit-text-stroke: 0.3px black;
}

/* ==========================================================================
   Featured Post
   ========================================================================== */
.featured-post {
    margin-bottom: 50px;
    position: relative;
}

.featured-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 30px;
    margin-left: 15px;
    margin-right: 15px;
}

.carousel-inner {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.featured-link {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    color: inherit;
    text-decoration: none;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.featured-link.active {
    opacity: 1;
}

.featured-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-link:hover .featured-image img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.featured-content {
    padding: 15px;
}

.featured-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.featured-content p {
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    gap: 5px;
    margin-top: 10px;
}

.read-more:hover {
    color: #c1121f;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: var(--primary-color);
    opacity: 1;
}

.carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-nav i {
    pointer-events: none;
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background-color: var(--primary-color);
}

@media (max-width: 992px) {
    .featured-link {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .featured-image {
        max-height: 300px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .featured-carousel {
        margin-left: 5px;
        margin-right: 5px;
    }

    .featured-link {
        padding: 10px;
    }

    .featured-content {
        padding: 10px;
    }

    .featured-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .featured-content p {
        font-size: 13px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .meta {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .category-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .read-more {
        font-size: 13px;
        margin-top: 8px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* ==========================================================================
   Trending Section
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.section-header h2 {
    font-size: 28px;
    position: relative;
    padding-bottom: 10px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    justify-content: center;
}

.trending-card,
.trending-grid .post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.trending-card:hover,
.trending-grid .post-card:hover {
    color: inherit;
    transform: translateY(-5px);
}

.trending-card:hover .card-image img,
.trending-grid .post-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-content {
    padding: 20px;
    background-color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(3 * 1.4em);
}

.card-content p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(3 * 1.6em);
}

@media (max-width: 992px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }

    .trending-card,
    .trending-grid .post-card {
        border-radius: 6px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        min-height: 250px;
    }

    .card-image {
        height: 120px;
    }

    .card-content {
        padding: 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .card-content h3 {
        font-size: 13px;
        line-height: 1.3;
        min-height: calc(4 * 1.3em);
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-content p {
        font-size: 12px;
        line-height: 1.4;
        min-height: calc(3 * 1.4em);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 8px;
    }
}

@media (min-width: 769px) {
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .trending-card,
    .trending-grid .post-card {
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        min-height: 350px;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 20px;
    }

    .card-content h3 {
        font-size: 18px;
        line-height: 1.4;
        min-height: calc(2 * 1.4em);
    }

    .card-content p {
        font-size: 14px;
        line-height: 1.6;
        min-height: calc(3 * 1.6em);
    }
}

/* ==========================================================================
   Like Button
   ========================================================================== */
.like-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: auto;
    background-color: var(--light-gray);
    border: none;
    border-radius: var(--border-radius);
    color: var(--gray-color);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.like-button i {
    font-size: 16px;
}

.like-button.liked {
    background-color: var(--primary-color);
    color: white;
}

.like-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.like-button.liked:hover {
    background-color: #c1121f;
}

@media (max-width: 768px) {
    .like-button {
        margin-top: auto;
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Share Section
   ========================================================================== */
.share-section {
    margin: 40px 0;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.share-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.share-section h3:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.share-button i {
    font-size: 16px;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.facebook:hover {
    background-color: #2f4377;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.twitter:hover {
    background-color: #1889cc;
}

.share-button.whatsapp {
    background-color: #25d366;
}

.share-button.whatsapp:hover {
    background-color: #1eb354;
}

.share-button.copy {
    background-color: var(--accent-color);
}

.share-button.copy:hover {
    background-color: #396b8b;
}

.share-button:active {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-button {
        justify-content: center;
    }
}

/* ==========================================================================
   Comment Section
   ========================================================================== */
.comment-section {
    margin: 40px 0;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.comment-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.comment-section h3:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group label .required {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-form .btn {
    align-self: flex-start;
}

.error {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.success {
    color: #28a745;
    font-size: 14px;
    margin-bottom: 15px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 15px;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-header strong {
    font-size: 16px;
    color: var(--dark-color);
}

.comment-header span {
    font-size: 14px;
    color: var(--gray-color);
}

.comment p {
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts {
    margin: 40px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.related-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.related-card:hover {
    color: inherit;
    transform: translateY(-5px);
}

.related-card:hover .card-image img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }

    .related-card {
        border-radius: 6px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        min-height: 250px;
    }
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.widget h3:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.ad-label {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ad-content {
    border-radius: var(--border-radius);
    overflow: hidden;
}

@media (max-width: 992px) {
    .sidebar {
        position: static;
        margin-top: 50px;
    }
}

/* ==========================================================================
   Popular Posts
   ========================================================================== */
.popular-post-link {
    color: inherit;
    text-decoration: none;
}

.popular-post-link:hover {
    color: inherit;
}

.popular-posts ul {
    padding: 0;
}

.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-image {
    width: 100px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-content h4:hover {
    color: var(--primary-color);
}

@media (min-width: 769px) {
    .popular-posts ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .popular-posts li {
        margin: 0;
    }

    .popular-post {
        flex-direction: column;
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius);
        background-color: white;
    }

    .popular-image {
        width: 100%;
        height: 100px;
        margin-bottom: 10px;
    }

    .popular-content {
        padding: 0 10px 10px;
    }
}

@media (max-width: 768px) {
    .popular-posts ul {
        display: block;
    }

    .popular-posts li {
        margin-bottom: 15px;
    }

    .popular-posts li:last-child {
        margin-bottom: 0;
    }

    .popular-post {
        flex-direction: row;
        border-bottom: 1px solid var(--light-gray);
        margin-bottom: 15px;
        padding-bottom: 15px;
        box-shadow: none;
        background-color: transparent;
    }

    .popular-post:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .popular-image {
        width: 100px;
        height: 60px;
        margin-bottom: 0;
    }

    .popular-content {
        padding: 0;
    }
}

/* ==========================================================================
   Categories
   ========================================================================== */
.categories ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.categories ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.categories ul li a:hover {
    color: var(--primary-color);
}

.categories ul li a span {
    background-color: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* ==========================================================================
   Full Article
   ========================================================================== */
.full-article {
    margin: 40px 0;
}

.article-header {
    margin-bottom: 30px;
}

.article-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: 600px;
    background-color: var(--dark-color);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-header-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.article-header-text h1 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.article-header-text .meta {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.article-content {
    font-size: 16px;
    width: 100%;
}

.article-content p {
    margin-bottom: 20px;
    text-align: left; /* Changed from justify for consistent spacing */
    line-height: 1.7; /* Increased for better readability */
    hyphens: auto; /* Auto-hyphenate long words */
    word-break: break-word; /* Break unbreakable words to next line if needed */
}

.article-content img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.article-content video {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: var(--border-radius);
}

.back-link {
    text-align: center;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .article-image {
        max-height: 400px;
    }

    .article-header-text {
        padding: 20px;
    }

    .article-header-text h1 {
        font-size: 28px;
    }

    .article-header-text .meta {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .article-image {
        max-height: 300px;
    }

    .article-header-text {
        padding: 15px;
    }

    .article-header-text h1 {
        font-size: 24px;
    }

    .article-header-text .meta {
        font-size: 12px;
    }
}

/* ==========================================================================
   Video Placeholder
   ========================================================================== */
.video-placeholder {
    position: relative;
    width: 100%;
    cursor: pointer;
    border-radius: var(--border-radius);
    margin: 20px auto;
}

.video-placeholder video {
    width: 100%;
    display: block;
    object-fit: cover;
    background-color: #000;
    border-radius: var(--border-radius);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-overlay i {
    font-size: 60px;
    color: #fff;
    opacity: 0.9;
}

.video-overlay:hover i {
    opacity: 1;
}

.video-caption {
    color: red;
    font-style: italic;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-main {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-main .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.footer-newsletter button {
    padding: 0 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.footer-bottom {
    background-color: #0d1b2a;
    padding: 15px 0;
    text-align: center;
}

.footer-bottom p {
    color: white;
    opacity: 0.7;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-links a {
    color: white;
    opacity: 0.7;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .footer-main .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-main .container {
        grid-template-columns: 1fr;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .footer-column:last-child {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.page-numbers {
    display: flex;
    gap: 7px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--dark-color);
    font-weight: 250;
    transition: var(--transition);
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination .prev,
.pagination .next {
    padding: 5px 10px;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    width: auto;
    height: auto;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination .disabled {
    background-color: var(--light-gray);
    color: var(--gray-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==========================================================================
   Latest Articles of the Day
   ========================================================================== */
.latest-today {
    margin-bottom: 40px;
}

.latest-today ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.latest-today li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.latest-today li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-today li a {
    display: block;
    color: var(--dark-color);
}

.latest-today li a:hover h3 {
    color: var(--primary-color);
}

.latest-today h3 {
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: var(--transition);
}

.latest-today .meta {
    font-size: 14px;
    color: var(--gray-color);
}

/* ==========================================================================
   Category Sections (Gossips, Scandals, News, Entertainment)
   ========================================================================== */
.latest-gossips,
.latest-scandals,
.latest-news,
.latest-entertainment {
    margin-bottom: 40px;
}

.latest-gossips .section-header h2,
.latest-scandals .section-header h2,
.latest-news .section-header h2,
.latest-entertainment .section-header h2 {
    font-size: 28px;
    position: relative;
    padding-bottom: 10px;
}

.latest-gossips .featured-gossip,
.latest-scandals .featured-scandal,
.latest-news .featured-news,
.latest-entertainment .featured-entertainment {
    margin-bottom: 20px;
}

.featured-gossip a,
.featured-scandal a,
.featured-news a,
.featured-entertainment a {
    display: block;
    color: var(--dark-color);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    transition: var(--transition);
}

.featured-gossip a:hover,
.featured-scandal a:hover,
.featured-news a:hover,
.featured-entertainment a:hover {
    transform: translateY(-5px);
}

.featured-gossip img,
.featured-scandal img,
.featured-news img,
.featured-entertainment img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: var(--transition);
}

.featured-gossip a:hover img,
.featured-scandal a:hover img,
.featured-news a:hover img,
.featured-entertainment a:hover img {
    transform: scale(1.05);
}

.featured-gossip h3,
.featured-scandal h3,
.featured-news h3,
.featured-entertainment h3 {
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.featured-gossip .meta,
.featured-scandal .meta,
.featured-news .meta,
.featured-entertainment .meta {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.featured-gossip p,
.featured-scandal p,
.featured-news p,
.featured-entertainment p {
    font-size: 14px;
    color: var(--gray-color);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.category-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-list h4 {
    font-size: 16px;
    color: var(--dark-color);
    line-height: 1.4;
    transition: var(--transition);
}

.category-list a:hover h4 {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .latest-today h2,
    .latest-gossips .section-header h2,
    .latest-scandals .section-header h2,
    .latest-news .section-header h2,
    .latest-entertainment .section-header h2 {
        font-size: 24px;
    }

    .latest-today h3,
    .featured-gossip h3,
    .featured-scandal h3,
    .featured-news h3,
    .featured-entertainment h3 {
        font-size: 16px;
    }

    .latest-today .meta,
    .featured-gossip .meta,
    .featured-scandal .meta,
    .featured-news .meta,
    .featured-entertainment .meta {
        font-size: 12px;
    }

    .featured-gossip p,
    .featured-scandal p,
    .featured-news p,
    .featured-entertainment p {
        font-size: 12px;
    }

    .category-list h4 {
        font-size: 14px;
    }

    .featured-gossip img,
    .featured-scandal img,
    .featured-news img,
    .featured-entertainment img {
        max-width: 150px;
    }
}

/* ==========================================================================
   About and Privacy Header
   ========================================================================== */
.aboutandprivacy-header-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.aboutandprivacy-header-fixed h1 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
}

.aboutandprivacy-header-fixed .meta {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}



/* ==========================================================================
   New Professional Mobile Menu
   ========================================================================== */

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    position: relative;
}

.menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-icon span:nth-child(1) {
    transform: translateY(0) rotate(0);
}

.menu-icon span:nth-child(2) {
    margin: 6px 0;
    opacity: 1;
}

.menu-icon span:nth-child(3) {
    transform: translateY(0) rotate(0);
}

.menu-toggle.active .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .menu-icon span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0d1b2a 100%);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.mobile-logo span {
    color: var(--primary-color);
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0 36px 0;
    overflow-y: auto;
}

.mobile-nav-main {
    flex: 1;
}

.mobile-nav-main li {
    margin-bottom: 5px;
}

.mobile-nav-main li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-main li a i:first-child {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.mobile-nav-main li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    padding-left: 30px;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.nav-dropdown.active .dropdown-menu {
    max-height: 500px;
}

.dropdown-menu li a {
    padding-left: 60px !important;
    font-size: 14px;
    opacity: 0.9;
}

.dropdown-menu li a i {
    font-size: 14px !important;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.mobile-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-nav-footer p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
}

/* ==========================================================================
   Desktop Navigation (Hidden by default, shown only when menu is toggled)
   ========================================================================== */

/* Hide the old desktop nav */
nav:not(.mobile-nav) {
    display: none;
}

/* Show menu toggle on all devices */
.menu-toggle {
    display: flex !important;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (min-width: 1024px) {
    .mobile-nav {
        width: 380px;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        width: 100%;
    }
    
    .mobile-nav-header {
        padding: 15px;
    }
    
    .mobile-nav-main li a {
        padding: 12px 20px;
    }
}

/* Animation for menu items */
.mobile-nav-main li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.active .mobile-nav-main li {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation for menu items */
.mobile-nav-main li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-main li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-main li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-main li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-main li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-main li:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-main li:nth-child(7) { transition-delay: 0.4s; }
