/* =====================================================
   modules.css – momo2 template
   Module-specific styles ported from momo/css/style.css
   (Rules, Downloads, News, Dark layout, Pagination,
    Guides, Server status, Guild, Player profile,
    Castle siege, Shop/donation)
   ===================================================== */

/* ====================
   RULES MODULE
   ==================== */
.rules-section {
    margin-top: 20px;
}

.rule-card {
    background-color: #252525;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
}

.download-card:hover, .rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.3);
}

.news-content h5, .rule-title {
    margin-bottom: 15px;
    font-weight: 600;
}

.rule-title {
    font-size: 18px;
    color: #ffb320;
    border-left: 4px solid #ff9800;
    padding-left: 12px;
    text-transform: uppercase;
}

.rule-details {
    padding-left: 20px;
    color: #ddd;
    font-size: 14px;
}

.rule-details li {
    margin-bottom: 8px;
}

.penalty {
    margin-top: 15px;
    font-size: 14px;
    color: #ffcc00;
    font-weight: bold;
}

.penalty-text {
    display: block;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    color: #ff9800;
    margin-top: 5px;
    overflow-x: auto;
    border: 1px solid #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.rule-separator {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #ff9800, transparent);
    margin: 15px 0;
    border-radius: 3px;
}

.rule-details ul {
    list-style: none;
    padding-left: 0;
}

.rule-details ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.rule-details ul li::before {
    content: "\26A1";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff9800;
    font-size: 16px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .rule-card { padding: 15px; }
    .rule-title { font-size: 16px; }
    .rule-details { font-size: 13px; }
    .penalty { font-size: 13px; }
    .penalty-text { font-size: 12px; }
}


/* ====================
   DOWNLOADS MODULE
   ==================== */
.download-category {
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.category-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #f1f1f1;
}

.category-header p {
    color: #bbb;
    font-size: 16px;
}

.download-card {
    background: #252525;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all .3s ease;
}

.download-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.download-card-body {
    padding: 20px;
    text-align: left;
}

.download-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f1f1;
    margin-bottom: 10px;
}

.download-description {
    font-size: 14px;
    color: #aaa;
}

.download-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #333;
    background-color: #282828;
}

.download-size {
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
}


/* ====================
   NEWS MODULE
   ==================== */
.news-feature-section {
    padding-top: 1em;
    padding-bottom: 1em;
}

.news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #575757;
    border-radius: 15px;
    background: #282828;
    transition: all .3s ease;
    overflow: hidden;
}

.news-thumb {
    min-height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #575757;
}

.news-label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    padding: 6px 25px;
    background: #4eae60;
    position: relative;
    top: 15px;
    left: 15px;
}

.news-content {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-content h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-content p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-btn {
    align-self: center;
    text-align: center;
    font-size: 15px;
    color: #131313;
    padding: 10px 25px;
    background: #ffb320;
    border-radius: 50px;
    font-weight: 500;
    border: 0;
    transition: background .3s ease, color .3s ease;
}

.news-btn:hover {
    background: #ffd85e;
    color: #131313;
}

.latest-news-section {
    overflow: hidden;
    display: block;
    clear: both;
    background: #131313;
    padding: 24px 0 14px;
    position: relative;
}

@media (min-width: 769px) {
    .news-item { margin-bottom: 30px; }
}

@media (max-width: 768px) {
    .news-scroll-wrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        margin-bottom: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .news-scroll-wrapper::-webkit-scrollbar { display: none; }
    .news-scroll-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        padding-left: 15px;
    }
    .news-item-wrapper {
        flex: 0 0 70%;
        scroll-snap-align: center;
    }
    .news-item-wrapper:first-child {
        margin-left: calc(15% - 7.5px);
    }
    .news-item { width: 100%; }
}

@media (max-width: 480px) {
    .news-content { padding: 10px; }
    .news-content h5 { font-size: 16px; margin-bottom: 5px; }
    .news-content p { font-size: 13px; margin-bottom: 5px; }
    .news-btn { font-size: 13px; padding: 8px 20px; }
}


/* ====================
   DARK LAYOUT (news detail, sidebar)
   ==================== */
.dark-spad {
    padding: 20px 0;
    background: #121212;
}

.dark-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.dark-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dark-main-content {
    flex: 2;
    background: #1e1e1e;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    color: #e2e2e2;
}

