h1 {
    font-size: 2.75rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 147, 222, 0.2);
}


body > div:not(.header):not(.footer):not([class]) {
    max-width: 1200px;
    margin: 0 auto 2.5rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

body > div:not(.header):not(.footer):not([class])::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

body > div:not(.header):not(.footer):not([class]):hover::before {
    transform: scaleX(1);
}

body > div:not(.header):not(.footer):not([class]):hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

/* Blog Post Styling (Generic) - Professional Typography */
body > div:not(.header):not(.footer):not([class]) h2 {
    font-size: 1.85rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: #2D3748;
}

body > div:not(.header):not(.footer):not([class]) h2 a {
    text-decoration: none;
    color: #2D3748;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

body > div:not(.header):not(.footer):not([class]) h2 a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    border-radius: 2px;
}

body > div:not(.header):not(.footer):not([class]) h2 a:hover::after {
    width: 100%;
}

body > div:not(.header):not(.footer):not([class]) h2 a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

body > div:not(.header):not(.footer):not([class]) p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

body > div:not(.header):not(.footer):not([class]) p::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Pagination Container - Professional Design */
body > div:last-of-type {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
    background: white !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06) !important;
    padding: 1.8rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

body > div:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
    opacity: 0.9;
}

body > div:last-of-type:hover {
    transform: none !important;
}

body > div:last-of-type a {
    padding: 0.75rem 1.1rem;
    text-decoration: none;
    color: #2D3748;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    min-width: 42px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

body > div:last-of-type a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 147, 222, 0.1), transparent);
    transition: left 0.5s;
}

body > div:last-of-type a:hover::before {
    left: 100%;
}

body > div:last-of-type a:hover {
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 58, 95, 0.25);
}

/* Current page (bold) styling - Professional Design */
body > div:last-of-type a[style*="font-weight: bold"] {
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(30, 58, 95, 0.25);
    position: relative;
    font-weight: 600;
}

body > div:last-of-type a[style*="font-weight: bold"]::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transform: translateX(-50%);
}

/* No Results/Search Results Message - Professional Design */
body > p {
    text-align: center;
    font-size: 1.2rem;
    margin: 3.5rem auto;
    color: #2D3748;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    max-width: 600px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    line-height: 1.6;
}

body > p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    opacity: 0.9;
}

body > p strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Add some breathing room between elements */
body > div:not(.header):not(.footer):not([class]) + div:not(.header):not(.footer):not([class]) {
    margin-top: 2rem;
}

/* Back to Blog Link - Professional Design */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #2D3748;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
}

.back-to-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 147, 222, 0.2), transparent);
    transition: left 0.5s ease;
}

.back-to-blog:hover::before {
    left: 100%;
}

.back-to-blog:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 147, 222, 0.25);
}

.back-to-blog:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 147, 222, 0.2);
}

.back-to-blog i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: inherit;
    transition: transform 0.3s ease;
}

.back-to-blog:hover i {
    transform: translateX(-3px);
}

/* Clear Search Link */
#search-form .clear-search {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #2D4359;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#search-form .clear-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transition: width 0.4s ease;
    z-index: -1;
}

#search-form .clear-search:hover::before {
    width: 100%;
}

#search-form .clear-search:hover {
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 147, 222, 0.3);
}

#search-form .clear-search:active {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 204, 82, 0.2);
}

#search-form .clear-search i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: inherit;
    transition: transform 0.3s ease;
}

#search-form .clear-search:hover i {
    transform: rotate(-90deg);
}

