/* Custom Fixes for ResearchPubX Homepage */

/* Section Title Improvements */
.sec-title {
    margin-bottom: 50px;
}

.sec-title .top-title {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.sec-title .top-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #047857 100%);
}

.sec-title.centred .top-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.sec-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.sec-title p {
    font-size: 17px;
    color: #7f8c8d;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Padding */
.service-section {
    padding: 90px 0;
}

.sec-pad {
    padding: 90px 0;
}

.intro-section {
    padding: 50px 0;
}

.banner-section {
    margin-bottom: 0;
}

/* Background Colors */
.bg-color-1 {
    background: #f8f9fa;
}

/* Intro Section Enhancement */
.intro-section .inner-box {
    padding: 35px 40px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.intro-section .inner h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 26px;
    font-weight: 700;
}

.intro-section .inner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.intro-section .btn-box .theme-btn {
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 8px;
}

/* Indexing/Clients Section */
.clients-section {
    padding: 80px 0;
    background: #fff;
}

.clients-carousel .clients-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.clients-carousel .clients-logo-box:hover {
    transform: scale(1.05);
}

.clients-carousel .clients-logo-box img {
    max-height: 80px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.clients-carousel .clients-logo-box:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* Google Translate Fixes - Prevent page refresh and layout shift */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
.goog-te-banner-frame {
    display: none !important;
}
body {
    top: 0px !important;
    position: static !important;
}
#google_translate_element {
    padding: 0;
}
.goog-te-gadget {
    font-family: inherit !important;
    font-size: 12px !important;
}
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
}
.goog-te-gadget-simple .goog-te-menu-value span {
    color: #fff !important;
}
.goog-te-gadget-icon {
    display: none !important;
}
.goog-te-gadget-simple .goog-te-menu-value {
    color: #fff !important;
}

/* Hide Google Translate notification bar completely */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
div#goog-gt- {
    display: none !important;
    visibility: hidden !important;
}

/* Prevent body top offset from Google Translate */
body.translated {
    top: 0 !important;
}

/* Override any inline styles from Google Translate */
body[style*="top"] {
    top: 0 !important;
}

/* Subject Category Wrapper */

.subject-category-wrapper:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.subject-header {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.subject-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.subject-icon {
    width: 70px;
    height: 70px;
    margin-right: 25px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.subject-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.subject-header h3 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.subject-header h3 a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.subject-header h3 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}

.subject-header h3 a:hover::after {
    width: 100%;
}

/* Journal Card Improvements */
.service-block {
    margin-bottom: 30px;
}

.service-block-one {
    height: 100%;
}

.service-block-one .inner-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.service-block-one:hover .inner-box {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.service-block-one .image-box {
    margin-bottom: 0;
    overflow: hidden;
    height: 220px;
    position: relative;
}

.service-block-one .image-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 100%);
    transition: opacity 0.3s ease;
}

.service-block-one:hover .image-box::after {
    opacity: 0;
}

.service-block-one .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-block-one:hover .image-box img {
    transform: scale(1.08);
}

.service-block-one .lower-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.service-block-one .icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.service-block-one .icon-box i {
    font-size: 28px;
    color: #fff;
}

