/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #181a20;
    color: #fff;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content wrapper */
.content-wrapper {
    display: flex;
    flex: 1;
    gap: 20px;
    margin-top: 76px;
}

/* Floating Action Buttons */
.floating-action-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 900;
}

.fab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fcd535;
    color: #181a20;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.fab-button i {
    font-size: 24px;
}

.fab-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.fab-label-side {
    position: absolute;
    right: 70px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fab-button:hover .fab-label-side {
    opacity: 1;
    visibility: visible;
}

.fab-label {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #fcd535;
}

/* Iframe Modal */
.iframe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.iframe-modal.force-show {
    display: flex !important;
}

.iframe-modal-content {
    background-color: #242730;
    border-radius: 10px;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #fcd535;
}

.iframe-modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(252, 213, 53, 0.2);
}

.iframe-modal-title {
    color: #fcd535;
    font-size: 20px;
    font-weight: bold;
}

.iframe-modal-close {
    color: #fcd535;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iframe-modal-close:hover {
    color: #fff;
}

.iframe-modal-body {
    flex: 1;
    overflow: hidden;
}

#contentIframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sidebar */
.sidebar {
    width: 250px;
    min-width: 250px;
    background-color: #181a20;
    padding: 20px;
    /* border-right: 1px solid #fcd535; */
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Main content */
.main-content {
    flex: 1;
    overflow: hidden;
    padding: 20px;
}

/* Top bar */
.top-bar {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 20px;
    border-bottom: 1px solid #fcd535;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #181a20;
    z-index: 1000;
    width: 100%;
    /* max-width: 1440px; */
}

/* Bottom bar */
.bottom-bar {
    display: none;
}

/* Navigation buttons */
.nav-buttons {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.nav-btn {
    color: #fcd535;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 16px;
    /* border: 1px solid #fcd535; */
    border-radius: 5px;
    transition: all 0.3s;
}
.notification-bar {
    display: flex;
    align-items: center;
    background-color: #242730;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(252, 213, 53, 0.2);
}

.notification-dot {
    width: 10px;
    height: 10px;
    background-color: #4caf50;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    color: #fff;
    font-size: 14px;
}

.notification-copy {
    color: #fcd535;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.notification-copy:hover {
    color: #fff;
}
.nav-btn:hover {
    background-color: #fcd535;
    color: #181a20;
}

/* Search bar */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    height: 50px;
}

.search-bar input {
    width: 400px;
    flex: none;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #242730;
    color: #fff;
}

/* Mobile search bar */
.search-bar-mobile {
    display: none;
    align-items: center;
    margin-right: 10px;
}

.search-icon {
    color: #fcd535;
    font-size: 20px;
    cursor: pointer;
}

.search-input-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    right: 60px;
    background-color: #242730;
    border: 1px solid #fcd535;
    border-radius: 5px;
    padding: 10px;
    z-index: 1001;
}

.search-input-wrapper.show {
    display: flex;
    gap: 10px;
}

.search-bar-mobile input {
    padding: 8px;
    border: none;
    border-radius: 5px;
    background-color: #1e2329;
    color: #fff;
    width: 200px;
}

.search-btn-mobile {
    padding: 8px 16px;
    background-color: #fcd535;
    border: none;
    border-radius: 5px;
    color: #181a20;
    cursor: pointer;
}

/* Language selector */
.language-selector {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    align-items: center;
}

/* Google Translate adjustments */
.translated-content {
    width: 100%;
    height: 100%;
}
footer p {
    text-align: center;
    border: 1px solid #fcd535;
    background: #242730;
    padding: 10px 0;
}
.skiptranslate,
.goog-te-banner-frame,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

