@font-face {
    font-family: "Vazirmatn";
    src: url("Vazirmatn.woff") format("truetype");
}

:root {
    --bg: #f8f5f0;
    --card-bg: #fff;
    --text: #1a1a1a;
    --text-muted: #666;
    --header-bg: linear-gradient(135deg, #1a472a 0%, #2d6a4f 50%, #1b4332 100%);
    --nav-bg: #1b4332;
    --nav-link: #e8d5a3;
    --accent: #c9a84c;
    --accent2: #8b1a1a;
    --section-bg: #f0ebe3;
    --footer-bg: #1a1a1a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border: #e0d5c5;
    direction: rtl;
}


* {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg);
    color: var(--text);
}

.site-header {
    background: var(--header-bg);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
}

.header-title {
    color: #fff;
    font-weight: 900;
    font-size: 1.6rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-subtitle {
    color: var(--accent);
    font-size: 0.95rem;
}

.main-nav {
    background: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .nav-link {
    color: var(--nav-link) !important;
    font-size: 0.88rem;
    padding: 12px 10px !important;
    font-weight: 500;
}

.main-nav .nav-link:hover {
    color: var(--accent) !important;
}

.navbar-toggler {
    border-color: var(--accent);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.theme-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    padding: 5px 14px;
    cursor: pointer;
    font-size: 0.85rem;
}

.theme-btn:hover {
    background: var(--accent);
    color: #fff;
}

.page-hero {
    color: #000;
    padding: 30px 0;
}

.page-hero h1 {
    font-weight: 900;
    font-size: 2rem;
}

.page-hero p {
    color: var(--accent);
}


.card {
    border-radius: 20px;
}

.card-body {
    text-align: center;
}

.card-header {
    padding: 10px;
}

/* ===== Slideshow / Carousel ===== */
#home {
    width: 100%;
    overflow: hidden;
}

#mainCarousel {
    width: 100%;
}

#mainCarousel .carousel-inner {
    width: 100%;
}

#mainCarousel .carousel-item {
    width: 100%;
    aspect-ratio: 8 / 3;
    background-color: #000;
}

#mainCarousel .carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

#mainCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#mainCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    padding: 10px 20px;
    bottom: 20px;
}

#mainCarousel .carousel-caption h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

#mainCarousel .carousel-caption p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

#mainCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
}

#mainCarousel .carousel-control-prev,
#mainCarousel .carousel-control-next {
    width: 5%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    #mainCarousel .carousel-caption h5 {
        font-size: 1rem;
    }

    #mainCarousel .carousel-caption p {
        font-size: 0.8rem;
    }

    #mainCarousel .carousel-caption {
        padding: 6px 12px;
        bottom: 10px;
    }
}


.section-title {
    position: relative;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text);
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.flip-card {
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flip-card-front {
    background: linear-gradient(135deg, var(--accent2), #8b1a1a);
    color: #fff;
}

.flip-card-back {
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    color: #fff;
    transform: rotateY(180deg);
}

.city-icon {
    color: var(--accent);

    ;
}

.flip-card-front .city-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.flip-card-front h5 {
    font-weight: 700;
    font-size: 1.1rem;
}

.flip-card-back p {
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 10px;
}

.flip-card-back a {
    color: var(--accent);
    font-size: 0.85rem;
}

.gallery-img {
    border-radius: 10px;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-img:hover img {
    transform: scale(1.05);
}

.quick-link-btn {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: all 0.3s;
}

.quick-link-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.quick-link-btn i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
}

.quick-link-btn span {
    font-size: 0.85rem;
    font-weight: 600;
}

.music-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.music-item .music-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent2), #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.music-item .music-info {
    flex: 1;
}

.music-item .music-info h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.music-item .music-info small {
    color: var(--text-muted);
}

.music-item .download-btn {
    color: var(--accent);
    font-size: 1.3rem;
    text-decoration: none;
}

.music-item .download-btn:hover {
    color: var(--accent2);
}

.play-btn {
    border: none;
    outline: none;
    cursor: pointer;
    background: var(--bg);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.play-btn:hover {
    background: var(--bg);
    transform: scale(1.08);
}


.section-alt {
    background: var(--section-bg);
}

footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 40px 0 20px;
}

footer h6 {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 15px;
}

footer a {
    color: #aaa;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin: 3px;
    transition: background 0.3s;
}

.social-icon:hover {
    background: var(--accent);
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.view-all-btn {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== Gallery Zoom on Hover ===== */
.gallery1-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery1-img:hover img {
    transform: scale(1.15);
}

.gallery1-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery1-overlay i {
    color: #fff;
    font-size: 2rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery1-img:hover .gallery-overlay {
    opacity: 1;
}

.gallery1-img:hover .gallery-overlay i {
    transform: scale(1);
}

.glightbox-clean .gslide-description {
    background: #fff;
    font-family: 'Tahoma', sans-serif;
    text-align: right;
    direction: rtl;
}


.music-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.music-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.music-icon-box {
    width: 50px;
    height: 50px;
    background: var(--section-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.music-title-area h6 {
    margin: 0;
    font-weight: 700;
    color: var(--bs-emphasis-color);
}

.music-title-area small {
    color: var(--bs-secondary-color);
}

/* استایل سفارشی پلیر */
audio {
    width: 100%;
    height: 35px;
    border-radius: 8px;
}

.audio-player-container {
    background: rgba(0, 0, 0, 0.03);
    padding: 10px;
    border-radius: 10px;
}

.music-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-download-alt {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-success);
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.btn-download-alt:hover {
    background: #198754;
    color: white;
    transform: scale(1.1);
}


#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--accent, #c9a84c);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}


#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 18px;
    animation: pulseLogo 1.6s ease-in-out infinite;
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

.loader-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 14px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--nav-bg, #1b4332);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}


@media (max-width: 768px) {
    .header-title {
        font-size: 1.1rem;
    }

    .header-logo {
        width: 55px;
        height: 55px;
    }
}