/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.7;
    padding-top: 56px; /* Account for fixed navbar */
}

/* Custom Navbar */
.navbar {
    background-color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.btn-section {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
}

.btn-section:hover,
.btn-section.active {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
}

/* Interactive buttons */
.btn-section, .dropdown-item {
    transition: all 0.3s ease;
}

.btn-section:hover {
    transform: translateY(-2px);
}

.dropdown-item:hover {
    transform: translateX(5px);
}

/* Logo hover effect */
.logo-img {
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}
/* Dropdown */
.dropdown-menu {
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #343a40;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: #f8f9fa;
    color: #2c3e50;
}

/* Main Content */
.content-wrapper {
    min-height: calc(100vh - 56px - 60px); /* Viewport height minus navbar and footer */
    padding: 3rem 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-text {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-size: 1.125rem;
    line-height: 1.8;
    color: #495057;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* Typography enhancements */
.content-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.content-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #34495e;
}

.content-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #444;
}

.content-text ul, .content-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-text {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .content-text h1 {
        font-size: 2rem;
    }
    
    .content-text h2 {
        font-size: 1.75rem;
    }
}

.content-loading {
    position: relative;
}
.content-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #2c3e50, #3498db);
    animation: loading 1s infinite;
}

/* Logo styles */
.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Alternative: If you want only the logo without text */
.logo-only .logo-img {
    height: 45px;
}

.logo-only {
    padding: 0.5rem 0;
}

/* For circular/rounded logos */
.logo-img.rounded {
    border-radius: 50%;
}

/* For rectangular/square logos */
.logo-img.square {
    border-radius: 8px;
}

/* Review */

/* Smooth content transitions */
#content {
    transition: all 0.3s ease;
}

#content.changing {
    opacity: 0.5;
    transform: translateY(10px);
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Hover effects for navigation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Glass morphism effect for content */
.content-text {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Subtle background pattern */
body {
    background-image: radial-gradient(circle at 25px 25px, rgba(255,255,255,0.2) 2%, transparent 0%),
                      radial-gradient(circle at 75px 75px, rgba(255,255,255,0.2) 2%, transparent 0%);
    background-size: 100px 100px;
}

/* Custom scrollbar */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* For the loading over  */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Wrapper for content between nav and footer */
.content-wrapper {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 70px;   /* space for fixed navbar */
    padding-bottom: 70px; /* space for fixed footer */
}

/* Main content area */
.content-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    color: white;
    text-align: center;
    /* background: rgba(0, 0, 0, 0.5); */
    border-radius: 10px;
}

/* Make sure figures and other image containers are also responsive */
.content-text figure, 
.content-text .image-container {
    max-width: 100%;
    margin: 1.5rem auto;
}

/* Base image styling */
.content-text img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
    padding: 1rem; /* Padding on all sides */
    margin: 1.5rem auto; /* Vertical margin + auto centering */
}

/* Image wrapper for horizontal spacing */
.content-text .img-wrapper {
    padding: 0 3rem; /* Horizontal padding */
    margin: 1.5rem 0;
    text-align: center;
}


/* Responsive adjustments */
@media screen and (max-width: 992px) {
    /* Reduce padding on medium screens */
    .content-text img {
        padding: 0.75rem;
    }
    
    .content-text .img-wrapper {
        padding: 0 2rem;
    }
    
    .content-text img.img-left,
    .content-text img.img-right {
        margin: 1rem 2rem;
    }
}

@media screen and (max-width: 768px) {
    /* Even smaller padding on tablets */
    .content-text img {
        padding: 0.5rem;
    }
    
    .content-text .img-wrapper {
        padding: 0 1rem;
    }
    
    .content-text img.img-left,
    .content-text img.img-right {
        margin: 1rem;
        max-width: 45%; /* Slightly larger on tablets */
    }
}

@media screen and (max-width: 576px) {
    /* For smartphones */
    .content-text img {
        padding: 0.25rem;
        margin: 1rem auto;
        max-width: 90%; /* Much larger images on mobile */
    }
    
    .content-text .img-wrapper {
        padding: 0 0.5rem;
    }
    
    /* Make floating images full width on mobile */
    .content-text img.img-left,
    .content-text img.img-right {
        float: none;
        margin: 1rem auto;
        max-width: 90%;
    }
    
    /* Container padding adjustment for mobile */
    .content-container {
        padding: 1rem;
    }
}

/* Optional: Special class for large hero-style images */
.content-text img.img-large {
    max-width: 90%;
    margin: 2rem auto;
}

/* Optional: For thumbnail grids that should remain small */
.content-text .thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.content-text .thumbnail-grid img {
    width: calc(25% - 10px); /* 4 per row by default */
    max-width: 150px;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .content-text .thumbnail-grid img {
        width: calc(33.333% - 10px); /* 3 per row on tablets */
    }
}

@media screen and (max-width: 576px) {
    .content-text .thumbnail-grid img {
        width: calc(50% - 10px); /* 2 per row on phones */
    }
}