* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Navigation */
nav {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #667eea);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

nav ul li a:hover::before {
    width: 80%;
}
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}
/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero .btn {
    display: inline-block;
    background-color: white;
    color: #667eea;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #3498db 0%, #667eea 100%);
    color: white;
}


/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Blog Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

article {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

article:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-thumbnail .post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 1;
}

.post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}

.post-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

article h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

article h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

article h3 a:hover {
    color: #3498db;
}

article p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex: 1;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: #2980b9;
    gap: 0.8rem;
}

/* Post Categories */
.category-personal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-lifestyle {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-travel {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-business {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}


@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-thumbnail {
        height: 200px;
    }
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination-links {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-links a {
    position: relative;
    background: white;
    color: #333;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s, color 0.3s;
}

.pagination-links a.active {
    background-color: #3498db;
    color: white;
}

.pagination-links a.active::before {
    content: '●';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #3498db;
}

.pagination-links a:hover {
    background-color: #68b6e5;
    color: white;
}

/* About Section */
.about-section {
    background: white;
    padding: 4rem 20px;
    margin-top: 3rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

.about-text {
    display: grid;
    gap: 1.5rem;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-links a {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    padding: 0.8rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-links a:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.social-links img {
    width: 48px;
    height: 48px;
    display: block;
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    filter: brightness(0) invert(1);
}
/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    padding: 3rem 20px 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #a0a0a0;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.newsletter-form button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

 /* read more post page */
/* Single Post Page */

.little {
    margin-top: -1.7rem;
    font: italic 1rem "Roboto", sans-serif;
    color: grey;
}

.post-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.single-post {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 1rem 0;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.post-body {
    line-height: 1.8;
    color: #555;
}

.post-body h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.back-link:hover {
    color: #2980b9;
}
/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 5rem 20px;
    margin-top: 3rem;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: flex;
    justify-content: center;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-section .section-title {
        font-size: 2rem;
    }
}
