/**
 * Academic Calendar Page Styles
 * Tabs design and calendar event styling
 */

/* =========================================
   Theme-Specific Calendar Styles
   ========================================= */
.td_academic_calendar_section {
    padding: 80px 0 100px;
}

.td_calendar_wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Calendar Tabs Navigation */
.td_calendar_tabs_nav {
    margin-bottom: 0;
}

.td_calendar_tabs_nav .nav-tabs {
    border: none;
    background: linear-gradient(135deg, var(--primary-color, #1a1a2e) 0%, var(--secondary-color, #16213e) 100%);
    border-radius: 15px 15px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.td_calendar_tabs_nav .nav-item {
    flex: 1;
    min-width: 150px;
}

.td_calendar_tabs_nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    padding: 22px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    width: 100%;
}

.td_calendar_tabs_nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.td_calendar_tabs_nav .nav-link.active {
    color: var(--primary-color, #1a1a2e);
    background: #fff;
}

.td_calendar_tabs_nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color, #e94560);
    border-radius: 3px 3px 0 0;
}

.td_calendar_tabs_nav .nav-link .tab-icon {
    font-size: 18px;
}

.td_calendar_tabs_nav .nav-link .tab-text {
    white-space: nowrap;
}

/* Tab Content Area */
.td_calendar_tab_content {
    background: #fff;
    border-radius: 0 0 15px 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Events Table */
.td_calendar_events_table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.td_calendar_event_row {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.td_calendar_event_row:last-child {
    border-bottom: none;
}

.td_calendar_event_row:hover {
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 18px 20px;
    border-radius: 10px;
    border-bottom-color: transparent;
}

.td_event_date {
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color, #1a1a2e) 0%, var(--secondary-color, #16213e) 100%);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-right: 25px;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.td_event_date i {
    font-size: 14px;
    opacity: 0.8;
}

.td_event_description {
    flex: 1;
    font-size: 16px;
    color: #444;
    font-weight: 500;
    line-height: 1.5;
}

/* CTA Section in Calendar */
.td_calendar_cta_wrapper {
    margin-top: 50px;
}

.td_calendar_cta {
    position: relative;
    padding: 50px 40px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.td_calendar_cta_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.92) 0%, rgba(22, 33, 62, 0.88) 100%);
    border-radius: inherit;
}

.td_calendar_cta .row {
    position: relative;
    z-index: 1;
}

.td_cta_text h3 {
    line-height: 1.3;
}

.td_cta_text p {
    font-size: 16px;
}

.td_cta_action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.td_cta_logo {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* =========================================
   Calendar Tabs Section
   ========================================= */
.cs-calendar-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.cs-calendar-section .cs-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.cs-calendar-section .cs-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color, #1a1a2e);
    margin-bottom: 15px;
}

.cs-calendar-section .cs-section-title p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs Navigation */
.cs-calendar-tabs {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cs-calendar-tabs .nav-tabs {
    border: none;
    background: linear-gradient(135deg, var(--primary-color, #1a1a2e) 0%, var(--secondary-color, #16213e) 100%);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.cs-calendar-tabs .nav-tabs .nav-item {
    flex: 1;
    min-width: 150px;
}

.cs-calendar-tabs .nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    padding: 20px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    width: 100%;
}

.cs-calendar-tabs .nav-tabs .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.cs-calendar-tabs .nav-tabs .nav-link.active {
    color: var(--primary-color, #1a1a2e);
    background: #fff;
    border-radius: 15px 15px 0 0;
}

.cs-calendar-tabs .nav-tabs .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color, #e94560);
    border-radius: 3px 3px 0 0;
}

.cs-calendar-tabs .nav-tabs .nav-link i {
    margin-right: 8px;
}

/* Tab Content */
.cs-calendar-tabs .tab-content {
    padding: 40px;
}

/* Events List */
.cs-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-event-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.cs-event-item:last-child {
    border-bottom: none;
}

.cs-event-item:hover {
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 20px;
    border-radius: 10px;
    border-bottom-color: transparent;
}

.cs-event-item:hover + .cs-event-item {
    border-top: none;
}

.cs-event-date {
    flex: 0 0 120px;
    background: linear-gradient(135deg, var(--primary-color, #1a1a2e) 0%, var(--secondary-color, #16213e) 100%);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 25px;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.cs-event-content {
    flex: 1;
}

.cs-event-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color, #1a1a2e);
    margin: 0 0 5px 0;
}

.cs-event-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Event Type Badges */
.cs-event-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
}

.cs-event-badge.registration {
    background: #e3f2fd;
    color: #1976d2;
}

.cs-event-badge.holiday {
    background: #fce4ec;
    color: #c2185b;
}

.cs-event-badge.exam {
    background: #fff3e0;
    color: #e65100;
}

.cs-event-badge.classes {
    background: #e8f5e9;
    color: #388e3c;
}

/* Calendar Legend */
.cs-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.cs-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.cs-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.cs-legend-dot.registration {
    background: #1976d2;
}

.cs-legend-dot.holiday {
    background: #c2185b;
}

.cs-legend-dot.exam {
    background: #e65100;
}

.cs-legend-dot.classes {
    background: #388e3c;
}

/* =========================================
   CTA Section
   ========================================= */
.cs-calendar-cta {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cs-calendar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.85) 100%);
}

.cs-calendar-cta .container {
    position: relative;
    z-index: 1;
}

.cs-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cs-cta-logo {
    margin-bottom: 30px;
}

.cs-cta-logo img {
    max-height: 60px;
    width: auto;
}

.cs-cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.cs-cta-content h2 span {
    color: var(--accent-color, #e94560);
}

.cs-cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
}

.cs-cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent-color, #e94560);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.cs-cta-btn:hover {
    background: #fff;
    color: var(--primary-color, #1a1a2e);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* =========================================
   Breadcrumb Section
   ========================================= */
.cs-breadcrumb-section {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.cs-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cs-breadcrumb li {
    font-size: 14px;
    color: #666;
}

.cs-breadcrumb li + li::before {
    content: '/';
    padding: 0 10px;
    color: #999;
}

.cs-breadcrumb li a {
    color: var(--primary-color, #1a1a2e);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cs-breadcrumb li a:hover {
    color: var(--accent-color, #e94560);
}

.cs-breadcrumb li.active {
    color: var(--accent-color, #e94560);
    font-weight: 600;
}

/* =========================================
   Welcome Form Section
   ========================================= */
.cs-welcome-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cs-welcome-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cs-welcome-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color, #1a1a2e);
    margin-bottom: 10px;
}

.cs-welcome-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.cs-welcome-form .form-group {
    margin-bottom: 20px;
}

.cs-welcome-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.cs-welcome-form input:focus {
    outline: none;
    border-color: var(--primary-color, #1a1a2e);
    box-shadow: 0 0 0 4px rgba(26, 26, 46, 0.1);
}

.cs-welcome-form button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color, #1a1a2e) 0%, var(--secondary-color, #16213e) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cs-welcome-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.3);
}

.cs-welcome-form button i {
    margin-left: 8px;
}

/* =========================================
   Responsive Styles
   ========================================= */
@media (max-width: 991px) {
    .cs-calendar-section {
        padding: 60px 0;
    }

    .cs-calendar-section .cs-section-title h2 {
        font-size: 30px;
    }

    .cs-calendar-tabs .nav-tabs .nav-link {
        padding: 15px 20px;
        font-size: 14px;
    }

    .cs-calendar-tabs .tab-content {
        padding: 30px;
    }

    .cs-event-date {
        flex: 0 0 100px;
        font-size: 13px;
        padding: 10px;
    }

    .cs-event-content h4 {
        font-size: 16px;
    }

    .cs-calendar-cta {
        padding: 80px 0;
    }

    .cs-cta-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .cs-calendar-tabs .nav-tabs {
        flex-direction: column;
    }

    .cs-calendar-tabs .nav-tabs .nav-item {
        min-width: 100%;
    }

    .cs-calendar-tabs .nav-tabs .nav-link.active {
        border-radius: 0;
    }

    .cs-calendar-tabs .tab-content {
        padding: 20px;
    }

    .cs-event-item {
        flex-direction: column;
    }

    .cs-event-date {
        flex: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cs-calendar-legend {
        justify-content: center;
    }

    .cs-cta-content h2 {
        font-size: 26px;
    }

    .cs-cta-content p {
        font-size: 16px;
    }

    .cs-welcome-card {
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .cs-calendar-section .cs-section-title h2 {
        font-size: 24px;
    }

    .cs-event-content h4 {
        font-size: 15px;
    }

    .cs-event-badge {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        width: fit-content;
    }
}

/* =========================================
   Theme-Specific Responsive Styles
   ========================================= */
@media (max-width: 991px) {
    .td_academic_calendar_section {
        padding: 60px 0 80px;
    }

    .td_calendar_tabs_nav .nav-link {
        padding: 18px 20px;
        font-size: 14px;
    }

    .td_calendar_tab_content {
        padding: 30px;
    }

    .td_event_date {
        flex: 0 0 120px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .td_event_description {
        font-size: 15px;
    }

    .td_calendar_cta {
        padding: 40px 30px;
    }

    .td_cta_action {
        align-items: flex-start;
        margin-top: 25px;
    }
}

@media (max-width: 767px) {
    .td_calendar_tabs_nav .nav-tabs {
        flex-direction: column;
        border-radius: 15px 15px 0 0;
    }

    .td_calendar_tabs_nav .nav-item {
        min-width: 100%;
    }

    .td_calendar_tabs_nav .nav-link.active {
        border-radius: 0;
    }

    .td_calendar_tab_content {
        padding: 25px 20px;
        border-radius: 0 0 15px 15px;
    }

    .td_calendar_event_row {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .td_event_date {
        flex: none;
        width: auto;
        margin-right: 0;
        margin-bottom: 12px;
    }

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

    .td_cta_text {
        text-align: center;
    }

    .td_cta_action {
        align-items: center;
        width: 100%;
    }

    .td_cta_logo {
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .td_academic_calendar_section {
        padding: 50px 0 60px;
    }

    .td_calendar_tabs_nav .nav-link {
        padding: 15px 18px;
        font-size: 13px;
        gap: 8px;
    }

    .td_calendar_tabs_nav .nav-link .tab-icon {
        font-size: 16px;
    }

    .td_event_date {
        font-size: 12px;
        padding: 10px 12px;
    }

    .td_event_description {
        font-size: 14px;
    }

    .td_calendar_cta_wrapper {
        margin-top: 35px;
    }

    .td_cta_text h3 {
        font-size: 24px !important;
    }

    .td_cta_text p {
        font-size: 14px;
    }
}
