/* Margin and Padding Utilities */
.mt_5{margin-top:5px}.mt_10{margin-top:10px}.mt_15{margin-top:15px}.mt_20{margin-top:20px}.mt_25{margin-top:25px}.mt_30{margin-top:30px}.mt_35{margin-top:35px}.mt_40{margin-top:40px}.mt_45{margin-top:45px}.mt_50{margin-top:50px}.mb_5{margin-bottom:5px}.mb_10{margin-bottom:10px}.mb_15{margin-bottom:15px}.mb_20{margin-bottom:20px}.mb_25{margin-bottom:25px}.mb_30{margin-bottom:30px}.mb_40{margin-bottom:40px}.mb_50{margin-bottom:50px}.mr_10{margin-right:10px}.ml_10{margin-left:10px}.pt_20{padding-top:20px}.pt_50{padding-top:50px}.pt_80{padding-top:80px}.pb_100{padding-bottom:100px}

/* Root Variables */
:root {
    --primary-color: #5a5ce6;
    --secondary-color: #4a4bd6;
    --light-bg: #f8f9ff;
    --text-color: #2d2e4a;
    --gray-text: #707375;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Base Styles */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* Navbar */
.navbar-slim {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 8px 0;
}

.navbar-slim .navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.navbar-slim .navbar-brand img {
   
    margin-right: 5px;
}

.btn-custom-header {
    background-color: #FFDE6D;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Main Section */
.main-section {
    position: relative;
}

/* Decorative background elements */
.main-section::before {
    position: absolute;
    content: '';
    width: 215px;
    height: 260px;
    top: 0;
    right: 0;
    background-image: url('https://tinywow.com/v3/img/decorate/d-2.svg');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

.main-section::after {
    position: absolute;
    content: '';
    width: 215px;
    height: 260px;
    bottom: 20px;
    left: 0;
    background-image: url('https://tinywow.com/v3/img/decorate/d-1.svg');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

/* Hero Content */
.hero-title-small {
    font-size: 2.0rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    line-height: 1.4;
}

.hero-title-small span {
    position: relative;
    display: inline-block;
}

.hero-title-small span::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #8183ff 100%);
    z-index: -1;
    border-radius: 3px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Flip animation */
.hero-description-line {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 2.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-description-line .text {
    margin: 0 5px;
}


.flip-box {
    height: 35px;
    width: 221px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 4px;
}

.flip-box-inner {
    position: absolute;
    width: 100%;
    height: 300%;
    top: 0;
    left: 0;
    animation: flip-animation 9s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.flip-box-item {
    height: 35px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

@keyframes flip-animation {
    0%, 30% {
        transform: translateY(0);
    }
    33%, 63% {
        transform: translateY(-33.33%);
    }
    66%, 96% {
        transform: translateY(-66.66%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Color Backgrounds */
.bg-red {
    background-color: #D61C4E;
}

.bg-orange {
    background-color: #F66213;
}

.bg-blue {
    background-color: #1C67CA;
}

/* Tools Box - Base styles without home-specific interactions */
.tools_box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.tools_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* Home page specific tool box interactions */
.home-page .tools_box {
    cursor: pointer; /* Only clickable on home page */
}

/* Home page specific overlay effect on hover */
.home-page .tools_box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(90, 92, 230, 0);
    transition: background 0.3s ease;
    border-radius: 12px;
    pointer-events: none; /* Ensures clicks go through to the box */
}

.home-page .tools_box:hover::after {
    background: rgba(90, 92, 230, 0.03);
}

/* Home page specific "View Tool" indicator on hover */
.home-page .tools_box:hover .card-text::after {
    content: '→ Click to open';
    display: inline-block;
    margin-left: 5px;
    font-weight: 500;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

/* Home page specific pointer cursor on all elements inside */
.home-page .tools_box * {
    cursor: pointer;
}

/* Home page specific active state for click feedback */
.home-page .tools_box:active {
    transform: translateY(-3px);
}

.tools_box h4 {
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: 0.005em;
    margin-bottom: 2px;
    margin-top: 0;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 10px;
}

.tools_box .icon_box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools_box .icon_box i {
    font-size: 1.3rem;
}

.tools_box .icon_box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gray {
    color: var(--gray-text) !important;
}

.card-text {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-top: 5px;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.section-subtitle {
    color: var(--gray-text);
    font-size: 16px;
    margin-bottom: 25px;
}

.headingsec {
    margin-bottom: 20px;
}

/* News Cards */
.box_news {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.box_news:hover {
    text-decoration: none;
    color: inherit;
}

.news-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.box_news:hover .news-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.tool-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    margin-right: 20px;
    border-radius: 10px;
    background-color: #f7f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    border: 1px solid #eaecf5;
}

.tool-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    background-color: #f0f2ff;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
    display: flex;
    order: 2;
}

.news-meta li {
    margin-right: 15px;
    color: var(--gray-text);
    font-size: 13px;
}

.news-meta li i {
    margin-right: 5px;
    font-size: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px;
    line-height: 1.3;
    order: 1;
}

.box_news:hover .news-title {
    color: var(--primary-color);
}

.news-summary {
    font-size: 14px;
    color: var(--gray-text);
    margin: 10px 0 0;
    line-height: 1.5;
    order: 3;
}

/* Footer Section */
.footer-section {
    background-color: #ffffff;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.04);
}

.footer-brand {
    font-weight: 600;
    color: var(--text-color);
}


.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links li a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9ff;
    color: var(--gray-text);
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Newsletter form */
#newsletter {
    margin-top: 20px;
}

#newsletter h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.subform {
    position: relative;
    margin-bottom: 10px;
    display: flex;
}

.emailn {
    padding-right: 90px;
    border-radius: 6px;
    border: 1px solid #e6e8f0;
    padding: 8px 12px;
    font-size: 14px;
    flex: 1;
    height: 40px;
}

.subemibtn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 0 15px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.subemibtn:hover {
    background-color: var(--secondary-color);
}

#newslettermsg {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-title-small {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title-small {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .pt_80 {
        padding-top: 50px;
    }
    
    .pb_100 {
        padding-bottom: 70px;
    }
    
    .main-section::before,
    .main-section::after {
        width: 150px;
        height: 180px;
    }
    
    .flip-box {
        width: 180px;
    }
    
    .tool-logo {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .news-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-title-small {
        font-size: 1.4rem;
    }
    
    .hero-description-line {
        font-size: 1rem;
    }
    
    .flip-box {
        height: 30px;
        width: 160px;
    }
    
    .flip-box-item {
        height: 30px;
    }
}

/* Improved responsive styles */
@media (max-width: 992px) {
    .flip-box {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .hero-description-line {
        flex-direction: column;
        line-height: 1.8;
    }
    
    .hero-description-line .text {
        margin: 5px 0;
    }
    
    .flip-box {
        width: 240px;
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .hero-description-line {
        font-size: 0.95rem;
    }
    
    .flip-box {
        width: 200px;
        height: 30px;
    }
    
    .flip-box-item {
        height: 30px;
        font-size: 0.95rem;
    }
}

/* QR Code Generator Specific Styles */
.qr-type-btn {
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.qr-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bg-green-500 {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    color: white !important;
}

#qrCodePreview {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
}

#qrCodePreview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .qr-type-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}