@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== কাস্টম স্ক্রলবার ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* ========== হেডার ========== */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

/* ========== ক্যাটাগরি ড্রপডাউন ========== */
.category-dropdown {
    position: relative;
}

.category-dropdown .dropbtn {
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.category-dropdown .dropbtn:hover {
    color: #667eea;
}

.category-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 100;
    overflow: hidden;
}

.category-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #1e293b !important;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #f8fafc;
    padding-left: 25px;
    color: #6366f1 !important;
}

/* ========== হিরো সেকশন ========== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px 120px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.glow-text {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: fadeInDown 0.8s ease;
}

.fade-in {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-search {
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-search input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.hero-search input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.hero-search button {
    padding: 16px 32px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-search button:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* ========== পেজ কন্টেন্ট (page.php এর জন্য) ========== */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 20px;
}

.page-content .divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.page-body {
    line-height: 1.8;
    color: #334155;
    font-size: 1.05rem;
}

.page-body h2 {
    color: #0f172a;
    margin: 30px 0 15px;
}

.page-body p {
    margin-bottom: 16px;
}

.page-body ul, .page-body ol {
    margin: 15px 0 15px 25px;
}

/* ========== মেইন কন্টেন্ট ========== */
main {
    padding: 60px 0;
}

.row {
    display: flex;
    gap: 40px;
}

.main-content {
    flex: 2.5;
}

.sidebar {
    flex: 1.2;
}

/* ========== পোস্ট কার্ড ========== */
.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.post-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.08);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card:hover .post-overlay {
    opacity: 1;
}

.overlay-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.overlay-link:hover {
    transform: scale(1.1);
    background: #667eea;
    color: white;
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.post-meta i {
    margin-right: 5px;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-content h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h2 a:hover {
    color: #667eea;
}

.post-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

/* ========== শেয়ার বাটন (আপডেটেড) ========== */
.share-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.share-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #475569;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.share-icon:hover {
    transform: translateY(-3px);
}

.share-icon.fb:hover { background: #1877f2; color: white; }
.share-icon.wa:hover { background: #25d366; color: white; }
.share-icon.copy:hover { background: #6366f1; color: white; }

/* ========== সাইডবার উইজেট ========== */
.widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.widget h3 i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 8px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.widget ul li a:hover {
    color: #667eea;
    padding-left: 5px;
}

.widget ul li small {
    display: block;
    font-size: 0.7rem;
    color: #95a5a6;
    margin-top: 5px;
}

.count {
    background: #f0f2f5;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* সার্চ উইজেট */
.sidebar-search {
    display: flex;
    gap: 10px;
}

.sidebar-search input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
}

.sidebar-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.sidebar-search button {
    padding: 12px 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-search button:hover {
    transform: scale(1.05);
}

/* সোশ্যাল মিডিয়া */
.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.05);
}

.social-fb { background: linear-gradient(135deg, #1877f2, #0d65d9); color: white; }
.social-tw { background: linear-gradient(135deg, #1da1f2, #0c8de0); color: white; }
.social-li { background: linear-gradient(135deg, #0077b5, #006396); color: white; }
.social-ig { background: linear-gradient(135deg, #e4405f, #c13584); color: white; }
.social-yt { background: linear-gradient(135deg, #ff0000, #cc0000); color: white; }

/* ========== পেজিনেশন ========== */
.pagination {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* ========== নো পোস্ট ========== */
.no-posts {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
}

.no-posts i {
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-posts h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.no-posts .btn-primary {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
}

/* ========== টোস্ট নোটিফিকেশন ========== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 9999;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========== ফুটার ========== */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ecf0f1;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #667eea;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links ul li a:hover {
    color: #667eea;
    padding-left: 5px;
}

.footer-contact ul li i {
    width: 25px;
    margin-right: 10px;
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== ব্যাক টু টপ ========== */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    animation: fadeInUp 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(102,126,234,0.4);
}

/* ========== মোবাইল মেনু ========== */
.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== রেসপন্সিভ ========== */
@media (max-width: 992px) {
    .row {
        flex-direction: column;
    }
    
    .glow-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    /* মোবাইলে ড্রপডাউন ফিক্স */
    .category-dropdown .dropdown-content {
        position: static;
        background: rgba(255,255,255,0.1);
        box-shadow: none;
        margin-top: 10px;
    }
    
    .dropdown-content a {
        color: white !important;
    }
    
    .dropdown-content a:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .glow-text {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 60px 20px 80px;
    }
    
    .hero-search {
        flex-direction: column;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-content h2 {
        font-size: 1.2rem;
    }
    
    .post-meta {
        font-size: 0.7rem;
        gap: 10px;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .widget {
        padding: 18px;
    }
    
    .footer-grid {
        gap: 30px;
        text-align: center;
    }
    
    .footer-about h3::after,
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .page-content {
        padding: 25px;
    }
    
    .page-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .glow-text {
        font-size: 1.5rem;
    }
    
    .fade-in {
        font-size: 0.9rem;
    }
    
    .post-card {
        margin-bottom: 20px;
    }
    
    .widget h3 {
        font-size: 1rem;
    }
}

/* ========== অ্যানিমেশন কীফ্রেম ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}