/* ============================================
   Góc Toán Chuyên LTV - Custom Styles
   ============================================ */

/* === Smooth Scrolling === */
html {
    scroll-behavior: smooth;
}

/* === Global Transitions === */
a,
button,
.wp-block-button__link,
.wp-block-navigation-item__content {
    transition: all 0.3s ease;
}

/* === Header Styles === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--accent) !important;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 60, 143, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* === Card Styles === */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 60, 143, 0.12);
}

/* === Section Styles === */
.section-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Stats Counter === */
.stat-number {
    font-size: 3rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* === Post Grid === */
.post-grid .wp-block-post {
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.post-grid .wp-block-post:hover {
    transform: translateY(-3px);
}

.post-grid .wp-block-post-featured-image img {
    transition: transform 0.5s ease;
}

.post-grid .wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

/* === Footer Styles === */
.site-footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--wp--preset--color--accent) !important;
}

.site-footer .is-style-no-bullets {
    list-style: none;
    padding-left: 0;
}

.site-footer .is-style-no-bullets li {
    padding: 4px 0;
}

/* === Button Enhancements === */
.wp-block-button__link {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 60, 143, 0.25);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--wp--preset--color--primary) !important;
    color: white !important;
}

/* === Category Badge === */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--wp--preset--color--light-bg);
    color: var(--wp--preset--color--primary);
}

/* === Responsive === */
@media (max-width: 768px) {
    .site-header .wp-block-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .hero-section .wp-block-heading {
        font-size: 2rem !important;
    }
}

/* === Math Formula Styling === */
.math-formula {
    font-family: 'Times New Roman', serif;
    font-size: 1.2em;
    padding: 1rem 1.5rem;
    background: var(--wp--preset--color--light-bg);
    border-left: 3px solid var(--wp--preset--color--primary);
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

/* === Timeline Styles === */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--wp--preset--color--border);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wp--preset--color--primary);
    border: 2px solid var(--wp--preset--color--white);
    box-shadow: 0 0 0 2px var(--wp--preset--color--primary);
}

/* === Scroll animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

/* === Gradient Text === */
.gradient-text {
    background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Comment Form Styles
   ============================================ */
.comment-respond {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.comment-respond .comment-reply-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0D1F4D;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F4FA;
}

.comment-respond label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1A1A2E;
    background: #F0F4FA;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond input[type="url"]:focus,
.comment-respond textarea:focus {
    border-color: #1A3C8F;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 60, 143, 0.1);
}

.comment-respond textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.comment-respond .comment-form-comment,
.comment-respond .comment-form-author,
.comment-respond .comment-form-email,
.comment-respond .comment-form-url {
    margin-bottom: 1.25rem;
}

.comment-respond .form-submit {
    margin-top: 1.5rem;
}

.comment-respond .form-submit input[type="submit"] {
    display: inline-block;
    padding: 14px 36px;
    background: #1A3C8F;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.comment-respond .form-submit input[type="submit"]:hover {
    background: #0D1F4D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 31, 77, 0.25);
}

.comment-respond .logged-in-as {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #F0F4FA;
    border-radius: 8px;
}

.comment-respond .logged-in-as a {
    color: #1A3C8F;
    font-weight: 500;
}

.comment-respond .comment-notes {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 1.5rem;
}

/* === Comment List === */
.comment-list {
    list-style: none !important;
    padding: 0 !important;
}

.comment-list .comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #F0F4FA;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.comment-list .comment-author {
    font-weight: 600;
    color: #0D1F4D;
}

.comment-list .comment-metadata {
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 0.75rem;
}

/* ============================================
   Search Bar Styles
   ============================================ */
.wp-block-search__input {
    padding: 10px 18px !important;
    border: 2px solid #E2E8F0 !important;
    border-radius: 30px 0 0 30px !important;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-search__input:focus {
    border-color: #1A3C8F !important;
    box-shadow: 0 0 0 3px rgba(26, 60, 143, 0.1);
    outline: none;
}

.wp-block-search__button {
    background: #1A3C8F !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 600;
    border-radius: 0 30px 30px 0 !important;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wp-block-search__button:hover {
    background: #0D1F4D !important;
}

/* === Card Shadow === */
.card-hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}