/* Remove all News Updates Section Styles */

/* News Updates Section Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: #333;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-content {
        padding: 1.25rem;
    }

    .news-content h3 {
        font-size: 1.125rem;
    }
}

/* Loading Animation */
.news-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.news-card:focus-within {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.news-image img {
    alt: "";
}

/* Print styles */
@media print {
    .news-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .news-image {
        display: none;
    }

    #rss-feed {
        display: none;
    }
}

/* RSS Feed Viewer Styles */
#rss-feed {
    padding: 2rem 0;
}

#app-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 1200px;
    padding: 1rem;
}

#app-container header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

#global-refresh-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#global-refresh-button:hover {
    background: #e5e5e5;
}

#tab-interface-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#tab-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.tab-button.active {
    border-bottom-color: #000;
    font-weight: 500;
}

.tab-button .loading-indicator {
    display: none;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.tab-button .loading-indicator.active {
    display: block;
}

#tab-content-area {
    position: relative;
    min-height: 400px;
}

.iframe-container {
    display: none;
    width: 100%;
    height: 2400px;
    border: none;
}

.iframe-container.active {
    display: block;
}

.iframe-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    #app-container {
        padding: 0.5rem;
    }
    
    #tab-bar {
        padding: 0 0.5rem;
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #fff;
    background-image: url("/website_images/MODELECRUBAY.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    z-index: 1;
}
/* WebP support with fallback */
@supports (background-image: url("/website_images/MODELECRUBAY.webp")) {
    .hero-section {
        background-image: url("/website_images/MODELECRUBAY.webp");
    }
}
/* Ensure PNG fallback is always available */
.hero-section {
    background-image: url("/website_images/MODELECRUBAY.png");
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

.hero-section .section-content-wrapper {
    position: relative;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
    text-align: center;
    padding-bottom: 4rem;
    background: none;
    backdrop-filter: none;
}

.hero-section img {
    display: none !important;
}

.hero-section .tagline {
    font-size: clamp(0.75rem, 2vw, 1rem);
    line-height: 1.4;
    max-width: 800px;
    padding: 0 2rem;
    color: #000;
    font-weight: 300;
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0 auto;
}

.hero-section .hero-buttons {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 3;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-section .section-content-wrapper {
        padding-bottom: 2rem;
    }

    .hero-section .tagline {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
        padding: 0 1rem;
    }
    
    .hero-section .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.site-title {
    font-size: 1.5rem;
}

.site-subtitle {
    font-size: 0.9rem;
}

.main-navigation a {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .subsection-title {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.8rem;
    }
}

.value-prop-item p {
    font-size: 0.8rem;
    line-height: 1.4;
}

.service-item-card p {
    font-size: 0.8rem;
    line-height: 1.4;
}

.service-item-card ul li {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.choosing-reasons-list li {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.faq-item-card p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.contact-details p {
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    p {
        font-size: 0.8rem;
    }
    
    .value-prop-item p {
        font-size: 0.75rem;
    }
    
    .service-item-card p {
        font-size: 0.75rem;
    }
    
    .service-item-card ul li {
        font-size: 0.75rem;
    }
    
    .choosing-reasons-list li {
        font-size: 0.8rem;
    }
    
    .faq-item-card p {
        font-size: 0.8rem;
    }
    
    .contact-details p {
        font-size: 0.8rem;
    }
}

/* Media Grids Section Styles */
.media-grid { margin: 1rem 0; }
.media-grid .grid-container { 
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Image Grid */
.image-grid .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.image-grid .grid-item {
    aspect-ratio: 1/1;
    max-width: 200px;
    margin: 0 auto;
}

/* Video Grid */
.video-grid .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    max-width: 75%;
    margin: 0 auto;
}
.video-grid .grid-item {
    width: 100%;
    margin: 0 auto;
    cursor: pointer;
    position: relative;
    background: #000;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.video-grid .grid-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Common Grid Item Styles */
.media-grid .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: #f5f5f5;
}
.media-grid .grid-item:hover {
    transform: translateY(-5px);
}
.media-grid .grid-item img,
.media-grid .grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.media-grid .grid-item:hover img,
.media-grid .grid-item:hover video {
    transform: scale(1.05);
}

/* Captions */
.media-grid .grid-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    text-transform: capitalize;
}
.media-grid .grid-item:hover .caption {
    opacity: 1;
}

/* Video Play Button */
.video-grid .grid-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.video-grid .grid-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-left: 12px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    z-index: 2;
    pointer-events: none;
}
.video-grid .grid-item:hover::before,
.video-grid .grid-item:hover::after,
.video-grid .grid-item.playing::before,
.video-grid .grid-item.playing::after {
    opacity: 0;
}

/* Loading State */
.video-grid .grid-item.loading {
    animation: pulse 1.5s infinite;
}
.video-grid .grid-item.loading::before,
.video-grid .grid-item.loading::after {
    opacity: 0;
}
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .video-grid .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.35rem;
        max-width: 90%;
    }
    .media-grid .grid-item .caption {
        opacity: 1;
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    .video-grid .grid-item::before {
        width: 32px;
        height: 32px;
    }
    .video-grid .grid-item::after {
        border-left: 10px solid white;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }
}

/* Centered logo and subtitle for mobile hero section */
@media (max-width: 768px) {
  .sidebar-nav .site-title {
    display: none;
  }
  .hero-logo-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    top: 1.2rem;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100vw;
    pointer-events: none;
  }
  .hero-logo-mobile .site-title-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.05em;
    text-align: center;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 0.2em 0.7em;
    margin-bottom: 0.2em;
    pointer-events: auto;
  }
  .hero-logo-mobile .site-subtitle {
    font-size: 0.95rem;
    color: #444;
    text-align: center;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 0.1em 0.7em;
    font-weight: 400;
    pointer-events: auto;
  }
  .hero-section {
    position: relative;
    min-height: 320px;
  }
}

@media (min-width: 769px) {
  .hero-logo-mobile {
    display: none !important;
  }
} 