/* =========================================================
   Gia Phú — additions: full footer, 404 page, generic pages
   ========================================================= */

/* ---------- Full footer ---------- */
.footer {
    padding-top: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
    gap: 45px;
    padding: 70px 20px 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col .footer-widget-title {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 22px;
    padding-bottom: 12px;
    position: relative;
}

.footer-col .footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.75;
    margin: 18px 0 22px;
    font-weight: 300;
}

.footer-about .footer-social {
    justify-content: flex-start;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 13px;
}

.footer-menu a {
    font-size: 14.5px;
    opacity: 0.8;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.footer-menu a::before {
    content: '\f105'; /* fa angle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    margin-right: 9px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 4px;
}

.footer-contact-list {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    opacity: 0.85;
    font-weight: 300;
    line-height: 1.6;
}

.footer-contact-list li i {
    color: var(--secondary-color);
    font-size: 15px;
    margin-top: 4px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

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

.footer-news-title {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-news-text {
    font-size: 13px;
    opacity: 0.7;
    font-weight: 300;
    margin-bottom: 14px;
    line-height: 1.6;
}

.footer-news-form {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    overflow: hidden;
    padding: 4px;
}

.footer-news-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    min-width: 0;
}

.footer-news-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-news-form button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 30px;
    padding: 9px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.footer-news-form button:hover {
    background-color: var(--white);
}

/* Bottom bar now holds 3 items */
.footer-bottom {
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom .footer-slogan {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

/* ---------- 404 page ---------- */
.error-404-section {
    background-color: var(--bg-card);
    padding: 90px 0 110px;
    text-align: center;
}

.error-404 {
    max-width: 660px;
    margin: 0 auto;
}

.error-404 .error-code {
    font-family: var(--font-heading);
    font-size: 130px;
    line-height: 1;
    color: var(--secondary-color);
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.error-404 .error-title {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.error-404 .error-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.error-404 .error-search {
    max-width: 460px;
    margin: 0 auto 34px;
}

.error-404 .btn {
    margin-bottom: 46px;
}

.error-404 .error-links-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 18px;
}

.error-404 .error-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.error-404 .error-links a {
    padding: 9px 20px;
    border: 1px solid rgba(22, 57, 41, 0.2);
    border-radius: 30px;
    font-size: 14px;
    color: var(--primary-color);
    transition: var(--transition);
}

.error-404 .error-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ---------- Search form ---------- */
.gp-searchform {
    display: flex;
    background: var(--white);
    border: 1px solid rgba(22, 57, 41, 0.15);
    border-radius: 30px;
    overflow: hidden;
    padding: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.gp-searchform input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    background: transparent;
    min-width: 0;
}

.gp-searchform button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.gp-searchform button:hover {
    background-color: var(--primary-light);
}

/* ---------- Generic content (page / single / search / archive) ---------- */
.gp-content-section {
    background-color: var(--bg-card);
    padding: 70px 0 90px;
}

.gp-content-narrow {
    max-width: 820px;
    margin: 0 auto;
}

.entry-content {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.9;
}

.entry-content > * {
    margin-bottom: 22px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--primary-color);
    margin: 34px 0 14px;
}

.entry-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.entry-content img {
    border-radius: 10px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 22px;
}

.entry-content blockquote {
    border-left: 3px solid var(--secondary-color);
    padding: 6px 0 6px 22px;
    color: var(--text-light);
    font-style: italic;
}

.gp-post-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 26px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.gp-post-meta i {
    color: var(--secondary-color);
    margin-right: 6px;
}

/* Search results list */
.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px;
}

.search-result-item {
    background: var(--white);
    border-radius: 10px;
    padding: 26px 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.search-result-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.search-result-item h3 a {
    color: var(--primary-color);
}

.search-result-item h3 a:hover {
    color: var(--secondary-color);
}

.search-result-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

.gp-pagination {
    margin-top: 44px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(22, 57, 41, 0.15);
    border-radius: 8px;
    color: var(--primary-color);
    transition: var(--transition);
}

.gp-pagination .page-numbers.current,
.gp-pagination .page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Project small card as a link */
a.project-card.small {
    display: block;
    color: inherit;
}

/* ---------- Comments ---------- */
.gp-comments {
    margin-top: 55px;
    padding-top: 40px;
    border-top: 1px solid rgba(22, 57, 41, 0.1);
}

.comment-reply-title,
.gp-comments-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.comment-notes,
.logged-in-as {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.logged-in-as a,
.comment-notes a {
    color: var(--secondary-color);
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.comment-form p {
    margin: 0;
}

.comment-form .comment-form-comment,
.comment-form .comment-notes,
.comment-form .logged-in-as,
.comment-form .form-submit,
.comment-form .comment-form-cookies-consent {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid rgba(22, 57, 41, 0.18);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
    display: block;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.comment-form .form-submit {
    margin-top: 4px;
}

.comment-form .submit,
#submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    padding: 13px 34px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form .submit:hover,
#submit:hover {
    background-color: var(--primary-light);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-form-cookies-consent input {
    width: auto;
    margin-top: 4px;
}

.comment-form-cookies-consent label {
    display: inline;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
}

.comment-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.comment-list .comment,
.comment-list .pingback {
    margin-bottom: 20px;
}

.comment-body {
    background: var(--white);
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

.comment-metadata {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.comment-metadata a {
    color: var(--text-light);
}

.comment-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-dark);
}

.comment-content p {
    margin-bottom: 12px;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
}

.children {
    list-style: none;
    margin: 22px 0 0 32px;
    padding: 0;
}

@media (max-width: 600px) {
    .comment-form {
        grid-template-columns: 1fr;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 50px 20px 36px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom .footer-slogan {
        order: -1;
    }
    .error-404 .error-code {
        font-size: 92px;
    }
}
