/* Jabar Theme Colors */
:root {
    --jabar-primary: #009B4E;
    --jabar-primary-light: #26b86b;
    --jabar-yellow: #FFBF00;
    --jabar-green: #009B4E;
}

/* Override any red colors from the original theme */
[class*="btn-primary"],
[class*="text-primary"],
[class*="bg-primary"],
.ee1e46,
.text-danger,
.btn-danger,
.widget-next-match .widget-title h3,
.widget-title h3,
.heading {
    color: var(--jabar-primary) !important;
    border-color: var(--jabar-primary) !important;
}

[class*="btn-primary"]:hover,
[class*="text-primary"]:hover,
[class*="bg-primary"]:hover {
    background-color: var(--jabar-primary-light) !important;
    border-color: var(--jabar-primary-light) !important;
    color: #fff !important;
}

/* Background Colors */
body {
    background-color: #fff !important;
}

.bg-primary {
    background-color: var(--jabar-primary) !important;
}

.bg-dark {
    background-color: var(--jabar-primary) !important;
}

/* Text Colors */
body {
    color: #333;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--jabar-primary) !important;
}

.text-primary {
    color: var(--jabar-yellow) !important;
}

.text-white {
    color: #fff !important;
}

a {
    color: var(--jabar-primary);
}

a:hover {
    color: var(--jabar-primary-light);
}

/* Navigation */
.site-navbar {
    background: var(--jabar-primary);
}

.site-navbar .site-navigation .site-menu > li > a {
    color: #fff !important;
}

.site-navbar .site-navigation .site-menu > li > a:hover {
    color: var(--jabar-yellow) !important;
}

.site-navbar .site-navigation .site-menu .active > a {
    color: var(--jabar-yellow) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--jabar-green) !important;
    border-color: var(--jabar-green) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #26b86b !important;
    border-color: #26b86b !important;
    color: #fff !important;
}

.btn-primary.py-3 {
    font-weight: 600;
    text-transform: none;
}

.btn-warning {
    background-color: var(--jabar-yellow);
    border-color: var(--jabar-yellow);
}

.btn-success {
    background-color: var(--jabar-green);
    border-color: var(--jabar-green);
}

/* Forms */
.form-control {
    color: #333 !important;
    background: #fff;
    border-color: #ddd;
}

.form-control:focus {
    border-color: var(--jabar-primary);
}

/* Footer */
.footer-section {
    background: var(--jabar-primary);
    color: #fff;
}

.footer-section .widget h3 {
    color: var(--jabar-yellow) !important;
}

.footer-section .widget .links li a {
    color: #fff;
}

.footer-section .widget .links li a:hover {
    color: var(--jabar-yellow);
}

/* Hero Section */
.hero {
    background-color: var(--jabar-primary);
    position: relative;
}

.hero:before {
    background: rgba(26, 75, 139, 0.7);
}

.hero h1 {
    color: #fff !important;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
}

/* Team VS Section */
.team-vs {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    margin-top: -70px;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.team-vs .score {
    background: var(--jabar-primary);
    color: #fff;
    border-radius: 4px;
}

.team-vs h3 span {
    color: var(--jabar-yellow);
}

/* Latest News Section */
.latest-news {
    background: #fff;
    padding: 50px 0;
}

.latest-news .post-entry {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.latest-news .post-entry:hover {
    border-color: var(--jabar-primary);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.latest-news .post-entry img {
    transition: all 0.3s ease;
}

.latest-news .post-entry:hover img {
    transform: scale(1.1);
}

.latest-news .caption {
    background: linear-gradient(to bottom, rgba(26, 75, 139, 0.4), rgba(26, 75, 139, 0.8));
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all 0.3s ease;
}

.latest-news .post-entry:hover .caption {
    background: linear-gradient(to bottom, rgba(26, 75, 139, 0.6), rgba(26, 75, 139, 0.9));
}

.latest-news .caption h3 {
    color: #fff !important;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.latest-news .caption .author .text h4 {
    color: var(--jabar-yellow) !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.latest-news .caption .author .text span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.latest-news .caption .author .img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.latest-news .caption .author .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-section .heading {
    color: var(--jabar-primary) !important;
    position: relative;
    padding-bottom: 10px;
}

.title-section .heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--jabar-yellow);
}

/* Widget Next Match */
.widget-next-match {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.widget-next-match .widget-title h3,
.widget-title h3 {
    color: var(--jabar-primary) !important;
    font-size: 24px;
    margin-bottom: 20px;
}

.widget-vs .vs > span {
    background: var(--jabar-yellow);
    color: var(--jabar-primary);
}

/* Kontingen List */
.widget-vs .team-1 img {
    max-width: 150px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.widget-vs .team-1 h6 {
    color: var(--jabar-primary) !important;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Custom Table */
.custom-table {
    background: #fff;
}

.custom-table thead tr th {
    background: var(--jabar-primary);
    color: #fff;
    border: none;
}

.custom-table tbody tr:hover {
    background-color: rgba(26, 75, 139, 0.1);
}

.custom-table tbody tr td strong {
    color: var(--jabar-primary);
}

/* Medal Table Styling */
.medal-table {
    background: #fff;
}

.medal-table thead tr th {
    background: var(--jabar-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 15px 10px;
    text-align: center;
}

.medal-table thead tr th:first-child {
    width: 60px;
    min-width: 60px;
}

.medal-table tbody tr {
    transition: all 0.3s ease;
}

.medal-table tbody tr:hover {
    background-color: rgba(26, 75, 139, 0.05);
}

.medal-table tbody tr td {
    padding: 12px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.medal-table tbody tr td:first-child {
    text-align: center;
    font-weight: 600;
}

.medal-table .badge-light {
    background-color: #f8f9fa;
    color: #495057;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

.kontingen-table-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kontingen-link:hover .kontingen-table-logo {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.medal-count {
    font-size: 1.1rem;
    font-weight: 700;
}

.total-count {
    font-size: 1.2rem;
    font-weight: 700;
}

/* More Link */
.more.light {
    color: var(--jabar-yellow);
}

.more.light:hover {
    color: #fff;
}

/* Countdown */
#date-countdown .countdown-block,
#date-countdown2 .countdown-block {
    background: var(--jabar-primary);
    padding: 10px 5px;
    margin-right: 10px;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    line-height: 1.3;
    min-width: 70px;
}

#date-countdown .countdown-block .label,
#date-countdown2 .countdown-block .label {
    color: var(--jabar-yellow);
    font-size: 16px;
    display: block;
}

/* Video Section */
.video-media {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.video-media:before {
    background: rgba(26, 75, 139, 0.8);
}

.video-media .play-button {
    color: #fff;
}

.video-media .play-button:hover {
    color: var(--jabar-yellow);
}

.video-media .caption h3 {
    color: #fff !important;
}

/* Selection */
::selection {
    background: var(--jabar-primary);
    color: #fff;
}

::-moz-selection {
    background: var(--jabar-primary);
    color: #fff;
} 