/* News Page Styles */

/* Base Container Responsive */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Page Header */
.page-header {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}

.page-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/backgrounds/page-header-bg-1-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.page-header__title {
    position: relative;
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
}

.laboix-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.laboix-breadcrumb li {
    color: #ffffff;
    font-size: 14px;
}

.laboix-breadcrumb li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.laboix-breadcrumb li a:hover {
    color: #f25119;
}

.laboix-breadcrumb li + li::before {
    content: '/';
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Insights & News Section */
.insights-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
    margin: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* News Card */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    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.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-card__image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

.news-card:hover .news-card__image img {
    transform: scale(1.1);
}

.news-card__content {
    padding: 30px;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-card__category {
    display: inline-block;
    padding: 5px 15px;
    background-color: #e8f5f7;
    color: #0891a8;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card__date {
    font-size: 13px;
    color: #999999;
}

.news-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0 0 15px;
    transition: color 0.3s ease;
}

.news-card:hover .news-card__title {
    color: #f25119;
}

.news-card__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin: 0 0 20px;
}

.news-card__button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a1a2e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.news-card__button:hover {
    background-color: #f25119;
    transform: translateX(5px);
}

/* Media Section */
.media-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.media-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/backgrounds/white.png');
    opacity: 0.03;
    pointer-events: none;
}

.media-header {
    margin-bottom: 60px;
}

.media-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.media-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f25119 0%, #ff7a50 100%);
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    border-radius: 12px;
}

.media-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Media Item */
.media-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 30px;
    align-items: start;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.6s ease forwards;
}

@media (max-width: 768px) {
    .media-item {
        grid-template-columns: 50px 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .media-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.media-item:nth-child(1) {
    animation-delay: 0.2s;
}

.media-item:nth-child(2) {
    animation-delay: 0.4s;
}

.media-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.media-item__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0891a8 0%, #0dd3de 100%);
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.media-item__image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.media-item__image--large {
    max-width: 600px;
    height: 600px;
}

.media-item__image--xlarge {
    max-width: 600px;
    height: 600px;
}

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

.media-item:hover .media-item__image img {
    transform: scale(1.05);
}

.media-item__text {
    background: #f8f9fa;
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.media-highlight {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    margin: 0;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */

/* Large Desktop and Tablets (1200px and below) */
@media (max-width: 1200px) {
    .section-title {
        font-size: 40px;
    }

    .page-header__title {
        font-size: 40px;
    }

    .media-title {
        font-size: 36px;
    }
    
    .section-header {
        padding: 0 20px;
    }
}

/* Tablets (991px and below) */
@media (max-width: 991px) {
    .page-header {
        padding: 120px 0 60px;
    }

    .page-header__title {
        font-size: 36px;
    }

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

    .insights-section {
        padding: 80px 0;
    }

    .media-section {
        padding: 80px 0;
    }

    .media-title {
        font-size: 32px;
    }

    .media-item__image {
        height: 320px;
    }

    .media-item__image--large {
        max-width: 500px;
        height: 500px;
    }

    .media-item__image--xlarge {
        max-width: 500px;
        height: 500px;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile Landscape and Small Tablets (768px and below) */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 50px;
    }

    .page-header__title {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .insights-section {
        padding: 60px 0;
    }

    .media-section {
        padding: 60px 0;
    }

    .news-card__title {
        font-size: 20px;
    }
    
    .news-card__content {
        padding: 25px;
    }
    
    .news-card__image {
        height: 240px;
    }

    .media-title {
        font-size: 28px;
    }

    .media-item__image {
        height: 280px;
    }

    .media-item__image--large {
        max-width: 450px;
        height: 450px;
    }

    .media-item__image--xlarge {
        max-width: 450px;
        height: 450px;
    }

    .media-item__text {
        padding: 25px;
    }

    .media-highlight {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .media-content {
        gap: 40px;
    }
}

/* Mobile Portrait (576px and below) */
@media (max-width: 576px) {
    .page-header {
        padding: 90px 0 40px;
    }

    .page-header__title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .insights-section {
        padding: 50px 0;
    }

    .media-section {
        padding: 50px 0;
    }

    .news-card__title {
        font-size: 19px;
    }
    
    .news-card__excerpt {
        font-size: 13px;
    }
    
    .news-card__image {
        height: 220px;
    }

    .media-title {
        font-size: 26px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .media-number {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .media-item__number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .media-item__image {
        height: 240px;
    }

    .media-item__image--large {
        max-width: 380px;
        height: 380px;
    }

    .media-item__image--xlarge {
        max-width: 380px;
        height: 380px;
    }

    .media-item__text {
        padding: 20px;
    }

    .media-highlight {
        font-size: 15px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .news-grid {
        margin-top: 40px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 40px;
    }

    .page-header__title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }
    
    .section-description {
        font-size: 13px;
    }

    .news-card__content {
        padding: 20px;
    }

    .news-card__title {
        font-size: 18px;
    }
    
    .news-card__excerpt {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .news-card__button {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .news-card__image {
        height: 200px;
    }

    .media-title {
        font-size: 22px;
    }

    .media-item__image {
        height: 200px;
    }

    .media-item__image--large {
        max-width: 300px;
        height: 300px;
    }

    .media-item__image--xlarge {
        max-width: 300px;
        height: 300px;
    }

    .media-highlight {
        font-size: 14px;
    }
    
    .media-item__text {
        padding: 18px;
    }
    
    .media-content {
        gap: 30px;
    }
    
    .laboix-breadcrumb li {
        font-size: 13px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .news-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .news-card:hover .news-card__image img {
        transform: none;
    }
    
    .news-card__button:hover {
        transform: none;
    }
    
    .media-item:hover .media-item__image img {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .page-header {
        padding: 20px 0;
        background: none !important;
    }
    
    .news-card,
    .media-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .news-card__button {
        display: none;
    }
}

