/* Homepage shared styles */
.home-page .section {
    padding: 80px 0;
}
.home-page .section-gray {
    background-color: var(--light-bg);
}
.home-page .section-header {
    text-align: center;
    margin-bottom: 50px;
}
.home-page .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.home-page .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}
.home-page .section-desc {
    color: #777;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero slider */
.home-page .hero-slider {
    width: 100%;
    height: 500px;
    position: relative;
}
.home-page .hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.home-page .hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
}
.home-page .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}
.home-page .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.home-page .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.home-page .hero-btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
    border: 2px solid var(--primary-color);
}
.home-page .hero-btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}
.home-page .hero-slider .swiper-slide-active .hero-title,
.home-page .hero-slider .swiper-slide-active .hero-subtitle,
.home-page .hero-slider .swiper-slide-active .hero-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Hero search */
.home-page .hero-search {
    margin-top: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.home-page .hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.home-page .hero-search-form input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    padding: 10px 0;
    color: #333;
}
.home-page .hero-search-form button {
    border: none;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.home-page .hero-search-form button:hover {
    background: #004494;
}

/* Categories */
.home-page .category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}
.home-page .category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.home-page .category-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 40px;
}
.home-page .category-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.home-page .category-btn {
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}
.home-page .category-card:hover img {
    transform: scale(1.1);
}
.home-page .category-card:hover .category-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Products */
.home-page .product-slider {
    padding-bottom: 50px;
}
.home-page .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.home-page .product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.home-page .product-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: transparent;
}
.home-page .product-img {
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.home-page .product-img img {
    max-width: 80%;
    max-height: 80%;
    transition: transform 0.3s;
    object-fit: contain;
}
.home-page .product-card:hover .product-img img {
    transform: scale(1.05);
}
.home-page .product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.home-page .product-cat {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.home-page .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    line-height: 1.4;
}
.home-page .product-name a {
    color: inherit;
    text-decoration: none;
}
.home-page .product-name a:hover {
    color: var(--primary-color);
}
.home-page .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.home-page .product-btn {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.home-page .product-btn:hover {
    text-decoration: underline;
}
.home-page .product-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,86,179,0.92);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
    text-align: center;
}
.home-page .product-card:hover .product-hover-overlay {
    opacity: 1;
}

/* News promo split */
.home-page .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.home-page .news-list-item {
    display: flex;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
    align-items: center;
}
.home-page .news-list-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #eee;
    transform: translateX(5px);
}
.home-page .news-list-date {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    text-align: center;
    margin-right: 20px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid #eee;
    transition: all 0.3s;
}
.home-page .news-list-item:hover .news-list-date {
    border-color: var(--primary-color);
    background: #fff;
}
.home-page .news-list-date .day {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}
.home-page .news-list-item:hover .news-list-date .day {
    color: var(--primary-color);
}
.home-page .news-list-date .month {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    margin-top: 2px;
}
.home-page .news-list-content {
    flex-grow: 1;
    overflow: hidden;
}
.home-page .news-list-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-page .news-list-title a {
    color: #333;
    text-decoration: none;
}
.home-page .news-list-item:hover .news-list-title a {
    color: var(--primary-color);
}
.home-page .news-list-desc {
    font-size: 0.9rem;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.home-page .news-section-heading {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Promo slider */
.home-page .promo-slider {
    width: 100%;
    min-height: 320px;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 440px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.home-page .promo-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.home-page .promo-slide.promo-poster {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #e8f4fa;
    background-position: center top;
}
.home-page .promo-slide.promo-poster .promo-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 45%, transparent 100%);
}
.home-page .promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}
.home-page .promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.home-page .promo-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-page .promo-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.home-page .promo-btn:hover {
    background: var(--accent-color);
    text-decoration: none;
    color: #fff;
}

/* Research */
.home-page .research-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.home-page .research-pill {
    border-radius: 24px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}
.home-page .research-pill:hover {
    text-decoration: none;
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.home-page .research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.home-page .research-grid-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}
.home-page .research-grid-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,86,179,0.12);
    text-decoration: none;
    color: var(--primary-color);
}
.home-page .research-grid-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* About CTA variants */
.home-page .about-cta-light {
    background: var(--light-bg);
}
.home-page .about-cta-light .about-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.home-page .about-cta-light .about-text {
    flex: 1;
}
.home-page .about-cta-light .about-image {
    flex: 0 0 40%;
    border-radius: 12px;
    overflow: hidden;
}
.home-page .about-cta-light .about-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.home-page .about-cta-gradient {
    background: linear-gradient(135deg, #0056b3 0%, #0891b2 100%);
    color: #fff;
    text-align: center;
}
.home-page .about-cta-dark {
    background: #03213f;
    color: #fff;
    text-align: center;
}
.home-page .about-cta-dark .about-quote {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.8;
    opacity: 0.95;
}

/* Preview bar */
.home-preview-bar {
    position: fixed;
    top: var(--header-height, 80px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(3, 33, 63, 0.95);
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.home-preview-bar a {
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    text-decoration: none;
    transition: all 0.2s;
}
.home-preview-bar a:hover,
.home-preview-bar a.active {
    background: #fff;
    color: #03213f;
    text-decoration: none;
}
.home-preview-bar .preview-label {
    margin-right: 8px;
    opacity: 0.85;
}
body.has-home-preview-bar {
    padding-top: calc(var(--header-height, 80px) + 48px);
}

@media (max-width: 768px) {
    .home-page .section { padding: 50px 0; }
    .home-page .hero-slider { height: 400px; }
    .home-page .hero-title { font-size: 2rem; }
    .home-page .hero-subtitle { font-size: 1rem; }
    .home-page .category-card { height: 200px; }
    .home-page .section-title { font-size: 2rem; }
    .home-page .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .home-page .research-grid { grid-template-columns: repeat(2, 1fr); }
    .home-page .about-cta-light .about-inner { flex-direction: column; }
    .home-page .about-cta-light .about-image { flex: none; width: 100%; }
}

@media (max-width: 480px) {
    .home-page .product-grid { grid-template-columns: 1fr; }
    .home-page .research-grid { grid-template-columns: 1fr; }
}
