/* 
   Kalita Tours - Premium Design System
   Powered by Antigravity Design Philosophy
*/

:root {
    /* Color Palette */
    --primary-h: 165;
    --primary-s: 70%;
    --primary-l: 15%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-light: hsl(var(--primary-h), var(--primary-s), 25%);
    --accent-h: 14;
    --accent-s: 100%;
    --accent-l: 65%;
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --secondary: #2CC295;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --bg-light: #F8FBF9;
    --white: #FFFFFF;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #0D2C24 0%, #1A4D3E 100%);
    --grad-accent: linear-gradient(135deg, #FF7E5F 0%, #FEB47B 100%);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Article Typography */
.package-article__content,
.blog-article-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.package-article__content h2,
.blog-article-content h2,
.package-article__content h3,
.blog-article-content h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.package-article__content p,
.blog-article-content p {
    margin-bottom: 1.5rem;
}

.package-article__content ul,
.blog-article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.package-article__content li,
.blog-article-content li {
    margin-bottom: 0.5rem;
}

/* Navbar Redesign */
.navbar {
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
    background: transparent !important;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin-left: 1.5rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section Enhancement */
.hero-section {
    height: 100vh;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Custom Buttons */
.btn-primary {
    background: var(--grad-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(13, 44, 36, 0.2);
    color: var(--white) !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 44, 36, 0.3);
    background: var(--primary-light);
}

.btn-accent {
    background: var(--grad-accent);
    color: var(--white) !important;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.3);
}

/* Card Components (Glassmorphism inspired) */
.package-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.package-card__image-wrapper {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.package-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.package-card:hover .package-card__image {
    transform: scale(1.1);
}

.package-card__content {
    padding: 1.5rem;
}

.package-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.package-card__price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card-home {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-card-home:hover {
    border-color: var(--secondary);
    background: #F0FFF9;
    transform: scale(1.02);
}

.feature-card-home__icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card-home:hover .feature-card-home__icon {
    background: var(--secondary);
    color: var(--white);
    transform: rotateY(180deg);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Admin Dashboard Styles */
.admin-sidebar {
    width: 280px;
    background: var(--grad-primary);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050;
    padding: 2.5rem 1.5rem;
    color: var(--white);
    transition: var(--transition-smooth);
}

.admin-main {
    margin-left: 280px;
    padding: 2.5rem 3rem;
    min-height: 100vh;
    background: #f4f7f6;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    border-radius: 16px;
    margin-bottom: 10px;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 1.05rem;
}

.admin-nav-item i {
    font-size: 1.4rem;
    margin-right: 14px;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

.admin-nav-item.active {
    background: var(--grad-accent) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4);
}

.admin-stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(13, 44, 36, 0.05);
    border: none;
    transition: var(--transition-smooth);
    height: 100%;
}

.admin-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(13, 44, 36, 0.08);
}

.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.admin-table-container {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 44, 36, 0.05);
    border: 1px solid rgba(13, 44, 36, 0.05);
}

.admin-table {
    margin-bottom: 0;
}

.admin-table thead th {
    background: #f8fbf9;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid #edf2f0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.admin-table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    color: var(--text-dark);
    border-bottom: 1px solid #f4f7f6;
}

/* Responsive Grid Adjustments */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 300px;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 50px 0;
    }
}

/* Admin Rich Text Editor */
.rte-container {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.rte-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.05);
}

.rte-toolbar {
    background: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.rte-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    color: var(--primary);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
}

.rte-btn:hover {
    background: #e9ecef;
    color: var(--secondary);
    border-color: rgba(0, 0, 0, 0.15);
}

.rte-btn.active {
    background: var(--grad-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.rte-editor {
    padding: 25px;
    min-height: 450px;
    outline: none;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.rte-editor h2,
.rte-editor h3 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
}

.rte-editor blockquote {
    border-left: 5px solid var(--accent);
    padding: 10px 20px;
    background: #fcfcfc;
    font-style: italic;
    color: #555;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
}

.rte-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    margin: 6px 4px;
}