/* 
 * Jade Dynasty: Infinite Revival - Main Theme
 * Dark fantasy UI with gold accents and magical elements
 */

 :root {
	--primary-bg: #191515;
	--secondary-bg: #1a0e20;
	--card-bg: rgba(26, 14, 32, 0.85);
	--accent-color: #ffd24b;  /* Gold */
	--accent-glow: rgba(212, 175, 55, 0.5);
	--accent-hover: #e5c158;
	--accent-dark: #9c7c21;
	--secondary-accent: #a83232;  /* Deep red */
	--third-accent: #6b3fa0;      /* Purple */
	--text-color: #e0e0e0;
	--text-muted: #a0a0a0;
	--text-highlight: #fff;
	--border-color: rgba(212, 175, 55, 0.3);
	--shadow-color: rgba(0, 0, 0, 0.5);
	--glow-shadow: 0 0 10px var(--accent-glow);
	--button-gradient: linear-gradient(to bottom, #d4af37, #9c7c21);
	--header-gradient: linear-gradient(to bottom, rgba(26, 14, 32, 0.9), rgba(10, 6, 15, 0.9));
	--card-gradient: linear-gradient(135deg, rgba(26, 14, 32, 0.8), rgba(10, 6, 15, 0.8));
	--success-color: #2ecc71;
	--danger-color: #e74c3c;
}
  
/* Base styles */
body, html {
	font-family: 'Cinzel', 'Noto Sans', sans-serif;
	margin: 0;
	padding: 0;
	background-color: var(--primary-bg);
	color: var(--text-color);
	min-height: 100vh;
	font-size: 15px;
	line-height: 1.6;
	overflow-x: hidden;
}
  
body {
	background-image: url("../images/bg/landscape.jpg");
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
	position: relative;
}
  
body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(ellipse at center, rgba(10, 6, 15, 0.6) 0%, rgba(10, 6, 15, 0.9) 100%);
	z-index: -1;
}
  
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}
  
/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Cinzel', serif;
	margin-top: 0;
	color: var(--accent-color);
	font-weight: 700;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.7), 0 0 10px var(--accent-glow);
}
  
h1 {
	font-size: 3rem;
	text-transform: uppercase;
	letter-spacing: 2px;
}
  
h2 {
	font-size: 2.2rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}
  
h3 {
	font-size: 1.7rem;
	letter-spacing: 1px;
}
  
a {
	color: var(--accent-color);
	text-decoration: none;
	transition: all 0.3s ease;
	text-shadow: 0 0 3px var(--accent-glow);
}
  
a:hover {
	color: var(--accent-hover);
	text-shadow: 0 0 8px var(--accent-glow);
}
  
/* Utility classes */
.text-success {
	color: var(--success-color);
}
  
.text-danger {
	color: var(--danger-color);
}
  
.text-center {
	text-align: center;
}
  
.mt-4 {
	margin-top: 1.5rem;
}
  
.float-effect {
	animation: float 6s ease-in-out infinite;
}
  
.glow-effect {
	animation: glow 2s infinite;
}
  
/* Header */
header {
	background: var(--header-gradient);
	box-shadow: 0 2px 10px var(--shadow-color);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--border-color);
}
  
.header-top {
	background-color: rgba(0, 0, 0, 0.4);
	padding: 5px 0;
	font-size: 0.8rem;
	border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
  
.server-info {
	display: flex;
	justify-content: space-between;
}
  
.server-time {
	display: flex;
	align-items: center;
}
  
.server-time i {
	margin-right: 5px;
	color: var(--accent-color);
}
  
.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	position: relative;
}
  
.header-main:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--accent-color), transparent);
	opacity: 0.3;
}
  
.logo {
	position: relative;
	display: inline-block;
}
  
.logo img {
	max-height: 80px;
	filter: drop-shadow(0 0 5px var(--accent-glow));
	transition: all 0.3s ease;
}
  
.logo:hover img {
	filter: drop-shadow(0 0 8px var(--accent-glow));
	transform: scale(1.05);
}
  
.logo::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
	opacity: 0.5;
	pointer-events: none;
}
  
