.heading_class{
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1f2937;
}
.post_description{
    font-family: Arial, sans-serif; /* Normal font */
    font-size: 16px; /* Optional */
    white-space: pre-wrap; /* Preserve line breaks and wrap long lines */
    word-wrap: break-word; /* Ensure words wrap if they're too long */
    overflow-wrap: break-word; /* Fallback for older browsers */
}
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
@media only screen and (max-width:767px) {
    .heading_class{
        font-size: 2rem;
    }
}
@media only screen and (max-width:400px) {
    .heading_class{
        font-size: 1.5rem;
    }
}
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --light-color: #f1faee;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Navbar Styles */
.navbar {
    background: transparent;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar.scrolled .nav-link{
    color:var(--secondary-color) !important;
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.search-form {
    position: relative;
}

.search-form input {
    padding-right: 40px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.search-form input:focus {
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
}

/* Hero Banner */
.hero-banner {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    margin-top: -90px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: var(--primary-color);
    border: none;
}

.btn-hero:hover {
    background: #c4303b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Featured Section */
.featured-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-10px);
}

.featured-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.featured-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.category-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Latest Posts */
.latest-posts {
    padding: 6rem 0;
}

.post-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.post-card img {
    height: 250px;
    object-fit: cover;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.newsletter-form input {
    border-radius: 30px 0 0 30px;
    padding: 1rem 1.5rem;
    border: none;
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
    padding: 1rem 2rem;
    background: var(--primary-color);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form button:hover {
    background: #c4303b;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.social-links a {
    color: white;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .featured-card img {
        height: 300px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}