/* Page Menu Styling */
.page-menu {
    display: none;
}

.page-menu.active {
    display: block;
}

/* Page Tabs Styling */
.page-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.tab-button {
    flex: 1;
    max-width: none;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    color: #043160;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:not(:last-child) {
    border-right: 1px solid #dee2e6;
}

.tab-button:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #043160, #1e5289);
    color: white;
    box-shadow: 0 4px 12px rgba(4, 49, 96, 0.3);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
}

/* Page Content */
.page-content {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h3 {
    color: var(--par-title-color);
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

h4 {
    color: var(--par-title-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.6rem;
}

h5 {
    color: var(--par-title-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

.lead-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #043160;
    margin-bottom: 1.5rem;
}

/* Images */
.image-placeholder {
    width: fit-content;
    max-width: 100%;
    background: rgba(139, 69, 19, 0.1);
    border: 2px dashed #d4a574;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8B4513;
    font-style: italic;
    margin: 20px auto;
    break-inside: avoid;
    font-size: 0.95rem;
    text-align: center;
    padding: 10px;
}

.image-placeholder img {
    max-width: 100%;
    height: auto; 
    max-height: 400px;  
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.figure-caption {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
    padding: 0 10px;
    margin: 0 0 20px 0; 
}

/* Download Cards */
.download-card {
    border: 2px solid #d6edf9;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    background: white;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: #1e5289;
    box-shadow: 0 8px 20px rgba(30, 82, 137, 0.15);
    transform: translateY(-5px);
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e5289, #043160);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.download-icon span {
    color: white;
    font-size: 1.8rem;
}

.download-card h5 {
    color: #043160;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-download {
    background: linear-gradient(135deg, #1e5289, #043160);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 82, 137, 0.3);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #5bc0de;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box p {
    margin: 0;
    font-style: italic;
    color: #555;
}

/* Want to know more? */
.cta-section {
    text-align: center;
    padding: 1.5rem;
    margin: 3rem auto;
    max-width: 700px;
    background: linear-gradient(135deg, rgba(4, 49, 96, 0.03), rgba(30, 82, 137, 0.05));
    border-radius: 12px;
    border: 2px solid rgba(4, 49, 96, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(4, 49, 96, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cta-text {
    font-style: italic;
    color: #043160;
    position: relative;
    z-index: 1;
}

.cta-emoji {
    display: inline-block;
    font-size: 1.3rem;
    animation: bounceCtaEMoji 2s ease-in-out infinite;
}

@keyframes bounceCtaEMoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}


.cta-link {
    color: #1e5289;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 0.2rem;
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #043160, #1e5289);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.cta-link:hover {
    color: #063971;
    transform: translateY(-1px);
}

.cta-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* References Section */
.references-section {
    margin-top: 3rem;
}

.references-toggle {
    background: linear-gradient(135deg, #043160, #1e5289);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(4, 49, 96, 0.3);
}

.references-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 49, 96, 0.4);
}

.references-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.references-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.references-toggle.active .references-arrow {
    transform: rotate(180deg);
}

.references-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.references-content.expanded {
    max-height: 500px;
}

.references-list {
    padding: 2rem;
    list-style: none;
    margin: 0;
}

.references-list li {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-left: 4px solid var(--par-title-color);
    border-radius: 4px;
    line-height: 1.5;
    font-size: 0.9rem;
}


/* Responsive */
@media (max-width: 768px) {
    .page-tabs {
        flex-direction: column;
    }

    .tab-button {
        border-right: none !important;
    }

    .tab-button:not(:last-child) {
        border-bottom: 1px solid #dee2e6;
    }

    .btn-large {
        display: block;
        margin: 0.5rem 0 !important;
    }
}

    /* DROPDOWN BUTTONS */
    .download-dropdown {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

.dropdown-btn-small {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: #043160;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-btn-small:hover {
    background: #1e5289;
    transform: translateY(-2px);
}

.dropdown-btn-small svg {
    transition: transform 0.3s ease;
}

.download-dropdown:hover .dropdown-btn-small svg {
    transform: rotate(180deg);
}

.dropdown-content-small {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-bottom: 8px;
    z-index: 1000;
    border: 2px solid #d6edf9;
}

.download-dropdown:hover .dropdown-content-small {
    display: block;
    animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content-small a {
    display: block;
    padding: 0.75rem 1rem;
    color: #043160;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content-small a:last-child {
    border-bottom: none;
}

.dropdown-content-small a:hover {
    background: #e3f2fd;
    color: #043160;
}

.dropdown-content-small a:first-child {
    border-radius: 6px 6px 0 0;
}

.dropdown-content-small a:last-child {
    border-radius: 0 0 6px 6px;
}
