/* ===== CORE VARIABLES ===== */
:root {
    /* Color scheme based on Hok.Studio reference */
    --primary-color: #1a1a1a;      /* Dark text */
    --secondary-color: #ff6b35;     /* Orange accent */
    --text-dark: #1a1a1a;           /* Dark text */
    --text-light: #6c757d;          /* Light text */
    --white: #ffffff;               /* White */
    --light-gray: #f8f9fa;          /* Light gray */
    --border-color: #dee2e6;        /* Border color */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Shadow */
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); /* Large shadow */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --text-medium: #495057;
    --text-muted: #adb5bd;
    --primary-dark: #000000;
    --radius: 8px;
    --border-light: #f0f0f0;
    --transition-normal: all 0.3s ease;
    --header-bg: #ffffff;           /* Header background */
    --footer-bg: #ffffff;           /* Footer background */
}

/* ===== RESET STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1 { 
    font-size: 3.5rem; 
    font-weight: 700;
}
h2 { 
    font-size: 2.5rem; 
    font-weight: 700;
}
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.section-title {
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
}

/* ===== HEADER ===== */
.header-main {
    background-color: var(--header-bg);
    position: relative;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-right: 0.5rem;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 0.5rem 0.6rem !important;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.8;
}

.navbar-text {
    font-size: 0.875rem;
}

/* Start A Project button in header */
.start-project-btn {
    background-color: var(--white);
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.25rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.start-project-btn:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

/* Header right section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Ensure logo, menu and right column align correctly */
@media (min-width: 992px) {
    .header-main .container {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        max-width: 1320px;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-collapse {
        justify-content: center;
        margin-left: 10px;
    }
    
    .navbar-nav {
        gap: 1rem;
        flex-wrap: nowrap;
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .nav-item {
        white-space: nowrap;
    }
}

/* Styles for larger screens */
@media (min-width: 1200px) {
    .header-main .container {
        max-width: 1400px;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem;
    }
}

/* For very large screens */
@media (min-width: 1400px) {
    .header-main .container {
        max-width: 1600px;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.95rem;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    color: var(--primary-color);
    line-height: 1.1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background-color: transparent;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ===== BLOG SECTION ===== */
.blog-section {
    background-color: var(--white);
    padding: 5rem 0;
}

.blog-section .section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 2rem;
}

.blog-card-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.blog-card-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.blog-card-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-link:hover {
    color: inherit;
}

.blog-card-meta .date {
    display: flex;
    align-items: center;
}

.blog-card-meta i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

/* ===== PAGINATION ===== */
.pagination {
    gap: 0.5rem;
}

.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Horizontal styling for pagination */
.pagination {
    display: flex;
    list-style: none;
    padding-left: 0;
}
.pagination .page-item {
    margin: 0 0.25rem;
}
.pagination .page-link {
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    min-width: 40px;
    text-align: center;
}
.pagination .page-item .page-link i {
    vertical-align: middle;
}

/* ===== FOOTER ===== */
.footer-main {
    background-color: var(--footer-bg);
    color: var(--primary-color);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

.footer-main a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-main a:hover {
    opacity: 0.8;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-main .copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: right;
}

/* Footer navigation */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav li {
    margin: 0 10px 10px 0;
}

.footer-nav a {
    font-size: 0.95rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .footer-main .copyright {
        text-align: left;
        margin-top: 1rem;
    }
    
    .footer-nav {
        justify-content: flex-start;
    }
}

/* ===== SINGLE POST PAGE ===== */
.post-header-section {
    padding: 3rem 0 1rem;
}

.post-title {
    color: var(--text-dark);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.post-meta {
    font-size: 1rem;
    color: var(--text-light);
}

.post-date {
    display: inline-block;
}

.post-featured-image {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.post-content {
    background-color: var(--white);
}

.post-body {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.post-body h2 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.post-body h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 0;
    margin: 1.5rem 0;
    display: block;
}

.post-body .wp-block-image {
    margin: 2rem 0;
}

.post-body figure {
    max-width: 100%;
    width: 100%;
    margin: 2rem 0;
}

.post-body figure img {
    margin: 0;
}

.post-body figure figcaption {
    font-size: 0.9rem;
    color: var(--text-medium);
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== BREADCRUMBS ===== */
.custom-breadcrumb {
    padding: 0;
    margin-bottom: 1.5rem;
    background: transparent;
}

.custom-breadcrumb .breadcrumb-item {
    font-size: var(--font-size-sm);
    color: var(--text-medium);
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.custom-breadcrumb .breadcrumb-link {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition-normal);
}

.custom-breadcrumb .breadcrumb-link:hover {
    color: var(--primary-color);
}

.custom-breadcrumb .breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
}

/* Responsive styles for breadcrumbs */
@media (max-width: 576px) {
    .custom-breadcrumb {
        margin-bottom: 1rem;
    }
    
    .custom-breadcrumb .breadcrumb-item {
        font-size: var(--font-size-xs);
    }
    
    .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.25rem;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: var(--shadow);
    }
    
    .navbar-toggler {
        border-color: var(--border-color);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 2.25rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .blog-card-body {
        padding: 1.5rem;
    }
    
    .blog-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
}

/* Latest Publications section */
.latest-posts-section {
    padding: 5rem 0 3rem;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.featured-post-card {
    display: block;
    margin-bottom: 2rem;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    background-color: var(--white);
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-post-link {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    height: 100%;
}

.featured-post-link:hover {
    color: var(--text-dark);
}

.featured-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-post-image {
    transform: scale(1.05);
}

.featured-post-content {
    padding: 1.5rem;
}

.featured-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--primary-color);
}

.featured-post-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Home page hero specific */
.home-hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.home-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Start project button on hero */
.hero-cta {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.hero-cta:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dropdown menu styles */
.dropdown-menu {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: var(--light-gray);
    color: var(--primary-color);
}