/* Navigation */
.main-nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}
  
.main-nav li {
	margin: 0 5px;
	position: relative;
}
  
.main-nav a {
	display: block;
	padding: 10px 15px;
	color: var(--text-color);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 0.9rem;
	border-radius: 3px;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
	letter-spacing: 1px;
}
  
.main-nav a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
	border-radius: 3px;
	z-index: -1;
	opacity: 0;
	transition: opacity 0.3s ease;
}
  
.main-nav a:hover::before,
.main-nav a.active::before {
	opacity: 1;
}
  
.main-nav a:hover,
.main-nav a.active {
	color: var(--accent-color);
}
  
.main-nav a.active::after {
	content: '';
	position: absolute;
	left: 15%;
	right: 15%;
	bottom: 5px;
	height: 2px;
	background-color: var(--accent-color);
	box-shadow: 0 0 5px var(--accent-glow);
}
  
/* Special Navigation Items (Login/Register) */
.main-nav a#LoginButton,
.main-nav a#RegButton {
	background: rgba(10, 6, 15, 0.5);
	border: 1px solid var(--accent-color);
	transition: all 0.3s ease;
}
  
.main-nav a#LoginButton:hover,
.main-nav a#RegButton:hover {
	background: rgba(212, 175, 55, 0.2);
	box-shadow: 0 0 10px var(--accent-glow);
	transform: translateY(-2px);
}
  
.main-nav a#RegButton {
	background: var(--button-gradient);
	color: var(--primary-bg);
	font-weight: bold;
}
  
.main-nav a#RegButton:hover {
	color: var(--text-highlight);
}

/* Full-screen hero banner */
.hero-banner {
	position: relative;
	height: 100vh; /* Full viewport height */
	min-height: 600px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-image: url('../images/hero-bg.jpg');
	background-position: center;
	background-size: cover;
}

/* Radial gradient overlay */
.hero-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(ellipse at center, rgba(10, 6, 15, 0.3) 0%, rgba(10, 6, 15, 0.8) 100%);
	z-index: 1;
}

/* Custom title image container */
.hero-title-image {
	position: relative;
	z-index: 10;
	margin-bottom: 50px;
	max-width: 100%;
	text-align: center;
}

.hero-title-image img {
	max-width: 70%;
	height: auto;
}

/* Custom button container */
.hero-button-container {
	position: relative;
	z-index: 10;
	text-align: center;
}

.hero-button-container img {
	cursor: pointer;
	transition: all 0.3s ease;
	max-width: 60%;
	height: auto;
}

.hero-button-container img:hover {
	transform: scale(1.05);
	filter: brightness(1.1);
}

/* Floating elements */
.hero-floating-elements {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.floating-element {
	position: absolute;
	opacity: 0.6;
	filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
	animation: floatRandom 10s ease-in-out infinite;
}

@keyframes floatRandom {
	0% { transform: translate(0, 0) rotate(0deg); }
	33% { transform: translate(30px, -30px) rotate(10deg); }
	66% { transform: translate(-20px, 20px) rotate(-5deg); }
	100% { transform: translate(0, 0) rotate(0deg); }
}

/* Character images */
.hero-character {
	position: absolute;
	right: 5%;
	bottom: 0;
	height: 90%;
	z-index: 5;
	filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
	animation: float 6s ease-in-out infinite;
}

.hero-character-2 {
	position: absolute;
	right: 25%;
	bottom: 0;
	height: 75%;
	z-index: 3;
	filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
	animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-20px); }
	100% { transform: translateY(0px); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
	.hero-character, .hero-character-2 {
		height: 70%;
		opacity: 0.8;
	}
	
	.hero-title-image {
		max-width: 90%;
		margin-bottom: 30px;
	}
}

@media (max-width: 768px) {
	.hero-character {
		right: auto;
		opacity: 0.6;
	}
	
	.hero-character-2 {
		display: none;
	}
	
	.hero-title-image {
		max-width: 95%;
		margin-bottom: 20px;
	}
}
  
