/* Calendar Pages Styling */
.calendar-page {
    padding: 40px 0;
    background: #f9f9f9;
}

/* Landing Page Grid */
.calendar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.calendar-card {
    background: #fff;
    width: 350px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.calendar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.calendar-card .card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.calendar-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calendar-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(50, 197, 210, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.calendar-card:hover .overlay {
    opacity: 1;
}

.calendar-card .btn-overlay {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.calendar-card .btn-overlay:hover {
    background: white;
    color: #32c5d2;
}

.calendar-card .card-content {
    padding: 20px;
}

.calendar-card .title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.calendar-card .title:hover {
    color: #32c5d2;
}

.calendar-card .desc {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

/* Detail Page Styling */
.calendar-detail-container {
    background: #fff;
    padding: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    margin: 0 auto;
}

.calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-header h1 {
    font-size: 38px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
    text-transform: uppercase;
}

.calendar-header .subtitle {
    font-size: 18px;
    color: #777;
    margin-bottom: 30px;
}

.google-calendar-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.google-calendar-wrapper iframe {
    max-width: 100%;
}

.calendar-info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.calendar-desc {
    flex: 2;
    min-width: 300px;
}

.calendar-desc h3 span,
.calendar-details h3 span,
.related-calendars h3 span {
    border-bottom: 2px solid #32c5d2;
    padding-bottom: 5px;
    color: #333;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.calendar-desc p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.calendar-details {
    flex: 1;
    min-width: 250px;
    background: #f9f9f9;
    padding: 20px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.details-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
}

.details-list li strong {
    display: inline-block;
    width: 100px;
    color: #333;
}

.btn-visit {
    display: block;
    width: 100%;
    text-align: center;
    background: #333;
    color: white;
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    font-size: 12px;
}

.btn-visit:hover {
    background: #32c5d2;
}

/* Related Calendars */
.related-calendars .related-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.related-item {
    width: 200px;
    text-align: center;
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

.related-item .title {
    display: block;
    color: #555;
    font-weight: bold;
    text-decoration: none;
}

.related-item:hover .title {
    color: #32c5d2;
}

/* Popup Navigation Simulation */
.popup-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-btn {
    color: #999;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
}

.nav-btn:hover {
    color: #32c5d2;
}
