/**
 * Custom Styles for Vies Ajans Theme
 * 
 * @package ViesAjans
 * @since 1.0.0
 */

/* ===================================
   TYPOGRAPHY & BASE STYLES
   =================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===================================
   HEADER ENHANCEMENTS
   =================================== */

.site-header {
    position: relative;
    z-index: 1000;
}

/* Smooth sticky header transition */
.main-navigation.sticky {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Logo hover effect */

/* Logo hover effect removed per user request */


/* Menu items hover effect */
.menu>li>a {
    position: relative;
    padding-bottom: 4px;
}

.menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    transition: width 0.3s ease;
}

.menu>li>a:hover::after,
.menu>li.current-menu-item>a::after {
    width: 100%;
}

/* Dropdown menu animations */
.menu-item-has-children>ul {
    transform-origin: top;
}

/* Search input focus effect */
.search-form input[type="search"]:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* CTA Button pulse animation */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

.site-header a[class*="gradient"] {
    position: relative;
    overflow: hidden;
}

.site-header a[class*="gradient"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.site-header a[class*="gradient"]:hover::before {
    left: 100%;
}

/* ===================================
   MOBILE MENU ENHANCEMENTS
   =================================== */

@media (max-width: 1023px) {
    .mobile-menu-overlay {
        backdrop-filter: blur(4px);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===================================
   CONTENT AREA
   =================================== */

.site-main {
    min-height: 60vh;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.skip-link {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* ===================================
   RESPONSIVE IMPROVEMENTS
   =================================== */

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===================================
   SMOOTH SCROLLING
   =================================== */

html {
    scroll-behavior: smooth;
}

/* ===================================
   SELECTION STYLING
   =================================== */

::selection {
    background-color: #2563eb;
    color: white;
}

::-moz-selection {
    background-color: #2563eb;
    color: white;
}

/* ===================================
   LOADING STATES
   =================================== */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {

    .site-header,
    .site-footer,
    .skip-link {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}
/* WordPress Content Styling */
.entry-content p { margin-bottom: 1.5rem; line-height: 1.8; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { font-weight: 700; color: #111827; margin-top: 2.5rem; margin-bottom: 1.25rem; }
.entry-content h2 { font-size: 2rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e5e7eb; }
.entry-content h3 { font-size: 1.75rem; }
.entry-content ul, .entry-content ol { margin: 1.5rem 0; padding-left: 2rem; }
.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }
.entry-content li { margin-bottom: 0.75rem; line-height: 1.8; }
.entry-content a { color: #2563eb; text-decoration: none; font-weight: 500; }
.entry-content a:hover { color: #1d4ed8; text-decoration: underline; }
.entry-content strong, .entry-content b { font-weight: 700; color: #111827; }
.entry-content blockquote { margin: 2rem 0; padding: 1.5rem 2rem; border-left: 4px solid #2563eb; background: #f3f4f6; border-radius: 0.5rem; font-style: italic; }
.entry-content code { background: #f3f4f6; padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.875em; color: #2563eb; }
.entry-content pre { background: #1f2937; color: #f3f4f6; padding: 1.5rem; border-radius: 0.75rem; margin: 2rem 0; }
.entry-content img { max-width: 100%; height: auto; border-radius: 0.75rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); margin: 2rem 0; }
.entry-content table { width: 100%; margin: 2rem 0; border-collapse: collapse; }
.entry-content table thead { background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); color: white; }
.entry-content table th, .entry-content table td { padding: 1rem; }
.entry-content hr { margin: 3rem 0; border: none; border-top: 2px solid #e5e7eb; }

/* Content Area Styling (for service pages and other custom content) */
.content-area p { 
    margin-bottom: 1.25rem; 
    line-height: 1.8; 
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .content-area p { 
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
}

.content-area h1, 
.content-area h2, 
.content-area h3, 
.content-area h4, 
.content-area h5, 
.content-area h6 { 
    font-weight: 700; 
    color: #111827; 
    margin-top: 2rem; 
    margin-bottom: 1rem; 
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .content-area h1, 
    .content-area h2, 
    .content-area h3, 
    .content-area h4, 
    .content-area h5, 
    .content-area h6 { 
        margin-top: 2.5rem; 
        margin-bottom: 1.25rem; 
    }
}

.content-area h1 { font-size: 1.875rem; }
.content-area h2 { font-size: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e5e7eb; }
.content-area h3 { font-size: 1.25rem; }
.content-area h4 { font-size: 1.125rem; }
.content-area h5 { font-size: 1rem; }
.content-area h6 { font-size: 0.875rem; }

@media (min-width: 1024px) {
    .content-area h1 { font-size: 2.25rem; }
    .content-area h2 { font-size: 2rem; }
    .content-area h3 { font-size: 1.75rem; }
    .content-area h4 { font-size: 1.5rem; }
    .content-area h5 { font-size: 1.25rem; }
    .content-area h6 { font-size: 1rem; }
}

.content-area ul, 
.content-area ol { 
    margin: 1.25rem 0; 
    padding-left: 1.5rem; 
}

@media (min-width: 1024px) {
    .content-area ul, 
    .content-area ol { 
        margin: 1.5rem 0; 
        padding-left: 2rem; 
    }
}

.content-area ul { list-style-type: disc; }
.content-area ol { list-style-type: decimal; }

.content-area li { 
    margin-bottom: 0.5rem; 
    line-height: 1.8; 
}

@media (min-width: 1024px) {
    .content-area li { 
        margin-bottom: 0.75rem; 
    }
}

.content-area ul ul,
.content-area ol ol,
.content-area ul ol,
.content-area ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.content-area a { 
    color: #2563eb; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.2s;
}

.content-area a:hover { 
    color: #1d4ed8; 
    text-decoration: underline; 
}

.content-area strong, 
.content-area b { 
    font-weight: 700; 
    color: #111827; 
}

.content-area em,
.content-area i {
    font-style: italic;
}

.content-area blockquote { 
    margin: 1.5rem 0; 
    padding: 1rem 1.5rem; 
    border-left: 4px solid #2563eb; 
    background: #f3f4f6; 
    border-radius: 0.5rem; 
    font-style: italic; 
}

@media (min-width: 1024px) {
    .content-area blockquote { 
        margin: 2rem 0; 
        padding: 1.5rem 2rem; 
    }
}

.content-area code { 
    background: #f3f4f6; 
    padding: 0.125rem 0.375rem; 
    border-radius: 0.25rem; 
    font-size: 0.875em; 
    color: #2563eb; 
    font-family: 'Courier New', monospace;
}

.content-area pre { 
    background: #1f2937; 
    color: #f3f4f6; 
    padding: 1rem; 
    border-radius: 0.5rem; 
    margin: 1.5rem 0; 
    overflow-x: auto;
}

@media (min-width: 1024px) {
    .content-area pre { 
        padding: 1.5rem; 
        border-radius: 0.75rem; 
        margin: 2rem 0; 
    }
}

.content-area pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.content-area img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
    margin: 1.5rem 0; 
}

@media (min-width: 1024px) {
    .content-area img { 
        border-radius: 0.75rem; 
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
        margin: 2rem 0; 
    }
}

.content-area table { 
    width: 100%; 
    margin: 1.5rem 0; 
    border-collapse: collapse; 
    font-size: 0.875rem;
    overflow-x: auto;
    display: block;
}

@media (min-width: 1024px) {
    .content-area table { 
        margin: 2rem 0; 
        font-size: 1rem;
        display: table;
    }
}

.content-area table thead { 
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); 
    color: white; 
}

.content-area table th, 
.content-area table td { 
    padding: 0.75rem; 
    border: 1px solid #e5e7eb;
    text-align: left;
}

@media (min-width: 1024px) {
    .content-area table th, 
    .content-area table td { 
        padding: 1rem; 
    }
}

.content-area table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.content-area table tbody tr:hover {
    background-color: #f3f4f6;
}

.content-area hr { 
    margin: 2rem 0; 
    border: none; 
    border-top: 2px solid #e5e7eb; 
}

@media (min-width: 1024px) {
    .content-area hr { 
        margin: 3rem 0; 
    }
}

/* WordPress alignment classes */
.content-area .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.content-area .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-area .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Clear floats */
.content-area::after {
    content: "";
    display: table;
    clear: both;
}

