/* About page tab styling */
.about-content {
    min-height: 500px; /* Ensure minimum height for content area */
}

.sw-pages-menu {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1;
}

.sw-pages-menu ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 45px; /* Set fixed height for the tab container */
}

.sw-pages-menu li {
    margin-right: 5px; /* Reduced margin for tighter tabs */
    position: relative;
    padding-bottom: 0; /* Remove padding as it's now on the anchor */
    display: inline-block;
    height: 45px; /* Fixed height for all tabs */
    box-sizing: border-box;
}

/* Base tab link styling */
.sw-pages-menu li {
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.sw-pages-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0 15px;
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Hover state for tabs */
.sw-pages-menu li:hover {
    background-color: rgba(44, 90, 160, 0.8);
}

.sw-pages-menu li:hover a {
    color: #fff;
    text-decoration: none;
}

/* Active tab styling */
.sw-pages-menu li.acting-sw-link {
    background-color: #2c5aa0;
}

.sw-pages-menu li.acting-sw-link a {
    color: #fff;
    font-weight: 600;
}

/* Underline indicator for active tab */
.sw-pages-menu li.acting-sw-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2c5aa0;
    z-index: 2;
}

/* Tab content styling */
[id^="sw-page_"] {
    display: none;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    margin-bottom: 40px;
}

#sw-page_01 {
    display: block;
    opacity: 1;
}

/* Tab content class */
.tab-content {
    overflow: auto;
    line-height: 1.6;
    min-height: 300px;
    color: #333;
    background-color: #fff;
    padding: 20px 0;
    position: relative;
    z-index: 0;
}

/* Ensuring text in tabs is properly colored */
.tab-content h1, .tab-content h2, .tab-content h3, 
.tab-content h4, .tab-content h5, .tab-content h6 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.tab-content p {
    color: #444;
    margin-bottom: 15px;
}

.tab-content a {
    color: #2c5aa0;
    text-decoration: none;
}

.tab-content a:hover {
    text-decoration: underline;
}

/* Add smooth fade-in transition for tab content */
.tab-content:not([style*="display: none"]) {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade in effect for tab content */
[id^="sw-page_"]:not([style*="display: none"]) {
    opacity: 1;
}

/* Ensure content is visible */
[id^="sw-page_"] img, 
[id^="sw-page_"] p,
[id^="sw-page_"] h1,
[id^="sw-page_"] h2,
[id^="sw-page_"] h3,
[id^="sw-page_"] h4,
[id^="sw-page_"] div {
    max-width: 100%;
}

/* Certificates section styling */
.slider.certificatesAutoplay {
    margin: 20px 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
}

.slider.certificatesAutoplay div {
    flex: 0 0 auto;
}

.slider.certificatesAutoplay img {
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
    transition: transform 0.2s ease;
}

.slider.certificatesAutoplay img:hover {
    transform: scale(1.05);
}