/* Server Status */
.server-status {
	background: var(--card-gradient);
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 30px;
	color: var(--text-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: 1px solid var(--border-color);
	box-shadow: 0 5px 15px var(--shadow-color);
	position: relative;
	overflow: hidden;
}
  
.server-status::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
	opacity: 0.1;
	pointer-events: none;
}
  
.server-status .status-indicator {
	display: flex;
	align-items: center;
}
  
.server-status .status-indicator:before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 10px;
	box-shadow: 0 0 5px currentColor;
}
  
.server-status .online:before {
	background-color: var(--success-color);
	animation: pulse 2s infinite;
}
  
.server-status .offline:before {
	background-color: var(--danger-color);
}
  
.server-details {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}
  
.server-details span {
	padding-right: 15px;
}
  
.server-details strong {
	color: var(--accent-color);
}
  
/* Stats Counter */
.stats-counter {
	display: flex;
	margin-bottom: 40px;
	gap: 20px;
}
  
.stat-item {
	flex: 1;
	text-align: center;
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	padding: 25px 20px;
	box-shadow: 0 5px 15px var(--shadow-color);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}
  
.stat-item::before {
	content: '';
	position: absolute;
	top: -10px;
	left: -10px;
	right: -10px;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--accent-color), transparent);
	opacity: 0.3;
}
  
.stat-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px var(--shadow-color), 0 0 15px var(--accent-glow);
}
  
.stat-value {
	font-size: 2.8rem;
	font-weight: bold;
	color: var(--accent-color);
	text-shadow: 0 0 5px var(--accent-glow);
	margin-bottom: 10px;
	font-family: 'Cinzel', serif;
}
  
.stat-label {
	font-size: 1rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

/* Featured Video Section */
.featured-video-section {
    display: flex;
    margin-bottom: 40px;
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    position: relative;
}

.featured-video-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
}

.featured-video {
    flex: 2;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.featured-video iframe {
    width: 100%;
    height: 400px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.featured-hero {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-float {
    max-height: 280px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 992px) {
    .featured-video-section {
        flex-direction: column;
    }
    
    .featured-video {
        width: 100%;
    }
    
    .featured-video iframe {
        height: 300px;
    }
    
    .featured-hero {
        width: 100%;
        height: 300px;
    }
    
    .hero-float {
        max-height: 300px;
    }
}
  
/* Main Content */
.main-content {
	padding: 30px 0;
}
  
.content-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 30px;
	margin-bottom: 30px;
}
  
/* Leaderboard Styles */
.leaderboard {
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 30px;
	box-shadow: 0 5px 15px var(--shadow-color);
}
  
.leaderboard-header {
	background-color: rgba(10, 6, 15, 0.5);
	padding: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
}
  
.leaderboard-header h3 {
	margin: 0;
	color: var(--accent-color);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}
  
.leaderboard-tabs {
	display: flex;
}
  
.leaderboard-tab {
	padding: 8px 15px;
	background-color: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	font-family: inherit;
	font-size: 0.9rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}
  
.leaderboard-tab.active {
	color: var(--accent-color);
}
  
.leaderboard-tab.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 15%;
	right: 15%;
	height: 2px;
	background-color: var(--accent-color);
	box-shadow: 0 0 5px var(--accent-glow);
}
  
.leaderboard-content {
	padding: 0;
}
  
.tab-content {
	display: none;
}
  
.tab-content.active {
	display: block;
}
  
.leaderboard-table {
	width: 100%;
	border-collapse: collapse;
}
  
.leaderboard-table tr {
	transition: background-color 0.3s ease;
}
  
.leaderboard-table tr:nth-child(odd) {
	background-color: rgba(0, 0, 0, 0.2);
}
  
.leaderboard-table tr:hover {
	background-color: rgba(212, 175, 55, 0.1);
}
  
.leaderboard-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
  
.leaderboard-table .rank {
	font-weight: bold;
	color: var(--accent-color);
	width: 40px;
	text-align: center;
	text-shadow: 0 0 5px var(--accent-glow);
}
  
.leaderboard-table .player {
	display: flex;
	align-items: center;
}
  
.leaderboard-table .player-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	margin-right: 10px;
	border: 1px solid var(--border-color);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
  
.leaderboard-table .score {
	font-weight: bold;
	text-align: right;
	color: var(--text-highlight);
}
  
/* Discord Widget */
.discord-widget {
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 30px;
	box-shadow: 0 5px 15px var(--shadow-color);
}
  
.discord-header {
	background-color: #7289da;
	padding: 15px;
	display: flex;
	align-items: center;
}
  
.discord-logo {
	width: 30px;
	height: 30px;
	margin-right: 10px;
}
  
.discord-title {
	color: white;
	font-weight: bold;
	margin: 0;
	text-shadow: none;
}
  
.discord-content {
	padding: 20px;
}
  
.discord-stats {
	display: flex;
	justify-content: space-around;
	margin-bottom: 15px;
}
  
.discord-stat {
	text-align: center;
}
  
.discord-stat-value {
	font-size: 2rem;
	font-weight: bold;
	color: var(--accent-color);
	text-shadow: 0 0 5px var(--accent-glow);
	font-family: 'Cinzel', serif;
}
  
.discord-stat-label {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}
  
.discord-members {
	margin-bottom: 15px;
}
  
.discord-member {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 8px;
	border-radius: 4px;
	transition: all 0.3s ease;
}
  
.discord-member:hover {
	background-color: rgba(0, 0, 0, 0.2);
}
  
.discord-member-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	margin-right: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}
  
