/* Hero Section */
.hero-section {
    position: relative;
    height: 370px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        height: 450px;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-inner {
    text-align: center;
    color: white;
    padding: 0 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 8px;
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    margin: 0 auto;
}

/* Event Recaps Section */
.event-recaps-section {
    position: relative;
    padding: 30px;
}

.event-recaps-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.85);
    background-blend-mode: overlay;
}

.event-recaps-container {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    margin: 0 auto;
}

.event-recaps-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .event-recaps-header {
        margin-bottom: 48px;
    }
}

.event-recaps-title {
    font-size: 32px;
    font-weight: bold;
    color: #1C1C1C;
    margin-bottom: 8px;
}

.event-recaps-subtitle {
    font-size: 16px;
    color: #666;
}

.carousel-nav {
    display: flex;
    gap: 8px;
}

@media (max-width: 767px) {
    .carousel-nav {
        display: none;
    }
}

.carousel-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover rect, 
.carousel-btn:active rect {
    fill: #1C1C1C;
    stroke: #1C1C1C;
}

.carousel-btn:hover path, 
.carousel-btn:active path {
    stroke: #FFFFFF;
}

.event-container {
    overflow-x: hidden;
}

.event-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.event-grid::-webkit-scrollbar {
    display: none;
}

.event-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .event-item {
        width: calc(50% - 12px);
    }
}

.event-image-container {
    position: relative;
    height: 370px;
}

@media (min-width: 768px) {
    .event-image-container {
        height: 400px;
    }
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-icon:hover {
    transform: scale(1.1);
}

.event-content {
    padding: 16px;
}

.event-date {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.event-date-icon {
    margin-right: 8px;
}

.event-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #1C1C1C;
    margin-bottom: 4px;
}

.event-item-description {
    font-size: 16px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Our Community Section */
.community-section {
    padding: 50px 60px;
    background: white;
}

.community-container {
    max-width: 1440px;
    margin: 0 auto;
}

.community-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .community-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 48px;
    }
}

@media (min-width: 768px) {
    .community-header-left {
        margin-bottom: 0;
    }
}

.community-title {
    font-size: 32px;
    font-weight: bold;
    color: #1C1C1C;
    margin-bottom: 8px;
}

.community-subtitle {
    font-size: 16px;
    color: #666;
}

.blog-social-links {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

@media (max-width: 767px) {
    .blog-social-links {
        margin-top: 8px;
    }
}

@media (min-width: 768px) {
    .blog-social-links {
        justify-content: flex-end;
    }
}

.blog-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 1px solid #1C1C1C;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-social-link:hover rect,
.blog-social-link:active rect {
    fill: #1C1C1C;
    stroke: #1C1C1C;
}

.blog-social-link:hover path,
.blog-social-link:active path {
    stroke: #FFFFFF;
}

.blog-social-link:hover {
    background: black;
    color: white;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
    aspect-ratio: 2 / 3;
}

@media (min-width: 768px) {
    .community-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        aspect-ratio: 5 / 2;
    }
}

.community-col-1 {
    grid-row: 1;
    grid-column: 1 / span 2;
    display: flex;
    gap: 8px;
}

@media (min-width: 768px) {
    .community-col-1 {
        grid-column: 1;
        grid-row: 1 / span 2;
        flex-direction: column;
    }
}

.community-col-span-2 {
    grid-column: 1 / span 2;
    grid-row: 2 / span 2;
}

@media (min-width: 768px) {
    .community-col-span-2 {
        grid-column: 2 / span 2;
        grid-row: 1 / span 2;
    }
}

.community-col-4-5 {
    grid-column: 1 / span 2;
    grid-row: 4 / span 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .community-col-4-5 {
        grid-column: 4 / span 2;
        grid-row: 1 / span 2;
    }
}

.community-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}

.community-image-small {
    width: 50%;
    aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
    .community-image-small {
        width: 100%;
    }
}

.community-image-large {
    width: 100%;
    aspect-ratio: 2 / 1;
}

@media (min-width: 768px) {
    .community-image-large {
        aspect-ratio: 1 / 1;
    }
}

.community-image-top {
    width: 100%;
    aspect-ratio: 2 / 1;
}

.community-col-bottom {
    display: flex;
    gap: 8px;
}

.community-col-bottom .community-image-small {
    width: 50%;
    aspect-ratio: 1 / 1;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-image:hover img {
    transform: scale(1.05);
}

.community-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-image:hover .community-image-overlay {
    opacity: 1;
}

.community-image-link {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.community-image-link-large {
    width: 80px;
    height: 80px;
}

/* Newsroom Section */
.newsroom-section {
    padding: 50px 60px;
    background: white;
}

.newsroom-container {
    max-width: 1440px;
    margin: 0 auto;
}

.newsroom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.newsroom-title {
    font-size: 32px;
    font-weight: bold;
    color: #1C1C1C;
}

.news-container {
    overflow-x: visible;
}

.news-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-grid::-webkit-scrollbar {
    display: none;
}

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .news-item {
        width: calc(33.333% - 16px);
    }
}

.news-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 16px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.news-date-icon {
    color: #666;
}

.news-date-text {
    color: #666;
    font-size: 16px;
}

.news-item-title {
    font-size: 24px;
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 10px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    color: black;
    text-decoration: underline;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #BE930B;
}

.carousel-indicators {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.video-container {
    position: relative;
    width: calc(100% - 120px);
    max-width: 768px;
    transition: all 0.3s ease;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Scrollbar Hide */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .community-section,
    .newsroom-section {
        padding: 30px 20px;
    }

    .event-recaps-section {
        padding: 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 14px;
    }

    .video-container {
        width: calc(100% - 32px);
    }

    .carousel-indicators {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        padding: 8px 0;
    }

    .news-grid {
        scrollbar-width: thin;
        -ms-overflow-style: auto;
    }

    .news-grid::-webkit-scrollbar {
        display: block;
        height: 6px;
    }

    .news-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .news-grid::-webkit-scrollbar-thumb {
        background: #BE930B;
        border-radius: 3px;
    }
}