/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #111;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Wrapper */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Site Wrap */
.site-wrap {
    overflow-x: hidden;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-trigger {
    display: none;
    cursor: pointer;
}

.menu-trigger svg {
    width: 24px;
    height: 24px;
}

.header-left .menu {
    display: flex;
    gap: 24px;
}

.header-left .menu li a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111;
}

.main-logo {
    display: flex;
    align-items: center;
}

.main-logo .logo-main {
    height: 32px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-follow-wrap,
.header-lang-wrap {
    position: relative;
}

.header-follow,
.header-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.header-follow svg,
.header-lang svg {
    width: 10px;
    height: 10px;
}

.dd {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 150px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.header-follow-wrap:hover .dd,
.header-lang-wrap:hover .dd {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dd li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: #333;
}

.dd li a:hover {
    background: #f5f5f5;
}

.header-search {
    cursor: pointer;
}

.header-search svg {
    width: 20px;
    height: 20px;
}

/* Fixed Menu */
.fixed-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.fixed-menu.active {
    pointer-events: auto;
}

.fixed-menu-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fixed-menu.active .fixed-menu-shade {
    opacity: 1;
    visibility: visible;
}

.fixed-menu-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    padding: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.fixed-menu.active .fixed-menu-main {
    transform: translateX(0);
}

.fixed-menu-main header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.fixed-menu-main header svg {
    height: 28px;
}

.fixed-menu-close {
    cursor: pointer;
}

.fixed-menu-close svg {
    width: 24px;
    height: 24px;
}

.fixed-menu-main .menu {
    margin-bottom: 40px;
}

.fixed-menu-main .menu li {
    margin-bottom: 20px;
}

.fixed-menu-main .menu li a {
    font-size: 24px;
    font-weight: 500;
    color: #111;
}

.fixed-menu-main .alt-nav li {
    margin-bottom: 12px;
}

.fixed-menu-main .alt-nav li a {
    font-size: 14px;
    color: #666;
}

/* Fixed Search */
.fixed-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.fixed-search.active {
    pointer-events: auto;
}

.fixed-search-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fixed-search.active .fixed-search-shade {
    opacity: 1;
    visibility: visible;
}

.fixed-search-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: #fff;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.fixed-search.active .fixed-search-main {
    transform: translateY(0);
}

.fixed-search-main .wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.fixed-search-main input {
    flex: 1;
    border: none;
    border-bottom: 2px solid #111;
    padding: 15px 0;
    font-size: 24px;
    font-family: inherit;
    outline: none;
}

.fixed-search-main button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.fixed-search-main button svg {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.hero-post-content {
    display: flex;
    align-items: center;
}

.hero-post-inner {
    max-width: 400px;
}

.hero-post-inner .content h3 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #666;
}

.hero-post-inner .content h3 a {
    color: #8E1E1E;
}

.hero-post-inner .content h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-post-inner .content p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8E1E1E;
}

.cta svg {
    width: 45px;
    height: 10px;
}

.hero-post-image .image-wrapper {
    position: relative;
    padding-bottom: 83.33%;
    overflow: hidden;
}

.hero-post-image .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Latest Articles */
.hp-latest {
    background: #f9f9f9;
    padding: 60px 0;
    margin-bottom: 0;
}

.hp-latest.has-background {
    background: #f9f9f9;
}

