/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* External link indicator */
a[target="_blank"]::after {
    content: "↗";
    display: inline-block;
    margin-left: 3px;
    font-size: 0.8em;
}

/* Header styles */
header {
    background-color: #3a6ea5;
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation styles */
nav {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #3a6ea5;
}

/* Section styles */
.section {
    padding: 30px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2.2rem;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #3a6ea5;
    margin: 15px auto 0;
}

/* About section */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.about-text {
    max-width: 700px;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 20px;
}

/* Interests section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.interest-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.interest-item h3 {
    color: #3a6ea5;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.interest-item ul {
    list-style-position: inside;
    margin-left: 10px;
}

.interest-item ul li {
    margin-bottom: 8px;
}

/* Activities section */
.activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.activity-item h3 {
    color: #3a6ea5;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.activity-item ul {
    list-style-position: inside;
    margin-left: 10px;
}

.activity-item ul li {
    margin-bottom: 10px;
}

.activity-item ul ul {
    margin-left: 20px;
    margin-top: 5px;
}

/* Link to view more content */
.view-more {
    display: inline-block;
    margin-left: 8px;
    color: #3a6ea5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.view-more:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Contact section */
#contact {
    background-color: #f0f5fa;
}

#contact p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

#contact a {
    color: #3a6ea5;
    text-decoration: none;
    font-weight: 500;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Hypertrophy Articles Page Styles */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    color: #555;
}

.article-toc {
    max-width: 800px;
    margin: 0 auto 40px;
    padding-left: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-toc li {
    margin-bottom: 12px;
}

.article-toc a {
    color: #3a6ea5;
    text-decoration: none;
    transition: color 0.3s;
}

.article-toc a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.article-section {
    padding: 40px 0;
}

.article-section:nth-child(odd) {
    background-color: #f0f5fa;
}

.article-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.article-card h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.article-date {
    color: #777;
    font-style: italic;
    margin-bottom: 20px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    max-width: 100%;
    text-align: justify;
    letter-spacing: 0.01em;
    word-spacing: 0.05em;
    padding: 0 5px;
}

.article-content-text h5 {
    color: #3a6ea5;
    font-size: 1.15rem;
    margin: 20px 0 12px;
    font-weight: 600;
}

.article-content-text p {
    margin-bottom: 16px;
}

.article-content h4 {
    color: #3a6ea5;
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.article-content h5 {
    color: #3a6ea5;
    margin: 25px 0 15px;
    font-size: 1.0rem;
}

.article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content ul li {
    margin-bottom: 8px;
}

.article-summary {
    border-left: 3px solid #3a6ea5;
    padding-left: 20px;
    font-style: italic;
    color: #555;
}

.back-to-home {
    text-align: center;
    margin-top: 20px;
}

.back-to-home a {
    display: inline-block;
    color: #3a6ea5;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #3a6ea5;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-to-home a:hover {
    background-color: #3a6ea5;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .carousel-container-wrapper {
        padding: 10px;
    }
    
    .carousel-media {
        height: 200px;
    }
}

/* New Modular Carousel System */
.carousel-container-wrapper {
    width: 100%;
    margin: 30px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    grid-column: 1 / -1;
}

.carousel-container-wrapper h3 {
    color: #3a6ea5;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
}

.carousel {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.carousel-inner {
    width: 100%;
    position: relative;
}

.carousel-slides {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    background-color: #f0f5fa;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-media {
    width: 100%;
    height: 80%;
    object-fit: contain;
    border-radius: 6px;
    background-color: #f0f5fa;
}

.carousel-caption {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    max-width: 90%;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3a6ea5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
    z-index: 10;
}

.carousel-button:hover {
    background-color: #2c3e50;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.dot:hover {
    background-color: #888;
    transform: scale(1.2);
}

.dot.active {
    background-color: #3a6ea5;
    transform: scale(1.3);
}

/* Legacy carousel styles - keeping for backwards compatibility */
.chess-carousel {
    width: 100%;
    max-width: 700px;
    margin: 30px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    position: relative;
    grid-column: 1 / -1;
}

.carousel-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f0f5fa;
    border-radius: 6px;
}

/* Planned items styling */
.planned-item {
    background-color: yellow;
} 