@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}

:root {
    --primary: #1a5276;
    --secondary: #2e86c1;
    --accent: #e74c3c;
    --dark: #0d2b42;
    --light: #f8f9fa;
    --font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
}

* { font-family: var(--font-family); }

body {
    background: #f0f2f5;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar a { color: rgba(255,255,255,0.8); text-decoration: none; }
.top-bar a:hover { color: #fff; }
.top-bar .social-icons a { display: inline-block; margin-left: 10px; font-size: 1.1rem; }

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 15px 0;
    position: relative;
}
.main-header .site-logo img { max-height: 70px; }
.main-header .site-title { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0; }
.main-header .site-desc { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.header-date { color: rgba(255,255,255,0.85); font-size: 0.85rem; }

/* Navbar */
.navbar-custom {
    background: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-custom .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 12px 16px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent);
}
.navbar-custom .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Slider - Professional Design ===== */
.hero-slider {
    position: relative;
    width: 100%;
    margin-bottom: 35px;
    direction: ltr;
}
.hero-slider .carousel-item {
    height: 580px;
    position: relative;
    overflow: hidden;
}
.hero-slider .slider-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

/* Background with parallax zoom */
.hero-slider .slider-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 7s ease;
    will-change: transform;
}
.hero-slider .carousel-item.active .slider-bg {
    transform: scale(1.08);
}

/* Subtle pattern overlay */
.hero-slider .slider-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
    z-index: 1;
}

/* Gradient overlay - deep and rich */
.hero-slider .slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        transparent 0%,
        rgba(13,43,66,0.15) 30%,
        rgba(13,43,66,0.75) 60%,
        rgba(10,30,50,0.92) 85%,
        rgba(8,22,38,0.97) 100%
    );
    z-index: 2;
}

/* Side accent bar */
.hero-slider .slider-side-accent {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--accent);
    z-index: 4;
    box-shadow: 0 0 20px rgba(231,76,60,0.5);
}

/* Content container */
.hero-slider .slider-content {
    position: relative;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    direction: rtl;
}
.hero-slider .slider-content-row {
    padding-bottom: 100px;
}

/* Text wrapper with backdrop */
.hero-slider .slider-text-wrapper {
    padding: 30px 35px;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.25);
    border-right: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    max-width: 100%;
}

/* Badge */
.hero-slider .slider-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(231,76,60,0.4);
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Title */
.hero-slider .slider-title {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 12px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.4);
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Subtitle */
.hero-slider .slider-subtitle {
    color: rgba(255,255,255,0.92);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 18px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* CTA Button */
.hero-slider .slider-cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
    box-shadow: 0 4px 20px rgba(231,76,60,0.35);
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-slider .slider-cta i {
    transition: transform 0.3s ease;
}
.hero-slider .slider-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(231,76,60,0.5);
}
.hero-slider .slider-cta:hover i {
    transform: translateX(4px);
}

/* ===== Indicators ===== */
.hero-slider .carousel-indicators {
    bottom: 30px;
    gap: 8px;
    z-index: 5;
    direction: ltr;
}
.hero-slider .carousel-indicators button {
    width: 44px;
    height: 6px;
    border-radius: 3px;
    border: none;
    background: rgba(255,255,255,0.35);
    opacity: 1;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
}
.hero-slider .carousel-indicators button .indicator-dot {
    display: none;
}
.hero-slider .carousel-indicators button.active {
    width: 60px;
    background: var(--accent);
}

/* ===== Progress Bar ===== */
.hero-slider .slider-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 5;
}
.hero-slider .slider-progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== Arrows - Professional ===== */
.hero-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-slider:hover .slider-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.hero-slider .slider-arrow:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(231,76,60,0.4);
    border-color: var(--accent);
}
.hero-slider .slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}
.hero-slider .slider-arrow-prev { left: 24px; }
.hero-slider .slider-arrow-next { right: 24px; }

