/*
Theme Name: Nalfnash
Theme URI: https://travelernews.online/
Author: Noureldin Mohamed Idris
Author URI: https://nalfnash.net/
Description: A theme converted from static HTML.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Travel 
/* --- Professional Service Cards --- */
.service-card-pro {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-pro:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.service-card-pro:hover::before {
    opacity: 1;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid hsl(var(--primary) / 0.05);
}

.service-card-pro:hover .service-icon {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-light)) 100%);
    color: #fff;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 10px 20px -5px hsl(var(--primary) / 0.4);
}

.service-card-pro h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: hsl(var(--heading));
    transition: color 0.3s ease;
}

.service-card-pro:hover h3 {
    color: hsl(var(--primary));
}

.service-card-pro p {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    font-size: 0.9375rem;
    font-weight: 700;
    color: hsl(var(--primary));
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-card-pro:hover .service-link {
    color: hsl(var(--accent));
}

.service-card-pro:hover .service-link svg {
    transform: translateX(5px);
}

/* --- Newsletter Form Enhancements --- */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form .input {
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.newsletter-form .input:focus {
    background: #fff;
    border-color: hsl(var(--accent));
    transform: translateY(-2px);
}

/* --- Hero & Section Improvements --- */
.hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.page-header h1 {
    color: #fff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* --- Interactive Fixes --- */
.destination-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    pointer-events: none;
}

.destination-card:hover::after {
    border-color: hsl(var(--primary) / 0.5);
    inset: -6px;
}

.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-cta:hover::before {
    width: 300%;
    height: 300%;
}

/* Fix for inactive category cards */
.category-card {
    cursor: pointer;
}

.category-card:active {
    transform: scale(0.95);
}

/* Full height for tip cards on homepage if any */
.article-card {
    display: flex;
    flex-direction: column;
}

.article-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card .btn {
    margin-top: auto;
}