/* -------------------------------------------------------------------
   Global Reset & Base Styles - Syntactic Shift Theme
------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Smooth transitions for hover/focus states */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

:root {
    --color-bg: #121212;
    --color-text: #E0E0E0;
    --color-text-dark: #A0A0A0;
    --color-accent: #00FFC0; /* Neon Cyan/Green */
    --color-card-bg: #1E1E1E;
    --color-border: #333333;
    --shadow-glow: 0 0 15px rgba(0, 255, 192, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    padding-top: 70px; /* Space for fixed header */
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
}

h1, h2, h3, h4 {
    color: var(--color-text);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* -------------------------------------------------------------------
   Header & Navigation
------------------------------------------------------------------- */
header {
    background: rgba(18, 18, 18, 0.95); /* Semi-transparent dark header */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    color: var(--color-accent);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul a {
    color: var(--color-text-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease-in-out;
}

nav ul a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle { 
    display: none;
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1010;
}

.mobile-nav { 
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--color-bg);
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: right 0.3s ease;
    border-left: 1px solid var(--color-border);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    list-style: none;
}

.mobile-nav ul li {
    margin: 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 25px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.1rem;
    text-align: left;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
    background: var(--color-card-bg);
    color: var(--color-accent);
    text-decoration: none;
}

/* -------------------------------------------------------------------
   Main Layout & Slider
------------------------------------------------------------------- */

.main-layout {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 0;
}

.slider-section {
    position: relative;
    margin: 0 16px;
    padding: 0 60px;
}

.slider-container {
    overflow: hidden;
    width: 100%;
}

.slider-header {
    margin-bottom: 25px;
    text-align: center;
}

.slider-title {
    font-size: 2rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
    width: max-content;
}

.list-post {
    width: 350px;
    flex-shrink: 0;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsiveness for Slider: Show 2 posts on tablet, 1 on mobile */
@media (max-width: 1024px) {
    .list-post {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .list-post {
        width: 280px;
    }
    .slider-section {
        padding: 0 50px;
        margin: 0 10px;
    }
}


/* Slider Navigation Buttons - REVISED GHOST STYLE */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    /* GHOST BUTTON STYLING */
    background: var(--color-accent);
    border: none;
    color: var(--color-bg);
    
    border-radius: 50%;
    width: 44px; /* Slightly reduced size */
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 50; /* Ensure it stays above cards */
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Dark shadow for depth */
}

.slider-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
    opacity: 1;
    transform: translateY(-50%) scale(1.05); /* Slight lift and scale */
    box-shadow: var(--shadow-glow);
}

.prev-btn { left: 10px; } 
.next-btn { right: 10px; } 

.slider-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    color: var(--color-text-dark);
    box-shadow: none;
    background: var(--color-border);
    transform: translateY(-50%);
}


/* -------------------------------------------------------------------
   Post Cards (List)
------------------------------------------------------------------- */

.list-post:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.list-post img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    background: var(--color-card-bg);
}

.image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(45deg, var(--color-card-bg), var(--color-border));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}

.post-info {
    padding: 20px 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-info h2 {
    font-size: 1.4rem;
    margin: 10px 0;
    font-weight: 700;
}

.post-info h2 a {
    color: var(--color-text);
}

.post-info h2 a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.post-info p {
    color: var(--color-text-dark);
    margin-bottom: 15px;
    font-size: 0.95rem;
    /* Truncate text for cleaner look in the slider */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show up to 3 lines */
    -webkit-box-orient: vertical;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-dark);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.read-more {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Category Badges */
.category {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-bg);
    background: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}


/* -------------------------------------------------------------------
   Mobile Responsiveness & Hamburger Menu
------------------------------------------------------------------- */
/* --- Fix mobile menu not opening --- */
/* ==========================
   MOBILE NAV MENU (FIXED)
========================== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100vh;
  background: var(--color-card-bg);
  z-index: 999999;
  transition: right 0.3s ease-in-out;
  border-left: 1px solid var(--color-border);
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.mobile-nav.active {
  right: 0 !important;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-left: 20px;
}

.mobile-nav ul li a {
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 500;
}

.mobile-nav ul li a:hover {
  color: var(--color-accent);
}


@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
    
    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }
    
    .slider-section {
        padding: 0 50px;
        margin: 0 10px;
    }
    
    .page-wrapper {
        padding: 40px 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        right: -100% !important;
    }
}

/* AD containers styling */
.ad-container {
    text-align: center;
    margin: 20px auto;
    max-width: 90%;
    padding: 15px;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    border-radius: 4px;
}

/* -------------------------------------------------------------------
   Page Styles (About, Contact, Privacy)
------------------------------------------------------------------- */

.page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.page-subtitle {
    color: var(--color-text-dark);
    font-size: 1.1rem;
}

.page-content {
    line-height: 1.8;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    color: var(--color-accent);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.topic-card {
    background: var(--color-card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.topic-card h3 {
    color: var(--color-text);
    margin-bottom: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-methods {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    color: var(--color-accent);
    font-size: 1.5rem;
    width: 30px;
}

.contact-form {
    background: var(--color-card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.submit-btn {
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--color-text);
    transform: translateY(-2px);
}

.privacy-content {
    max-width: 800px;
}

.privacy-section {
    margin-bottom: 35px;
}

.privacy-section h2 {
    color: var(--color-accent);
    margin-bottom: 15px;
}

.privacy-section ul {
    margin-left: 20px;
    color: var(--color-text-dark);
}

.privacy-section li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
}
/* Footer */
footer {
    background-color: var(--color-card-bg);
    color: var(--color-text-dark);
    border-top: 1px solid var(--color-border);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-nav a {
    color: var(--color-text-dark);
}

.footer-nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* -------------------------------------------------------------------
   Blog View Styles (for blog.php)
------------------------------------------------------------------- */

.blog-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.blog-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.blog-category {
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    background: var(--color-accent);
    color: var(--color-bg);
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-meta {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-style: italic;
}

.blog-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.article-content {
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
    font-size: 1.05rem;
}

.article-content h2, .article-content h3 {
    color: var(--color-accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--color-text-dark);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-image-container {
    position: sticky;
    top: 90px;
}

.article-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}



@media (max-width: 900px) {
    .blog-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-image-container {
        position: static;
        order: -1;
    }

    .blog-title {
        font-size: 2rem;
    }
}