/* ===== Animations ===== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1200px) {
    .hero-slider .slider-title { font-size: 2.2rem; }
}
@media (max-width: 992px) {
    .hero-slider .carousel-item { height: 480px; }
    .hero-slider .slider-title { font-size: 1.8rem; }
    .hero-slider .slider-subtitle { font-size: 1rem; }
    .hero-slider .slider-text-wrapper { padding: 20px 25px; }
    .hero-slider .slider-content-row { padding-bottom: 70px; }
}
@media (max-width: 768px) {
    .hero-slider .carousel-item { height: 380px; }
    .hero-slider .slider-overlay {
        background: linear-gradient(0deg, rgba(8,22,38,0.95) 0%, rgba(13,43,66,0.7) 60%, rgba(13,43,66,0.3) 100%);
    }
    .hero-slider .slider-title { font-size: 1.4rem; }
    .hero-slider .slider-subtitle { font-size: 0.85rem; display: none; }
    .hero-slider .slider-text-wrapper {
        padding: 15px 18px;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        background: rgba(0,0,0,0.35);
        text-align: center;
        border-right: none;
        border-radius: 12px;
    }
    .hero-slider .slider-content {
        align-items: center;
    }
    .hero-slider .slider-content-row { padding-bottom: 50px; }
    .hero-slider .slider-side-accent { display: none; }
    .hero-slider .slider-arrow { display: none; }
    .hero-slider .slider-cta { padding: 8px 20px; font-size: 0.85rem; }
    .hero-slider .carousel-indicators { bottom: 15px; }
    .hero-slider .carousel-indicators button { width: 30px; height: 4px; }
    .hero-slider .carousel-indicators button.active { width: 45px; }
    .hero-slider .slider-badge { font-size: 0.7rem; padding: 3px 12px; }
}
@media (max-width: 480px) {
    .hero-slider .carousel-item { height: 300px; }
    .hero-slider .slider-title { font-size: 1.1rem; }
    .hero-slider .slider-text-wrapper { padding: 12px 14px; }
    .hero-slider .slider-cta { font-size: 0.78rem; padding: 6px 15px; }
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}
.section-title h3 i { color: var(--accent); margin-left: 8px; }
.section-title .more-link {
    font-size: 0.85rem;
    color: var(--secondary);
    text-decoration: none;
}
.section-title .more-link:hover { color: var(--primary); }

/* News Cards */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.news-card .card-body { padding: 20px; }
.news-card .card-body .news-category {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}
.news-card .card-body .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
}
.news-card .card-body .card-title a {
    color: var(--dark);
    text-decoration: none;
}
.news-card .card-body .card-title a:hover { color: var(--secondary); }
.news-card .card-body .card-text {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.7;
}
.news-card .card-footer {
    background: transparent;
    border-top: 1px solid #eee;
    padding: 12px 20px;
    font-size: 0.8rem;
    color: #999;
}
.news-card .card-footer i { margin-left: 5px; }

/* Featured News */
.featured-news { margin-bottom: 30px; }
.featured-news .main-news {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}
.featured-news .main-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-news .main-news .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.featured-news .main-news .overlay h4 {
    color: #fff;
    font-weight: 700;
}
.featured-news .main-news .overlay h4 a { color: #fff; text-decoration: none; }
.featured-news .side-news {
    display: flex;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}
.featured-news .side-news img {
    width: 120px;
    height: 85px;
    object-fit: cover;
}
.featured-news .side-news .content {
    padding: 8px 12px;
    flex: 1;
}
.featured-news .side-news .content h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.featured-news .side-news .content h6 a { color: var(--dark); text-decoration: none; }
.featured-news .side-news .content small { color: #999; font-size: 0.75rem; }

/* Match Cards */
.match-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}
.match-card .match-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}
.match-card .teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.match-card .teams .team {
    flex: 1;
    text-align: center;
}
.match-card .teams .team img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}
.match-card .teams .team .name { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.match-card .score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 80px;
}
.match-card .status-badge { margin-top: 10px; }

/* League Table */
.league-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}
.league-table table { margin: 0; }
.league-table thead th {
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    border: none;
    text-align: center;
    padding: 10px 8px;
}
.league-table tbody td {
    text-align: center;
    padding: 10px 8px;
    vertical-align: middle;
    font-size: 0.88rem;
}
.league-table tbody tr:hover { background: rgba(46,134,193,0.05); }
.league-table .team-col { text-align: right; }
.league-table .team-col img {
    width: 24px;
    height: 24px;
    margin-left: 6px;
}
.league-table .pos-1 { background: rgba(46,204,113,0.1); }
.league-table .pos-2 { background: rgba(52,152,219,0.08); }
.league-table .pos-3 { background: rgba(243,156,18,0.08); }

