/*
Theme Name: Result WP Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: A custom Twenty Twenty-Five child theme redesigned with a modern UI.
Author: Custom
Author URI: https://wordpress.org/
Template: twentytwentyfive
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;
}

/* ==========================================================================
   Header
   ========================================================================== */
.sr-site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sr-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.sr-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #1e1147;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sr-main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
}

.sr-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.sr-menu li a {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.sr-menu li a:hover {
    color: #1cc996;
}

.sr-menu li a.active-green,
.sr-menu li.current-menu-item > a {
    color: #1cc996;
}

.sr-header-search {
    display: flex;
    align-items: center;
}

.sr-search-icon {
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-search-icon:hover {
    color: #1cc996;
}

@media (max-width: 768px) {
    .sr-main-nav { display: 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 h1.sr-pre-banner-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
    margin-top: 0;
    letter-spacing: -0.5px;
    text-transform: none;
}

.sr-top-banner h2 {
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 35px;
    margin-top: 0;
    letter-spacing: -0.5px;
}

.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; }

.sr-marquee-section {
    background: #fff;
    border-radius: 50px; /* Highly rounded as in screenshot */
    padding: 12px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.sr-marquee-inner marquee {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   Single Post Layout
   ========================================================================== */
.sr-single-container { margin: 40px auto; padding: 0 15px; max-width: 1200px; }
.sr-single-grid { display: flex; gap: 30px; }
.sr-main-content { flex: 0 0 70%; box-sizing: border-box; }
.sr-sidebar { flex: 0 0 calc(30% - 30px); }

/* Breadcrumbs & Header */
.sr-breadcrumbs { background: #e9ecef; padding: 10px 15px; border-radius: 4px; font-size: 13px; color: #555; margin-bottom: 20px; font-weight: 500; }
.sr-breadcrumbs a { color: #3b82f6; text-decoration: none; }
.sr-post-tag { margin-bottom: 15px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.sr-post-title { font-size: 32px; font-weight: 700; margin: 0 0 20px 0; line-height: 1.3; }
.sr-post-meta-block { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.sr-author-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.sr-author-info strong { display: block; font-size: 14px; color: #333; margin-bottom: 2px; }
.sr-author-info span { font-size: 13px; color: #777; }

/* Featured Image */
.sr-featured-image { margin-bottom: 30px; }
.sr-featured-image img { width: 100%; height: auto; border-radius: 6px; }
.sr-featured-image-fallback { width: 100%; height: 400px; background: #1cc996; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; border-radius: 6px; color: #fff; text-align: center; padding: 30px; box-sizing: border-box; }
.sr-featured-image-fallback h2 { color: #fff; font-size: 36px; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }

/* Ad Placeholder */
.sr-ad-placeholder { background: #f1f3f5; width: 100%; height: 250px; display: flex; align-items: center; justify-content: center; color: #adb5bd; margin-bottom: 30px; border: 1px dashed #ced4da; }

/* Banners */
.sr-join-banner { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-radius: 6px; margin-bottom: 30px; }
.sr-banner-whatsapp { background: #eafff5; border: 1px solid #b2f2bb; }
.sr-banner-telegram { background: #e7f5ff; border: 1px solid #a5d8ff; }
.sr-banner-left { font-weight: 600; font-size: 18px; }
.sr-banner-whatsapp .sr-banner-left { color: #0ca678; }
.sr-banner-telegram .sr-banner-left { color: #228be6; }
.sr-btn-join { padding: 8px 25px; border-radius: 4px; color: #fff !important; font-weight: 600; text-decoration: none; }
.sr-btn-whatsapp { background: #40c057; }
.sr-btn-telegram { background: #339af0; }

/* Content Text */
.sr-post-content { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 40px; }
.sr-post-content p { margin-bottom: 20px; }

/* Share Buttons */
.sr-share-buttons { display: flex; gap: 10px; margin-bottom: 40px; }
.sr-share-buttons a, .sr-share-buttons button { flex: 1; text-align: center; padding: 12px 0; color: #fff !important; border-radius: 4px; border: none; cursor: pointer; font-size: 18px; transition: opacity 0.2s; display: block; }
.sr-share-buttons a:hover, .sr-share-buttons button:hover { opacity: 0.9; }
.sr-share-fb { background: #4267B2; }
.sr-share-x { background: #000000; }
.sr-share-wa { background: #25D366; }
.sr-share-tg { background: #0088cc; }
.sr-share-link { background: #000000; }

/* Related & Comments */
.sr-section-heading { background: #1cc996; color: #fff; padding: 12px 20px; font-size: 18px; font-weight: 700; margin-bottom: 20px; border-radius: 4px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.sr-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 40px; }
.sr-related-card { border: 1px solid #eee; padding: 20px; font-size: 14px; font-weight: 600; color: #333; text-decoration: none; border-radius: 4px; transition: border-color 0.2s; display: block; }
.sr-related-card:hover { border-color: #1cc996; }

/* Comment Form Styles */
.comment-respond { margin-top: 20px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid #ccc; padding: 15px; margin-bottom: 15px; font-family: inherit; font-size: 14px; box-sizing: border-box; }
.comment-form .submit { background: #1cc996; color: #fff; border: none; padding: 12px 30px; font-weight: 600; cursor: pointer; border-radius: 4px; font-size: 15px; }

/* Responsive Layout */
@media (max-width: 992px) {
    .sr-single-grid { flex-direction: column; }
    .sr-main-content, .sr-sidebar { flex: 0 0 100%; }
    .sr-related-grid { grid-template-columns: 1fr; }
    .sr-join-banner { flex-direction: column; gap: 15px; text-align: center; }
    .sr-share-buttons { flex-wrap: wrap; }
    .sr-share-buttons a, .sr-share-buttons button { flex: 0 0 calc(33.333% - 7px); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.sr-site-footer {
    background: #1e1e1e;
    color: #e0e0e0;
    font-family: 'Lexend Deca', sans-serif;
    padding-top: 50px;
    margin-top: 40px;
}

.sr-footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
}

.sr-footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.sr-footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #a0a0a0;
    margin: 0;
}

.sr-footer-heading {
    color: #ffffff;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.sr-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sr-footer-menu li {
    margin-bottom: 12px;
}

.sr-footer-menu li a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.sr-footer-menu li a::before {
    content: "›";
    font-size: 18px;
    margin-right: 8px;
    font-weight: bold;
    line-height: 1;
}

.sr-footer-menu li a:hover {
    color: #1cc996;
}

.sr-footer-social-card {
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.sr-fsc-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.sr-fsc-text strong {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 2px;
}

.sr-fsc-text span {
    display: block;
    color: #999;
    font-size: 11px;
}

.sr-fsc-btn-join {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1cc996;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.sr-fsc-btn-join:hover {
    background: #15a57a;
}

.sr-footer-social-icons {
    display: flex;
    gap: 10px;
}

.sr-footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.sr-footer-social-icons a:hover {
    opacity: 0.8;
}

.sf-icon-fb { background: #1877f2; }
.sf-icon-x { background: #000000; }
.sf-icon-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.sf-icon-yt { background: #ff0000; }
.sf-icon-tg { background: #0088cc; }
.sf-icon-rss { background: #ee802f; }

.sr-footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
}

.sr-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    color: #a0a0a0;
    font-size: 13px;
}

/* ==========================================================================
   Search Results Page
   ========================================================================== */
.sr-search-header {
    margin-bottom: 30px;
}

.sr-search-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.sr-search-query {
    font-size: 28px;
    font-weight: 800;
    color: #1e1147;
    margin: 0;
}

.sr-search-item {
    display: flex;
    gap: 25px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.sr-search-item-left {
    flex: 0 0 220px;
}

.sr-search-thumb-box {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1cc996 0%, #15a97d 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    text-transform: uppercase;
}

.sr-search-item-right {
    flex: 1;
}

.sr-search-item-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.sr-search-item-title a {
    color: #333;
}

.sr-search-item-title a:hover {
    color: #1cc996;
}

.sr-search-item-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.sr-search-item-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sr-search-item {
        flex-direction: column;
    }
    .sr-search-item-left {
        flex: 0 0 auto;
        width: 100%;
    }
.sr-sidebar-widget {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.sr-sidebar-widget .sr-box-header {
    margin-bottom: 0;
    border-radius: 0;
    font-size: 20px !important;
}

.sr-sidebar-list {
    padding: 20px 15px !important;
}

.sr-sidebar-list .sr-post-card {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-radius: 0 !important;
}

.sr-sidebar-list .sr-post-card:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.sr-sidebar-list .sr-post-card h4 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
}
