body {
    background-color: whitesmoke;
    color: #334155;
    line-height: 1.6;
}

.hero-section {
    background-size: 100% auto; /* This will show the full width of the image */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Optional: creates parallax effect */
    color: white;
    padding: 25vh 0;
    text-align: center;
    position: relative;
    z-index: 1;
    min-height: 80vh; /* Set a minimum height for the section */
}

/* Messages Animation */
.message-container {
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.alert {
    border: none;
    border-right: 4px solid;
}

.alert-success {
    background-color: #f0fdf4;
    border-right-color: #16a34a;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-right-color: #dc2626;
    color: #991b1b;
}

.alert-warning {
    background-color: #fefce8;
    border-right-color: #ca8a04;
    color: #854d0e;
}

.alert-info {
    background-color: #eff6ff;
    border-right-color: #2563eb;
    color: #1e40af;
}

footer {
    background-color: #173544; 
    color: #ffffff;
    padding: 3rem 0;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer p,
.footer li {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #e6b325; /* Accent color on hover */
    text-decoration: underline;
}

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

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

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer .text-center p {
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* For wider screens */
@media (min-width: 1600px) {
    .hero-section {
        background-size: cover;
        background-position: center 50%;
    }
}

.bottom-nav {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-size: cover;
        background-position: center 40%;
        padding: 25vh 0;
        margin-top: 0;
        min-height: 70vh;
    }

    .footer {
        text-align: center;
        padding: 2rem 1rem;
    }

    .footer .row {
        text-align: center;
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 15vh 0;
    }
    
    .alert {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer h5 {
        font-size: 1rem;
    }

    .footer p,
    .footer li {
        font-size: 0.85rem;
    }

    .footer .text-center p {
        font-size: 0.8rem;
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #ddd;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        z-index: 1000;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    }

    .bottom-nav a {
        color: #444;
        text-decoration: none;
        font-size: 1.3rem;
        flex: 1;
        text-align: center;
        transition: color 0.2s;
    }

    .bottom-nav a:hover {
        color: #007bff;
    }

    .bottom-nav a span {
        display: block;
        font-size: 0.7rem;
        margin-top: 3px;
    }
}