/* ========================================
   TAGALOG LEARNING THEME CSS
   Colors: Blue (#0038A8), Red (#CE1126), Yellow (#FCD116), White (#FFFFFF)
   Based on Philippine Flag Colors
   ======================================== */

:root {
    --ph-blue: #0038A8;
    --ph-red: #CE1126;
    --ph-yellow: #FCD116;
    --ph-white: #FFFFFF;
    --primary-color: #0038A8;
    --secondary-color: #CE1126;
    --accent-color: #FCD116;
    --dark-color: #2C3E50;
    --light-color: #F9F9F9;
    --text-gray: #546E7A;
}

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

/* ========== General Styles ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* ========== Navbar ========== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.brand-text {
    color: var(--ph-blue);
    transition: all 0.3s ease;
}

.brand-dot {
    color: var(--ph-yellow);
    font-weight: 900;
    font-size: 1.8rem;
}

.brand-net {
    color: var(--ph-red);
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-brand:hover .brand-text {
    color: var(--ph-red);
}

.navbar-brand:hover .brand-net {
    color: var(--ph-blue);
}

.nav-link {
    position: relative;
    font-weight: 600 !important;
    color: var(--dark-color) !important;
    padding: 0.6rem 1.3rem !important;
    margin: 0 0.3rem !important;
    border-radius: 30px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--ph-blue);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--ph-blue) !important;
    background: rgba(0, 56, 168, 0.08) !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    background: var(--ph-blue) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 56, 168, 0.3);
}

.nav-link.active::before {
    display: none;
}

.navbar-toggler {
    border: 2px solid var(--ph-blue);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(0, 56, 168, 0.1);
    transform: rotate(90deg);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 56, 168, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 56, 168, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
}

/* ========== Hero Section ========== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 56, 168, 0.95) 0%, rgba(206, 17, 38, 0.85) 100%),
                url('https://images.unsplash.com/photo-1583417319070-4a69db38a482?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(252, 209, 22, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(206, 17, 38, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-weight: 900;
    font-size: 3.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.philippine-flag-colors {
    height: 5px;
    background: linear-gradient(to right, 
        var(--ph-blue) 0%, var(--ph-blue) 50%, 
        var(--ph-red) 50%, var(--ph-red) 100%);
    width: 150px;
    margin: 0 auto 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-text {
    font-size: 1.35rem;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ph-blue);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: white;
    color: var(--ph-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: white;
}

/* ========== Alert Messages ========== */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* ========== Footer ========== */
footer,
.footer {
    background: linear-gradient(135deg, var(--ph-blue) 0%, #002D7A 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 5px solid var(--ph-yellow);
}

.footer-brand {
    font-weight: 700;
    color: var(--ph-yellow);
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-text {
    opacity: 0.95;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.footer-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        margin: 0.4rem 0 !important;
        text-align: center;
        padding: 0.8rem 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 3rem 0;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .emoji {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   BLOG ARCHIVE STYLES
   ======================================== */

/* Blog Hero - Compact Version */
.blog-hero {
    min-height: 60vh;
    padding: 3rem 0;
}

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

.blog-hero .hero-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Form */
.search-wrapper {
    position: relative;
    margin-bottom: 0;
}

.search-input {
    padding: 1rem 3.5rem 1rem 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ph-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 56, 168, 0.3);
}

.search-btn:hover {
    background: #002D7A;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 56, 168, 0.4);
}

.search-btn i {
    font-size: 1rem;
}

/* Section Padding */
.section-padding {
    padding: 4rem 0;
    background: var(--light-color);
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 56, 168, 0.15);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Blog Tag */
.blog-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--ph-blue), #002D7A);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 56, 168, 0.2);
}

/* Card Title */
.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--ph-blue);
}

/* Card Text */
.card-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Card Meta */
.card-meta {
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.meta-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ph-blue), var(--ph-red));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-circle span {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.meta-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-date {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.meta-date i {
    margin-right: 0.5rem;
    color: var(--ph-blue);
    font-size: 0.9rem;
}

/* Card Link */
.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--ph-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.card-link:hover {
    color: #002D7A;
    transform: translateX(5px);
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* Empty State */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-state h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    gap: 0.5rem;
}

.page-item {
    margin: 0;
}

.page-link {
    border: 2px solid rgba(0, 56, 168, 0.2);
    color: var(--ph-blue);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.page-link:hover {
    background: var(--ph-blue);
    color: white;
    border-color: var(--ph-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 56, 168, 0.3);
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 56, 168, 0.25);
    outline: none;
}

.page-item.active .page-link {
    background: var(--ph-blue);
    border-color: var(--ph-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 56, 168, 0.3);
}

.page-item.disabled .page-link {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-gray);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .blog-hero .hero-title {
        font-size: 2rem;
    }

    .blog-hero .hero-text {
        font-size: 1rem;
    }

    .blog-card {
        margin-bottom: 1.5rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .search-input {
        font-size: 0.95rem;
        padding: 0.875rem 3rem 0.875rem 1.25rem;
    }

    .search-btn {
        width: 38px;
        height: 38px;
    }

    .pagination {
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .meta-dates {
        font-size: 0.8rem;
    }

    .meta-date i {
        font-size: 0.8rem;
    }

    .empty-state {
        padding: 3rem 1rem;
    }
}