body {
    margin: 0;
    background-color: #f0f2f5;
}

.banner img {
    width: 100%;
    display: block;
}

.nav-container {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu li {
	font-size: 1.2rem;
}

.menu li a {
    text-decoration: none;
    color: #424242;
    font-weight: bold;
}

.menu li.active a {
    color: #2351ff;
    border-bottom: 3px solid #2351ff;
    padding-bottom: 5px;
}

/* Countdown Styles */
.countdown {
    display: flex;
    gap: 15px;
    color: #182880;
    text-align: center;
}

.time-box span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
}

.time-box label {
    font-size: 1.0rem;
    display: block;
}

/* Table Styles */
.content {
    max-width: 1100px;
    margin: 20px auto;
    position: relative;
}

.match-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.match-table th {
    background-color: #053364;
    color: white;
    padding: 12px;
}

.match-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.match-table tr:nth-child(even) {
    background-color: #f5f5f5; 
}

/* Floating TV Image */
.floating-tv {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.floating-tv img {
    width: 180px;
    transition: transform 0.3s;
}

.floating-tv img:hover {
    transform: scale(1.1);
}

/******** SCORE *********/
.standings-container {
    max-width: 920px;
    margin: 0 auto;
}

/* Header Styles */
.standings-header {
    margin-bottom: 50px;
    border-top: 2px solid #ddd;
    padding-top: 15px;
}

.live-tag {
    background: black;
    color: white;
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.main-title {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.subtitle {
    color: #64748b;
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 500;
    margin-top: 10px;
}

/* Grid Layout */
.groups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Card Styles */
.group-card {
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.group-header {
    background: #053364;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid var(--green-accent);
}

.group-name {
    color: white;
    font-size: 24px;
    font-weight: 900;
}

.sync-status {
    color: green;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--green-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-accent);
}

/* Table Styles */
.points-table {
    width: 100%;
    border-collapse: collapse;
}

.points-table th {
	background: #F1F5F9;
    padding: 15px 10px;
    font-size: 0.9rem;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 3px solid #E2E8F0;
}

.points-table td {
    padding: 12px 8px;
    text-align: center;
    font-size: 1rem;
    color: #334155;
    border-bottom: 1px solid #E2E8F0;
}

.points-table tbody tr:hover {
    background-color: #f5faf9;
    cursor: pointer;
}

.points-table tbody tr:hover td {
    background-color: #f5faf9;
}

.points-table tbody tr:hover .pts-cell {
    background-color: #e2e8f0;
}

.points-table .text-left { 
	color: #64748B;
	font-size: 0.9rem;
	text-align: left; 
	padding-left: 25px;
}

.rank {
    color: #cbd5e1;
    font-weight: 900;
    font-style: italic;
    margin-right: 15px;
    width: 15px;
    display: inline-block;
}

.flag {
    width: 30px;
    height: auto;
    vertical-align: middle;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.points-table td:first-child {
    font-weight: 700;
}

/* PTS Highlight Column */
.pts-head {
    background: #f8fafc;
    color: #0f172a !important;
    width: 70px;
}

.pts-cell {
    background: #f8fafc;
    font-weight: 900 !important;
    font-size: 24px !important;
    color: #0f172a !important;
}

/* Responsive Layout for Mobile/Tablets */
@media (max-width: 768px) {
    .groups-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 0 15px;
    }

    .main-title {
        font-size: 32px;
        text-align: center;
    }

    .subtitle {
        text-align: center;
        letter-spacing: 2px;
    }
}

.points-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
}

.points-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.points-table td:first-child {
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-align: left;
    padding-left: 25px;
    min-height: 48px; 
    border-bottom: 1px solid #E2E8F0;
}

.team-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank {
    display: inline-block;
    width: 25px; 
    font-weight: bold;
    color: #94a3b8;
    text-align: left;
}

.flag {
    width: 30px;
    height: 18px;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0; 
}

.pts-cell {
    font-weight: 900;
    color: #0f172a;
    background-color: #f8fafc;
}

.points-table th, 
.points-table td {
    padding: 12px 8px;
    text-align: center;
}

.text-left {
    text-align: left !important;
}

/* START:: NEWS*/
.featured-card {
    max-width: 1100px;
    margin: 30px auto;
    display: flex;
    background: #222;
    color: white;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image { flex: 1; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }

.featured-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-text h2 { font-size: 2rem; margin-bottom: 20px; }
.featured-text p { color: #ccc; line-height: 1.6; }
.news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 15px;
    border-radius: 4px;
}

.news-item img { width: 280px; height: 160px; object-fit: cover; }
.news-info h3 { margin: 10px 0; color: var(--text-dark); }
.news-info .date { color: #999; font-size: 0.85rem; }

.featured-card {
    display: flex;
    flex-direction: column;
    background: white;
    margin: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-content {
    padding: 20px;
}

.featured-content h2 {
    font-size: 1.25rem;
    color: #182880;
    margin: 10px 0;
}

.featured-content .date, 
.featured-content .author {
    font-size: 0.85rem;
    color: #999;
}

/* Desktop */
@media (min-width: 768px) {
    .featured-card {
        flex-direction: row; 
        max-width: 1100px;
        margin: 30px auto;
        background: #222; 
        color: #000;
        height: 240px; 
        overflow: hidden;
    }

    .featured-image {
        flex: 1.2; 
        height: 100%;
    }

    .featured-image img {
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
    }

    .featured-content {
        flex: 1;
        padding: 25px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
		background: #EBEBEB;
    }

    .featured-content h2 {
        font-size: 1.6rem; 
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .featured-content p {
        font-size: 0.95rem;
        line-height: 1.4;
        color: #333;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.news-table {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0;
    border: 3px solid #1a237e;
    border-radius: 12px;
    overflow: hidden;
    font-family: "Microsoft JhengHei", sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-table th {
    background-color: #1a237e;
    color: #FFF;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 3px solid #1a237e;
    border-right: 3px solid #1a237e;
}

.news-table td {
    padding: 20px;
    text-align: center;
    color: #444;
    border-bottom: 3px solid #1a237e;
    border-right: 3px solid #1a237e;
    line-height: 1.5;
}

.news-table th:last-child,
.news-table td:last-child {
    border-right: none;
}

.news-table tr:last-child td {
    border-bottom: none;
}

.news-table tbody tr:nth-child(odd) {
    background-color: #eeeeee;
}

.news-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.news-table tbody tr:hover {
    background-color: #e0e0e0;
    transition: background-color 0.3s ease;
}

.ct-media-container img {
	width: 100vw;
	max-width: 100%;
	height: auto;
	display: block;
}

.entry-meta {
  list-style: none;
  padding-left: 0;
}

.entry-meta li {
  position: relative;
  padding-left: 1.6em;
}

.entry-meta li::before {
  content: "📅";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
  line-height: 1;
}
