/*
Theme Name: Scholary Child
Theme URI:https://wpdemo.zcubethemes.com/scholary
Description: Scholary - University, School and Coaching WordPress Theme.
Text Domain: scholary 
Author:       zcube
Author URI: https://themeforest.net/user/zcubedesign
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Template:     scholary
Version:      1.0
*/

/* Theme customization starts here
  -------------------------------------------------------------- */

/* BTN toggle */
.offcanvas-menu form button {
    background: #0a5ba7;
}

/* Widget bài viết gần đây */
.latest-posts-grid {
    display: grid;
    grid-gap: 30px;
}

.latest-posts-grid.columns-1 {
    grid-template-columns: 1fr;
}

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

.latest-posts-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.latest-posts-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .latest-posts-grid.columns-3,
    .latest-posts-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-posts-grid.columns-2,
    .latest-posts-grid.columns-3,
    .latest-posts-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .latest-posts-grid {
        grid-gap: 20px;
    }
}

.latest-post-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    height: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 10px #0d6efd1c;
    transition: transform 0.3s ease;
}

.latest-post-item:hover {
    transform: translateY(-5px);
}

.latest-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.latest-post-content {
    flex: 1;
    padding: 15px;
}

.latest-post-read-more-wrapper {
    padding: 15px;
    margin-top: auto;
    text-align: right;
}

.latest-post-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.latest-post-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.latest-post-excerpt {
    margin-bottom: 15px;
}

.latest-post-read-more {
    display: inline-block;
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
}

.latest-posts-footer {
    text-align: center;
    margin-top: 30px;
}

.latest-posts-all-button {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.latest-posts-all-button:hover {
    background-color: #78b3eb;
    color: #063c6f;
}

/* Widget theo thể loại */
.category-posts-grid {
    display: grid;
    grid-gap: 30px;
}

.category-post-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    height: 100%;
}

.category-post-thumbnail img {
    width: 100%;
    height: auto;
}

.category-post-content {
    flex: 1;
    padding: 15px;
}

.category-post-categories {
    margin-bottom: 10px;
}

.category-post-categories .post-category {
    background-color: #f8f8f8;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
    color: #666;
}

.category-post-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.category-post-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.category-post-read-more-wrapper {
    padding: 15px;
    margin-top: auto;
    text-align: right;
}

.category-post-read-more {
    display: inline-block;
    color: #0066cc;
    font-weight: 500;
}

@media (max-width: 992px) {
    .category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-posts-grid {
        grid-template-columns: 1fr;
    }
}

.category-posts-view-all-wrapper {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

.category-posts-view-all {
    display: inline-block;
    padding: 10px 20px;
    background-color: #008060;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-posts-view-all:hover {
    background-color: #004C3F;
    color: #fff;
}

.event-item li strong {
    color: #0a5ba7;
}

/* Tin tức theo dòng */
.services-box {
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 30px;
}

/* Trang Giới Thiệu */
.second-about {
    margin-top: 30px;
}

.course-box a,
.services-box a,
.team-box a {
    color: #0a5ba7;
}

.news-card-title a {
    color: #0a5ba7;
    text-decoration: none;
}

.offcanvas-menu ul li a {
    color: #333;
}

.offcanvas-menu ul li a:hover {
    color: #0a5ba7;
}

.offcanvas-menu {
    background: #fff;
}

.offcanvas-menu.active {
    z-index: 9999;
}

.menu-close i {
    color: #0a5ba7;
}

.offcanvas-menu form input {
    border: 1px solid #0a5ba7;
}



.breadcrumb-area {
    background: linear-gradient(135deg, #0a5ba7 0%, #4a90e2 100%);
    position: relative;
    overflow: hidden;
}

.breadcrumb-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.breadcrumb-area .container {
    position: relative;
    z-index: 2;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .breadcrumb-area {
        padding: 60px 0 40px;
    }
}

.blog-deatails-box02 {
    margin-top: 30px;
}

.breadcrumb-title h2 {
    color: #fff;
    font-weight: 700;
}

 @media (max-width: 767.98px) {
    .copyright-wrap {
        font-size: 15px;
    }

    .copyright-wrap .row {
        flex-direction: column;
    }

    .copyright-wrap .col-lg-6 {
        margin-bottom: 10px;
    }
     .footer-logo{
        display: none;
    }
    .layput22{
        padding-top:12px;
    }
}

.footer-logo a img {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 180px;
    height: auto;
}

.footer-widget a:hover {
    text-decoration: underline !important;
}

.footer-widget i,
h5 i {
    color: #ffffff;
    margin-right: 8px;
}

.footer-widget li i {
    width: 20px;
    text-align: center;
}



/* ========================================
   CONTACT FORM STYLING
======================================== */

/* Form Container */
.contact-form-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px 0;
}

/* Form Fields */
.contact-field {
    margin-bottom: 25px !important;
}

.contact-field label {
    display: block !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
}

.contact-field label::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
}

/* Input Fields Styling */
.wpcf7-form-control {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid #e8ecf4 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    outline: none !important;
    color: #1a202c !important;
    font-weight: 500 !important;
}

.wpcf7-form-control:focus {
    border-color: #0a5ba7 !important;
    box-shadow: 0 0 0 3px rgba(10, 91, 167, 0.1) !important;
    background: #fff !important;
}

