/* Custom CSS for Encaje Theme */

/* Variables are defined in style.css :root, but we can override or add here if needed */

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Hero Section Adjustments */
.hero-section {
    position: relative;
    color: #333;
}

.hero-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    display: inline-block;
}

/* Logo Overrides for "Protruding" Effect */
.site-header {
    overflow: visible !important;
    /* Allow logo to hang out */
}

.site-branding {
    position: relative;
    padding-left: 140px;
    /* Make space for the absolute logo */
    min-height: 60px;
    /* Maintain header height */
}

.custom-logo-link {
    position: absolute;
    top: -30px;
    /* Start slightly above or at top */
    left: 0;
    z-index: 1100;
    /* background: #fff; */
    /* Match header bg */
    padding: 10px 15px 15px 15px;
    /* Add padding around logo */
    border-radius: 0 0 15px 15px;
    /* Rounded bottom */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
}

.custom-logo {
    max-height: 130px !important;
    /* Significantly larger */
    width: auto;
    display: block;
}

/* Adjust text container in preview/theme */
.site-branding div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .site-branding {
        padding-left: 90px;
    }

    .custom-logo {
        max-height: 80px !important;
    }
}

/* Card Hover Effects */
.info-card,
.news-card,
.resource-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.news-card:hover,
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile Menu Styling */
.main-navigation.toggled ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.main-navigation.toggled ul li {
    margin-bottom: 1rem;
    text-align: center;
}

/* Accessibility Focus States */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Widget Styles */
.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.widget ul li:last-child {
    border-bottom: none;
}


.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
}

.comment-body {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.comment-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.comment-meta a {
    color: inherit;
    text-decoration: none;
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.reply {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-align: right;
}

.reply a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.reply a:hover {
    border-color: #000;
}

/* Form Styles */
.comment-respond {
    margin-top: 4rem;
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 12px;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
}

.comment-reply-title small a {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #666;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #000;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.comment-form input[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s, transform 0.1s;
    justify-self: start;
    margin-top: 1rem;
}

.comment-form input[type="submit"]:hover {
    background: #333;
}

.comment-form input[type="submit"]:active {
    transform: scale(0.98);
}