.goog-te-gadget {
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Language button and dropdown */
.lang-btn {
    background-color: #242730;
    color: #fff;
    border: 1px solid #fcd535;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #242730;
    border: 1px solid #fcd535;
    border-radius: 5px;
    margin-top: 5px;
    z-index: 1000;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.lang-option:hover {
    background-color: #5e6673;
}

.lang-btn:hover {
    background-color: #fcd535;
    color: #181a20;
}

/* Section title */
.section-title {
    color: #fcd535;
    font-size: 24px;
    margin: 30px 0;
}

/* Logo */
.logo {
    color: #fcd535;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo img {
    width: 30px;
}

.logo span {
    display: inline-block;
    font-family: "Bowlby One SC", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Menu */
.menu {
    list-style: none;
    border-radius: 5px;
    padding: 5px;
}

.menu li {
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
    margin: 16px 0;
    background-color: #1e2329;
    color: #848e9c;
}

.menu li:hover,
.menu li.active {
    background-color: #fcd535;
    color: #181a20;
}

/* Banner */
.banner {
    margin-bottom: 30px;
    position: relative;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
}

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

.banner-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Search button */
.search-btn {
    padding: 10px 20px;
    background-color: #fcd535;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #181a20;
}

/* Course grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Course card */
.course-card {
    background-color: #242730;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

/* Course info */
.course-info {
    padding: 15px;
}

.course-title {
    color: #fcd535;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.course-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.course-author {
    color: #fcd535;
    font-size: 14px;
    margin-bottom: 8px;
}

.course-category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #1e2329;
    color: #fcd535;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.course-views {
    color: #666;
    font-size: 12px;
}

/* Token prices */
.token-prices {
    margin: 20px 0;
}

.token-price {
    margin: 15px 0px;
    background-color: #242730;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #fcd535;
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-price img {
    width: 24px;
    height: 24px;
    display: block;
}

.token-price span {
    color: #fcd535;
    font-weight: 500;
    line-height: 24px;
}

/* Social buttons */
.social-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 40px;
    background-color: #242730;
    border: 1px solid #fcd535;
    border-radius: 5px;
    color: #fcd535;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #fcd535;
    color: #181a20;
}

/* Responsive design for screens smaller than 768px */
@media screen and (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 1440px;
        transform: none;
        z-index: 1000;
        flex-direction: column;
        padding: 10px 20px;
        height: auto;
        background-color: #181a20;
    }

    .bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background-color: #181a20;
        border-top: 1px solid #fcd535;
        z-index: 900;
        padding: 10px;
    }

    .top-bar .logo-lang-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-buttons {
        position: static;
        transform: none;
        width: 100%;
        margin: 10px 0;
        justify-content: center;
    }

    .search-bar {
        display: none;
    }

    .search-bar-mobile {
        display: flex;
    }

    .section-title {
        color: #fcd535;
        font-size: 24px;
        margin: 20px 0 !important;
    }

    .language-selector {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
    }

    .content-wrapper {
        flex-direction: column;
        margin-top: 0;
        padding-top: 120px;
    }

    .sidebar {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100%;
        min-width: auto;
        height: 60px;
        padding: 10px;
        border-right: none;
        /* border-bottom: 1px solid #fcd535; */
        background-color: #181a20;
        z-index: 999;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .main-content {
        padding: 0 20px;
        /* margin-top: 60px; */
        padding-bottom: 75px;
    }

    .menu {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        background-color: transparent;
        padding: 10px;
    }

    .menu li {
        white-space: nowrap;
        padding: 10px 20px;
        background-color: #242730;
    }

    .menu li.active {
        background-color: #fcd535;
        color: #181a20;
    }

    .menu li:hover {
        background-color: #242730;
        color: #fcd535;
    }

    .banner {
        height: 130px;
        width: 100%;
        position: relative;
        overflow: hidden;
        margin-top: 50px;
    }

    .banner img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .token-prices {
        display: flex;
        justify-content: left;
        align-items: center;
        height: 100%;
        margin: 0;
    }

    .token-price {
        width: 50%;
        margin: 0;
        height: 45px;
        background-color: #242730;
        padding: 10px 15px;
        border: 1px solid #fcd535;
        border-radius: 5px;
        align-items: center;
        gap: 10px;
        display: none;
        transition: opacity 0.3s ease;
    }

    .token-price.active {
        opacity: 1;
        pointer-events: auto;
        display: flex;
    }

    .token-price img {
        width: 24px;
        height: 24px;
        display: block;
        flex-shrink: 0;
    }

    .token-price span {
        color: #fcd535;
        font-weight: 500;
        line-height: 24px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .social-buttons {
        width: 50%;
        display: flex;
        gap: 10px;
        margin: 0;
        justify-content: flex-end;
        padding: 10px;
        position: fixed;
        bottom: 0;
        right: 0;
        z-index: 99999;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        margin: 0;
    }
    
    .floating-action-buttons {
        right: 15px;
        bottom: 80px;
        gap: 20px;
    }
    
    .fab-button {
        width: 50px;
        height: 50px;
    }
    
    .fab-button i {
        font-size: 20px;
    }
    
    .fab-label-side {
        display: none;
    }
    
    .fab-label {
        font-size: 10px;
        margin-top: 2px;
    }
    
    .fab-item {
        gap: 2px;
    }
    
    .iframe-modal-content {
        width: 95%;
        height: 80%;
    }
}

/* Responsive design for screens smaller than 576px */
@media screen and (max-width: 576px) {
    .container {
        flex-direction: column;
    }

    .content-wrapper {
        padding-top: 140px;
    }

    .sidebar {
        top: 80px;
        height: 100px;
        overflow-x: auto;
        overflow-y: hidden;
    }


    .course-grid {
        grid-template-columns: 1fr;
    }

    .nav-buttons {
        gap: 10px;
        justify-content: flex-start;
        padding-left: 1rem;
    }

    .nav-btn {
        padding: 3px 12px;
        font-size: 16px;
    }
}

/* Article card */
.article-card {
    background-color: #242730;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s;
    cursor: pointer;
    border: 1px solid rgba(252, 213, 53, 0.1);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: #fcd535;
}

.article-title {
    color: #fcd535;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 500;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.article-author {
    color: #848e9c;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.article-views {
    color: #848e9c;
    font-size: 14px;
    display: block;
    margin-top: 8px;
}

.article-category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #1e2329;
    color: #fcd535;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* Wallet container */
.wallet-container {
    margin: 20px 0;
    width: 100%;
}

.wallet-address-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.connect-wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    background-color: #242730;
    border: 1px solid #fcd535;
    border-radius: 5px;
    color: #fcd535;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.wallet-icon {
    width: 18px;
    height: 18px;
}

.connect-wallet-btn:hover {
    background-color: #fcd535;
    color: #181a20;
}

.connect-wallet-btn.connected {
    background-color: #242730;
    color: #4caf50;
    border-color: #4caf50;
}

.wallet-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.logout-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logout-icon:hover {
    color: #ff4757;
    transform: scale(1.1);
}

.connect-wallet-btn.connected {
    justify-content: space-between;
}

.connect-wallet-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wallet-address {
    background-color: #242730;
    border: 1px solid #fcd535;
    border-radius: 5px;
    padding: 10px 15px;
    color: #fcd535;
    cursor: pointer;
    font-family: monospace;
    display: none;
}

.wallet-address:not(:empty) {
    display: block;
}

.token-toggle {
    display: none;
}

.wallet-info {
    cursor: pointer;
}

/* Responsive wallet and token toggle for mobile */
@media screen and (max-width: 768px) {
    .token-toggle {
        display: flex;
        margin-bottom: 10px;
        border-radius: 5px;
        overflow: hidden;
    }

    .toggle-btn {
        flex: 1;
        background-color: #242730;
        color: #848e9c;
        border: none;
        padding: 8px 0;
        cursor: pointer;
        transition: all 0.3s;
    }

    .toggle-btn.active {
        background-color: #fcd535;
        color: #181a20;
    }

    .wallet-container {
        display: none;
    }

    .wallet-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

/* Detail Page Styles */
.detail-container {
    background-color: #242730;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.detail-header {
    margin-bottom: 20px;
}

.detail-title {
    color: #fcd535;
    font-size: 24px;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-author {
    color: #848e9c;
    font-size: 14px;
}

.detail-views {
    color: #848e9c;
    font-size: 14px;
}

.detail-category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #1e2329;
    color: #fcd535;
    border-radius: 4px;
    font-size: 12px;
}

.detail-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.detail-subtitle {
    color: #848e9c;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.open-btn {
    background-color: #fcd535;
    color: #181a20;
    text-align: center;
    text-decoration: none;
}

.open-btn:hover {
    background-color: #e5c130;
}

.tip-btn {
    background-color: #4caf50;
    color: white;
}

.tip-btn:hover {
    background-color: #3d8b40;
}

/* Like button */
.connect-wallet-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: 1px solid #fcd535;
    background: #242730;
    color: #fcd535;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.connect-wallet-btn i {
    font-size: 16px;
}

.connect-wallet-btn span {
    font-weight: 500;
}

.connect-wallet-btn:hover {
    background-color: #fcd535;
    color: #181a20;
}

.connect-wallet-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Comments section */
.comments-section {
    margin-top: 40px;
}

.comments-title {
    color: #fcd535;
    font-size: 20px;
    margin-bottom: 20px;
}

.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    background-color: #1e2329;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

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

.comment-wallet {
    color: #848e9c;
    font-size: 12px;
    margin-left: 10px;
    font-family: monospace;
}

.comment-date {
    color: #848e9c;
    font-size: 12px;
}

.comment-content {
    color: #fff;
    line-height: 1.5;
}

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

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border-radius: 8px;
    background-color: #1e2329;
    border: 1px solid #333;
    color: #fff;
    resize: vertical;
}

.comment-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: #1e2329;
    border: 1px solid #333;
    color: #fff;
    font-family: monospace;
}