.discord-member-name {
	font-size: 0.9rem;
}
  
.discord-join {
	display: block;
	background-color: #7289da;
	color: white;
	text-align: center;
	padding: 10px;
	border-radius: 3px;
	font-weight: bold;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}
  
.discord-join:hover {
	background-color: #5b6eae;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
  
/* News Section */
.news-section {
	margin-bottom: 30px;
}
  
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-color);
}
  
.section-title {
	font-size: 2rem;
	margin: 0;
	text-transform: uppercase;
	color: var(--accent-color);
	position: relative;
	display: inline-block;
	letter-spacing: 2px;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 60px;
	height: 3px;
	background-color: var(--accent-color);
	box-shadow: 0 0 5px var(--accent-glow);
}
  
.view-all {
	color: var(--text-muted);
	font-size: 0.9rem;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}
  
.view-all:hover {
	color: var(--accent-color);
}
  
.news-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
  
.featured-news {
	grid-column: 1 / -1;
	display: flex;
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 5px 15px var(--shadow-color);
	transition: all 0.3s ease;
}
  
.featured-news:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px var(--shadow-color), 0 0 15px var(--accent-glow);
}
  
.featured-news-image {
	width: 40%;
	position: relative;
	overflow: hidden;
}
  
.featured-news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
  
.featured-news:hover .featured-news-image img {
	transform: scale(1.05);
}
  
.featured-news-content {
	width: 60%;
	padding: 20px;
}
  
.news-date {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--primary-bg);
	font-weight: bold;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 0.8rem;
	margin-bottom: 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
  
.featured-news-title {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--text-highlight);
}
  
.featured-news-excerpt {
	color: var(--text-color);
	margin-bottom: 15px;
}
  
.read-more {
	display: inline-flex;
	align-items: center;
	color: var(--accent-color);
	font-weight: bold;
	transition: all 0.3s ease;
}
  
.read-more i {
	margin-left: 5px;
	transition: transform 0.3s ease;
}
  
.read-more:hover {
	color: var(--accent-hover);
}
  
.read-more:hover i {
	transform: translateX(5px);
}
  
.news-card {
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 5px 15px var(--shadow-color);
	transition: all 0.3s ease;
}
  
.news-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px var(--shadow-color), 0 0 15px var(--accent-glow);
}
  
.news-card-image {
	height: 180px;
	position: relative;
	overflow: hidden;
}
  
.news-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
  
.news-card:hover .news-card-image img {
	transform: scale(1.05);
}
  
.news-card-content {
	padding: 20px;
}
  
.news-card-title {
	font-size: 1.2rem;
	margin-bottom: 10px;
	color: var(--text-highlight);
}
  
