/* Unified Timeline Section Styles for Experience and Education */

/* Common styles for both sections */
#experience, #education {
    background-color: transparent !important;
}

#experience h3, #education h3 {
    color: var(--text-secondary-color) !important;
}

#experience *, #education * {
    background-color: transparent !important;
}

#experience .tab-pane > *, #education .tab-pane > * {
    opacity: 0.9;
}

#experience .tab-pane small, #education .tab-pane small {
    opacity: 0.8;
}

#experience .tab-pane ul, #education .tab-pane ul {
    padding-top: 1%;
    padding-bottom: 1%;
}

#experience .experience-container .tab-content > .tab-pane p,
#education .experience-container .tab-content > .tab-pane p {
    padding: 1% 0;
    margin: 0;
}

#experience .experience-container, #education .experience-container {
    background-color: var(--secondary-color) !important;
    border-radius: .75rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
}

/* Tab navigation styles */
#experience .nav-item .nav-link, #education .nav-item .nav-link {
    color: var(--text-color) !important;
    border-bottom: 2px solid transparent; 
    border-radius: 0%;
    transition: none;
    cursor: pointer;
}

#experience .nav-item .nav-link.active, #education .nav-item .nav-link.active {
    color: var(--text-color) !important;
    border-bottom: 2px solid var(--primary-color); 
    opacity: 0.8;
}

#experience .nav-item .nav-link.active:hover, #education .nav-item .nav-link.active:hover { 
    transition: none !important;
}

#experience .nav-item .nav-link:hover, #education .nav-item .nav-link:hover {
    border-bottom: 2px solid var(--primary-color);
    opacity: 0.8;
}

/* Link styles */
#experience a, #education a {
    opacity: 0.9;
    display: inline-block;
    text-decoration: none;
    color: var(--text-link-color) !important;
}

#experience a::after, #education a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

#experience a:hover::after, #experience a:focus::after, #experience a:active::after,
#education a:hover::after, #education a:focus::after, #education a:active::after {
    width: 100%;
}

/* List styles */
#experience .experience-container .tab-content .tab-pane ul,
#education .experience-container .tab-content .tab-pane ul {
    overflow: hidden;
    list-style: none;
    margin-bottom: 0;
}

#experience .experience-container .tab-content .tab-pane ul li,
#education .experience-container .tab-content .tab-pane ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
}

#experience .experience-container .tab-content .tab-pane ul li::before,
#education .experience-container .tab-content .tab-pane ul li::before {
    content: "▹";
    color: var(--primary-color);
    position: absolute;
    left: 0px;
}

/* Featured link styles */
#experience .experience-container .tab-content .tab-pane .featuredLink a::after,
#education .experience-container .tab-content .tab-pane .featuredLink a::after {
    display: block;
    width: auto;
    height: auto;
    bottom: 0em;
    background-color: transparent;
    transition: none;
    opacity: 1;
}

#experience .experience-container .tab-content .tab-pane .featuredLink a.btn,
#education .experience-container .tab-content .tab-pane .featuredLink a.btn {
    border: 1px solid var(--primary-color);
    border-radius: .75rem;
    transition: none;
}

#experience .experience-container .tab-content .tab-pane .featuredLink a.btn:focus,
#education .experience-container .tab-content .tab-pane .featuredLink a.btn:focus {
    box-shadow: none;
}

#experience .experience-container .tab-content .tab-pane .featuredLink a.btn:hover,
#education .experience-container .tab-content .tab-pane .featuredLink a.btn:hover {
    color: var(--text-color) !important;
    opacity: 0.7;
}

/* Remove education-specific card styles that conflict with tabs */
#education .card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

#education .card * {
    background-color: transparent !important;
}

#education .card:hover {
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

#education .card .card-body {
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Ensure both sections have identical styling */
#experience .index, #education .index {
    opacity: 0.8;
    padding: 13px 20px;
    line-height: 0%;
    border-radius: 50%;
    max-height: 50px;
    z-index: 2;
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    font-weight: bold;
}