.submit-btn {
    background-color: #fcd535;
    color: #181a20;
    align-self: flex-end;
    width: 100%;
}

.submit-btn:hover {
    background-color: #e5c130;
}

.wallet-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

#walletAddressInput {
    flex: 1;
    padding: 10px 15px;
    background-color: #242730;
    border: 1px solid #fcd535;
    border-radius: 5px;
    color: #fff;
}

.get-wallet-btn {
    background-image: url(./img/metamask.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #fcd535;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.get-wallet-btn:hover {
    background-color: #fcd535;
    color: #181a20;
}

.comment {
    background-color: #242730;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(252, 213, 53, 0.1);
}

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

.comment-author {
    color: #fcd535;
    font-weight: 500;
}

.comment-time {
    color: #848e9c;
    font-size: 12px;
}

.comment-content {
    color: #fff;
    line-height: 1.5;
}

.no-comments {
    color: #848e9c;
    text-align: center;
    padding: 20px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-content {
    background-color: #242730;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    border: 1px solid #fcd535;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #fcd535;
    cursor: pointer;
    z-index: 2001;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #fcd535;
    margin-bottom: 10px;
    padding-right: 30px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.modal-author,
.modal-views {
    color: #848e9c;
    font-size: 14px;
}

.modal-category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #1e2329;
    color: #fcd535;
    border-radius: 4px;
    font-size: 12px;
}

.modal-body {
    color: #fff;
}

.modal-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-subtitle {
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.modal-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fcd535;
    color: #181a20;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background-color: #e5c130;
    transform: translateY(-2px);
}

/* Modal responsive design */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Modal (alternative definition) */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #242730;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #fcd535;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fcd535;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header h2 {
    color: #fcd535;
    margin: 0;
    font-size: 20px;
}

.close-btn {
    color: #fcd535;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #fff;
}

.modal-body {
    color: #fff;
}

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.article-link-btn {
    display: inline-block;
    background-color: #fcd535;
    color: #181a20;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.article-link-btn:hover {
    background-color: #e5c130;
}

.article-actions {
    margin-top: 20px;
}

/* Responsive design for detail page */
@media screen and (max-width: 768px) {
    .detail-container {
        padding: 20px;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-actions {
        flex-direction: column;
    }
}

/* Error message */
.error-message {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

/* Custom alert (confirmation box) */
.custom-alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.custom-alert-box {
    background: #242730;
    border: 1px solid #fcd535;
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: #fff;
}

.custom-alert-message {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.custom-alert-btn {
    padding: 10px 25px;
    background: #242730;
    border: 1px solid #fcd535;
    color: #fcd535;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.custom-alert-btn:hover {
    background: #fcd535;
    color: #181a20;
}

/* Responsive design for custom alert */
@media screen and (max-width: 768px) {
    .custom-alert-box {
        width: 95%;
        padding: 15px;
    }
    .banner{
        margin-top: 0;
    }
    .banner-title {
        position: absolute;
        bottom: 12px;
        left: 12px;
        color: #fff;
        font-size: 14px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .notification-bar {
        margin-top: 50px;
    }
    
    .notification-text {
        font-size: 12px;
    }
}
.partners-section {
    margin: 20px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.partner-link {
    display: block;
    transition: transform 0.3s ease;
}

.partner-link:hover {
    transform: translateY(-5px);
}

.partner-link img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid rgba(252, 213, 53, 0.1);
}

.partner-link img:hover {
    border-color: #fcd535;
}

@media screen and (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
}