@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    color: #2d3748;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
    /* color: #1a202c; */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.floating-header {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 3px;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

nav ul a {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    text-transform: capitalize;
}

nav ul a:hover {
    opacity: 0.8;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

nav ul a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-top: 100px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    z-index: 999;
    transition: right 0.3s;
}

.mobile-nav.active {
    right: 0 !important;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 30px;
    list-style: none;
}

.mobile-nav ul li a {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Main */
.main-layout {
    padding: 110px 0 60px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 12px;
}

.page-subtitle {
    color: #718096;
    font-size: 1.15rem;
    font-weight: 400;
}

/* Hero */
.hero-post {
    position: relative;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.hero-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: #fff;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 12px 0 15px;
    line-height: 1.2;
}

.hero-title a {
    color: #fff;
    transition: color 0.3s;
}

.hero-title a:hover {
    color: #667eea;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    line-height: 1.6;
}

.meta {
    display: flex;
    gap: 18px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #667eea;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

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

.grid-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.grid-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.grid-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.grid-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.grid-post-image .category {
    position: absolute;
    top: 12px;
    left: 12px;
}

.post-info {
    padding: 25px;
}

.post-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-info h2 a {
    color: #1a202c;
    transition: color 0.3s;
}

.post-info h2 a:hover {
    color: #667eea;
}

.post-info p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.post-info .meta {
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    color: #a0aec0;
    font-size: 0.85rem;
}

.category {
    display: inline-block;
    padding: 6px 12px;
    background: #667eea;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.category.personaldevelopment { background: #667eea; }
.category.mentalhealth { background: #48bb78; }
.category.relationships { background: #ed8936; }
.category.wellness { background: #38b2ac; }
.category.lifestyle { background: #9f7aea; }

/* Article */
.article-hero {
    position: relative;
    width: 100%;
    height: 750px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    margin-top: 65px;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.article-hero-content {
    position: relative;
    padding: 50px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.article-hero-content .blog-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
}

.article-hero-content .blog-meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 1rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2,
.article-content h3 {
    margin: 40px 0 20px;
    color: #1a202c;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 24px 35px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 25px 35px;
    background: #f7fafc;
    font-size: 1.2rem;
    font-style: italic;
    margin: 35px 0;
    color: #4a5568;
}

/* Pages */
.page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.content-section {
    margin-bottom: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a202c;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.topic-card {
    background: #f7fafc;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.topic-card:hover {
    border-color: #667eea;
    background: #fff;
}

.topic-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #667eea;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Legal */
.legal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.legal-section ul {
    margin-left: 25px;
    color: #718096;
}

.legal-section li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #1a202c;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #667eea;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.ad-container {
    text-align: center;
    margin: 25px auto;
    padding: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .page-title { font-size: 2.2rem; }
    .hero-post { height: 380px; }
    .hero-title { font-size: 1.8rem; }
    .post-grid { grid-template-columns: 1fr; gap: 25px; }
    .contact-grid { grid-template-columns: 1fr; }
    .main-layout { padding: 90px 0 50px; }
    .page-wrapper { padding: 100px 20px 60px; }
    .article-hero-content .blog-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1.3rem; }
    .page-title { font-size: 1.8rem; }
    .hero-post-content { padding: 25px; }
    .content-section { padding: 25px; }
}
