/* Blog Enhancement Styles for Columbia Global Campus */

/* Featured Post Styling */
.featured-post {
    border: none;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(13,35,67,0.08);
    margin-bottom: 30px;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #9b59b6, #e74c3c);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.read-time {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
}

/* Enhanced Author Box - WordPress Style */
.author-box .box-inner {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.author-box .author-image {
    margin-right: 8px;
}

.author-box .author-image img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.author-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 12px;
}

.author-title {
    font-size: 10px;
    color: #7f8c8d;
    margin-top: 1px;
}

.author-date {
    font-size: 10px;
    color: #95a5a6;
    margin-top: 1px;
}

/* Category Tags */
.category-tag {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white !important;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.category-tag.toefl {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.category-tag.essay {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.category-tag.ai {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

/* Post Tags */
.post-tags {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.post-tags .tag {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 5px;
}

.post-tags .tag a {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags .tag a:hover {
    background: #3498db;
    color: white;
}

/* Enhanced Sidebar */
.sidebar-title-two h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2c3e50;
    position: relative;
}
.sidebar-title-two h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 36px;
    height: 3px;
    background: #0a2a66;
}

/* Search Widget */
.sidebar .search-box .form-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar .search-box input[type="search"] {
    flex: 1 1 auto;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}
.sidebar .search-box button {
    background: #0a2a66;
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
}

/* Popular Posts */
.popular-post-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;}
.popular-post-list li{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid #eef2f7;padding-bottom:10px;}
.popular-post-list li:last-child{border-bottom:none;padding-bottom:0;}
.popular-post-list a{color:#1b2c37;font-weight:600;font-size:14px;text-decoration:none;line-height:1.5;}
.popular-post-list a:hover{color:#0a2a66;}
.popular-post-list .date{font-size:12px;color:#6b7280;}

/* Categories & Archives */
.widget_categories ul,
.widget_archive ul { list-style: none; padding: 0; margin: 0; }
.widget_categories li,
.widget_archive li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.widget_categories li a,
.widget_archive li a { color: #1b2c37; text-decoration: none; font-size: 14px; }
.widget_categories li span,
.widget_archive li span { background: #eef2f7; color: #334155; padding: 2px 8px; border-radius: 12px; font-size: 12px; margin-left: 8px; }

/* Tag Cloud */
.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_tag_cloud .tagcloud a { display: inline-block; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 16px; color: #374151; text-decoration: none; font-size: 13px; }
.widget_tag_cloud .tagcloud a:hover { background: #0a2a66; color: #fff; border-color: #0a2a66; }

/* Newsletter Widget */
.newsletter-widget-blog {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.newsletter-widget-blog .sidebar-title-two h5 {
    color: white;
    margin-bottom: 10px;
}

.newsletter-content p {
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.newsletter-content input[type="email"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    margin-bottom: 10px;
}

.newsletter-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.newsletter-btn:hover {
    background: white;
    color: #667eea;
}

.subscriber-count {
    font-size: 11px;
    text-align: center;
    margin-top: 10px;
    opacity: 0.8;
}

/* Enhanced Popular Posts */
.popular-post-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.popular-post-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.popular-post-item .post-thumb {
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
}

.view-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

.post-content {
    flex: 1;
}

.category-mini {
    font-size: 10px;
    color: #3498db;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.post-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Enhanced Categories */
.category-list-enhanced li {
    border: none;
    margin-bottom: 5px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #3498db;
    color: white;
    transform: translateX(5px);
}

.category-icon {
    margin-right: 10px;
    font-size: 16px;
}

.category-name {
    flex: 1;
    font-weight: 500;
}

.post-count {
    background: #95a5a6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.category-item:hover .post-count {
    background: rgba(255,255,255,0.3);
}

/* Enhanced Archives */
.archive-list li {
    border: none;
    margin-bottom: 5px;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.archive-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.archive-count {
    background: #bdc3c7;
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

/* Enhanced Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tag-item:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.tag-item.popular {
    background: #e74c3c;
    color: white;
    font-weight: bold;
}

.tag-item.trending {
    background: #f39c12;
    color: white;
    animation: shake 3s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* WordPress-Style Blog Posts */
.news-block-two h2,
.news-block-two h3 {
    font-size: 18px !important;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
}

.news-block-two h2 a,
.news-block-two h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.news-block-two h2 a:hover,
.news-block-two h3 a:hover {
    color: #3498db;
}

.news-block-two .text p {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
}

/* Enhanced Post Meta - WordPress Style */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.post-meta li {
    margin-right: 0;
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
}

.post-meta .icon {
    margin-right: 4px;
    color: #ccc;
    font-size: 10px;
}

/* Simplified Author Display */
.author-box.simplified {
    margin-bottom: 8px;
}

.author-box.simplified .box-inner {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-post {
        margin-bottom: 20px;
    }
    
    .popular-post-item {
        padding: 10px;
    }
    
    .newsletter-widget-blog {
        padding: 20px;
    }
    
    .category-item,
    .archive-item {
        padding: 8px 12px;
    }
    
    .tag-cloud {
        gap: 5px;
    }
    
    .tag-item {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ------------------------------------------------------------------
   2025-10 refresh: restore card layout consistency
------------------------------------------------------------------- */
.blog-classic{
    display:flex;
    flex-direction:column;
    gap:32px;
}
.blog-classic .news-block-two{
    margin:0;
}
.news-block-two .inner-box{
    background:#ffffff;
    border:1px solid #e6edf5;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 12px 32px rgba(13,35,67,0.08);
    transition:transform .2s ease, box-shadow .2s ease;
}
.news-block-two .inner-box:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 40px rgba(13,35,67,0.12);
}
.news-block-two .inner-box .image{
    position:relative;
    max-height:320px;
    overflow:hidden;
}
.news-block-two .inner-box .image img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.news-block-two .inner-box .lower-content{
    position:relative;
    padding:32px 32px 30px;
    border:none !important;
}
.news-block-two .inner-box .category{
    position:absolute;
    top:0;
    left:32px;
    transform:translateY(-50%);
    margin:0;
    padding:6px 16px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    letter-spacing:0.4px;
    text-transform:uppercase;
    background:#ffffff;
    color:#0a2a66;
    box-shadow:0 10px 20px rgba(10,42,102,0.16);
}
.news-block-two .inner-box .author-box{
    position:absolute;
    right:32px;
    top:-44px;
    padding:12px 18px 12px 56px;
    border-radius:999px;
    background:#ffffff;
    box-shadow:0 12px 32px rgba(15,35,63,0.12);
}
.news-block-two .inner-box .author-box .box-inner{
    padding:0;
    font-size:13px;
    font-weight:600;
    color:#0f172a;
    font-family:'Roboto','Noto Sans KR',sans-serif;
}
.news-block-two .inner-box .author-box .author-image{
    left:14px;
    top:50%;
    transform:translateY(-50%);
}
.news-block-two .inner-box .author-box .author-image img{
    width:38px !important;
    height:38px !important;
}
.news-block-two .inner-box h3{
    margin:14px 0 16px !important;
    padding:0 !important;
    font-size:24px !important;
    line-height:1.38;
}
.news-block-two .inner-box h3 a{
    color:#0f172a !important;
    text-decoration:none;
}
.news-block-two .inner-box h3 a:hover{
    color:#0a2a66 !important;
}
.news-block-two .inner-box .text{
    margin-bottom:22px !important;
    padding:0 !important;
    border:none !important;
    color:#475569;
    font-size:15px;
    line-height:1.72;
}
.news-block-two .inner-box .post-meta{
    display:flex !important;
    flex-wrap:wrap;
    gap:10px 20px;
    margin:0 0 20px !important;
    padding:0 !important;
}
.news-block-two .inner-box .post-meta li{
    display:flex !important;
    align-items:center;
    gap:6px;
    border:none !important;
    padding:0 !important;
    margin:0 !important;
    font-size:13px !important;
    color:#64748b !important;
}
.news-block-two .inner-box .post-meta li .icon{
    position:static !important;
    font-size:14px;
    color:#0a2a66;
}
.post-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0;
    padding-top:18px;
    border-top:1px solid #e2e8f0;
}
.post-tags .tag{
    margin:0;
}
.post-tags .tag a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 14px;
    border-radius:999px;
    background:#eef2ff;
    color:#1d4ed8;
    font-size:12px;
    font-weight:600;
    transition:background .2s ease,color .2s ease;
}
.post-tags .tag a:hover{
    background:#1d4ed8;
    color:#ffffff;
}
.sidebar .sidebar-widget{
    background:#ffffff;
    border:1px solid #e6edf5;
    border-radius:18px;
    padding:26px 24px;
    box-shadow:0 12px 30px rgba(15,35,63,0.08);
}
.sidebar .sidebar-widget + .sidebar-widget{
    margin-top:24px;
}
.sidebar .search-box .form-group{
    border:none;
    padding:0;
}
.sidebar .search-box input[type="search"]{
    border-radius:12px;
    background:#f8fafc;
    border:1px solid #dbe3f0;
}
.sidebar .search-box button{
    border-radius:12px;
    padding:10px 16px;
}
.sidebar-title-two h5{
    margin-bottom:18px;
}
.read-time{
    bottom:18px;
    right:18px;
    background:rgba(10,42,102,0.82);
    font-size:12px;
    font-weight:600;
    letter-spacing:0.2px;
}
.featured-post .featured-badge{
    top:18px;
    right:18px;
    padding:6px 14px;
    font-size:11px;
    letter-spacing:0.5px;
}

@media (max-width:991px){
    .news-block-two .inner-box{
        border-radius:18px;
    }
    .news-block-two .inner-box .lower-content{
        padding:28px 24px 26px;
    }
    .news-block-two .inner-box .category{
        left:24px;
    }
    .news-block-two .inner-box .author-box{
        right:24px;
        top:-40px;
    }
    .news-block-two .inner-box h3{
        font-size:21px !important;
    }
}

@media (max-width:575px){
    .news-block-two .inner-box .category{
        position:static;
        transform:none;
        margin-bottom:14px;
    }
    .news-block-two .inner-box .author-box{
        position:static;
        margin-bottom:18px;
        padding:10px 14px;
        display:flex;
        align-items:center;
        gap:12px;
        transform:none;
    }
    .news-block-two .inner-box .author-box .author-image{
        position:static;
        transform:none;
    }
}

/* Blog pagination (blog_main) */
.styled-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
}
.styled-pagination li{
    margin:0 !important;
}
.styled-pagination .page-numbers{
    width:50px;
    height:50px;
    min-width:50px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:16px;
    line-height:1;
    border:2px solid #eaeaea;
    background:#ffffff;
    color:var(--text-color, #6c6c6c);
    border-radius:0;
    transition:all 250ms ease;
    text-decoration:none;
}
.styled-pagination a.page-numbers:hover,
.styled-pagination a.page-numbers:focus-visible{
    border-color:var(--main-color-two, #0a2a66);
    background-color:rgba(10, 42, 102, 0.08);
    color:var(--dark-color, #111827);
    outline:none;
}
.styled-pagination .page-numbers.current,
.styled-pagination a.page-numbers.active{
    border-color:#f6b26b;
    background-color:#ffe7c2;
    color:var(--dark-color, #111827);
}
