body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top for longer content */
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
}

.main-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.main-header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 5px;
}

.highlight-date {
    color: #27ae60; /* Green color like the example */
    font-size: 1.4em;
    font-weight: bold;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
    gap: 25px;
}

.date-details {
    flex: 2; /* Takes more space */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.date-card {
    background-color: #f9f9f9;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #e7e7e7;
    text-align: center;
}

.date-card h3 {
    color: #27ae60;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2em;
}

.date-card p {
    margin-bottom: 8px;
    font-size: 1.1em;
}
.date-card p:last-child {
    margin-bottom: 0;
}

.date-numeric {
    font-weight: bold;
    font-size: 1.3em;
    color: #555;
}

.zodiac-emoji {
    font-size: 2.5em; /* Make emoji larger */
    margin-bottom: 5px !important;
}

.clock-section {
    flex: 1; /* Takes less space */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 280px; /* Ensure clock has enough space */
}

.analog-clock {
    width: 220px;
    height: 220px;
    border: 5px solid #333;
    border-radius: 50%;
    position: relative;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

.hand {
    width: 50%;
    height: 4px; /* Thinner hands */
    background: #333;
    position: absolute;
    top: 50%;
    transform-origin: 100%;
    transform: translateY(-50%) rotate(90deg); /* Initial position */
    transition: transform 0.05s cubic-bezier(0.1, 2.7, 0.58, 1); /* Smooth tick */
    border-radius: 2px 0 0 2px;
}

.hour-hand {
    width: 35%;
    left: 15%;
    height: 6px; /* Thicker hour hand */
    background: #2c3e50;
}

.minute-hand {
    width: 45%;
    left: 5%;
    height: 5px;
    background: #555;
}

.second-hand {
    width: 48%; /* Slightly shorter */
    left: 2%;
    height: 2px;
    background: #e74c3c; /* Red second hand */
}

.center-dot {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.time-marker {
    position: absolute;
    font-size: 0.9em;
    font-weight: bold;
    color: #444;
}
/* Position time markers */
.tm-12 { top: 10px; left: 50%; transform: translateX(-50%); }
.tm-1 { top: 22px; right: 50px; }
.tm-2 { top: 50px; right: 22px; }
.tm-3 { top: 50%; right: 10px; transform: translateY(-50%); }
.tm-4 { bottom: 50px; right: 22px; }
.tm-5 { bottom: 22px; right: 50px; }
.tm-6 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.tm-7 { bottom: 22px; left: 50px; }
.tm-8 { bottom: 50px; left: 22px; }
.tm-9 { top: 50%; left: 10px; transform: translateY(-50%); }
.tm-10 { top: 50px; left: 22px; }
.tm-11 { top: 22px; left: 50px; }


.digital-clock {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    background-color: #e9ecef;
    padding: 10px 20px;
    border-radius: 8px;
    letter-spacing: 2px;
    direction: ltr;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column-reverse; /* Stack clock above dates */
    }
    .main-header h1 {
        font-size: 1.8em;
    }
    .highlight-date {
        font-size: 1.2em;
    }
    .digital-clock {
        font-size: 2em;
    }
    .analog-clock {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 15px;
    }
    .date-details {
        grid-template-columns: 1fr; /* Single column for date cards */
    }
     .main-header h1 {
        font-size: 1.5em;
    }
    .highlight-date {
        font-size: 1.1em;
    }
}