body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, rgb(38, 38, 155, 0.5), rgb(38, 112, 63, 0.5));
    color: white;
}


/* Custom spacing fixes */
.sport-nav {
    height: auto !important;
}

.main-content {
    padding-top: 120px; /* Adjust this value based on your navbar height */
    min-height: calc(100vh - 160px); /* Keep footer at bottom */
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 100px;
    }
}

.search-bar form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Adds a small space between the input and button */
}

.search-bar input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    width: 200px; /* Adjust width as needed */
}

.search-bar button {
    padding: 8px 15px;
    border: none;
    background-color: #ffcc00; /* Change to match your theme */
    color: black;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #e6b800;
}

.messages-container {
    position: fixed;
    top: 110px;  /* Adjust based on navbar height */
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 0 1rem;
}

.alert {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.btn-close {
    float: left !important;
}


.custom-file-input::-webkit-file-upload-button {
    visibility: hidden;
}
.custom-file-input::before {
    content: 'انتخاب فایل';
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
}
.custom-file-input:hover::before {
    border-color: #86b7fe;
}

.sport-nav {
    background: linear-gradient(135deg, rgb(90, 194, 177, 0.95), rgb(63, 103, 150, 0.95) 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.upper-navbar {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
}

.navbar-brand {
    position: static; /* Remove absolute positioning */
    transform: none;
    margin: 0 auto; /* Center within flexbox */
}

.navbar-brand img {
    width: 130px;
    height: 130px;
}

.upper-navbar .nav-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.upper-navbar .nav-group.left {
    margin-right: 10%;
}

.upper-navbar .nav-group.right {
    margin-left: 10%;
}

.nav-group {
    flex: 1;
    display: flex;
    align-items: center;
}
.nav-group.left {
    justify-content: flex-start;
}
.nav-group.right {
    justify-content: flex-end;
}
.upper-navbar .nav-link {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.upper-navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FFD700;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.upper-navbar .nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.upper-navbar .nav-link:hover {
    color: #FFD700;
}

/* Lower Navbar Section */
.lower-navbar {
    height: 60px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.lower-navbar .search-bar {
    width: 50%;
    max-width: 500px;
}

.lower-navbar .search-bar input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lower-navbar .search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.lower-navbar .additional-options {
    margin-right: 2rem;
}

.lower-navbar .additional-options a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.lower-navbar .additional-options a:hover {
    color: #FFD700;
}

/* Fantasy Slider with Video Background */
.fantasy-slider {
    margin-top: 160px;
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 400px;
    background: #000;
}

.fantasy-slider .slider-content h1 {
    font-size: 2.5rem; /* Default font size for larger screens */
    margin: 0;
    padding: 0;
}

/* Adjust font size for tablets */
@media (max-width: 768px) {
    .fantasy-slider .slider-content h1 {
        font-size: 2rem;
    }
}

/* Adjust font size for mobile devices */
@media (max-width: 480px) {
    .fantasy-slider .slider-content h1 {
        font-size: 1.5rem;
    }
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slider-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.slider-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slider-content p {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.slider-content .btn {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #ffd90073, #ffa60063);
    border: none;
    color: #0A2463;
    font-weight: 700;
    transition: all 0.3s ease;
}

.slider-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Bigger Highlights Slider */
.highlights-slider {
    padding: 4rem 0;
    background: linear-gradient(135deg, #529396, #16213e);
}

.highlights-slider .carousel {
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
}

.highlights-slider .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.highlights-slider .carousel-caption {
    background: rgba(0, 0, 0, 0.178);
    padding: 2rem;
    border-radius: 12px;
    bottom: 20%;
    left: 10%;
    right: 10%;
    text-align: center;
}

.highlights-slider .carousel-caption h5 {
    font-size: 2rem;
    font-weight: 700;
}

.highlights-slider .carousel-caption p {
    font-size: 1.25rem;
}

.highlights-slider .carousel-caption .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #ffd90052, #ffa60079);
    border: none;
    color: #ffffff;
    font-weight: 700;
    transition: all 0.3s ease;
}

.highlights-slider .carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* News Section */
.news-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
}

.news-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.news-item img {
    width: 40%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    width: 60%;
    padding: 2rem;
}

.news-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-content p {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.8;
}

.news-content .btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #0A2463;
    font-weight: 700;
    transition: all 0.3s ease;
}

.news-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Cards Section */
.cards-section {
    padding: 3rem 0;
    background: linear-gradient(100deg, #f5f5f5, #334881, #334881, #334881, #f5f5f5);
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.6;
}

.card .btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #0A2463;
    font-weight: 700;
    transition: all 0.3s ease;
}

.card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Comments Section */
.comments-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
}

.comment-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.comment-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 1rem;
}

.comment-content {
    flex: 1;
}

.comment-content h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comment-content p {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comment-content small {
    font-size: 0.8rem;
    color: #888;
}

/* Footer */
.footer {
    background: #3b4f7a;
    color: white;
    padding: 3rem 0;
}

.footer h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #FFD700;
}

.footer .social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #FFD700;
}

.footer .contact-info p {
    margin-bottom: 0.5rem;
}

/* RTL Adjustments */
.carousel-control-prev {
    left: auto;
    right: 20px;
}

.carousel-control-next {
    right: auto;
    left: 20px;
}

.watch-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.video-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-icon {
    opacity: 1;
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-description {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.6;
}


.ad-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.ad-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ad-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
