/* CSS Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-size: 13pt; */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: hsl(35, 20%, 97%);
    color: hsl(20, 14%, 15%);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
    color: hsl(25, 50%, 35%);
}

/* ul, ol{padding-left:2rem;    } */

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.story-content {
    /* font-family: 'Crimson Text', serif; */
    color: hsl(20, 15%, 20%);
    line-height: 1.75;
    padding: 1.5rem;
}

article.story-content {
    padding: 1.5rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: hsl(25, 50%, 35%);
    color: hsl(35, 25%, 98%);
    box-shadow: 0 4px 20px -4px hsl(20, 14%, 15%, 0.1);
}

.btn-primary:hover {
    background-color: hsl(25, 50%, 30%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -8px hsl(20, 14%, 15%, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: hsl(20, 14%, 15%);
    border: 2px solid hsl(35, 12%, 88%);
}

.btn-outline:hover {
    background-color: hsl(35, 25%, 98%);
    border-color: hsl(25, 50%, 35%);
    color: hsl(25, 50%, 35%);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: hsl(35, 20%, 97%, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(35, 12%, 88%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(20, 14%, 15%);
    text-decoration: none;
    height: 100%;
}

.logo i {
    font-size: 2rem;
    color: hsl(25, 50%, 35%);
}

#logo,
#logo img {
    height: 95%;
}

.story-navigation {
    display: flex;
    justify-content: space-between;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: hsl(20, 14%, 15%);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: hsl(25, 50%, 35%);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: hsl(25, 50%, 35%);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn,
.mobile-menu-btn {
    background: none;
    border: 5px;
    color: hsl(20, 14%, 15%);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    padding-left: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;


    /* border-radius: 0 9px 9px 0;
    box-sizing: border-box; 
    border: 5px solid hsl(35, 12%, 88%);
    border-left: 0; */

}

.search-btn:hover,
.mobile-menu-btn:hover {
    background-color: hsl(35, 15%, 92%);
}

.search-btn-active {
    border-radius: 0 .5rem .5rem 0;
    /* box-sizing: border-box; */
    border: 5px solid hsl(35, 12%, 88%);
    border-left: 0;
}

/*
#formSearch:not([style*="display: none"])+.search-btn, /* Đối với anh em liền kề */
/*#formSearch:not([style*="display: none"])~.search-btn { /* Đối với tất cả anh em phía sau */
/*
    border-radius: 0 9px 9px 0;
    box-sizing: border-box;
    border: 5px solid hsl(35, 12%, 88%);
    border-left: 0;
}
*/

.mobile-menu-btn {
    display: block;
}

#search-form {
    position: relative;
    /* width: 100%; */
    z-index: 2;
}

#search-form input[type="submit"],
#formSearch input[type="submit"] {
    display: none;
}

#search-form input[type="text"],
#formSearch input[type="text"] {
    padding: 16px;
    width: 512px;
    height: 25px;
    line-height: 25px;
    border: none;
    outline: none;
    margin: 0;
    border-radius: 9px 0 0 9px;
    box-sizing: border-box;
    border: 5px solid hsl(35, 12%, 88%);
    border-right: 0;
}

#formSearch {
    display: none;
    position: absolute;
    /* top: 60px; */
    left: -512px;
    z-index: 100;
    /* background: hsl(20, 15%, 20%); */

}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid hsl(35, 12%, 88%);
}