.dark-news-panel {
    background: #252525;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .4);
    transition: all .3s ease-in-out;
}

.dark-news-heading {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.dark-news-title a {
    color: #ffb320;
    font-size: 28px;
    text-decoration: none;
}

.dark-news-body {
    padding: 10px 0;
    color: #ccc;
    line-height: 1.6;
    font-size: 16px;
}

.dark-news-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
    text-align: right;
    color: #777;
}

.dark-news-date-footer {
    font-size: 14px;
    color: #888;
}

.dark-sidebar {
    flex: 1;
    background: #1e1e1e;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    max-width: 280px;
    color: #e2e2e2;
}

.dark-widget-title {
    font-size: 24px;
    color: #ffb320;
    text-align: center;
    margin-bottom: 20px;
}

.dark-card {
    background: #2a2a2a;
    padding: 15px;
    margin-bottom: 5px;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    transition: transform .3s ease, box-shadow .3s ease;
}

.dark-news-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: #2a2a2a;
    border-radius: 6px;
    color: #ffb320;
    transition: background .3s;
    text-decoration: none;
}

.dark-news-link:hover { background: #333; }

.latest-post-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffb320;
    margin-right: auto;
}

.latest-post-date {
    font-size: 12px;
    color: #777;
    margin-left: 5px;
}


/* ====================
   PAGINATION
   ==================== */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.pagination-item {
    margin: 0 5px;
    transition: transform 0.2s ease;
}

.pagination-item a {
    display: block;
    color: #fff;
    background-color: #333;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.pagination-item a:hover {
    background-color: #555;
    color: #fff;
    transform: translateY(-3px);
}

.pagination-item.active a {
    background-color: #00c1a5;
    pointer-events: none;
    color: #fff;
}

.pagination-item a[disabled] {
    pointer-events: none;
    color: #777;
    background-color: #222;
}

.pagination-item a[disabled]:hover {
    background-color: #222;
    cursor: not-allowed;
}

.pagination-item a.prev,
.pagination-item a.next {
    background-color: #444;
    color: #ccc;
}

.pagination-item a.prev:hover,
.pagination-item a.next:hover {
    background-color: #666;
    color: #fff;
}


/* ====================
   GUIDES MODULE
   ==================== */
.guide-page-container {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.guide-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.guides-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #333;
    border-radius: 8px;
    background: linear-gradient(to bottom, #252525, #1e1e1e);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.guides-menu .guide-category {
    border-bottom: 1px solid #333;
}

.guides-menu .guide-category:last-child {
    border-bottom: none;
}

.guides-menu .guide-category-header {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #ddd;
    cursor: pointer;
    background-color: #282828;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    margin: 5px;
}

.guides-menu .guide-category-header.active,
.guides-menu .guide-category-header:hover {
    background-color: #ff9800;
    color: #fff;
}

.guides-menu .guide-submenu {
    list-style: none;
    padding: 10px 20px;
    margin: 0;
    display: none;
    background: #252525;
    border-left: 3px solid #ff9800;
}

.guides-menu .guide-submenu li a {
    color: #ff9800;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.guides-menu .guide-submenu li a:hover {
    color: #4db8ff;
    text-shadow: 0 0 5px rgba(77, 184, 255, 0.5);
}

.guide-sidebar {
    width: 30%;
    padding: 20px;
    background: #222;
    border-radius: 8px;
    border: 1px solid #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.guide-sidebar h4 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #ff9800;
}

.guide-sidebar h4:after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #ff9800;
    margin-top: 5px;
}

