/* Calendar Custom Styles */
:root {
    --fc-border-color: #e0e0e0;
    --fc-daygrid-event-dot-width: 8px;
    --cns-blue: #003366;
    --cns-red: #a52a2a;
    --cns-gold: #ecb24f;
}

#calendar-container {
    padding: 30px;
    margin: 40px 0;
}

#calendar {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
    color: #333;
}

/* Header Toolbar */
.fc .fc-toolbar {
    flex-wrap: wrap;
    gap: 10px;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    color: var(--cns-blue);
    font-weight: 700;
}

.fc .fc-button-primary {
    background-color: var(--cns-blue);
    border-color: var(--cns-blue);
    text-transform: capitalize;
    font-weight: 500;
}

.fc .fc-button-primary:hover {
    background-color: #002244;
    border-color: #002244;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--cns-gold);
    border-color: var(--cns-gold);
    color: #fff;
}

/* Event Styles */
.fc-event {
    cursor: pointer;
    border: none !important;
    padding: 2px 4px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.event-academic {
    background-color: #e3f2fd !important;
    border-left: 4px solid #1976d2 !important;
}

.event-academic .fc-event-main {
    color: #1976d2 !important;
}

.event-competition {
    background-color: #f1f8e9 !important;
    border-left: 4px solid #388e3c !important;
}

.event-competition .fc-event-main {
    color: #388e3c !important;
}

.event-holiday {
    background-color: #ffebee !important;
    border-left: 4px solid #d32f2f !important;
}

.event-holiday .fc-event-main {
    color: #d32f2f !important;
}

.event-sports {
    background-color: #fff3e0 !important;
    border-left: 4px solid #f57c00 !important;
}

.event-sports .fc-event-main {
    color: #f57c00 !important;
}

.event-event {
    background-color: #f3e5f5 !important;
    border-left: 4px solid #7b1fa2 !important;
}

.event-event .fc-event-main {
    color: #7b1fa2 !important;
}

/* Grid Styles */
.fc .fc-daygrid-day-number {
    padding: 8px;
    font-weight: 600;
    color: #555;
}

.fc .fc-col-header-cell-cushion {
    padding: 10px 0;
    color: var(--cns-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #calendar-container {
        padding: 10px;
    }

    .fc .fc-toolbar-title {
        font-size: 1.2rem;
    }

    .fc .fc-toolbar {
        flex-direction: column;
    }

    /* Custom Agenda view for mobile */
    .mobile-agenda {
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    .agenda-item {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .agenda-date {
        font-weight: 700;
        color: var(--cns-blue);
        font-size: 0.9rem;
    }

    .agenda-title {
        font-size: 1rem;
        color: #333;
    }

    .agenda-category {
        font-size: 0.75rem;
        text-transform: uppercase;
        display: inline-block;
        padding: 2px 8px;
        border-radius: 10px;
        width: fit-content;
    }
}

/* Tooltip/Popup Styling */
.calendar-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    display: none;
}

.calendar-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.calendar-popup h3 {
    margin-top: 0;
    color: var(--cns-blue);
}

.calendar-popup .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #999;
}

/* Date Picker Modal */
.calendar-jump-modal {
    position: absolute;
    z-index: 2000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 250px;
    display: none;
}

.calendar-jump-modal.active {
    display: block;
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.picker-dropdowns {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.picker-select {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

#apply-jump {
    width: 100%;
    padding: 8px;
    background: var(--cns-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

#apply-jump:hover {
    background: #002244;
}

.fc .fc-monthJump-button {
    background: transparent !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
    padding: 5px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 38px !important;
}

.fc .fc-monthJump-button::after {
    content: '\f107';
    font-family: 'Line Awesome Free';
    font-weight: 900;
    margin-left: 5px;
}

.fc-toolbar-chunk:first-child {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Extracted page styles */
:root {
            --spacing-card: 15%;
        }

        html {
            overflow-x: hidden !important;
            overflow-y: visible !important;
        }

        .topeffect {
            opacity: 0;
            transform: translateY(200px);
        }

        @keyframes slideUp {
            0% {
                transform: translateY(30px);
                opacity: 0;
            }

            100% {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .single-card .quotes-box {
            right: 5vw;
        }

        .Card {
            width: 100%;
        }

        @media only screen and (max-width: 768px) {
            .single-card .quotes-box {
                right: 9vw;
                bottom: 1vw;
            }


        }

        .right-border {
            position: relative;
            padding: 0px;
            margin-left: 23px;
        }

        .right-border::after {
            content: '';
            position: absolute;
            height: 0;
            width: 1px;
            border: 3px solid #ECB24F;
            border-radius: 40px 0 0 0;
            border-right: none;
            border-bottom: none;
            top: -5.2%;
            left: -2%;
            pointer-events: none;
            transition: none;
        }

        /* Animate when class is added */
        .right-border.animate-border::after {
            animation: drawLine 3s linear forwards;
        }

        .quotes-box-century {
            width: 80%;
            position: relative;
            /* top: 50%; */
            /* left: 50%; */
            margin: 0 auto;
            /* transform: translate(-50%, -50%); */
            text-align: center;
            background: #fff;
            /* height: 35vh; */
            border-radius: 1vw;
            /* box-shadow: 0 0 10px gray; */
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--blue);

            /* font-weight: 600; */
        }

        .quotes-box-century:after {
            content: '';
            height: 110%;
            width: 103%;
            box-shadow: 0 0 10px #393939;
            position: absolute;
            border-radius: 1vw;
            top: 50%;
            background: #fff5e6;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: -1;
        }

        .top-quote-century {
            position: absolute;
            height: 2vw !important;
            width: auto !important;
            top: 5px;
            left: 12%;
            right: 0;
            mix-blend-mode: darken;
        }

        .bottom-quote-century {
            position: absolute;
            height: 40px;
            width: auto !important;
            bottom: -2px;
            right: 12%;
            transform: rotate(180deg);
            mix-blend-mode: darken;
            height: 2vw !important;
        }

        .img-section {
            transition: all 1s linear;
        }

        .img-section:hover img {
            transform: scale(1.1);
            transition: all 1s linear;
        }

        .animated-line .img-section:before {
            z-index: 10;
        }

        @media only screen and (max-width: 768px) {
            .bottom-quote-century {
                height: 14vw !important;
                right: 16.5vw;
            }

            .top-quote-century {

                height: 14vw !important;
                top: -4.3vw;
                left: -15vw;

            }

            .right-border::after {
                left: -25px !important;
                top: -5.2vw !important;
            }


        }

        @media (max-width: 1600px) {

            .top-quote-century {
                top: 1px !important;
                left: 102px !important;
            }
        }

        @keyframes drawLine {
            0% {
                width: 1px;
                height: 0;
            }

            50% {
                width: 1px;
                height: 67%;
            }

            100% {
                width: 102%;
                height: 105%;
            }

        }

        @media only screen and (max-width: 1199px) {
            .single-card {
                height: 240px;
                width: 100%;
            }

            .single-card .img-box img {
                height: 100%;
                object-fit: cover;
            }

            .right-border::after {
                left: -4%;
            }
        }

        @media (max-width: 768px) {
            .right-border {
                margin-left: 15px;
            }

            @keyframes drawLine {
                0% {
                    width: 1px;
                    height: 0;
                }

                50% {
                    width: 1px;
                    height: 67%;
                }

                100% {
                    width: 107%;
                    height: 107%;
                }
            }
        }