.news-card-excerpt {
	color: var(--text-color);
	margin-bottom: 15px;
	font-size: 0.9rem;
}

/* All News Grid (for Updates Page) */
.all-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.all-news-grid .news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.all-news-grid .news-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.all-news-grid .news-card-excerpt {
    flex-grow: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a, 
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination a:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pagination .active {
    background: var(--button-gradient);
    color: var(--primary-bg);
}

/* Single Article Page */
.article-container {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-glow);
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.article-meta i {
    margin-right: 5px;
    color: var(--accent-color);
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

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

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2, 
.article-content h3 {
    margin: 30px 0 15px;
    color: var(--accent-color);
}

.article-content img {
    max-width: 100%;
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0 5px 5px 0;
    font-style: italic;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
}

.article-tag {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.article-share {
    display: flex;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin-left: 10px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.related-articles {
    margin-top: 40px;
}

.related-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Admin Panel Styles */
.admin-panel {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.admin-title {
    font-size: 2rem;
    margin: 0;
    color: var(--accent-color);
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.admin-table .actions {
    width: 120px;
    text-align: center;
}

.admin-table .action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin: 0 3px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.admin-table .action-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.admin-table .delete-button:hover {
    background-color: var(--danger-color);
}

.admin-form {
    max-width: 800px;
    margin: 0 auto;
}

.admin-form-group {
    margin-bottom: 25px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
}

.admin-form-group input[type="text"],
.admin-form-group input[type="url"],
.admin-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

.admin-form-group input:focus,
.admin-form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.file-upload:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.file-upload-icon i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.file-upload-icon span {
    color: var(--text-muted);
}

.admin-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.admin-form-actions .btn {
    padding: 12px 25px;
    font-size: 1rem;
}

/* WYSIWYG Editor Override Styles */
.tox-tinymce {
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color) !important;
}

.tox-editor-container {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.tox-toolbar {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.tox-toolbar__group {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tox-tbtn {
    color: var(--text-color) !important;
}

.tox-tbtn:hover {
    background-color: rgba(212, 175, 55, 0.1) !important;
}

.tox-edit-area__iframe {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.tox-statusbar {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.alert i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: #f1c40f;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}
  
/* Footer */
footer {
	background-color: var(--primary-bg);
	color: var(--text-color);
	padding: 50px 0 20px;
	margin-top: 50px;
	position: relative;
}
  
footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--border-color), transparent);
}
  
.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
  
.footer-section {
	flex: 1;
	margin-right: 30px;
	min-width: 200px;
	margin-bottom: 30px;
}
  
.footer-section:last-child {
	margin-right: 0;
}
  
.footer-section h3 {
	color: var(--accent-color);
	margin-bottom: 15px;
	font-size: 1.2rem;
	position: relative;
	padding-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}
  
.footer-section h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--accent-color);
	box-shadow: 0 0 5px var(--accent-glow);
}
  
.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
  
.footer-links li {
	margin-bottom: 10px;
}
  
.footer-links a {
	color: var(--text-muted);
	transition: all 0.3s ease;
	font-size: 0.9rem;
}
  
.footer-links a:hover {
	color: var(--accent-color);
	padding-left: 5px;
}
  
.social-links {
	display: flex;
	margin-top: 15px;
}
  
.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: rgba(0, 0, 0, 0.3);
	border: 1px solid var(--border-color);
	border-radius: 50%;
	margin-right: 10px;
	transition: all 0.3s ease;
}
  
.social-link:hover {
	background-color: var(--accent-color);
	transform: translateY(-3px);
}
  
.social-link i {
	color: var(--text-color);
	font-size: 1rem;
}
  
.footer-bottom {
	text-align: center;
	padding-top: 20px;
	margin-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	color: var(--text-muted);
	font-size: 0.8rem;
}
  
/* Modal/Dialog Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7);
	animation: fadeIn 0.3s;
}
  
.modal-content {
	background: var(--card-gradient);
	margin: 10% auto;
	width: 400px;
	max-width: 90%;
	border-radius: 5px;
	box-shadow: 0 5px 30px var(--shadow-color);
	border: 1px solid var(--border-color);
	animation: slideDown 0.3s;
	position: relative;
	overflow: hidden;
}
  
.modal-content::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
	opacity: 0.05;
	pointer-events: none;
}
  
.modal-header {
	background: linear-gradient(to right, var(--accent-dark), var(--accent-color));
	color: var(--primary-bg);
	padding: 15px 20px;
	border-radius: 5px 5px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}
  
.modal-header::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, white, transparent);
	opacity: 0.2;
}
  
.modal-header h3 {
	margin: 0;
	color: var(--primary-bg);
	text-shadow: none;
	font-size: 1.3rem;
}
  
.close {
	color: var(--primary-bg);
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
}
  
.close:hover {
	color: var(--text-highlight);
	text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
  
.modal-body {
	padding: 20px;
}
  
/* Form Styles */
.form-group {
	margin-bottom: 20px;
	position: relative;
}
  
.form-group label {
	display: block;
	margin-bottom: 8px;
	color: var(--text-color);
	font-weight: bold;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
}
  
.form-group small {
	display: block;
	color: var(--text-muted);
	font-size: 0.75rem;
	margin-top: 5px;
}
  
.form-control {
	display: block;
	width: 100%;
	padding: 12px 15px;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--text-color);
	background-color: rgba(0, 0, 0, 0.2);
	background-clip: padding-box;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	box-sizing: border-box;
}
  
.form-control:focus {
	border-color: var(--accent-color);
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}
  
/* Form Message Styles */
.form-message {
	padding: 10px 15px;
	margin: 15px 0;
	border-radius: 4px;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	display: none;
}
  
/* Success Message */
.form-message.success {
	background-color: rgba(46, 204, 113, 0.2);
	border: 1px solid rgba(46, 204, 113, 0.3);
	color: #2ecc71;
	display: block;
	animation: fadeIn 0.3s ease-out;
}
  
.form-message.success:before {
	content: "✓ ";
	font-weight: bold;
}
  
/* Error Message */
.form-message.error {
	background-color: rgba(231, 76, 60, 0.2);
	border: 1px solid rgba(231, 76, 60, 0.3);
	color: #e74c3c;
	display: block;
	animation: fadeIn 0.3s ease-out;
}
  
.form-message.error:before {
	content: "✗ ";
	font-weight: bold;
}
  
/* Image CAPTCHA Styles */
.captcha-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, rgba(35, 25, 40, 0.9), rgba(26, 14, 32, 0.9));
	border: 1px solid var(--border-color);
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 10px;
}
  
.captcha-container img {
	border: 1px solid var(--border-color);
	border-radius: 3px;
	box-shadow: 0 0 8px var(--shadow-color);
}
  
.refresh-captcha {
	padding: 5px 10px;
	font-size: 0.8rem;
	background-color: rgba(0, 0, 0, 0.3);
	border: 1px solid var(--border-color);
	color: var(--text-color);
	cursor: pointer;
	transition: all 0.3s ease;
}
  
.refresh-captcha:hover {
	background-color: rgba(0, 0, 0, 0.5);
	color: var(--accent-color);
}
  
.btn-sm {
	padding: 5px 10px;
	font-size: 0.8rem;
}
  
/* Checkbox Styles */
.checkbox-container {
	display: block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 12px;
	cursor: pointer;
	user-select: none;
	font-size: 0.9rem;
}
  
.checkbox-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
  
.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 20px;
	width: 20px;
	background-color: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--border-color);
	border-radius: 3px;
	transition: all 0.2s ease;
}
  
