/* Content Page Styling */
.content-container {
    /* max-width: 1200px; */
    margin: 100px auto;
    padding: 20px;
    /* color:var(--primary-rgb); */
}

/* Animated Page Title */
.page-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color:var(--primary-rgb);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-light-rgb);
    opacity: 0;
    transform: translateY(-30px);
    animation: titleAppear 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes titleAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Buttons - UPDATED */
.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: start;
    margin: 2rem 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.nav-button {
    padding: 8px 8px;
    background: var(--button-bg);
    color: var(--button-text);
    border: 2px solid var(--button-border);
    border-radius: 50px; /* Round buttons */
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-width: 80px;
    text-align: center;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-button:hover {
    background: var(--button-hover-bg);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    color: #ffffff;
}

.nav-button:hover::before {
    width: 300px;
    height: 300px;
}

.nav-button.active {
    background: var(--button-active-bg);
    color: var(--button-active-text);
    border-color: var(--button-active-border);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Content Sections - FIXED layout */
.content-section {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(0); /* Changed from translateY(20px) */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0; /* Changed from 2rem */
    padding: 0 20px;
    position: relative; /* Ensure proper stacking */
}

.content-section.active {
    opacity: 1;
    max-height: 5000px;
    transform: translateY(0);
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
    margin-bottom: 2rem; /* Add margin only when active */
}

/* Ensure sections don't push content down when hidden */
.sections-container {
    position: relative;
    min-height: 100px; /* Minimum height for container */
}

.section-title {
    color: var(--primary-rgb);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light-rgb);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Image and Text Layout */
.section-content {
    animation: contentAppear 0.8s ease-out;
    animation-delay: 0.2s;
}

@keyframes contentAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-text-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 2rem 0;
}

.text-with-image {
    flex: 0 0 60%;
}

.image-with-text {
    /* flex: 0 0 40%; */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-with-text img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Paragraph Styling - Applied to all <p> tags in sections */
.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
    /* line-height: 1.7; */
}

.content-section p strong {
    color: #2c3e50;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .image-text-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .text-with-image,
    .image-with-text {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* No JavaScript Fallback */
.no-js .content-section {
    opacity: 1;
    max-height: none;
    display: block;
    margin-bottom: 2rem; /* Show all sections with margin in no-js */
}

.no-js .section-nav {
    display: none;
}


/* Centered Bold Large Text */
.centered {
    text-align: center;
    padding: 1rem;
}
.centered-bold-large {
    text-align: center;
    font-weight: 600; /* Bold */
    font-size: 1.2rem; /* Larger font size */
    color: #2c3e50; /* Dark color for better contrast */
    margin: 2rem 0;
    padding: 1rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* Optional animation for appearance */
.centered-bold-large.animated {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .centered-bold-large {
        font-size: 1.5rem;
        margin: 1.5rem 0;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .centered-bold-large {
        font-size: 1.3rem;
        margin: 1rem 0;
        padding: 0.5rem;
    }
}

/* table */

table tr:nth-child(even) {
  background-color: var(--light-gray);   /* light gray */
}

table tr:nth-child(odd) {
  background-color: white;     /* white */
}

td, th {
  padding: 0 20px;   /* left-right padding */
}

/* audio */

audio{
    text-align: center;
}


/* social  */

.social-item {
  display: inline-block;   /* stays inside the same line */
  vertical-align: middle;  /* aligns nicely with text */
  margin: 0 4px;           /* small spacing */
}

.social-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}


h2{
    padding: 1rem 0;
}