.time {
    width: 100%;
    min-height: 100vh;
    text-align: center;
    padding: 10rem 8rem;
    position: relative;
    background-color: var(--ivory);
}

.time h2 {
    font-family: var(--sacramento);
    font-size: var(--fontSize-heading-base);
    font-weight: 400;
    color: var(--maroon-700);
}

.time > p {
    font-size: 1rem;
    line-height: 1.75rem;
    max-width: 36rem;
    margin: 0.4rem auto 0;
}

.time .time-cards {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.7rem;
}

/* ===== ornate time cards ===== */
.time .time-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 24rem;
    max-width: 100%;
    padding: 3rem 2.5rem 2.4rem;
    border: 1px solid rgba(169, 132, 47, 0.5);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.97), rgba(251, 246, 238, 0.97)),
        var(--paper);
    box-shadow: var(--shadow-md);
}

/* top gold ribbon */
.time .time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gold-gradient);
    z-index: 3;
}

/* faint songket watermark */
.time .time-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--songket) center / 82% auto no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* inner hairline frame */
.time .time-card .time-frame {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(169, 132, 47, 0.55);
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

/* corner flourishes */
.time .time-card .time-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0 solid var(--gold-600);
    pointer-events: none;
    z-index: 2;
}

.time-corner.tl { top: 7px; left: 7px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 7px; }
.time-corner.tr { top: 7px; right: 7px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 7px; }
.time-corner.bl { bottom: 7px; left: 7px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 7px; }
.time-corner.br { bottom: 7px; right: 7px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 7px; }

/* content above decorations */
.time .time-card .time-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* crest medallion with icon */
.time .time-card .time-crest {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.6rem;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #fff6dc, #e6cd86);
    border: 1px solid var(--gold-500);
    box-shadow: 0 2px 6px rgba(138, 109, 36, 0.25),
                inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.time .time-card .time-crest i {
    font-size: 1.3rem;
    color: var(--maroon-700);
}

.time .time-card h3 {
    font-family: var(--sacramento);
    font-size: var(--fontSize-heading-lg);
    font-weight: 400;
    color: var(--gold-600);
    line-height: 1.1;
}

/* ornamental divider: line — diamond — line */
.time .time-card .time-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 70%;
    max-width: 11rem;
    margin: 0.6rem 0 0.7rem;
}

.time .time-card .time-rule span {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-500));
}

.time .time-card .time-rule span:last-child {
    background: linear-gradient(to left, transparent, var(--gold-500));
}

.time .time-card .time-rule em {
    flex: none;
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    background: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(194, 162, 76, 0.18);
}

/* prominent date bar: DAY | 19 | MONTH YEAR */
.time .time-card .time-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 0.2rem;
}

.time .time-card .td-day,
.time .time-card .td-my {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--gold-700);
}

.time .time-card .td-day {
    text-align: right;
    min-width: 4.2rem;
}

.time .time-card .td-my {
    text-align: left;
    min-width: 4.2rem;
}

.time .time-card .td-num {
    font-size: 3.7rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.9rem;
    color: var(--maroon-700);
    border-left: 1px solid rgba(169, 132, 47, 0.45);
    border-right: 1px solid rgba(169, 132, 47, 0.45);
}

.time .time-card .time-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.5rem;
    color: var(--ink);
}

.time .time-card .time-hours i {
    font-size: 1rem;
    color: var(--gold-600);
}

.time a {
    padding: 0.65rem 1.5rem;
    color: var(--gold-300);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--maroon-700);
    margin: 2rem auto 1rem;
    border-radius: 40px;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-small);
}

.time a:hover {
    background: var(--maroon-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.time a i {
    font-size: 1.1rem;
}

.time a + p {
    font-size: 0.95rem;
    line-height: 1.6rem;
    max-width: 36rem;
    margin: 0 auto;
}

.time a + p + i {
    right: 8rem;
    top: 22rem;
}

.google-maps iframe {
    margin-top: 2rem;
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.google-maps iframe:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-gold);
}
