/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1002;
}

.top-ad {
    text-align: center;
    padding: 10px;
    background-color: #e9e9e9;
    margin-bottom: 10px;
}

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

.logo h1 {
    margin: 0;
    color: #d32f2f;
    font-size: 2em;
}

.top-nav ul {
    display: flex;
}

.top-nav ul li {
    margin-left: 20px;
}

.top-nav ul li a {
    font-weight: bold;
    font-size: 1.1em;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

.top-nav ul li a:hover {
    color: #d32f2f;
    border-bottom: 2px solid #d32f2f;
}

/* Subscribe Button */
.subscribe-btn {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
    margin: 0;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.2;
    vertical-align: middle;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
}

.subscribe-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.3);
}

.subscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsive styles for subscribe button */
@media (max-width: 768px) {
    .subscribe-btn {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 120px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .subscribe-btn {
        font-size: 13px;
        padding: 8px 16px;
        min-width: 160px;
        margin: 6px 0;
    }
}

/* Main Container */
.main-container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

/* Left Navigation */
.left-nav {
    flex: 1;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.left-nav ul li a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    transition: background-color 0.3s;
}

.left-nav ul li a:hover {
    background-color: #d32f2f;
    color: #fff;
}

/* Close Button for Left Nav */
.close-nav {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
}

/* Overlay for Left Nav */
.left-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1004;
}

/* Floating Logo */
.floating-logo {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1003;
    pointer-events: none;
}

.floating-logo img {
    width: 75px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
    display: block;
}

.floating-logo img:hover {
    opacity: 1;
}

/* Main Content */
.content {
    flex: 3;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content h2 {
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
    margin-top: 0;
}

.content h3 {
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.news-articles article, .news-article article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-articles article:last-child, .news-article article:last-child {
    border-bottom: none;
}

.preview-image, .news-image {
    max-width: 100%;
    margin: 10px 0;
}

.news-video {
    max-width: 100%;
    margin: 10px 0;
}

.article-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.share-icon {
    font-size: 1.6em;
    color: #d32f2f;
    text-decoration: none;
    vertical-align: middle;
    line-height: 1;
    display: inline-block;
}

.share-icon:hover {
    color: #b71c1c;
}

.read-more {
    color: #d32f2f;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

.article-content {
    margin-top: 10px;
    text-align: justify;
}

/* Text alignment for all article paragraphs */
.news-articles article p, .news-article article p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Share Pop-up */
.share-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1006;
    justify-content: center;
    align-items: center;
}

.share-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
}

.share-popup-content h3 {
    display: block;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.share-popup-content input {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin: 0 auto 15px auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    text-align: center;
}

.share-popup-content button {
    padding: 10px 20px;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.share-popup-content button:hover {
    background-color: #b71c1c;
}

.whatsapp-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    font-size: 1em;
}

.whatsapp-btn:hover {
    background-color: #1DA851;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Right Ad */
.right-ad {
    flex: 1;
    background-color: #e9e9e9;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Back Button */
.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.back-btn:hover {
    background: #5a6268;
}

/* Search Bar */
.search-bar {
    margin-bottom: 20px;
}

.search-bar form {
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.search-bar button:hover {
    background-color: #b71c1c;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* Hamburger Menu Styling */
.mobile-nav-toggle, .left-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1003;
}

.mobile-nav-toggle span, .left-nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.left-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.left-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.left-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile View */
@media (max-width: 768px) {
    /* Header */
    .header-main {
        justify-content: center;
        position: relative;
    }

    .site-title {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .top-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .top-nav.active {
        display: block;
    }

    .top-nav ul {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    .top-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .top-nav ul li a {
        display: block;
        padding: 10px;
        font-size: 1.2em;
    }

    /* Left Navigation */
    .left-nav-toggle {
        display: flex;
        margin: 10px 20px;
        position: sticky;
        top: 0;
        z-index: 1003;
    }

    .left-nav {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 300px;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1005;
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 8px;
    }

    .left-nav.active {
        display: block;
    }

    .left-nav-overlay.active {
        display: block;
    }

    .close-nav {
        display: block;
    }

    .left-nav ul {
        flex-direction: column;
        padding: 5px;
    }

    .left-nav ul li {
        margin: 5px 0;
    }

    .left-nav ul li a {
        padding: 8px;
        font-size: 1.1em;
    }

    .left-nav ul li div {
        flex-direction: column;
        align-items: flex-start;
    }

    .left-nav ul li div select {
        width: 100%;
        margin: 5px 0 0 0;
        padding: 5px;
        font-size: 1em;
    }

    /* Main Container */
    .main-container {
        flex-direction: column;
        padding: 10px;
    }

    /* Right Ad */
    .right-ad {
        display: none;
    }

    /* Content */
    .content {
        padding: 15px;
    }

    .news-articles article, .news-article article {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .news-articles h3 {
        font-size: 1.5em;
    }

    /* Share Pop-up */
    .share-popup-content {
        width: 80%;
    }

    .article-header {
        gap: 8px;
    }

    .share-icon {
        font-size: 1.8em;
        line-height: 1.5em;
    }

    /* Search Bar */
    .search-bar form {
        flex-direction: column;
    }

    .search-bar input, .search-bar button {
        width: 100%;
    }

    .search-bar button {
        margin-top: 10px;
    }
}