/* Base and Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    line-height: 1.6;
    color: #333;
}

h1,
h2 {
    color: #0066cc;
    margin-bottom: 15px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

/* Page Specific Styles */
/* Slideshow */
.slideshow-container {
    width: 100%;
    max-height: 600px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16/9;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.caption {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1rem;
    z-index: 10;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    user-select: none;
}

.slideshow-arrow.left {
    left: 15px;
}

.slideshow-arrow.right {
    right: 15px;
}

.slideshow-arrow:hover {
    background: #4d94ff;
    transform: translateY(-50%) scale(1.1);
}

.dots-container {
    display: none;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #bbb;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #0066cc;
    transform: scale(1.2);
}

.dot:hover {
    background-color: #4d94ff;
    transform: scale(1.2);
}

.leadimg {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.lead {
    width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.lead:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .leadimg {
       flex-direction: row;
        gap: 10px;
        padding: 10px;
    }

    .lead {
    width: 22rem;
    height: 280px;
    }
}

@media (max-width: 768px) {
    .leadimg {
       flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .lead {
    width: 100vw;
    height: 50v;
    }
}

@media (max-width: 480px) {
    .leadimg {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .lead {
        width: 100vw;
        height: 30vh;
    }
}

/* Card Section */
.card-section section {
    background-color: #0066cc;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 15px 30px;
    position: relative;
    font-weight: bold;
    font-size: 18px;
    user-select: none;
}

.card-section section h1 {
    margin: 0;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    background-color: #0066cc;
    width: 100%;
    color: white;
    padding: 10px 15px;
}

/* Card Container */
.card-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-items: center;
    padding: 0 15px;
}

/* Card */
.card {
    background: white;
    width: 100%;
    max-width: 300px;
    border: 1px solid #ddd;
    padding: 25px 20px 35px;
    text-align: center;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
    transform: translateY(-4px);
}

.circle-img-wrapper {
    background-color: #e6f2ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.circle-img-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.card .name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.card .desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    white-space: pre-line;
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.art-intro {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    text-align: justify;
}

.art-intro h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0066cc;
}

.intro {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.6;
}

.read-more-btn {
    background-color: #4d94ff;
    color: white;
    font-weight: bold;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.read-more-btn:hover {
    background-color: #3d84ef;
}

/* Tabs Container */
.tabs-container {
    flex: 1;
    min-width: 300px;
    margin-top: 0;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
}

.tab {
    padding: 14px 20px;
    cursor: pointer;
    background: #eee;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 2px;
    user-select: none;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
}

.tab.active {
    background: #fff;
    font-weight: bold;
    border-bottom: 1px solid #fff;
}

.tab-content {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
    margin-top: -1px;
    line-height: 1.8;
    display: none;
    min-height: 200px;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 8px;
}

.tab-content a {
    color: #0066cc;
    text-decoration: none;
}

.tab-content a:hover {
    text-decoration: underline;
}

/* Gallery Section */
.Gallery-section {
    padding: 30px 20px;
    background: #0066cc;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 1200px;
    width: calc(100% - 40px);
}

.Gallery-section h1 {
    color: white;
    text-align: center;
    margin: 0 0 20px 0;
}

.gallery-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.Gallery-section img {
    width: 100%;
    max-width: 350px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.Gallery-section img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-button-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.view-gallery-btn {
    background-color: #4d94ff;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.view-gallery-btn:hover {
    background-color: #3d84ef;
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .tabs-container {
        margin-top: 30px;
    }

    .tab {
        padding: 12px 10px;
        font-size: 14px;
    }

    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    .Gallery-section img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .slideshow-arrow {
        font-size: 1.2rem;
        padding: 8px 12px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .card {
        max-width: 100%;
    }

    .art-intro {
        padding: 15px;
    }

    .tab {
        padding: 10px 5px;
        font-size: 12px;
    }
}