/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: #273037;
    line-height: 1.5;
}

.container {
    max-width: 932px;
    margin: 0 auto;
    padding: 20px;
}

/* Layout */
.layout {
    display: flex;
    gap: 20px;
}

.main-content {
    flex: 1;
}

/* Introduction Section */
.intro-card {
    border: 1px solid rgba(250, 199, 22, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    background: linear-gradient(to right bottom, rgba(250, 199, 22, 0.05), rgba(250, 199, 22, 0.02));
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(250, 199, 22, 0.05);
}

.intro-content {
    position: relative;
    padding-left: 24px;
}

.intro-bar {
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 20px;
    background-color: #fac716;
    border-radius: 2px;
}

.intro-title {
    font-size: 1rem;
    font-weight: 700;
    color: #273037;
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.intro-text {
    font-size: 0.8rem;
    color: rgba(39, 48, 55, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro-quote {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(39, 48, 55, 0.9);
    padding: 16px;
    background-color: rgba(39, 48, 55, 0.04);
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: inset 0 1px 4px rgba(39, 48, 55, 0.05);
}

.intro-quote-author {
    font-size: 0.8rem;
    color: rgba(39, 48, 55, 0.8);
    font-style: normal;
    font-weight: 500;
    margin-top: 8px;
}

.intro-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Content Cards */
.content-card {
    border: 1px solid rgba(250, 199, 22, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    background-color: white;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(250, 199, 22, 0.5);
}

.content-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.content-grid {
    display: flex;
    gap: 20px;
}

/* Image Container and Info Overlay */
.image-container {
    position: relative;
    width: 200px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
}

.content-image:hover {
    transform: scale(1.05);
}


/* Info Icon Styles */
.image-info {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: serif;
    font-style: italic;
    font-weight: bold;
    font-size: 14px;
    color: #273037;
}

.info-icon {
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(39, 48, 55, 0.95);
    color: white;
    font-size: 0.8rem;
    padding: 8px 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.image-info:hover + .info-label {
    transform: translateY(0);
}

/* Content Text */
.content-title {
    font-size: 1rem;
    font-weight: 700;
    color: #273037;
    margin-bottom: 8px;
}

.text {
    font-size: 0.8rem;
    color: rgba(39, 48, 55, 0.8);
}

/* Updates Section */
.updates-section {
    width: 300px;
}

.updates-card {
    border: 1px solid rgba(250, 199, 22, 0.3);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 20px;
    background-color: white;
}

.updates-header {
    text-align: center;
    margin-bottom: 24px;
}

.updates-title {
    font-size: 1rem;
    font-weight: 600;
    color: #273037;
}

/* Update Items */
.update-item {
    margin-bottom: 24px;
    background-color: rgba(250, 199, 22, 0.05);
    border: 1px solid rgba(250, 199, 22, 0.15);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.update-header {
    margin-bottom: 12px;
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.update-type {
    font-size: 0.8rem;
    font-weight: 500;
}

.update-date {
    font-size: 0.8rem;
    color: rgba(39, 48, 55, 0.6);
}

.update-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.update-description {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Update Image Container */
.update-image-container {
    position: relative;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;  /* Wider aspect ratio for news items */
}

.update-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.update-image:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Link Styles */
.link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: rgba(250, 199, 22, 0.1);
    border: 1px solid rgba(250, 199, 22, 0.2);
    color: #273037;
}

.link:hover {
    background-color: rgba(250, 199, 22, 0.15);
    border-color: rgba(250, 199, 22, 0.3);
    transform: translateY(-1px);
}

.link-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .updates-section {
        width: 100%;
    }

    .updates-card {
        position: static;
    }

    .intro-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .content-grid {
        flex-direction: column;
    }

     .image-container {
        width: 100%;
    }

    .updates-header {
        text-align: left;
    }
}