/* 
  Index / Homepage CSS 
*/

:root {
    --c: #1e40af; /* Fallback */
    --bg: #f4f4f4;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --radius: 12px;
}

body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px 15px 0; }

/* Ad Containers */
.ad-box { text-align: center; margin: 20px 0; max-width: 100%; overflow: hidden; min-height: 90px; display:flex; align-items:center; justify-content:center; }

/* Rich Content Styling */
.rich-content { line-height: 1.8; font-size: 15px; color: #333; word-wrap: break-word; }
.rich-content h1, .rich-content h2, .rich-content h3 { color: #111; margin: 20px 0 12px; font-weight: 800; line-height: 1.3; }
.rich-content a { color: var(--c); text-decoration: underline; font-weight: 600; transition: 0.2s; }
.rich-content a:hover { opacity: 0.8; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 10px 0; }

/* Hero Section */
.hero-wrapper {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}
.hero-wrapper h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #111;
}

.search-box { 
    background: #f9f9f9; display: flex; padding: 8px; border-radius: 50px; 
    border: 2px solid #eaeaea; max-width: 700px; margin: 0 auto; transition: 0.3s;
}
.search-box:focus-within { border-color: var(--c); background: #fff; }
.search-box input { flex: 1; border: none; padding: 12px 25px; font-size: 16px; border-radius: 50px; outline: none; background: transparent; }
.search-box button { background: var(--c); color: #fff; border: none; padding: 12px 35px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.search-box button:hover { opacity: 0.9; }

/* Home Block Grid Layout (Restored Original Style) */
.home-block { margin-bottom: 50px; }
.poster-section-title { font-size: 22px; font-weight: 900; margin: 30px 0 20px; border-left: 5px solid var(--c); padding-left: 15px; text-transform: uppercase; color: #000; }
.block-desc { margin-bottom: 25px; background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }

.poster-grid { display: grid; gap: 15px; margin-bottom: 40px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

.poster-card { width: 100%; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: 0.3s; margin: 0 auto; display: flex; flex-direction: column; }
.poster-card:hover { transform: scale(1.05); }
.poster-card .img-box { width: 100%; height: 220px; overflow: hidden; position: relative; }
.poster-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.poster-card .title-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: #fff; padding: 10px 5px; font-size: 11px; font-weight: 700; text-align: center; margin: 0; }
.poster-card .btn-mini { background: var(--c); color: #fff; text-align: center; font-size: 11px; font-weight: 800; padding: 10px; text-transform: uppercase; }

/* Home Block List Layout */
.list-layout { display: flex; flex-direction: column; gap: 15px; }
.list-card {
    display: flex; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; 
    box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: 0.3s; align-items: center;
}
.list-card:hover { transform: translateX(5px); }
.list-card .img-box { width: 250px; flex-shrink: 0; aspect-ratio: 16/9; overflow: hidden; }
.list-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.list-card .card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.list-card .card-title { font-size: 18px; font-weight: 800; margin: 0 0 10px; color: #111; }
.list-card .card-excerpt { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 10px; }
.list-card .btn-mini { align-self: flex-start; background: rgba(0,0,0,0.05); color: var(--c); font-size: 12px; font-weight: 800; padding: 8px 15px; border-radius: 6px; text-transform: uppercase; }

/* Contact Section */
.contact-section { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); margin-bottom: 40px; text-align: center; }
.contact-section h2 { font-size: 28px; font-weight: 900; margin-bottom: 10px; color: #111; }
.contact-section p { color: #666; margin-bottom: 25px; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; outline: none; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--c); }
.contact-form button { background: var(--c); color: #fff; border: none; padding: 15px; border-radius: 8px; font-weight: 800; cursor: pointer; font-size: 16px; transition: 0.3s; }
.contact-form button:hover { opacity: 0.9; }

/* Sidebar & FAQ */
.sidebar-box { background: #fff; border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); margin-bottom: 30px; }
.sidebar-box h3 { margin-top: 0; font-size: 18px; border-bottom: 3px solid var(--c); padding-bottom: 12px; margin-bottom: 18px; font-weight: 900; color: #111; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-item { border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.faq-q { background: #f9f9f9; padding: 18px; cursor: pointer; font-weight: 700; font-size: 14px; }
.faq-a { padding: 18px; font-size: 13px; line-height: 1.6; color: #555; display: none; background: #fff; border-top: 1px solid #eee; }

@media (max-width: 900px) {
    .sticky-layout { display: block !important; }
    .sidebar-right { display: none !important; }
    .grid-cols-4, .grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
    .list-card { flex-direction: column; }
    .list-card .img-box { width: 100%; aspect-ratio: 16/9; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-wrapper { padding: 25px 15px; }
    .hero-wrapper h1 { font-size: 24px; }
    .search-box input { padding: 10px 15px; }
    .search-box button { padding: 10px 20px; }
}

@media (max-width: 400px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: 1fr; }
}