.nav-mobile.active {
    display: flex;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-overlay {
    /* position: absolute; */
    inset: 0;
    background: linear-gradient(135deg, hsl(35, 25%, 95%), hsl(45, 35%, 92%));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: hsl(20, 14%, 15%);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title-accent {
    background: linear-gradient(135deg, hsl(45, 75%, 55%), hsl(45, 85%, 65%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(20, 10%, 50%);
    margin-bottom: 2rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-actions .btn {
    font-size: 1.125rem;
    padding: 1.5rem 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid hsl(25, 50%, 35%);
    border-radius: 1.25rem;
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 0.25rem;
    height: 0.75rem;
    background-color: hsl(25, 50%, 35%);
    border-radius: 0.125rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

/* Featured Stories */
.featured-stories {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(20, 14%, 15%);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    font-size: 1.25rem;
    color: hsl(20, 10%, 50%);
    max-width: 32rem;
    margin: 0 auto;
}

.stories-grid,
.stories-grid-small {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stories-grid-small {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stories-grid-small {
        grid-template-columns: repeat(5, 1fr);
    }
}

.story-card {
    background: linear-gradient(145deg, hsl(35, 25%, 98%), hsl(35, 20%, 96%));
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px -4px hsl(20, 14%, 15%, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid hsl(35, 12%, 88%, 0.5);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -12px hsl(25, 50%, 35%, 0.2);
}

.story-card.featured {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 768px) {
    .story-card.featured {
        grid-column: span 2;
        /* grid-row: span 2; */
    }
}

.story-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

article .story-image {
    height: 32rem;
}
.story-content .story-image {
    float: left;
}
.story-content .story-image img {
    width: 100%;
    height: auto;
    object-fit: none;
    transition: transform 0.3s ease;
    padding-right: 10px;
}

.story-card.featured .story-image {
    height: 16rem;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(0, 0%, 0%, 0.5), transparent);
}

.story-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: hsl(35, 20%, 97%, 0.9);
    color: hsl(20, 14%, 15%);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}


.stories-grid-small .story-content {
    padding: 1rem;
}

.story-card.featured .story-content {
    padding: 2rem;
}

.story-title {
    /* font-size: 1.125rem; */
    font-weight: 600;
    color: hsl(20, 14%, 15%);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stories-grid-small .story-title {
    font-size: 1rem;
}

.story-card.featured .story-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.story-excerpt {
    color: hsl(20, 10%, 50%);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card.featured .story-excerpt {
    font-size: 1rem;
}

.story-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.story-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: hsl(20, 10%, 50%);
}

.story-info span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.story-info i {
    font-size: 1rem;
}

/* Categories Section */
.categories {
    padding: 5rem 0;
    background-color: hsl(35, 15%, 92%, 0.3);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background: linear-gradient(145deg, hsl(35, 25%, 98%), hsl(35, 20%, 96%));
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px -4px hsl(20, 14%, 15%, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid hsl(35, 12%, 88%, 0.5);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -12px hsl(25, 50%, 35%, 0.2);
}

.category-header {
    /* height: 8rem; */
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem;
}

.category-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.pink-purple {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.blue-cyan {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.green-emerald {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.amber-orange {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.category-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.category-count {
    background-color: rgba(255, 255, 255, 0.9);
    color: hsl(20, 14%, 15%);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.category-content {
    padding: 1.5rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(20, 14%, 15%);
    margin-bottom: 0.5rem;
}

.category-description {
    color: hsl(20, 10%, 50%);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-link {
    display: flex;
    align-items: center;
    color: hsl(25, 50%, 35%);
    font-weight: 500;
    font-size: 0.875rem;
    gap: 0.25rem;
    transition: gap 0.3s ease;
}

.category-card:hover .category-link {
    gap: 0.5rem;
}

/* Footer */
.footer {
    background-color: hsl(25, 50%, 35%);
    color: hsl(35, 25%, 98%);
    padding: 4rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .logo {
    color: hsl(35, 25%, 98%);
    margin-bottom: 1rem;
}

.footer-brand .logo i {
    color: hsl(35, 25%, 98%);
}

.footer-description {
    color: hsl(35, 25%, 98%, 0.8);
    margin-bottom: 1.5rem;
    max-width: 28rem;
    line-height: 1.6;
}

.footer-love {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: hsl(35, 25%, 98%, 0.6);
}

.footer-love i {
    color: #ef4444;
}

.footer-links h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: hsl(35, 25%, 98%, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: hsl(35, 25%, 98%);
}

.footer-bottom {
    border-top: 1px solid hsl(35, 25%, 98%, 0.2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    color: hsl(35, 25%, 98%, 0.6);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: hsl(35, 25%, 98%, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: hsl(35, 25%, 98%);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 280px;
    height: calc(100vh - 80px);
    background: hsl(35, 20%, 97%);
    border-right: 1px solid hsl(25, 15%, 85%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 40;
    overflow-y: auto;
    padding: 1.5rem 0;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-content {
    padding: 0 1rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(25, 15%, 45%);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding: 0 0.75rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: hsl(20, 14%, 15%);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.sidebar-nav-link:hover {
    background: hsl(35, 30%, 90%);
    color: hsl(25, 50%, 35%);
}

.sidebar-nav-link.active {
    background: hsl(25, 50%, 35%);
    color: hsl(35, 25%, 98%);
}

.sidebar-nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.sidebar-toggle {
    position: fixed;
    top: 95px;
    left: 1rem;
    z-index: 50;
    background: hsl(35, 20%, 97%);
    border: 1px solid hsl(25, 15%, 85%);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    background: hsl(35, 30%, 90%);
    border-color: hsl(25, 50%, 35%);
}

.sidebar-toggle i {
    font-size: 1rem;
    color: hsl(20, 14%, 15%);
}

.content-with-sidebar {
    transition: margin-left 0.3s ease;
}

.content-with-sidebar.shifted {
    margin-left: 280px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .sidebar-toggle {
        top: 85px;
    }

    .content-with-sidebar.shifted {
        margin-left: 0;
    }

    #search-form input[type="text"],
    #formSearch input[type="text"] {
        width: 256px;
    }

    #formSearch {
        left: -256px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40%,
    43% {
        transform: translateX(-50%) translateY(-15px);
    }

    70% {
        transform: translateX(-50%) translateY(-7px);
    }

    90% {
        transform: translateX(-50%) translateY(-2px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.7s ease-out;
}

/* Animation delays cho các elements */
.fade-in:nth-child(1) {
    animation-delay: 0s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.6s;
}

/* Responsive improvements */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-card.featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .story-card.featured .story-image {
        height: 12rem;
    }

    .story-card.featured .story-content {
        padding: 1.5rem;
    }

    .story-card.featured .story-title {
        font-size: 1.125rem;
    }
}

.notfound {
    text-align: center;
    padding: 100px 20px;
}

.notfound h1 {
    font-size: 72px;
    margin-bottom: 20px;
}

.notfound p {
    font-size: 20px;
}

.notfound a {
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    color: #333;
}

.pagination {
    margin-bottom: 2rem;
    clear: both;
    width: 100%;
}

.pagination li {
    display: block;
    float: left;
    margin-left: .0652rem;
    padding: 0.25rem .625rem;
    background-color: #ffffff;
    cursor: pointer;
    border: 1px #eeeeee solid;
    text-align: center;
    font-size: .875rem;

}

.pagination li.current,
.pagination li.active {
    background-color: hsl(25, 50%, 35%);
    border-color: hsl(25, 50%, 20%);
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.pagination a {
    color: #1d1d1d
}

.pagination li.active a {
    color: #ffffff
}

.related-item {
    display: block;
}


/** gg tìm kiếm */
.cse .gsc-search-button input.gsc-search-button-v2,
input.gsc-search-button-v2 {
    width: auto !important;
    height: 28px !important;
}

.gsc-search-box-tools .gsc-search-box .gsc-input {
    margin-top: -3px !important;
    background-color: inherit !important;
}

.gsc-control-cse {
    background-color: inherit !important;
    border: 0 !important;
    margin-top: 20px
}

.ads-bottom {
    display: none
}

ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}


/** TABS */
.tabs {
	position: relative;
	z-index: 1;
}

.tabs .tab {
	position: relative;
	display: inline-block;
	font-size: 1.14em;
	padding: 0 15px;
	text-align: center;
	border: 1px solid;
	margin-bottom: -1px;
	line-height: 40px;
	margin-right: -1px;
	color: inherit;
}

.tabs .tab:first-child {
	-webkit-border-radius: 8px 0 0;
	-moz-border-radius: 8px 0 0;
	border-radius: 8px 0 0;
}

.tabs .tab:last-child {
	-webkit-border-radius: 0 8px 0 0;
	-moz-border-radius: 0 8px 0 0;
	border-radius: 0 8px 0 0;
}

.tab_items {
	position: relative;
	z-index: 2;
	font-size: 0.928em;
	padding: 15px;
	border: 1px solid;
	-webkit-border-radius: 0 8px 8px 8px;
	-moz-border-radius: 0 8px 8px 8px;
	border-radius: 0 8px 8px 8px;
}

.tab_item>*:last-child {
	margin-bottom: 0;
}

.tab_widget.type-vertical {
	display: table;
	width: 100%;
}

.tab_widget.type-vertical>div {
	display: table-cell;
}

.tab_widget.type-vertical>.tabs {
	white-space: nowrap;
}

.tab_widget.type-vertical>.tabs a {
	display: block;
	margin-bottom: 0;
	border-top-width: 0;
}

.tab_widget.type-vertical>.tabs a:first-child {
	border-top-width: 1px;
	border-top-style: solid;
}

.tab_widget.type-vertical>.tabs {
	vertical-align: top;
}

.tab_widget.type-vertical>.tab_items {
	width: 100%;
	-webkit-border-radius: 0 8px 8px 0;
	-moz-border-radius: 0 8px 8px 0;
	border-radius: 0 8px 8px 0;
}

.tab_widget.type-vertical .tabs .tab:last-child {
	-webkit-border-radius: 0 0 0 8px;
	-moz-border-radius: 0 0 0 8px;
	border-radius: 0 0 0 8px;
}

@media screen and (max-width:767px) {
	.tabs .tab {
		width: 100%;
		box-sizing: border-box;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		-ms-box-sizing: border-box;
	}

	.tab_widget:not(.type-vertical) .tabs .tab:first-child {
		-webkit-border-radius: 8px 8px 0 0 !important;
		-moz-border-radius: 8px 8px 0 0 !important;
		border-radius: 8px 8px 0 0 !important;
	}

	.tab_widget:not(.type-vertical) .tabs .tab:last-child {
		-webkit-border-radius: 0;
		-moz-border-radius: 0;
		border-radius: 0;
	}

	.tab_widget:not(.type-vertical) .tab_items {
		-webkit-border-radius: 0 0 8px 8px;
		-moz-border-radius: 0 0 8px 8px;
		border-radius: 0 0 8px 8px;
	}
}