.checkbox-container:hover input ~ .checkmark {
	background-color: rgba(0, 0, 0, 0.3);
}
  
.checkbox-container input:checked ~ .checkmark {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
	box-shadow: 0 0 5px var(--accent-glow);
}
  
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}
  
.checkbox-container input:checked ~ .checkmark:after {
	display: block;
}
  
.checkbox-container .checkmark:after {
	left: 7px;
	top: 3px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
  
.form-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
  
/* Button Styles */
.btn {
	display: inline-block;
	padding: 10px 20px;
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
}
  
.btn-primary {
	background: var(--button-gradient);
	color: var(--text-highlight);
	border: 1px solid var(--accent-color);
	box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
  
.btn-primary:hover {
	box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
	transform: translateY(-2px);
}
  
.btn-secondary {
	background-color: rgba(0, 0, 0, 0.2);
	color: var(--text-color);
	border: 1px solid var(--border-color);
}
  
.btn-secondary:hover {
	background-color: rgba(0, 0, 0, 0.3);
	transform: translateY(-2px);
}
  
/* Global Message Styles */
.global-message {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 15px 20px;
	min-width: 300px;
	border-radius: 5px;
	z-index: 9999;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	transform: translateX(120%);
	transition: transform 0.5s ease;
}
  
.global-message.show {
	transform: translateX(0);
}
  
.global-message.success {
	background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(39, 174, 96, 0.9));
	border-left: 5px solid #27ae60;
	color: white;
}
  
.message-content {
	display: flex;
	align-items: center;
}
  
.message-content i {
	font-size: 1.5rem;
	margin-right: 10px;
}
  
.message-content span {
	font-size: 1rem;
	font-weight: 500;
}
  
/* Animation Keyframes */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
  
@keyframes slideDown {
	from { transform: translateY(-50px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
  
@keyframes glow {
	0% { box-shadow: 0 0 5px var(--accent-glow); }
	50% { box-shadow: 0 0 15px var(--accent-glow); }
	100% { box-shadow: 0 0 5px var(--accent-glow); }
}
  
@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
	100% { transform: translateY(0px); }
}
  
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
	70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
	100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
  
/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
  
::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.3);
}
  
::-webkit-scrollbar-thumb {
	background: var(--accent-color);
	border-radius: 4px;
}
  
::-webkit-scrollbar-thumb:hover {
	background: var(--accent-dark);
}
  
/* Responsive Styles */
@media (max-width: 992px) {
	.header-main {
		flex-direction: column;
		text-align: center;
	}
  
	.logo {
		margin-bottom: 15px;
	}
  
	.main-nav ul {
		justify-content: center;
		flex-wrap: wrap;
	}
  
	.hero-banner {
		height: auto;
		padding: 50px 0;
	}
  
	.content-grid {
		grid-template-columns: 1fr;
	}
  
	.news-grid {
		grid-template-columns: 1fr;
	}
    
    .all-news-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}
  
@media (max-width: 768px) {
	.footer-content {
		flex-direction: column;
	}
  
	.footer-section {
		margin-right: 0;
	}
  
	.server-status {
		flex-direction: column;
		text-align: center;
	}
  
	.server-status .status-indicator {
		margin-bottom: 10px;
		justify-content: center;
	}
  
	.server-details {
		justify-content: center;
	}
  
	.featured-news {
		flex-direction: column;
	}
  
	.featured-news-image,
	.featured-news-content {
		width: 100%;
	}
  
	.stats-counter {
		flex-direction: column;
	}
  
	.stat-item {
		margin: 0 0 15px 0;
	}
  
	.modal-content {
		margin: 20% auto;
	}
    
    .all-news-grid,
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-tags {
        margin-bottom: 15px;
    }
}
  
@media (max-width: 576px) {
	.form-actions {
		flex-direction: column;
	}
  
	.btn {
		width: 100%;
		margin-bottom: 10px;
	}
    
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

/* Add these styles to your jade-dynasty-main.css file */

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-size: 1.2rem;
    color: var(--accent-color);
    text-align: center;
}

.loading-indicator i {
    margin-right: 10px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional styles for article page responsiveness */
@media (max-width: 576px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-container {
        padding: 15px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-footer {
        flex-direction: column;
    }
    
    .article-share {
        margin-top: 15px;
    }
}

/* Fix for overflow issues in content */
.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content iframe {
    max-width: 100%;
}

/* Enhanced hover effects for articles */
.read-more {
    position: relative;
    padding-right: 5px;
    transition: all 0.3s ease;
}

.read-more:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.read-more:hover:after {
    width: 100%;
}

.read-more i {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}