/* Upcoming Events Page Specific Spiritual Layout Styles */

.header {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-gold);
}

.background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(rgba(30, 11, 7, 0.55), rgba(30, 11, 7, 0.8)), url('../images/02-DHOOP-ARTI-21_03_15-1024x678.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -1;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    color: var(--accent-gold-light);
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Sessions section */
.session {
    width: 100%;
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center; 
}

.session .flex {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px; 
    justify-content: center;
}

/* Redesigned as Jharokha domes */
.session .items {
    flex: 1;
    min-width: 300px;
    max-width: 370px;
    background-color: white;
    border-radius: 50% 50% 16px 16px / 20% 20% 16px 16px;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-divine);
    transition: var(--transition-smooth);
    position: relative;
}

.session .items::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--parchment-border);
    border-radius: inherit;
    pointer-events: none;
}

.session .items:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-divine-hover);
    border-color: var(--divine-vermillion);
}

.session .items .session-img {
    width: 100%;
    height: 240px;
    background-color: #C4AE95;
    border-bottom: 2px solid var(--accent-gold);
}

.session .items .session-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.session .session-det {
    padding: 35px 25px;
    text-align: center;
}

.session .session-det p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0 auto 25px auto;
}

.session button {
    padding: 12px 28px;
    border: 2px solid var(--accent-gold);
    border-radius: 30px;
    background-color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
}

.session button:hover {
    background-color: var(--divine-vermillion);
    border-color: var(--accent-gold-light);
    box-shadow: 0 4px 12px rgba(212, 91, 18, 0.3);
    transform: translateY(-2px);
}

.session button a {
    color: white;
}

.session h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.session .p {
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Upcoming Events lists */
.upcomming-events {
    padding: 100px 0;
    background-color: #FAF4EB;
    border-top: 4px solid var(--accent-gold);
    border-bottom: 4px solid var(--accent-gold);
}

.upcomming-events .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.upcomming-events .items {
    flex: 1;
    min-width: 300px;
}

.upcomming-events .items .img-box {
    width: 100%;
    height: 520px; 
    border-radius: 50% 50% 15px 15px / 20% 20% 15px 15px; /* Arch frame */
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-divine-hover);
}

.upcomming-events .items .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* scripture layout */
.upcomming-events .items:last-child {
    background-color: var(--parchment-bg);
    padding: 45px 35px;
    border-radius: 15px;
    border: 2px dashed var(--parchment-border);
    box-shadow: inset 0 0 40px rgba(78, 26, 15, 0.05);
}

.upcomming-events .items h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.upcomming-events .items p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.upcomming-events .event-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(78, 26, 15, 0.15);
    padding: 20px 0;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.upcomming-events .event-list:hover {
    transform: translateX(5px);
}

.upcomming-events .event-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.upcomming-events .event-date {
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: var(--divine-vermillion);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid var(--accent-gold);
}

/* Footer layout rules */
.footer-i {
    position: absolute;
    top: 0;
    right: 0;
    width: 25% !important;
    height: auto !important;
    object-fit: contain;
    opacity: 0.08;
    pointer-events: none;
}

/* Mobile adjusts */
@media (max-width: 768px) {
    .header { 
        height: 280px; 
    }
    .header h1 {
        font-size: 38px;
    }
    .session, .upcomming-events {
        padding: 60px 0;
    }
    .session h2, .upcomming-events .items h2 {
        font-size: 32px;
    }
    .upcomming-events .items .img-box {
        height: 380px;
    }
}