.guide-main-content {
    width: 65%;
    line-height: 1.8;
    font-size: 16px;
    color: #ddd;
    padding: 20px;
    background: #252525;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.guide-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.guide-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label { font-weight: 700; color: #aaa; }
.meta-value { color: #bbb; }

.guide-title {
    font-size: 32px;
    color: #ffcc00;
}

@media (max-width: 768px) {
    .guide-page-container { flex-direction: column; width: 95%; padding: 15px; }
    .guide-row { flex-direction: column; gap: 10px; }
    .guide-main-content, .guide-sidebar { width: 100%; }
    .guide-meta { flex-direction: column; align-items: flex-start; gap: 15px; }
    .guide-meta-item { flex: none; width: 100%; }
}


/* ====================
   SERVER STATUS BAR
   ==================== */
.server-status-bar {
    background: linear-gradient(90deg, #131313, #1e1e1e);
    color: #ffffff;
    padding: 12px 0;
    border-top: 2px solid #ffb320;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
    width: 100%;
}

.server-status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.status-indicator.online {
    background: #4caf50;
    box-shadow: 0px 0px 10px rgba(76, 175, 80, 0.8);
}

.status-indicator.offline {
    background: #f44336;
    box-shadow: 0px 0px 10px rgba(244, 67, 54, 0.8);
}

.server-status-text {
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
}

.server-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.progress-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    width: 150px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #4caf50);
    transition: width 0.5s ease-in-out;
    border-radius: 10px;
}

.progress-text {
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
}

.progress-text i { margin-right: 5px; }

.server-info {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.server-info-item i { color: #ffb320; font-size: 16px; }

@media (max-width: 1700px) {
    .server-status-container { flex-wrap: nowrap; justify-content: space-between; gap: 5px; padding: 5px 10px; }
    .server-status, .server-progress { flex: 0 0 auto; font-size: 14px; }
    .server-info { flex-wrap: nowrap; gap: 5px; }
    .server-info-item { min-width: 90px; font-size: 13px; padding: 4px 8px; }
    .progress-container { width: 120px; }
    .progress-text { font-size: 14px; }
}

@media (max-width: 1350px) {
    .server-status-container { flex-wrap: wrap; justify-content: center; }
    .server-info-item { min-width: 85px; font-size: 12px; padding: 4px 6px; }
    .progress-container { width: 100px; }
}

@media (max-width: 1100px) {
    .server-status-container { flex-wrap: wrap; justify-content: center; text-align: center; gap: 10px; }
    .server-status { width: 100%; justify-content: center; }
    .server-progress { width: 100%; justify-content: center; }
    .server-info { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .server-info-item { min-width: 100px; font-size: 12px; }
}

@media (max-width: 768px) {
    .server-status-container { flex-direction: column; align-items: center; text-align: center; }
    .server-status, .server-progress { justify-content: center; width: 100%; margin-bottom: 10px; }
    .server-info { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .server-info-item { min-width: 90px; font-size: 12px; }
}

@media (max-width: 480px) {
    .server-info { display: flex; flex-wrap: wrap; gap: 5px; }
    .server-info-item { flex: 0 0 48%; justify-content: center; }
}


/* ====================
   GUILD PROFILE
   ==================== */
.guild-profile {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    padding: 30px;
    max-width: 900px;
    margin: 20px auto;
    color: #fff;
}

.guild-header, .guild-logo {
    display: flex;
    align-items: center;
}

.guild-header {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ffb320;
    padding-bottom: 20px;
}

.guild-logo {
    flex: 0 0 150px;
    height: 150px;
    border-radius: 15px;
    background: #333;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #ffb320;
}

.guild-logo img { width: 100%; height: auto; border-radius: 12px; }

.guild-info { flex: 1; }

.guild-name {
    font-size: 28px;
    font-weight: 700;
    color: #ffb320;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
    margin-bottom: 10px;
}

.guild-stats { width: 100%; border-spacing: 0 10px; }
.guild-stats td { font-size: 16px; padding: 5px 10px; }
.guild-stats td:first-child { text-align: right; color: #aaa; font-weight: 700; }
.guild-stats td:last-child { text-align: left; color: #fff; }

.guild-members { margin-top: 20px; }

.guild-members h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffb320;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
    margin-bottom: 20px;
    text-align: center;
}

.guild-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.guild-member {
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    width: 120px;
    text-align: center;
    color: #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: transform .3s ease, box-shadow .3s ease;
}

.guild-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
    background: linear-gradient(135deg, #3a3a3a, #292929);
}

@media (max-width:768px) {
    .guild-header { flex-direction: column; text-align: center; }
    .guild-logo { margin-bottom: 15px; }
    .guild-stats td { font-size: 14px; }
}


/* ====================
   PLAYER PROFILE
   ==================== */
.player-profile-card {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    max-width: 400px;
    margin: 20px auto;
    padding: 25px;
    text-align: center;
    color: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
}

.player-profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .5);
}

.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffb320;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
    object-fit: cover;
    display: block;
}

.player-name {
    font-size: 28px;
    font-weight: 700;
    color: #ffb320;
    margin-bottom: 5px;
}

.player-class {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 20px;
}

.profile-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.profile-info-table .info-label, .profile-info-table .info-value {
    text-align: left;
    font-size: 16px;
    padding: 12px 15px;
    color: #ffb320;
}

.profile-info-table .info-value { text-align: right; color: #fff; }

.profile-info-table tr:nth-child(odd) { background-color: #292929; }
.profile-info-table tr:nth-child(even) { background-color: #1e1e1e; }

.profile-info-table .status-row { background-color: #1e1e1e; display: table-row; }

.profile-info-table .status-label {
    text-align: left;
    font-size: 16px;
    padding: 12px 15px;
    color: #ffb320;
}

.profile-info-table .status-badge {
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    display: inline-block;
    background-color: #f44336;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
    margin: 0;
    transition: transform .3s ease, background-color .3s ease;
}

.profile-info-table .status-badge.online { background-color: #4caf50; }

@media (max-width:768px) {
    .player-profile-card { padding: 20px; max-width: 90%; }
    .player-avatar { width: 80px; height: 80px; }
    .player-name { font-size: 24px; }
    .player-class { font-size: 16px; }
    .profile-info-table .info-label, .profile-info-table .info-value, .status-badge { font-size: 14px; padding: 10px; }
    .status-badge { padding: 8px 16px; }
}


/* ====================
   LANGUAGE SWITCH
   ==================== */
.language-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
}

.language-switch a { display: inline-block; }

.language-flag {
    width: 26px;
    height: auto;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.language-flag:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}


/* ====================
   CASTLE SIEGE (homepage card)
   ==================== */
.castle-siege-big-card {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.6);
    border: 2px solid #2a2a2a;
    background-color: rgba(0, 0, 0, 0.85);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-banner-header {
    font-family: "Berkshire Swash", cursive;
    text-align: center;
    font-size: 48px;
    color: rgb(255, 213, 0);
    text-shadow: rgb(0, 0, 0) 2px 2px 4px;
    margin-top: -20px;
    margin-bottom: 10px;
}

.castle-siege-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.castle-siege-column {
    flex: 1 1 48%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 15px;
    color: #ffffff;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.castle-siege-column .guild-logo {
    width: 50%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 15px #DAA520);
}

.castle-siege-column .cstitle1,
.castle-siege-column .cstitle2 {
    font-size: 28px;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 10px;
}

.cs-winner-container {
    position: relative;
    display: inline-block;
    text-align: center;
}

.guild_owner, .guild_master {
    font-family: "Berkshire Swash", cursive;
    font-size: 32px;
    color: #DAA520;
    font-weight: bold;
    text-shadow: 0px 0px 0.2em red, 0px 0px 0.2em pink, 0px 0px 0.2em red;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    z-index: 1;
}

.spark-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 40px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.guild_owner:hover + .spark-image,
.guild_master:hover + .spark-image { opacity: 1; }

.guild_countdown {
    font-size: 28px;
    color: #dddddd;
    margin-bottom: 15px;
}

.more-details-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 15px;
}

.more-details-btn {
    display: inline-block;
    text-align: center;
    font-size: 20px;
    color: #131313;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    background: #ffb320;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.more-details-btn:hover { background-color: #ffd700; color: #111; }

@media (max-width: 768px) {
    .cs-banner-header { font-size: 40px; }
    .castle-siege-column { flex: 0 0 48%; min-width: 48%; }
    .guild_owner {
        position: relative; z-index: 2; font-size: 22px;
        margin-top: 10px; padding: 5px;
        background: rgba(0, 0, 0, 0.8); width: auto; text-align: center;
    }
    .castle-siege-big-card { padding: 10px; margin-top: 30px; }
    .castle-siege-content { flex-wrap: wrap; align-items: center; gap: 15px; }
    .castle-siege-column .cstitle1, .castle-siege-column .cstitle2, .guild_countdown { font-size: 18px; }
}

@media (max-width: 576px) {
    .cs-banner-header { font-size: 36px; }
    .guild_owner { font-size: 20px; }
    .cstitle1, .cstitle2 { font-size: 18px; }
    .more-details-btn { font-size: 16px; padding: 10px 18px; }
    .castle-siege-column { flex: 0 0 80%; width: 80%; }
}


/* ====================
   CASTLE SIEGE DETAIL PAGE
   ==================== */
.p_castle-siege-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.p_section-title h2 {
    font-size: 28px;
    color: #ffb320;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.p_panel-box {
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 20px;
}

.p_dark-news-panel { border: 1px solid #333; }

.p_owner-header { display: flex; align-items: center; }

.p_owner-logo { margin-right: 15px; border-radius: 50%; overflow: hidden; }

.p_owner-details h2 { color: #ffb320; font-size: 22px; font-weight: bold; }
.p_owner-details p { color: #ccc; font-size: 14px; }

.p_alliance-list h3 { color: #ffd85e; font-size: 20px; margin-bottom: 5px; }
.p_alliance-item { color: #ccc; font-size: 14px; margin-left: 20px; }

.p_siege-timer { color: #ffd85e; font-size: 24px; text-align: center; margin-top: 10px; }

.p_castle-info-table { width: 100%; color: #ccc; border-collapse: collapse; margin-top: 10px; }
.p_castle-info-table td { padding: 5px; border-bottom: 1px solid #444; }
.p_castle-info-table .font-semibold { font-weight: bold; }

.p_schedule-table { width: 100%; color: #ccc; border-collapse: collapse; }
.p_schedule-table th { color: #ffb320; text-align: left; padding: 8px; }
.p_schedule-table td { padding: 8px; border-bottom: 1px solid #444; }


/* ====================
   SHOP / DONATION PACKAGES
   ==================== */
.wc-packages {
    margin-top: 50px;
    perspective: 1000px;
}

.wc-card {
    position: relative;
    overflow: hidden;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 40px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wc-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 204, 102, 0.4);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 204, 102, 0.1);
}

.wc-card.featured {
    border: 1px solid rgba(255, 204, 102, 0.4);
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(15, 15, 15, 1) 100%);
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.wc-ribbon {
    position: absolute;
    top: 30px;
    right: -60px;
    width: 220px;
    padding: 12px 0;
    background: linear-gradient(90deg, #ff4d4d, #ffcc66);
    color: #000;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    transform: rotate(45deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 20px rgba(255, 204, 102, 0.5);
    z-index: 10;
}

.wc-old {
    font-size: 16px;
    color: #a0a0a0;
    text-decoration: line-through;
    opacity: 0.6;
    margin-bottom: 2px;
}

.wc-title {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.featured .wc-title {
    background: linear-gradient(to bottom, #fff 0%, #ffcc66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wc-price {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin: 10px 0;
    font-family: 'Poppins', sans-serif;
}

.wc-sub {
    font-size: 11px;
    letter-spacing: 2px;
    color: #ffcc66;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0.8;
}

.wc-bonus {
    display: inline-block;
    padding: 6px 16px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50px;
    margin-bottom: 25px;
    background: rgba(255, 204, 102, 0.1);
    color: #ffcc66;
    border: 1px solid rgba(255, 204, 102, 0.3);
    text-shadow: 0 0 10px rgba(255, 204, 102, 0.5);
}

.wc-btn {
    width: 100%;
    padding: 15px 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #222;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wc-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(45deg);
    transition: 0.5s;
}

.wc-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.wc-btn.highlight {
    background: linear-gradient(135deg, #ffcc66, #ff8c00);
    color: #000;
    border: none;
}

.wc-btn.highlight:hover {
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.4);
    filter: brightness(1.1);
}

@media (max-width: 991px) {
    .wc-card { max-width: 100%; min-height: 420px; }
}

@media (max-width: 575px) {
    .wc-card { padding: 30px 20px; }
    .wc-title { font-size: 24px; }
    .wc-price { font-size: 32px; }
    .wc-ribbon { width: 180px; right: -50px; font-size: 13px; }
}


/* ====================
   MAIN HEADER SECTION (homepage hero banner)
   ==================== */
.main-header-section {
    width: 100%;
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
    /* pull up to cancel .m2-content-wrap top padding – sits flush under header */
    margin-top: -28px;
}

.main-header-item {
    width: 100%;
    height: 85vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.main-header-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 0;
}

.main-header-text {
    font-family: "Roboto", sans-serif;
    position: relative;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1.5s ease forwards;
}

.main-header-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.main-header-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.main-header-btn {
    margin-top: 10px;
}