.service-block-one .lower-content h4 {
    min-height: 60px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.service-block-one .lower-content h4 a {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.service-block-one:hover .lower-content h4 a {
    color: #10b981;
}

/* Journal Meta Badges */
.journal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.issn-badge,
.new-badge,
.frequency-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.issn-badge {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #fff;
}

.new-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.frequency-badge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

/* Journal Contact */
.journal-contact {
    margin-bottom: 18px;
    font-size: 13px;
    color: #7f8c8d;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.journal-contact a {
    color: #0ba360;
    text-decoration: none;
    word-break: break-all;
    font-weight: 500;
    transition: color 0.3s ease;
}

.journal-contact a:hover {
    color: #10b981;
}

/* Button Box for Journals */
.btn-box-journal {
    margin-top: auto;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-box-journal .theme-btn {
    flex: 1;
    min-width: 130px;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-box-journal .theme-btn.style-one {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border: none;
    color: #fff;
}

.btn-box-journal .theme-btn.style-one:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-box-journal .theme-btn.style-two {
    border: 2px solid #10b981;
    color: #10b981;
}

.btn-box-journal .theme-btn.style-two:hover {
    background: #10b981;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.coming-soon-text {
    display: block;
    text-align: center;
    padding: 12px;
    color: #95a5a6;
    font-style: italic;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Feature Section Enhancements */
.feature-section {
    padding: 80px 0;
}

.feature-block-one {
    display: block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.feature-block-one:hover {
    transform: translateY(-8px);
}

.feature-block-one .inner-box {
    padding: 40px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.feature-block-one:hover .inner-box {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.feature-block-one .icon-box {
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.feature-block-one .icon-box i {
    font-size: 48px;
    color: #10b981;
    transition: all 0.3s ease;
}

.feature-block-one:hover .icon-box i {
    color: #fff;
    transform: scale(1.1);
}

.feature-block-one h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.feature-block-one:hover h4 {
    color: #fff;
}

.feature-block-one p {
    color: #7f8c8d;
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s ease;
}

.feature-block-one:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-section .inner-container {
    background: transparent;
    padding: 0;
}

/* Team Section Improvements */
.team-section {
    padding: 80px 0;
}

.team-block-one {
    height: 100%;
}

.team-block-one .inner-box {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.team-block-one:hover .inner-box {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.team-block-one .image-box {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-block-one .image-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.team-block-one .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-block-one:hover .image-box img {
    transform: scale(1.08);
}

.team-block-one .lower-content {
    padding: 30px 25px;
}

.team-block-one .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

.team-block-one h4 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.lower-content .icon-box i.fas.fa-user,i.fas.fa-edit,i.fa.fa-pencil {
    font-size: 20px;
    margin-right: 5px;
}



.team-block-one p {
    color: #7f8c8d;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    z-index: 1;
}

.cta-section .auto-container {
    position: relative;
    z-index: 2;
}

.cta-section .inner-box {
    padding: 40px 0;
}

.cta-section .sec-title.light h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 38px;
}

.cta-section .sec-title.light p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-section .single-item {
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    text-align: center;
}

.cta-section .single-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-section .single-item .icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cta-section .single-item:hover .icon-box {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cta-section .single-item .icon-box i {
    font-size: 32px;
    color: #fff;
}

.cta-section .single-item h4 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section .single-item p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    line-height: 1.7;
}

.cta-section .single-item .theme-btn.style-two {
    color: #10b981;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-section .single-item .theme-btn.style-two:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .subject-header h3 {
        font-size: 28px;
    }
    
    .subject-icon {
        width: 65px;
        height: 65px;
    }
    
    .sec-title h2 {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .subject-header {
        flex-direction: row;
        text-align: left;
        padding: 20px 25px;
    }
    
    .subject-icon {
        margin-right: 20px;
        margin-bottom: 0;
        width: 60px;
        height: 60px;
    }
    
    .subject-header h3 {
        font-size: 24px;
    }
    
    .btn-box-journal {
        flex-direction: row;
    }
    
    .btn-box-journal .theme-btn {
        min-width: 110px;
    }
    
    .service-block-one .lower-content {
        padding: 20px;
    }
    
    .service-block-one .lower-content h4 {
        font-size: 18px;
        min-height: auto;
    }
    
    .sec-title h2 {
        font-size: 34px;
    }
    
    .sec-pad {
        padding: 70px 0;
    }
    
    .service-section {
        padding: 70px 0;
    }
    
    .intro-section .inner-box {
        padding: 30px;
    }
    
    .intro-section .inner h3 {
        font-size: 24px;
    }
    
    .cta-section .sec-title.light h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .subject-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .subject-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .subject-header h3 {
        font-size: 22px;
    }
    
    .service-block-one .image-box {
        height: 200px;
    }
    
    .service-block-one .lower-content h4 {
        font-size: 18px;
        min-height: auto;
    }
    
    .btn-box-journal {
        flex-direction: column;
    }
    
    .btn-box-journal .theme-btn {
        width: 100%;
        min-width: 100%;
    }
    
    .journal-meta {
        justify-content: center;
    }
    
    .sec-title h2 {
        font-size: 30px;
    }
    
    .sec-title p {
        font-size: 16px;
    }
    
    .sec-pad {
        padding: 60px 0;
    }
    
    .service-section {
        padding: 60px 0;
    }
    
    .feature-section {
        padding: 60px 0;
    }
    
    .team-section {
        padding: 60px 0;
    }
    
    .clients-section {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .intro-section {
        padding: 40px 0;
    }
    
    .intro-section .inner-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .intro-section .inner.pull-left {
        float: none !important;
        margin-bottom: 20px;
    }
    
    .intro-section .btn-box.pull-right {
        float: none !important;
    }
    
    .intro-section .inner h3 {
        font-size: 22px;
    }
    
    .cta-section .sec-title.light h2 {
        font-size: 28px;
    }
    
    .cta-section .sec-title.light p {
        font-size: 16px;
    }
    
    .cta-section .single-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .subject-category-wrapper {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .subject-header {
        padding: 20px 15px;
    }
    
    .subject-header h3 {
        font-size: 20px;
    }
    
    .subject-icon {
        width: 55px;
        height: 55px;
    }
    
    .service-block-one .lower-content {
        padding: 18px;
    }
    
    .service-block-one .icon-box {
        width: 50px;
        height: 50px;
    }
    
    .service-block-one .icon-box i {
        font-size: 24px;
    }
    
    .service-block-one .lower-content h4 {
        font-size: 17px;
        min-height: auto;
    }
    
    .sec-title h2 {
        font-size: 26px;
    }
    
    .sec-title .top-title {
        font-size: 14px;
    }
    
    .sec-pad {
        padding: 50px 0;
    }
    
    .service-section {
        padding: 50px 0;
    }
    
    .feature-section {
        padding: 50px 0;
    }
    
    .team-section {
        padding: 50px 0;
    }
    
    .clients-section {
        padding: 50px 0;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .intro-section .inner-box {
        padding: 20px;
    }
    
    .intro-section .inner h3 {
        font-size: 20px;
    }
    
    .intro-section .inner p {
        font-size: 15px;
    }
    
    .feature-block-one .inner-box {
        padding: 30px 20px;
    }
    
    .feature-block-one h4 {
        font-size: 20px;
    }
    
    .team-block-one .lower-content {
        padding: 25px 20px;
    }
    
    .team-block-one h4 {
        font-size: 20px;
    }
    
    .cta-section .sec-title.light h2 {
        font-size: 24px;
    }
    
    .cta-section .single-item h4 {
        font-size: 20px;
    }
}

/* Loading States */
.image-box img[src=""] {
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Pattern Layer Fixes */
.pattern-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

/* Ensure content is above pattern */
.auto-container {
    position: relative;
    z-index: 1;
}
