/*
Theme Name: Result WP Hello Elementor Child
Theme URI: https://elementor.com/
Description: A custom Hello Elementor child theme redesigned with a modern UI.
Author: Elementor Team / Custom
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: result-wp-child
*/

@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: 'Lexend Deca', sans-serif;
    background-color: #f5f6fa;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

a {
    text-decoration: none;
}

/* ==========================================================================
   Top Banner & Search
   ========================================================================== */
.sr-top-banner {
    background: linear-gradient(135deg, #4ab7b6 0%, #1cc996 100%);
    padding: 50px 20px 120px; /* Bottom padding for overlap */
    text-align: center;
}

.sr-top-banner h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 0;
}

.sr-search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sr-search-bar input {
    flex: 1;
    border: none;
    padding: 16px 25px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 15px;
    outline: none;
}

.sr-search-bar button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.sr-search-bar button:hover {
    background: #333;
}

/* ==========================================================================
   Main Container
   ========================================================================== */
.sr-container {
    max-width: 1200px;
    margin: -70px auto 50px; /* Negative margin pulls it up over banner */
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Colorful Links Card
   ========================================================================== */
.sr-links-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media(min-width: 992px) {
    .sr-links-card {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sr-link-btn {
    padding: 20px 15px;
    border-radius: 6px;
    color: #fff !important;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    line-height: 1.4;
}

.sr-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.btn-olive { background-color: #a4b000; }
.btn-blue { background-color: #0033cc; }
.btn-orange { background-color: #d35400; }
.btn-red { background-color: #c00000; }
.btn-bright-red { background-color: #ff0000; }
.btn-green { background-color: #00994d; }
.btn-azure { background-color: #0080ff; }
.btn-pink { background-color: #ff00cc; }

/* ==========================================================================
   Social Row
   ========================================================================== */
.sr-social-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

@media(min-width: 768px) {
    .sr-social-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sr-social-btn {
    padding: 15px;
    border-radius: 6px;
    color: #fff !important;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.sr-social-btn:hover {
    transform: translateY(-2px);
}

.btn-whatsapp { background-color: #12cc66; }
.btn-youtube { background-color: #ff0033; }
.btn-telegram { background-color: #4ebced; }

/* ==========================================================================
   Categories Row
   ========================================================================== */
.sr-categories-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

@media(min-width: 992px) {
    .sr-categories-row {
        grid-template-columns: repeat(8, 1fr);
    }
}

.sr-cat-box {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    color: #333 !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.sr-cat-box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #1cc996;
    transform: translateY(-2px);
}

.sr-cat-box .emoji {
    display: block;
    margin: 0 auto 10px;
    font-size: 32px;
}

/* ==========================================================================
   Result Boxes Grid
   ========================================================================== */
.sr-boxes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .sr-boxes-grid { grid-template-columns: repeat(3, 1fr); }
}

.sr-box {
    background: #fff;
    border: 1px solid #1cc996;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.sr-box-header {
    background-color: #1cc996;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.sr-box-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Post Card inside Box */
.sr-post-card {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 15px;
    transition: border-color 0.2s, background 0.2s;
}

.sr-post-card:hover {
    border-color: #1cc996;
    background: #fdfdfd;
}

.sr-post-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.sr-post-card h4 a {
    color: #333 !important;
}

.sr-post-card h4 a:hover {
    color: #1cc996 !important;
}

.sr-post-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #777;
    flex-wrap: wrap;
}

.sr-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sr-post-meta .status-new {
    color: #1cc996;
    font-weight: 600;
}

.view-more-wrap {
    margin-top: 15px;
}

.view-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1cc996;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    transition: background 0.2s;
    box-sizing: border-box;
}

.view-more-btn:hover {
    background: #15a97d;
}

.sr-text-content {
    padding: 15px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.sr-text-content p {
    margin: 0 0 15px 0;
}
.sr-text-content p:last-child {
    margin: 0;
}
