/* index.css - Styles specific to index.php */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

body {
    font-family: 'Bebas Neue', cursive;
    background-color: white;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.main-content {
    padding: 0;
}

.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1 !important;
    z-index: 2;
    display: flex !important;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    text-align: left;
    padding: 4rem 4rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.slide-content p {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.hero-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
    pointer-events: none;
}

.hero-nav-bar {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 4;
}

.nav-btn {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-indicators {
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.keyboard-hints {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 4;
    opacity: 1;
    visibility: visible;
}

.key-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 15, 15, 0.9);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1;
    visibility: visible;
}

.key-hint:hover {
    background: rgba(25, 25, 25, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.key-hint:active {
    transform: translateY(0);
}

.key-icon {
    font-family: 'Bebas Neue', cursive;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    min-width: 1.3rem;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.key-hint:hover .key-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.key-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.key-hint:hover .key-text {
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: 1.25px solid white;
    background-color: transparent;
    color: white;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-20px);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.4s ease;
    z-index: -1;
}

.slide.active .cta-button {
    opacity: 1;
    transform: translateX(0);
    animation: slideInBtn 0.6s ease 0.8s both;
}

@keyframes slideInBtn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cta-button:hover {
    color: #333;
    border-color: white;
}

.cta-button:hover::before {
    left: 0;
}

/* Blog Section */
.blog-section {
    padding: 4rem 2rem 2.5rem 2rem;
    background: 
        linear-gradient(135deg, #121212 0%, #1e1e1e 25%, #161616 75%, #0f0f0f 100%),
        radial-gradient(circle at 70% 30%, rgba(40, 40, 40, 0.3) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.blog-section-title {
    color: #fff;
    font-size: 3.5rem;
    font-family: 'Bebas Neue', cursive;
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    z-index: 2;
    position: relative;
}

.blog-container {
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

.blog-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
}

.blog-card {
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.95), rgba(18, 18, 18, 0.98));
    border: 1px solid rgba(60, 60, 60, 0.5);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    width: 340px; /* Wider */
    height: 480px; /* Shorter */
    flex-shrink: 0;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(192, 57, 43, 0.5);
}

.blog-image {
    width: 100%;
    height: 200px; /* Adjusted for shorter card */
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #f0f0f0;
    font-family: 'Bebas Neue', cursive;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #aaa;
}

.blog-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Reduced to 2 lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-body-preview {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: auto; /* Push button to bottom */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Reduced to 3 lines */
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.read-more-btn {
    margin-top: 1.5rem;
    color: #c0392b;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.blog-card:hover .read-more-btn {
    color: #e74c3c;
    letter-spacing: 2px;
}

/* First card (Latest post) styling */
.blog-card.large {
    width: 460px; /* Wider */
    height: 520px; /* Shorter */
    border: 2px solid rgba(192, 57, 43, 0.5);
    z-index: 5;
}

.blog-card.large .blog-image {
    height: 240px;
}

.blog-card.large h3 {
    font-size: 1.8rem;
}

@media (min-width: 769px) {
    .blog-card.large .read-more-btn {
        max-width: 292px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem;
    }
}

/* Underline effect for titles */
.blog-card h3::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #c0392b;
    transition: width 0.3s;
    margin-top: 5px;
}

.blog-card:hover h3::after {
    width: 50px;
}

.view-all-news-btn {
    display: block;
    width: fit-content;
    margin: 1.5rem auto 0;
    padding: 1rem 2rem;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    color: #fff;
    background-color: transparent;
    border: 1.25px solid white;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 5;
    text-align: center;
    cursor: pointer;
}

.view-all-news-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.4s ease;
    z-index: -1;
}

.view-all-news-btn:hover {
    color: #333;
    border-color: white;
}

.view-all-news-btn:hover::before {
    left: 0;
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .blog-grid {
        flex-wrap: wrap; /* Allow wrapping on smaller desktop screens if needed, or keep scrolling */
        justify-content: center;
    }
}

@media (max-width: 1200px) {
    .blog-grid {
        flex-wrap: wrap;
        gap: 2rem;
        height: auto;
    }
    
    .blog-card, .blog-card.large {
        width: 45%;
        height: auto;
        min-height: 550px;
    }
    
    .blog-card.large {
        width: 100%;
        max-width: 600px;
        flex-direction: row;
    }
    
    .blog-card.large .blog-image {
        width: 50%;
        height: 100%;
    }
    
    .blog-card.large .blog-content {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }

    .slide {
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    .slide-content {
        padding: 2rem 1.5rem 3rem 1.5rem;
        max-width: 100%;
    }

    .slide-content h1 {
        font-size: 2.6rem;
        line-height: 1.1;
    }

    .slide-content p {
        font-size: 1.2rem;
        line-height: 1.4;
        max-width: 90%;
    }

    .hero-nav-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.5rem;
    }

    .hero-nav-bar .hero-indicators {
        flex-shrink: 0;
    }

    .hero-nav-bar .keyboard-hints {
        position: static;
        display: flex;
        gap: 0.5rem;
    }

    .blog-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .blog-card, .blog-card.large {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: auto;
        flex-direction: column;
    }
    
    .blog-card.large .blog-image {
        width: 100%;
        height: 250px;
    }
    
    .blog-card.large .blog-content {
        width: 100%;
    }
}

/* Button styles global */
button {
    font-family: 'Bebas Neue', cursive;
    border: 1.25px solid #333;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #333;
    color: white;
}