.hp-latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.hp-latest-header h4 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hp-latest-header .cta {
    font-size: 12px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-post .img-wrap {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.grid-post .img-wrap .image-wrapper {
    padding-bottom: 100%;
    overflow: hidden;
}

.grid-post .img-wrap .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-post:hover .img-wrap .image-wrapper img {
    transform: scale(1.05);
}

.grid-post .content h3 {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #666;
}

.grid-post .content h3 a {
    color: #8E1E1E;
}

.grid-post .content h2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.grid-post .content h2 a {
    color: #111;
}

/* Newsletter Section */
.hp-newsletter {
    padding: 80px 0;
    text-align: center;
}

.hp-newsletter .content h3 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8E1E1E;
    margin-bottom: 15px;
}

.hp-newsletter .content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hp-newsletter .content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

.mc-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.mc-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.mc-form input:focus {
    border-color: #8E1E1E;
}

.mc-form button {
    background: #111;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mc-form button:hover {
    background: #8E1E1E;
}

.mc-form button svg {
    width: 20px;
    height: 10px;
}

.mc-form .success,
.mc-form .error,
.mc-form .invalid-email,
.mc-form .ajax-error {
    display: none;
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    font-size: 12px;
}

.mc-form .success {
    color: #2ecc71;
}

.mc-form .error,
.mc-form .invalid-email,
.mc-form .ajax-error {
    color: #e74c3c;
}

/* Category Slider */
.hp-category {
    background: #f9f9f9;
    padding: 60px 0;
    margin-bottom: 80px;
}

.hp-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.hp-category-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.hp-category-controls {
    display: flex;
    gap: 10px;
}

.hp-category-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.hp-category-controls button:hover {
    border-color: #8E1E1E;
    color: #8E1E1E;
}

.post-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: hidden;
}

/* Featured Post */
.hp-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.hp-feature-image .image-wrapper {
    position: relative;
    padding-bottom: 83.33%;
    overflow: hidden;
}

.hp-feature-image .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-feature-content {
    display: flex;
    align-items: center;
}

.hp-feature-content-inner {
    max-width: 400px;
}

.hp-feature-content-inner h3 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #666;
}

.hp-feature-content-inner h3 a {
    color: #8E1E1E;
}

.hp-feature-content-inner h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hp-feature-content-inner p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Video Posts */
.grid-post .video-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grid-post .video-trigger:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.grid-post .video-trigger svg {
    width: 20px;
    height: 20px;
}

.video-cat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-cat svg {
    width: 16px;
    height: 16px;
}

/* Explore Section */
.hp-explore {
    padding: 60px 0;
    margin-bottom: 0;
}

.hp-explore h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.explore-grid > div .image-wrapper {
    position: relative;
    padding-bottom: 61.11%;
    overflow: hidden;
    margin-bottom: 15px;
}

.explore-grid > div .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.explore-grid > div:hover .image-wrapper img {
    transform: scale(1.05);
}

.explore-grid > div h3 {
    font-size: 14px;
    font-weight: 500;
}

.explore-grid > div h3 a {
    color: #111;
}

.explore-grid > div h3 span {
    color: #999;
    margin-left: 5px;
}

/* Footer Newsletter */
.footer-newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: center;
}

.footer-newsletter .content h3 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8E1E1E;
    margin-bottom: 15px;
}

.footer-newsletter .content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-newsletter .content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

.footer-newsletter .image-wrapper {
    position: relative;
    padding-bottom: 74.63%;
    overflow: hidden;
}

.footer-newsletter .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.main-footer {
    background: #111;
    padding: 40px 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-main nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-main nav .menu {
    display: flex;
    gap: 20px;
}

.footer-main nav .menu li a {
    font-size: 13px;
    color: #fff;
}

.footer-main nav p {
    font-size: 12px;
    color: #999;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .post-slider {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-left .menu {
        display: none;
    }
    
    .menu-trigger {
        display: block;
    }
    
    .header-follow-wrap {
        display: none;
    }
    
    .header-lang-wrap {
        display: none;
    }
    
    .hp-hero {
        grid-template-columns: 1fr;
    }
    
    .hero-post-content {
        order: 2;
    }
    
    .hero-post-image {
        order: 1;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-grid.two-col {
        grid-template-columns: 1fr;
    }
    
    .hp-feature {
        grid-template-columns: 1fr;
    }
    
    .hp-feature-content {
        order: 2;
    }
    
    .hp-feature-image {
        order: 1;
    }
    
    .post-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-newsletter {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-main nav {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 15px;
    }
    
    .hero-post-inner .content h2 {
        font-size: 22px;
    }
    
    .hp-newsletter .content h2,
    .footer-newsletter .content h2 {
        font-size: 24px;
    }
    
    .mc-form {
        flex-direction: column;
    }
    
    .mc-form button {
        width: 100%;
    }
}