/* Palette: Deep Purple, Electric Cyan, Dark Grey */
:root {
    --purple: #311B92;
    --dark-purple: #1A237E;
    --cyan: #00E5FF;
    --dark: #121212;
    --panel: #1E1E1E;
    --text: #E0E0E0;
    --white: #FFFFFF;
    
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* Header */
.hub-header { background: rgba(18, 18, 18, 0.95); padding: 20px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #333; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.cyan { color: var(--cyan); }

.hub-nav a { margin-left: 25px; font-size: 0.85rem; font-weight: 700; color: #999; }
.hub-nav a:hover, .hub-nav a.active { color: var(--cyan); }

.btn-cyan { border: 1px solid var(--cyan); color: var(--cyan) !important; padding: 8px 20px; border-radius: 4px; font-family: var(--font-head); letter-spacing: 1px; }
.btn-cyan:hover { background: var(--cyan); color: var(--dark) !important; box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }

/* Mobile Menu */
.mobile-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; }
.mobile-toggle span { width: 30px; height: 2px; background: var(--cyan); }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: var(--dark); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.4s; border-left: 1px solid var(--cyan); }
.mobile-menu.active { right: 0; }
.close-btn { position: absolute; top: 20px; right: 20px; font-size: 2rem; color: var(--white); background: none; border: none; cursor: pointer; }
.mobile-menu a { font-family: var(--font-head); font-size: 1.5rem; margin: 20px 0; color: var(--white); }

@media (max-width: 900px) {
    .hub-nav { display: none; }
    .mobile-toggle { display: flex; }
}

/* Hero */
.hero-hub { height: 80vh; background-size: cover; background-position: center; position: relative; }
.gradient-overlay { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(49, 27, 146, 0.9), rgba(0, 229, 255, 0.3)); display: flex; align-items: center; }
.hero-content { margin-left: 10%; max-width: 700px; }
.hub-tag { background: rgba(0, 229, 255, 0.1); border: 1px solid var(--cyan); color: var(--cyan); padding: 5px 15px; font-family: var(--font-head); font-size: 0.8rem; margin-bottom: 20px; display: inline-block; }
.hero-content h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1.1; margin-bottom: 20px; color: var(--white); }
.hero-content p { font-size: 1.2rem; color: #ddd; margin-bottom: 40px; }

.cta-row { display: flex; gap: 20px; }
.btn-primary { background: var(--cyan); color: var(--dark); padding: 15px 35px; font-weight: 700; border-radius: 4px; font-family: var(--font-head); }
.btn-outline { border: 1px solid var(--white); color: var(--white); padding: 13px 35px; font-weight: 700; border-radius: 4px; font-family: var(--font-head); }
.btn-outline:hover { background: var(--white); color: var(--purple); }

/* News Preview */
.section-head h2 { font-family: var(--font-head); font-size: 2rem; color: var(--white); }
.cyan-line { width: 80px; height: 3px; background: var(--cyan); margin-bottom: 40px; }
.cyan-line.left { margin-bottom: 30px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: var(--panel); border: 1px solid #333; transition: 0.3s; }
.news-card:hover { border-color: var(--cyan); transform: translateY(-5px); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.news-card:hover img { transform: scale(1.1); }
.news-info { padding: 20px; }
.date { font-size: 0.75rem; color: var(--cyan); font-family: var(--font-head); display: block; margin-bottom: 10px; }
.news-info h3 { font-family: var(--font-head); color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }
.news-info p { font-size: 0.9rem; color: #bbb; margin-bottom: 15px; }
.news-info a { color: var(--cyan); font-weight: 700; font-size: 0.9rem; }

/* Data Strip */
.data-strip { background: linear-gradient(90deg, var(--purple), var(--dark-purple)); padding: 50px 0; border-top: 1px solid var(--cyan); border-bottom: 1px solid var(--cyan); }
.data-flex { display: flex; justify-content: space-around; text-align: center; }
.data-item strong { display: block; font-family: var(--font-head); font-size: 3rem; color: var(--white); }
.data-item span { color: var(--cyan); font-size: 0.9rem; letter-spacing: 1px; }

/* News Layout */
.news-layout { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.sidebar h3 { font-family: var(--font-head); color: var(--white); margin-bottom: 20px; border-bottom: 1px solid var(--cyan); padding-bottom: 5px; }
.sidebar ul { list-style: none; }
.sidebar li { padding: 10px 0; border-bottom: 1px solid #333; color: #aaa; cursor: pointer; }
.sidebar li:hover, .sidebar li.active { color: var(--cyan); }
.ad-box { background: #222; padding: 40px; text-align: center; margin-top: 40px; border: 1px dashed #555; }
.ad-box p { color: #555; font-size: 0.8rem; }
.ad-box span { color: var(--white); font-family: var(--font-head); font-size: 1.2rem; display: block; margin-top: 10px; }

.feed-item { background: var(--panel); padding: 30px; margin-bottom: 30px; border-left: 3px solid var(--cyan); }
.feed-item .tag { background: var(--purple); color: var(--white); padding: 3px 8px; font-size: 0.7rem; margin-bottom: 10px; display: inline-block; }
.feed-item h2 { font-family: var(--font-head); color: var(--white); margin-bottom: 5px; }
.meta { color: #777; font-size: 0.8rem; margin-bottom: 15px; }
.read-btn { display: inline-block; margin-top: 15px; background: #333; color: var(--white); padding: 8px 20px; border-radius: 4px; font-size: 0.9rem; }
.read-btn:hover { background: var(--cyan); color: var(--dark); }

/* Directory */
.dir-header { text-align: center; margin-bottom: 50px; }
.dir-header h1 { font-family: var(--font-head); font-size: 2.5rem; color: var(--white); }
.search-bar { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }
.search-bar input { padding: 10px; width: 300px; background: #222; border: 1px solid #444; color: var(--white); }
.search-bar button { padding: 10px 20px; background: var(--cyan); border: none; font-weight: 700; cursor: pointer; }

.dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.dir-card { background: var(--panel); padding: 30px; border: 1px solid #333; position: relative; }
.dir-badge { position: absolute; top: 20px; right: 20px; border: 1px solid var(--cyan); color: var(--cyan); padding: 2px 8px; font-size: 0.7rem; }
.dir-card h3 { font-family: var(--font-head); color: var(--white); margin-bottom: 10px; }
.dir-meta { font-family: 'Courier New', monospace; color: #888; font-size: 0.85rem; margin-top: 15px; }
.contact-link { display: block; margin-top: 15px; color: var(--cyan); font-weight: 700; font-size: 0.9rem; }

/* Contact */
.contact-box { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; background: var(--panel); padding: 50px; border: 1px solid #333; }
.info-panel h2 { font-family: var(--font-head); color: var(--cyan); }
.c-details { margin-top: 30px; color: #bbb; }

.hub-form .form-row { margin-bottom: 20px; display: flex; gap: 20px; }
.hub-form input, .hub-form select, .hub-form textarea { width: 100%; background: #111; border: 1px solid #444; color: var(--white); padding: 12px; font-family: var(--font-body); }
.hub-form input:focus, .hub-form textarea:focus { border-color: var(--cyan); outline: none; }
.submit-btn { width: 100%; background: var(--purple); color: var(--white); border: none; padding: 15px; font-family: var(--font-head); font-weight: 700; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: var(--cyan); color: var(--dark); }

/* Legal */
.legal-content { max-width: 800px; margin: 0 auto; background: var(--panel); padding: 50px; }
.legal-content h1 { font-family: var(--font-head); color: var(--white); }
.legal-content h3 { color: var(--cyan); margin-top: 30px; font-family: var(--font-head); }

/* Footer */
.hub-footer { background: #0A0A0A; padding: 60px 0 20px; margin-top: 80px; border-top: 1px solid #333; }
.footer-content { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; padding-bottom: 30px; margin-bottom: 20px; }
.f-info h4 { color: var(--white); font-family: var(--font-head); }
.f-links a { color: #777; margin-left: 20px; }
.f-links a:hover { color: var(--cyan); }
.copyright { text-align: center; font-size: 0.8rem; color: #555; }

/* Cookie */
.cookie-hub { position: fixed; bottom: 20px; left: 20px; background: var(--dark); border: 1px solid var(--cyan); padding: 15px 30px; display: flex; align-items: center; gap: 20px; z-index: 3000; display: none; }
.cookie-hub.active { display: flex; }
.cookie-hub p { color: var(--cyan); font-family: var(--font-head); font-size: 0.8rem; margin: 0; }
.cookie-hub button { background: var(--cyan); border: none; padding: 5px 15px; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
    .news-grid, .news-layout, .dir-grid, .contact-box, .hub-form .form-row, .data-flex { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .cta-row { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .data-flex { gap: 30px; }
}