/*!

Theme Name: teach89_theme

Theme URI: http://underscores.me/

Author: Underscores.me

Author URI: http://underscores.me/

Description: Description

Version: 1.0.0

Tested up to: 5.4

Requires PHP: 5.6

License: GNU General Public License v2 or later

License URI: LICENSE

Text Domain: teach89_theme

Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready



This theme, like WordPress, is licensed under the GPL.

Use it to make something cool, have fun, and share what you've learned.



teach89_theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.

Underscores is distributed under the terms of the GNU GPL v2 or later.



Normalizing styles have been helped along thanks to the fine work of

Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/

*/



/*--------------------------------------------------------------

>>> TABLE OF CONTENTS:

----------------------------------------------------------------

# Generic

	- Normalize

	- Box sizing

# Base

	- Typography

	- Elements

	- Links

	- Forms

## Layouts

# Components

	- Navigation

	- Posts and pages

	- Comments

	- Widgets

	- Media

	- Captions

	- Galleries

# plugins

	- Jetpack infinite scroll

# Utilities

	- Accessibility

	- Alignments



--------------------------------------------------------------*/



/*--------------------------------------------------------------

# Generic

--------------------------------------------------------------*/



/* Normalize

--------------------------------------------- */



/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */



/* Document

	 ========================================================================== */



/**

 * 1. Correct the line height in all browsers.

 * 2. Prevent adjustments of font size after orientation changes in iOS.

 */

/* ==========================================
   BLOG SECTION
========================================== */

.insights-blog-section {
    background-color: #f7f9fc;
    padding: 70px 0;
}


.insights-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}


.blog-grid-row {
    display: grid;
    grid-template-columns: 2fr 380px;
    gap: 30px;
    align-items: start;
}


.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================================
   BLOG CARD
========================================== */

.insights-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease-in-out;
    height: 100%;
}

.insights-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: block;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insights-card:hover .card-image {
    transform: scale(1.05);
}


.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    font-size: 14px;
    font-weight: 600;
    color: #1a6fa8;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.card-title {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.card-title a {
    color: #0a2540;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-title a:hover {
    color: #1a6fa8;
}

.card-excerpt {
    margin-bottom: 20px;
    flex: 1;
}

.card-excerpt p {
    margin: 0;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.7;
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a6fa8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-read-more:hover {
    color: #0d4f7c;
    gap: 12px;
}

.card-read-more svg {
    transition: transform 0.3s ease;
}

.card-read-more:hover svg {
    transform: translateX(4px);
}


.insights-sidebar {
    position: sticky;
    top: 30px;
}


.insights-sidebar .widget,
.insights-sidebar .sidebar-widget {
    background: #ffffff;
    padding: 24px;
    border-radius: 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}


.insights-sidebar .widget-title,
.insights-sidebar h2.widget-title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0a2540;
    border-bottom: 2px solid #0a2540;
}

/* ==========================================
   SEARCH FORM
========================================== */

.insights-sidebar .search-form {
    display: flex;
	width: 100%;
}
.insights-sidebar .search-form label {
    flex-grow: 1;
}
.insights-sidebar .search-field {
    width: 100%;
    height: 48px;
    border: 1px solid #dce3ea;
    border-right: 0;
    padding: 0 15px;
    border-radius: 0;
    outline: none;
    font-size: 14px;
}

.insights-sidebar .search-field:focus {
    border-color: #1a6fa8;
}

.insights-sidebar .search-submit {
    border: 0;
    background: var(--dark-blue);
    color: #ffffff;
    padding: 0 20px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.insights-sidebar .search-submit:hover {
    background: #0d4f7c;
}

/* ==========================================
   SIDEBAR LIST
========================================== */

.insights-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.insights-sidebar ul li {
    padding: 12px 0;
    border-bottom: 1px solid #e6edf3;
}

.insights-sidebar ul li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.insights-sidebar ul li a {
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.insights-sidebar ul li a:hover,.insights-sidebar ul li.active a {
    color: #1a6fa8;
}

.insights-sidebar .post-date {
    display: block;
    font-size: 13px;
    color: #718096;
    margin-top: 4px;
}

/* ==========================================
   PAGINATION
========================================== */

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

.insights-pagination .page-numbers {
    width: 42px;
    height: 42px;
    border-radius: 0;
    border: 1px solid #dce3ea;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0a2540;
    font-weight: 600;
    background: #ffffff;
    transition: all 0.3s ease;
}

.insights-pagination .page-numbers:hover,
.insights-pagination .page-numbers.current {
    background: #1a6fa8;
    color: #ffffff;
    border-color: #1a6fa8;
}

/* ==========================================
   NO POSTS
========================================== */

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 16px;
}

/* ==========================================
   LAPTOP
========================================== */


/* =========================================
   WHAT SECTION
========================================= */

.what-section {
    padding: 80px 0;
    background: #f7f9fc;
}

/* =========================================
   CONTAINER
========================================= */

.what-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   ROW
========================================= */

.what-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* =========================================
   CARD
========================================= */

.what-card {
    width: calc(33.333% - 20px);
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.what-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    opacity: 1;
}

/* =========================================
   IMAGE
========================================= */

.what-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.what-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

.what-card:hover .what-image img {
    transform: scale(1.05);
}

/* =========================================
   CONTENT
========================================= */

.what-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.what-title {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 16px;
    color: #0a2540;
}

.what-text {
    font-size: 15px;
    line-height: 1.7;
    color: #2d3748;
    margin: 0 0 24px;
    flex: 1;
}

/* =========================================
   BUTTON
========================================= */

.what-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a6fa8;
    transition: all 0.3s ease;
}

.what-card:hover .what-btn {
    gap: 12px;
    color: #0d4f7c;
}

.what-btn svg {
    transition: transform 0.3s ease;
}

.what-card:hover .what-btn svg {
    transform: translateX(4px);
}

/* =========================================
   LARGE TABLET
========================================= */

@media (max-width: 1199px) {

    .what-card {
        width: calc(50% - 15px);
    }

    .what-title {
        font-size: 22px;
    }

}

/* =========================================
   TABLET
========================================= */

@media (max-width: 767px) {

    .what-section {
        padding: 60px 0;
    }

    .what-container {
        padding: 0 16px;
    }

    .what-row {
        gap: 20px;
    }

    .what-card {
        width: 100%;
    }

    .what-content {
        padding: 22px;
    }

    .what-title {
        font-size: 20px;
    }

    .what-text {
        font-size: 14px;
    }
}


@media (max-width: 1199px) {

    .blog-grid-row {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .card-title {
        font-size: 22px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

    .blog-grid-row {
        grid-template-columns: 1fr;
    }

    .insights-sidebar {
        position: relative;
        top: 0;
    }

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .insights-blog-section {
        padding: 50px 0;
    }

    .insights-container {
        padding: 0 15px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-body {
        padding: 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-excerpt p {
        font-size: 14px;
    }

    .insights-sidebar .widget,
    .insights-sidebar .sidebar-widget {
        padding: 20px;
    }

    .insights-pagination {
        margin-top: 35px;
    }

    .insights-pagination .page-numbers {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}