.wpcf7-form-control:hover {
    border-color: #c5d2e8 !important;
}

/* Placeholder Styling */
.wpcf7-form-control::placeholder {
    color: #4a5568 !important;
    font-style: italic !important;
    opacity: 0.9 !important;
    font-weight: 400 !important;
}

/* Textarea Specific */
.wpcf7-textarea {
    min-height: 120px !important;
    resize: vertical !important;
    font-family: inherit !important;
    line-height: 1.6 !important;
    color: #1a202c !important;
    font-weight: 500 !important;
}

/* Required Field Indicator */
.contact-field label:has(+ .wpcf7-form-control-wrap [aria-required="true"])::before,
.contact-field p:has(.wpcf7-validates-as-required) label::after {
    content: "*" !important;
    color: #dc2626 !important;
    margin-left: 5px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
}

/* Button Styling */
.slider-btn {
    text-align: center !important;
    margin-top: 30px !important;
}

.slider-btn button,
.slider-btn .btn {
    background: linear-gradient(135deg, #0a5ba7 0%, #4a90e2 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(10, 91, 167, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    min-width: 200px !important;
    height: auto !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.slider-btn button:hover,
.slider-btn .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(10, 91, 167, 0.4) !important;
    background: linear-gradient(135deg, #094a93 0%, #3d7bc6 100%) !important;
}

.slider-btn button:active,
.slider-btn .btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 5px 15px rgba(10, 91, 167, 0.3) !important;
}

.slider-btn button i {
    margin-left: 10px !important;
    transition: transform 0.3s ease !important;
}

.slider-btn button:hover i {
    transform: translateX(5px) !important;
}

/* Form Validation Styling */
.wpcf7-not-valid {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.wpcf7-validation-errors {
    background: #fed7d7 !important;
    border: 1px solid #feb2b2 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    color: #991b1b !important;
    font-weight: 600 !important;
}

.wpcf7-mail-sent-ok {
    background: #c6f6d5 !important;
    border: 1px solid #9ae6b4 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    color: #14532d !important;
    font-weight: 600 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-form-container {
        padding: 30px 25px;
    }
    
    .contact-field {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 25px 20px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .wpcf7-form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .slider-btn button,
    .slider-btn .btn {
        padding: 12px 30px;
        font-size: 15px;
        min-width: 180px;
    }
    
    .contact-field label {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .wpcf7-form-control {
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .slider-btn button,
    .slider-btn .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        min-width: auto;
    }
}

/* Focus States for Accessibility */
.wpcf7-form-control:focus-visible {
    outline: 2px solid #0a5ba7;
    outline-offset: 2px;
}

.slider-btn button:focus-visible,
.slider-btn .btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading State */
.wpcf7-spinner {
    visibility: visible !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #f3f3f3 !important;
    border-top: 2px solid #0a5ba7 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-left: 10px !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Animation */
.contact-field {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.contact-field:nth-child(1) { animation-delay: 0.1s; }
.contact-field:nth-child(2) { animation-delay: 0.2s; }
.contact-field:nth-child(3) { animation-delay: 0.3s; }
.contact-field:nth-child(4) { animation-delay: 0.4s; }
.contact-field:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-btn a:nth-child(2) {
    display: none !important;
}



/* Search Block Styling */
.wp-block-search__inside-wrapper {
    display: flex;
    align-items: stretch;
}

.wp-block-search__input {
    font-size: 12px !important;
    flex: 1;
    min-width: 0;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px 0 0 4px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.wp-block-search__button {
    font-size: 14px !important;
    flex: 1;
    min-width: 0;
    padding: 8px 12px !important;
    background-color: #0a5ba7 !important;
    color: #fff !important;
    border: 1px solid #0a5ba7 !important;
    border-radius: 0 4px 4px 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.wp-block-search__button:hover {
    background-color: #094a93 !important;
    border-color: #094a93 !important;
}

/* Đảm bảo input và button có chiều cao bằng nhau */
.wp-block-search__input,
.wp-block-search__button {
    height: 54px !important;
    box-sizing: border-box !important;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .wp-block-search__input,
    .wp-block-search__button {
        font-size: 14px !important;
        height: 46px !important;
        padding: 6px 10px !important;
    }
}



/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #000 !important;
    border: 2px solid #e1e5e9;
    color: #6c757d;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.pagination li a:hover {
    background-color: #0a5ba7;
    border-color: #0a5ba7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 91, 167, 0.3);
}

.pagination li.active a {
    background-color: #0a5ba7 !important;
    border-color: #0a5ba7 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(10, 91, 167, 0.4);
}


.pagination li.active a:hover {
    background-color: #094a93 !important;
    border-color: #094a93 !important;
}


/* Responsive */
@media (max-width: 576px) {
    .pagination li a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .pagination li {
        margin: 0 3px;
    }
}


    
    .bsingle__content .meta-info ul li:nth-child(3) {
    display:none;
    }
    .sidebar-widget #block-4 {
        display: none;
    }
    
    .second-about {
        display:none;
    }
.about-content strong {
    color:#0a5ba7;
}
.about-content3 li::before {
     color:#0a5ba7;
}
.blog-deatails-box span {
    font-size: 20px;
    padding-left: 10px;
}