* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F766E, #14B8A6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-plane {
    animation: flyPlane 2s ease-in-out infinite;
}

@keyframes flyPlane {

    0%,
    100% {
        transform: translateX(0) translateY(0)
    }

    25% {
        transform: translateX(20px) translateY(-10px) rotate(5deg)
    }

    50% {
        transform: translateX(0) translateY(-20px)
    }

    75% {
        transform: translateX(-20px) translateY(-10px) rotate(-5deg)
    }
}

.preloader-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    margin-top: 15px;
}

.preloader-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    margin: 0 4px;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) {
    animation-delay: .2s
}

.preloader-dots span:nth-child(3) {
    animation-delay: .4s
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(.6);
        opacity: .5
    }

    40% {
        transform: scale(1);
        opacity: 1
    }
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: #f1f1f1
}

::-webkit-scrollbar-thumb {
    background: #0F766E;
    border-radius: 10px
}

.navbar-scrolled {
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    backdrop-filter: blur(20px)
}

.navbar-scrolled .nav-link {
    color: #1E293B !important
}

.navbar-scrolled .nav-logo {
    color: #0F766E !important
}

.navbar-scrolled .nav-cta {
    background: #0F766E !important;
    color: white !important
}

.navbar-scrolled .menu-icon {
    color: #1E293B !important
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1)
}

.mobile-menu.active {
    transform: translateX(0)
}

.mobile-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all .3s
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.page-hero-overlay {
    background: linear-gradient(135deg, rgba(15, 118, 110, .85), rgba(30, 41, 59, .8))
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, .5);
    border-radius: 50%;
    margin: 0 10px;
    vertical-align: middle
}

/* Blog Cards */
.blog-card {
    transition: all .4s cubic-bezier(.4, 0, .2, 1)
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .12)
}

.blog-card:hover .blog-img {
    transform: scale(1.08)
}

.blog-img {
    transition: transform .6s ease
}

/* Featured Post */
.featured-card {
    transition: all .4s ease
}

.featured-card:hover .featured-img {
    transform: scale(1.05)
}

.featured-img {
    transition: transform .6s ease
}

/* Sidebar */
.sidebar-card {
    transition: all .3s ease
}

.sidebar-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .1)
}

/* Category Tag */
.cat-tag {
    transition: all .2s
}

.cat-tag:hover {
    transform: scale(1.05)
}

.cat-tag.active {
    background: #0F766E;
    color: white;
    border-color: #0F766E
}

/* Search */
.search-input:focus {
    border-color: #0F766E;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .08)
}

/* Pagination */
.page-btn {
    transition: all .2s
}

.page-btn:hover {
    transform: translateY(-2px)
}

.page-btn.active {
    background: #0F766E;
    color: white;
    box-shadow: 0 4px 12px rgba(15, 118, 110, .3)
}

/* Recent Post */
.recent-post {
    transition: all .2s
}

.recent-post:hover {
    background: #F9FAFB
}

.recent-post:hover .recent-img {
    transform: scale(1.05)
}

.recent-img {
    transition: transform .3s
}

/* Newsletter */
.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .3)
}

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all .3s
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .5s
}

.btn-primary:hover::before {
    left: 100%
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all .3s
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible
}

/* Share tooltip */
.share-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all .2s
}

.share-trigger:hover .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

/* Read progress bar */
.read-progress {
    height: 3px;
    background: linear-gradient(90deg, #0F766E, #14B8A6);
    width: 0;
    position: fixed;
    top: 64px;
    left: 0;
    z-index: 999;
    transition: width .1s
}

@media(min-width:768px) {
    .read-progress {
        top: 80px
    }
}

/* Bookmark */
.bookmark-btn {
    transition: all .3s
}

.bookmark-btn.active {
    color: #0F766E
}

.bookmark-btn.active i {
    fill: #0F766E
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

.main-wrapper,
.wrapper,
.page-wrapper,
.site-wrapper {
    width: 100%;
    overflow: hidden;
}

section {
    max-width: 100%;
}