/* ===============================
   BLOG PAGE STYLES
   =============================== */

:root {
    --primary-color: #00B4D8;
    --primary-light: #90E0EF;
    --primary-dark: #0077B6;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 180, 216, 0.15);
    --shadow-hover: 0 15px 40px rgba(0, 180, 216, 0.25);
}

/* ===============================
   HERO SECTION
   =============================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #e0f7ff 50%, #90E0EF 100%);
    padding: 100px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(0, 180, 216, 0.15);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    animation: slideDownFadeIn 0.8s ease 0.1s both;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.2;
    animation: slideDownFadeIn 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
    animation: slideDownFadeIn 0.8s ease 0.3s both;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.15;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--primary-light);
    border-radius: 50%;
    bottom: 10%;
    left: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

/* ===============================
   SEARCH SECTION
   =============================== */

.blog-search-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border-radius: 50px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background-color: var(--white);
    font-size: 16px;
    color: var(--text-color);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 15px 25px;
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

/* ===============================
   BLOG SECTION
   =============================== */

.blog-section {
    padding: 60px 20px;
    background-color: var(--white);
}

.blog-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* ===============================
   FEATURED ARTICLE
   =============================== */

.featured-article {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease;
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-date,
.article-author {
    font-size: 13px;
    color: var(--text-light);
}

.article-category {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.featured-article h2 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.featured-article p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 12px;
}

/* ===============================
   ARTICLES GRID
   =============================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease 0.2s both;
}

.article-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.article-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-body .article-meta {
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
    flex-grow: 1;
}

.article-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    width: fit-content;
}

.read-link:hover {
    color: var(--primary-dark);
}

/* ===============================
   PAGINATION
   =============================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination-info {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 15px;
}

/* ===============================
   SIDEBAR
   =============================== */

.blog-sidebar {
    animation: fadeInRight 0.8s ease 0.2s both;
}

.sidebar-widget {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.category-list .count {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
}

.recent-post-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 13px;
    margin-bottom: 5px;
}

.recent-post-info h4 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-info h4 a:hover {
    color: var(--primary-color);
}

.recent-post-info .post-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--primary-light);
    border-radius: 8px 0 0 8px;
    font-size: 13px;
    background-color: var(--white);
}

.newsletter-form input::placeholder {
    color: var(--text-light);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud .tag {
    display: inline-block;
    background-color: var(--white);
    border: 2px solid var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-cloud .tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===============================
   CTA SECTION
   =============================== */

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===============================
   ANIMATIONS
   =============================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 1024px) {
    .blog-wrapper {
        grid-template-columns: 1fr;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 250px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
        min-height: 300px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .blog-section {
        padding: 40px 20px;
    }

    .blog-wrapper {
        gap: 30px;
    }

    .featured-article {
        margin-bottom: 40px;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-article h2 {
        font-size: 22px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .articles-grid {
        margin-bottom: 30px;
    }

    .article-image {
        height: 180px;
    }

    .article-card h3 {
        font-size: 16px;
    }

    .article-card p {
        font-size: 13px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-info {
        width: 100%;
        order: 3;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-article h2 {
        font-size: 18px;
    }

    .article-body {
        padding: 20px 15px;
    }

    .article-card h3 {
        font-size: 15px;
    }

    .article-card p {
        font-size: 12px;
    }

    .article-image {
        height: 150px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .widget-title {
        font-size: 16px;
    }

    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .shape-1 {
        width: 150px;
        height: 150px;
    }

    .shape-2 {
        width: 100px;
        height: 100px;
    }

    .pagination {
        gap: 5px;
    }

    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .pagination-info {
        font-size: 12px;
    }
}
