:root {
    --tt-blue: #1a5f7a;
    --tt-teal: #159895;
    --tt-green: #57cc99;
    --tt-light: #c7f9cc;
    --tt-orange: #ff9a3c;
    --tt-purple: #6a1b9a;
    --tt-dark-blue: #0a2647;
    --tt-gray: #6c757d;
    --tt-dark: #212529;
    --gradient-primary: linear-gradient(135deg, var(--tt-blue), var(--tt-teal));
    --gradient-secondary: linear-gradient(135deg, var(--tt-teal), var(--tt-green));
    --gradient-accent: linear-gradient(135deg, var(--tt-orange), var(--tt-purple));
    --gradient-light: linear-gradient(135deg, var(--tt-light), #e8f5e8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--tt-dark);
    overflow-x: hidden;
    background-color: #f9fafb;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--tt-blue);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    color: var(--tt-blue);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--tt-blue);
    color: var(--tt-light);
    transform: translateY(-3px);
}

/* Header Styles */
.navbar {
    padding: 1rem 0;
    background: var(--tt-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
}

.navbar-brand .brand-primary {
    color: var(--tt-blue);
}

.navbar-brand .brand-secondary {
    color: var(--tt-teal);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tt-blue);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Blog Hero Section */
.hero-blog {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.05"><polygon points="1000,100 1000,0 0,100"></polygon></svg>');
    background-size: cover;
}

.hero-blog-content {
    position: relative;
    z-index: 1;
}

.hero-blog h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-blog p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.blog-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Blog Content Layout */
.blog-content {
    padding: 5rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Post Cards */
.post-card-modern {
    background: var(--tt-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.post-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card-modern:hover .post-image {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 2;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--tt-gray);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-item i {
    color: var(--tt-blue);
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--tt-dark-blue);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--tt-blue);
}

.post-excerpt {
    color: var(--tt-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tt-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more-btn:hover {
    gap: 0.75rem;
    color: var(--tt-teal);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: var(--tt-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(26, 95, 122, 0.2);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--tt-blue);
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(26, 95, 122, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.search-input:focus {
    border-color: var(--tt-blue);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
    outline: none;
}

.search-button {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--tt-gray);
    cursor: pointer;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.75rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--tt-dark-blue);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.categories-list a:hover {
    background: rgba(26, 95, 122, 0.1);
    color: var(--tt-blue);
    padding-left: 1rem;
}

.category-count {
    background: rgba(26, 95, 122, 0.1);
    color: var(--tt-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 95, 122, 0.2);
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: var(--tt-dark-blue);
    text-decoration: none;
    transition: var(--transition);
}

.recent-post-content h4 a:hover {
    color: var(--tt-blue);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--tt-gray);
}

/* Archive Widget */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    margin-bottom: 0.5rem;
}

.archive-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--tt-dark-blue);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}

.archive-list a:hover {
    background: rgba(26, 95, 122, 0.1);
    color: var(--tt-blue);
}

.archive-count {
    background: rgba(26, 95, 122, 0.1);
    color: var(--tt-blue);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(26, 95, 122, 0.1);
    color: var(--tt-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background: var(--tt-blue);
    color: var(--tt-light);
    transform: translateY(-2px);
}

/* Pagination */
.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-link-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tt-light);
    color: var(--tt-dark-blue);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.page-link-modern:hover,
.page-link-modern.active {
    background: var(--gradient-primary);
    color: var(--tt-light);
    transform: translateY(-2px);
}

.page-link-modern.prev,
.page-link-modern.next {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 50px;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--tt-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.no-posts-icon {
    font-size: 4rem;
    color: var(--tt-blue);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-blog {
        padding: 80px 0 40px;
    }
    
    .blog-stats {
        justify-content: center;
    }
    
    .stat-card {
        min-width: 100px;
        padding: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .post-content {
        padding: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .pagination-modern {
        flex-wrap: wrap;
    }
}
/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.remove-filter {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.remove-filter:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--tt-blue);
}

.loading-spinner p {
    margin-top: 1rem;
    font-weight: 500;
}

/* Active states for filters */
.category-filter.active,
.archive-filter.active,
.tag.active {
    background: var(--tt-blue) !important;
    color: var(--tt-light) !important;
}

/* Highlight search terms */
.highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}