/* Forms/Downloads */
.download-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s;
}
.download-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.12); }
.download-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-left: 20px;
    flex-shrink: 0;
}
.download-card .info { flex: 1; }
.download-card .info h6 { font-weight: 600; margin-bottom: 5px; }
.download-card .info .meta { font-size: 0.8rem; color: #999; }
.download-card .info .meta span { margin-left: 15px; }
.download-card .btn-download {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.download-card .btn-download:hover { background: #c0392b; }

.download-card-grid {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.download-card-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.dcg-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
}
.dcg-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--dark);
}
.dcg-desc {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 12px;
    line-height: 1.5;
}
.dcg-meta {
    font-size: 0.78rem;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

/* Sponsors */
.sponsor-slider { padding: 20px 0; }
.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.sponsor-item img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
    filter: grayscale(30%);
}
.sponsor-item img:hover { opacity: 1; filter: grayscale(0%); }

/* Ads */
.ad-banner {
    margin-bottom: 20px;
    text-align: center;
}
.ad-banner img { max-width: 100%; border-radius: 8px; }

/* Sidebar */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 25px;
}
.sidebar-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.sidebar-news li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
}
.sidebar-news li:last-child { border-bottom: none; }
.sidebar-news li a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
}
.sidebar-news li a:hover { color: var(--secondary); }
.sidebar-news li small { color: #999; font-size: 0.75rem; }

/* Sidebar matches */
.sidebar-matches { list-style: none; padding: 0; margin: 0; }
.sidebar-matches li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-matches li:last-child { border-bottom: none; }
.sidebar-matches .sm-date {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
}
.sidebar-matches .sm-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.sidebar-matches .sm-team {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-matches .sm-vs {
    color: #ccc;
    font-weight: 300;
    flex-shrink: 0;
}
.sidebar-matches .sm-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    direction: ltr;
}
.league-selector {
    font-size: 0.9rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.league-selector:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
.table-league-sidebar th,
.table-league-sidebar td {
    padding: 6px 4px;
    font-size: 0.82rem;
}
.table-league-sidebar .team-col img {
    width: 20px;
    height: 20px;
}
    direction: ltr;
}

/* Footer */
.main-footer {
    background: var(--footer-color, var(--primary));
    color: rgba(255,255,255,0.8);
    padding: 50px 0 0;
}
.main-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.main-footer ul { list-style: none; padding: 0; }
.main-footer ul li { margin-bottom: 8px; }
.main-footer ul li a { color: rgba(255,255,255,0.7); text-decoration: none; }
.main-footer ul li a:hover { color: #fff; }
.main-footer .btn-footer-social {
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 1rem;
    transition: all 0.2s;
}
.main-footer .btn-footer-social:hover {
    color: var(--dark);
    background: #fff;
    border-color: #fff;
}
.main-footer .footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 15px 0;
    margin-top: 30px;
    font-size: 0.85rem;
    text-align: center;
}

/* News Detail */
.news-detail-header {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.news-detail-header .category-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}
.news-detail-header h1 {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.news-detail-header .meta {
    color: #999;
    font-size: 0.85rem;
}
.news-detail-header .meta span { margin-left: 20px; }
.news-detail-image { margin-bottom: 25px; }
.news-detail-image img { width: 100%; border-radius: 8px; }
.news-detail-body {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 2;
    font-size: 1rem;
}
.news-detail-body img { max-width: 100%; height: auto; border-radius: 5px; margin: 15px 0; }

/* Contact Page */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    margin-left: 15px;
    flex-shrink: 0;
}
.contact-info-item .text h6 { font-weight: 600; margin-bottom: 3px; }
.contact-info-item .text p { color: #666; margin: 0; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); }

/* Breadcrumb */
.breadcrumb-area {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: #fff;
    padding: 25px 0;
    margin-bottom: 30px;
}
.breadcrumb-area h2 { font-weight: 700; margin-bottom: 5px; }
.breadcrumb-area .breadcrumb { margin: 0; background: transparent; }
.breadcrumb-area .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.breadcrumb-area .breadcrumb-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb-area .breadcrumb-item a:hover { color: #fff; }
.breadcrumb-area .breadcrumb-item.active { color: #fff; }

/* Admin Specific */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5276, #0d2b42);
}
.admin-login .login-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

/* Jalali Calendar Picker */
.jalali-picker {
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 12px;
    width: 280px;
    direction: rtl;
    font-family: var(--font-family);
}
.jp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
}
.jp-nav {
    background: none;
    border: 1px solid #e0e4ea;
    border-radius: 6px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #1a2332;
    transition: all 0.15s;
}
.jp-nav:hover { background: #eef2f7; }
.jp-title { font-weight: 700; font-size: 15px; color: #1a2332; }
.jp-table { width: 100%; border-collapse: collapse; }
.jp-table td, .jp-table th { text-align: center; padding: 6px 2px; font-size: 13px; }
.jp-dow { color: #5a6a7e; font-weight: 600; font-size: 12px; }
.jp-dow.jp-friday { color: #c0392b; }
.jp-day { cursor: pointer; border-radius: 6px; transition: all 0.15s; font-weight: 500; }
.jp-day:hover { background: #e3e9f7; }
.jp-day.jp-today { background: #1a5276; color: #fff; font-weight: 700; }
.jp-day.jp-selected { background: #2e86c1; color: #fff; font-weight: 700; }
.jp-day.jp-friday { color: #c0392b; }
.jp-day.jp-today.jp-friday, .jp-day.jp-selected.jp-friday { color: #fff; }
.jp-empty { }
.jp-footer { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef2f7; text-align: center; font-size: 12px; color: #5a6a7e; }

/* Inline Calendar Widget */
.jalali-inline { direction: rtl; }
.jp-inline { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid #e0e4ea; }
.jp-inline .jp-table td { padding: 5px 2px; font-size: 12px; }

/* Clock Widget */
.live-clock { direction: ltr; display: inline-flex; align-items: center; gap: 6px; font-family: 'Vazirmatn', monospace; }
.live-clock .clock-icon { color: var(--accent); font-size: 1.1rem; }
.live-clock .clock-time { font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; direction: ltr; }
.live-clock .clock-date { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-right: 8px; }

/* Mobile fixes */
@media (max-width: 576px) {
    .featured-news .main-news { height: 250px; }
    .featured-news .side-news img { width: 80px; height: 65px; }
    .download-card { flex-direction: column; text-align: center; }
    .download-card .icon { margin: 0 0 15px 0; }
    .match-card .teams { flex-wrap: wrap; }
    .news-detail-header h1 { font-size: 1.3rem; }
    .main-header .site-title { font-size: 1.1rem; }
}

/* Loading Spinner */
.spinner-border-sm { width: 1rem; height: 1rem; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.slider-text-wrapper .slider-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.slider-slide-link .slider-text-wrapper {
    display: block !important;
}
/* Admin-managed header background, rendered behind the existing logo/text. */
.main-header.main-header-with-image {
    min-height: 205px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(245,250,251,.83), rgba(245,250,251,.28)), var(--header-bg-image);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.main-header.main-header-with-image > .container { position: relative; z-index: 1; }
.main-header.main-header-with-image .site-title { color: #075c61; text-shadow: 0 1px 2px rgba(255,255,255,.6); font-size:clamp(1.3rem,2.1vw,2rem); }
.main-header.main-header-with-image .site-desc { color: #234c55; text-shadow: 0 1px 2px rgba(255,255,255,.8); }
.main-header.main-header-with-image .header-date { color: #174950; background:rgba(255,255,255,.72); padding:10px 14px; border-radius:9px; display:inline-block; }
.main-header.main-header-with-image .site-logo img { max-height:110px; }
@media (max-width:767px) {
  .main-header.main-header-with-image { min-height: 175px; padding: 22px 0; background-position:center; }
  .main-header.main-header-with-image .site-logo img {max-height:72px;}
  .main-header.main-header-with-image .header-date {margin-top:10px;font-size:.75rem;}
}
