* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    overflow: hidden;
    font-family: 'YekanBakhFaNum', sans-serif;
    direction: rtl;
}

body {
    background-image: url('../images/bg.jpg');
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2vh 2vw;
    position: relative;
    overflow: hidden;
}

.header {
    text-align: center;
    margin-bottom: 3vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    padding: 2vh 0vw;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.title {
    color: white;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 1vh;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    background: #097c2f;
    padding: 0.8vh 2vw;
    border-radius: 20px;
    height: 37px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.7rem, 1.8vw, 1rem);
    margin-top: 1vh;
}

.rates-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5vh;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.rate-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2vh 3vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-right: 5px solid #228b22;
    backdrop-filter: blur(10px);
}

.rate-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.rate-item:nth-child(1) {
    border-right-color: #ffb700;
}

.rate-item:nth-child(2) {
    border-right-color: #ffb700;
}

.rate-item:nth-child(3) {
    border-right-color: #ffb700;
}

.product-name {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
}

.price {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: bold;
    color: #282828;
    background: rgba(39, 174, 96, 0.1);
    padding: 1vh 2vw;
    border-radius: 10px;
    min-width: 120px;
    text-align: center;
}

.price-unit {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    color: #7f8c8d;
    margin-right: 5px;
}

/* Background Decorative Elements */
.decorative-circles {
    position: absolute;
    opacity: 0.08;
    z-index: 1;
}

.circle-1 {
    width: 20vw;
    height: 20vw;
    border-radius: 50%;
    background: white;
    top: 5%;
    left: 5%;
}

.circle-2 {
    width: 15vw;
    height: 15vw;
    border-radius: 50%;
    background: white;
    bottom: 20%;
    right: 10%;
}

.circle-3 {
    width: 10vw;
    height: 10vw;
    border-radius: 50%;
    background: white;
    top: 50%;
    left: 8%;
}

/* Footer Styles */
.footer {
    background: white;
    padding: 2vh 2vw;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 15vh;
    min-height: 80px;
}

.footer-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.company-info {
    flex: 1;
    min-width: 200px;
}

.company-title {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: bold;
    color: #939d96;
    margin-bottom: 0.5vh;
}

.company-subtitle {
    color: #939d96;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    line-height: 1.4;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: 2vw;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5vh;
    padding: 1vh 1vw;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-1px);
}

.logo-placeholder {
    width: auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder img{
    width: auto;
    height: 50px;
}

.logo-text {
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rate-item {
        flex-direction: column;
        text-align: center;
        gap: 1vh;
        padding: 1.5vh 3vw;
    }

    .price {
        width: 100%;
        min-width: auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1vh;
    }

    .logos-container {
        justify-content: center;
        gap: 3vw;
    }

    .footer {
        height: 20vh;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1vh 3vw;
    }

    .header {
        margin-bottom: 2vh;
    }

    .rates-container {
        gap: 1vh;
    }

    .rate-item {
        padding: 1.5vh 4vw;
    }

    .decorative-circles {
        display: none;
    }

    .footer {
        height: 25vh;
        min-height: 120px;
    }

    .logos-container {
        gap: 4vw;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .header {
        margin-bottom: 1vh;
    }
    
    .rates-container {
        gap: 0.8vh;
    }
    
    .rate-item {
        padding: 1vh 2vw;
    }
    
    .footer {
        height: 12vh;
        min-height: 60px;
        padding: 1vh 2vw;
    }
}