/* Holiday Theme CSS - Kompas.com Style Adaptation */

/* Holiday Theme Variables */
:root {
    --holiday-primary:#6d6a6a;
    --holiday-secondary: #28a745;
    --holiday-accent: #ffd700;
    --holiday-dark: #2c3e50;
    --holiday-light: #ffffff;
    --holiday-gray: #6c757d;
    --holiday-success: #28a745;
    --holiday-shadow: rgba(0, 0, 0, 0.1);
    --holiday-gradient: linear-gradient(135deg, #3d66bd 0% 0%, #3d66bd 100%);
}

/* Holiday Body Styles */
body.holiday-theme {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
}

/* Holiday Header Styles */
.holiday-header {
    background: var(--holiday-light);
    box-shadow: 0 2px 10px var(--holiday-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--holiday-gradient);
}

.header__wrap {
    padding: 0;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Styles */
.header__logo {
    flex: 0 0 auto;
}

.logo-holiday {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--holiday-dark);
    font-weight: 700;
    font-size: 24px;
}

.logo-holiday img, .holiday-logo {
    height: 54px;
    width: auto;
    margin-right: 10px;
    display: block;
}

.holiday-accent {
    background: var(--holiday-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Box Styles */
.header__search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-form {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--holiday-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: var(--holiday-gray);
}

.search-submit {
    background: var(--holiday-gradient);
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    transform: scale(1.05);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    box-shadow: none;
    z-index: 1001;
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

/* Language Menu */
.language-menu {
    position: relative;
    margin-right: 10px;
}

.language-btn {
    background: white;
    border: none;
    border-radius: 25px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--holiday-primary) !important;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    position: relative;
}

.language-btn span {
    font-weight: 700;
    font-size: 14px;
}

.language-btn:hover {
    background: white;
    color: var(--holiday-primary) !important;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--holiday-shadow);
    min-width: 150px;
    z-index: 1002;
    margin-top: 5px;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.language-option:hover {
    background: #f8f9fa;
}

.flag-icon {
    font-size: 16px;
}





/* Holiday Promo Button */
.holiday-promo {
    position: relative;
}

.promo-btn {
    background: white;
    color: var(--holiday-primary) !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    background: white;
    color: var(--holiday-primary) !important;
    text-decoration: none;
}

.promo-badge {
    background: var(--holiday-accent);
    color: var(--holiday-dark);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    position: absolute;
    top: -5px;
    right: -5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* User Area */
.user-area {
    position: relative;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: var(--holiday-dark);
}

.user-btn:hover {
    background: var(--holiday-primary);
    color: white;
    border-color: var(--holiday-primary);
}

.login-btn {
    background: white;
    color: var(--holiday-primary) !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    background: white;
    color: var(--holiday-primary) !important;
    text-decoration: none;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--holiday-shadow);
    min-width: 200px;
    z-index: 1002;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--holiday-dark);
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-menu-item:hover {
    background: #f8f9fa;
    color: var(--holiday-primary);
    text-decoration: none;
}

.menu-divider {
    height: 1px;
    background: #e9ecef;
    margin: 5px 0;
}

/* Navigation Styles */
.holiday-nav {
    background: var(--holiday-gradient);
    padding: 0;
    width: 100%;
    clear: both;
}

/* Secondary Navigation Styles */
.holiday-secondary-nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secondary-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 0;
}

.secondary-nav {
    flex: 1;
    width: 100%;
}

.secondary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.secondary-item {
    position: relative;
}

.secondary-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--holiday-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.secondary-link:hover {
    background: var(--holiday-primary);
    color: white;
    text-decoration: none;
    border-color: var(--holiday-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.secondary-link i {
    font-size: 16px;
}

/* Responsive Secondary Menu */
@media (max-width: 991px) {
    .secondary-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .secondary-link {
        padding: 10px 20px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .secondary-menu {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 8px;
    }
    
    .secondary-link {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .secondary-link i {
        font-size: 14px;
    }
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-nav {
    flex: 1;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 8px 10px;
    white-space: nowrap;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.promo-link {
    background: transparent;
    border-radius: 20px;
    margin: 5px;
    position: relative;
}

.promo-link .promo-badge {
    background: var(--holiday-accent);
    color: var(--holiday-dark);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 5px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--holiday-shadow);
    min-width: 300px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.dropdown-section {
    flex: 1;
    min-width: 150px;
}

.dropdown-section h4 {
    color: var(--holiday-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dropdown-section a {
    display: block;
    color: var(--holiday-dark);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.dropdown-section a:hover {
    color: var(--holiday-primary);
    text-decoration: none;
}

.hot-link {
    position: relative;
}

.hot-badge {
    background: var(--holiday-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .header__content {
        justify-content: space-between;
    }
    
    .header__search {
        flex: 1;
        max-width: none;
    }
}

.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-toggle-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Holiday Banner */
.holiday-banner {
    background: var(--holiday-gradient);
    padding: 40px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content img {
    max-height: 200px;
    margin-bottom: 20px;
}

.banner-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .header__content {
        flex-wrap: wrap;
    }
    
    .header__search {
        order: 3;
        flex: 1 1 100%;
        margin: 10px 0 0 0;
        max-width: none;
    }
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .header__actions {
        gap: 10px;
    }
    
    .promo-btn span,
    .login-btn span,
    .user-btn span {
        display: none;
    }
    
    .banner-text h1 {
        font-size: 2rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .header__content {
        padding: 10px 0;
    }
    
    .logo-holiday {
        font-size: 18px;
    }
    
    .logo-holiday img {
        height: 40px;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .search-submit {
        padding: 10px 15px;
    }
    
    .banner-text h1 {
        font-size: 1.5rem;
    }
    
    .banner-content img {
        max-height: 150px;
    }
}



/* Promo Badge Styles - Hide HOT badge but keep menu shadows */
.promo-badge {
    display: none !important;
}

.float-animation {
    display: none !important;
}

/* Ensure menu shadows are preserved */
.dropdown-menu {
    box-shadow: 0 4px 20px var(--holiday-shadow) !important;
}

.nav-item:hover .dropdown-menu {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

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

.holiday-header {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--holiday-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 80%;
}

/* Loading Animation */
.search-submit.loading {
    position: relative;
}

.search-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Modern Carousel Card Styles */
.modern-carousel-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-carousel-card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-carousel-card:hover .card-overlay {
    opacity: 1;
}

.read-more-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-decoration: none;
    display: inline-block;
}

.read-more-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.card-date {
    color: #999;
    font-weight: 500;
}

.card-category {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #007cba;
    text-decoration: none;
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Postslider Enhancements */
.postslider {
    position: relative;
    height: 400px; /* Reduced from default */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.postslider .postslider-thumbnail {
    height: 100%;
    overflow: hidden;
}

.postslider .postslider-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.postslider:hover .postslider-thumbnail img {
    transform: scale(1.05);
}

.postslider .post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    text-align: left;
}

.postslider .post-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.postslider .post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.postslider .post-title a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.postslider .post-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

.postslider .post-meta li {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.postslider .post-meta a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.postslider .post-meta a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.postslider .post-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* Carousel Controls Enhancement */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#lmdCarousel:hover .carousel-control-prev,
#lmdCarousel:hover .carousel-control-next {
    opacity: 0.6;
    visibility: visible;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-carousel-card {
        margin: 5px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .card-excerpt {
        font-size: 13px;
    }
    
    .postslider {
        height: 300px;
    }
    
    .postslider .post-title {
        font-size: 20px;
    }
    
    .postslider .post-content {
        padding: 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

/* Owl Carousel Item Consistency */
.owl-carousel .owl-item {
    height: auto;
    display: flex;
}

.owl-carousel .owl-item .modern-carousel-card {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

/* Owl Carousel Title Text Consistency */
.owl-carousel .item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.owl-carousel .item-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.owl-carousel .post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 54px;
    min-height: 54px;
}

.owl-carousel .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.owl-carousel .post-title a:hover {
    color: #007cba;
    text-decoration: none;
}

/* Responsive adjustments for owl carousel titles */
@media (max-width: 768px) {
    .owl-carousel .post-title {
        font-size: 13px;
        height: 50px;
        min-height: 50px;
    }
    
    .owl-carousel .item-content {
        padding: 12px;
    }
}
