/*
Theme Name: Telegram Directory Theme
Theme URI: https://grupkesfet.com/
Author: Kerim
Author URI: https://grupkesfet.com/
Description: grupkesfet.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telegram-directory
*/

:root {
    --bg-color: #0d0d12;
    --text-color: #ffffff;
    --title-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary-work: #ff2e63;
    --primary-rest: #00f2c3;
    --primary-break: #45b7d1;
    --accent: #7d5fff;
    --neutral: #8b9bb4;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --transition-speed: 0.3s;
    --logo-gradient: linear-gradient(to right, #fff, #aaa);
}

/* Light Mode Overrides */
body.light-mode {
    --bg-color: #f8fafc;
    --text-color: #475569;
    --title-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.08);
    --neutral: #64748b;
    --logo-gradient: linear-gradient(to right, #0f172a, #475569);
}

body {
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.glass-card {
    transition: transform 0.3s ease,
        border-color 0.3s ease,
        background-color var(--transition-speed),
        border-color var(--transition-speed),
        box-shadow var(--transition-speed);
}

body.light-mode .glass-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Theme Toggle Styles */
.light-mode .btn-theme-toggle {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

.light-mode .sun-icon {
    display: block !important;
}

.light-mode .moon-icon {
    display: none !important;
}

/* Global Light Mode Specifics */
body.light-mode .hero-title,
body.light-mode .section-title,
body.light-mode .archive-title,
body.light-mode .page-title,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
    color: var(--title-color);
}

body.light-mode .main-navigation a:hover,
body.light-mode .main-navigation .current-menu-item>a,
body.light-mode .footer-menu a:hover {
    color: var(--title-color);
    text-shadow: none;
}

body.light-mode .hero-title,
body.light-mode .text-gradient {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .hero-subtitle strong {
    color: var(--title-color);
}

body.light-mode .logo a {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--title-color) !important;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    background: #fff !important;
    color: var(--title-color) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .footer-social a {
    color: var(--title-color) !important;
}

body.light-mode .section-heading,
body.light-mode .section-heading-sm,
body.light-mode .widget-title,
body.light-mode .modal-header h3,
body.light-mode .related-info h4,
body.light-mode .info-list .value,
body.light-mode .archive-title,
body.light-mode .hero-title,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
    color: var(--title-color) !important;
}

body.light-mode .info-list .label,
body.light-mode .security-item p,
body.light-mode .modal-header p,
body.light-mode .share-icon-btn span,
body.light-mode .related-info span,
body.light-mode .hero-subtitle,
body.light-mode p {
    color: var(--text-color) !important;
}

body.light-mode .info-list li {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .modal-close-btn,
body.light-mode #mobile-menu-toggle {
    color: var(--title-color) !important;
}

body.light-mode .glass-card {
    background: var(--card-bg);
    border-color: var(--card-border);
}

/* Deep override for any missed elements in light mode */
body.light-mode [style*="color: #fff"],
body.light-mode [style*="color:#fff"],
body.light-mode [style*="color: white"] {
    color: var(--title-color) !important;
}

body.light-mode [style*="background: rgba(0,0,0,0.2)"],
body.light-mode [style*="background:rgba(0,0,0,0.2)"] {
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode [style*="border: 1px solid rgba(255,255,255,0.1)"] {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-rest);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glassmorphism Components */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-rest);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: capitalize;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #6b4ce6;
    box-shadow: 0 0 20px rgba(125, 95, 255, 0.4);
}

/* Header */
.site-header {
    padding: 2rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}


/* Header Layout */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: capitalize;
}

/* Navigation - Desktop Default */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: capitalize;
    letter-spacing: 1px;
    color: var(--neutral);
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Mobile Menu Styles & Toggle */
@media screen and (max-width: 900px) {
    #mobile-menu-toggle {
        display: flex !important;
        /* Show toggle */
        z-index: 1001;
        /* Above menu */
    }

    .site-header {
        position: relative;
        /* Keep header relative on mobile */
        z-index: 200;
        background: rgba(10, 10, 14, 0.95);
        backdrop-filter: blur(10px);
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 14, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        z-index: 999;
    }

    body.menu-open .main-navigation {
        transform: translateX(0);
    }

    body.menu-open {
        overflow: hidden;
        /* Prevent scrolling */
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .main-navigation a {
        font-size: 1.5rem;
        /* Larger font for mobile */
        color: #fff;
    }
}


/* Footer */
.site-footer {
    padding: 4rem 0;
    /* Removed background and border for cleaner look */
    background: transparent;
    margin-top: auto;
    color: var(--neutral);
    font-size: 0.9rem;
}

.footer-menu {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
}

.footer-menu a {
    color: var(--neutral);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #fff;
}

@media screen and (max-width: 768px) {
    .site-footer .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center !important;
    }

    .footer-branding {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-branding p {
        margin: 0 auto;
    }

    .footer-links {
        text-align: center !important;
        width: 100%;
    }

    .footer-menu {
        justify-content: center;
    }
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-rest);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 195, 0.1);
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
}

.section-subtitle {
    color: var(--primary-rest);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Hero Section Layout */
/* Hero Section Layout */
.hero-section {
    padding: 130px 0 80px;
    /* Reduced padding as requested */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

/* Categories Grid */
.categories-grid-container {
    grid-template-columns: repeat(4, 1fr);
}

/* Media Queries */
/* Latest Groups Grid - Force 4 columns on desktop */
.latest-groups-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Tablet / Small Laptop: 1024px and below */
@media screen and (max-width: 1024px) {
    .latest-groups-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 items per row */
    }

    .hero-section {
        padding: 120px 0 60px;
        /* Adjusted for tablet */
    }
}

/* Mobile: 768px and below */
@media screen and (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

/* Pagination Styles */
.pagination {
    margin-top: 3rem;
    width: 100%;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-break);
    color: var(--primary-break);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--primary-rest);
    border-color: var(--primary-rest);
    color: #fff;
    box-shadow: 0 5px 15px rgba(34, 113, 177, 0.4);
}

.pagination .nav-prev,
.pagination .nav-next {
    display: inline-block;
}

.pagination .nav-prev a,
.pagination .nav-next a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .nav-prev a:hover,
.pagination .nav-next a:hover {
    background: var(--primary-rest);
    border-color: var(--primary-rest);
}

@media screen and (max-width: 768px) {
    .pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .site-header {
        position: relative;
        /* Relative header for mobile */
        background: var(--bg-color);
        padding: 1rem 0;
    }

    /* Mobile logo tweaks: slightly smaller and forced to one line without wrapping */
    .logo a {
        font-size: 1.3rem;
        white-space: nowrap;
    }

    .logo img {
        max-height: 32px !important;
        width: auto;
    }

    .hero-section {
        padding: 10px 0 60px;
        /* Reduced mobile padding */
    }

    .hero-container {
        grid-template-columns: 1fr;
        /* Stack columns */
        text-align: center;
        gap: 2rem;
    }

    .latest-groups-grid {
        grid-template-columns: 1fr;
        /* 1 per row on mobile */
    }

    .hero-ad-space {
        display: none !important;
        /* Hide AD on mobile */
    }

    .quick-tags {
        justify-content: center;
    }

    .app-title {
        font-size: 2rem !important;
    }

    .glass-card {
        margin: 0 auto;
        /* Center cards if needed */
    }

    /* Reduce container padding on mobile to give more width to grid */
    .container {
        padding: 0 0.8rem;
    }

    /* Force 2 columns for categories on mobile and square them */
    .categories-grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.2rem !important;
        width: 100%;
        padding: 0 0.5rem !important;
        margin: 0;
    }

    .categories-grid-container .glass-card {
        padding: 1rem !important;
        border-radius: 24px !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        /* Reset fixed height */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        box-sizing: border-box;
    }

    .categories-grid-container .glass-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.2rem !important;
        letter-spacing: 0.5px !important;
        padding: 0 10px !important;
    }

    .categories-grid-container .glass-card div[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
        /* Larger Emoji */
        margin-bottom: 0.8rem !important;
    }

    .categories-grid-container .glass-card div[style*="width: 50px"] {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 0.8rem !important;
    }

    .categories-grid-container .glass-card span[style*="font-size: 0.85rem"] {
        font-size: 0.75rem !important;
        padding: 2px 8px !important;
        margin-top: 0 !important;
    }
}

/* Shared Category Grid Styles (Homepage & All Categories) */
.shared-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card-item {
    display: flex;
    align-items: center;
    padding: 1.5rem !important;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-rest);
    background: rgba(255, 255, 255, 0.07);
}

.cat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-card-item:hover .cat-icon-wrapper {
    background: var(--primary-rest);
    border-color: var(--primary-rest);
    color: #000;
}

.cat-icon-wrapper img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cat-icon-wrapper .emoji-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.cat-info {
    flex: 1;
}

.cat-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    color: #fff;
}

.count-badge {
    font-size: 0.85rem;
    color: var(--neutral);
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
}

.cat-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary-rest);
}

.category-card-item:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsive For Shared Grid */
@media screen and (max-width: 768px) {
    .shared-categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        /* Increased gap to shrink cards slightly */
        width: 100%;
        padding: 0 0.5rem;
        /* Added breathing room on sides */
        margin: 0;
    }

    .category-card-item {
        padding: 1rem !important;
        /* Added padding to prevent overflow */
        flex-direction: column;
        justify-content: center;
        text-align: center;
        aspect-ratio: 1 / 1;
        border-radius: 24px;
        min-height: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .cat-icon-wrapper {
        width: 56px;
        height: 56px;
        margin-right: 0;
        margin-bottom: 0.8rem;
        border-radius: 16px;
    }

    .cat-icon-wrapper .emoji-icon {
        font-size: 2rem;
    }

    .cat-icon-wrapper img {
        width: 32px;
        height: 32px;
    }

    .cat-arrow {
        display: none;
    }

    .cat-info h3 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        width: 100%;
        margin-bottom: 0.2rem;
        letter-spacing: 0.5px;
        padding: 0 10px;
    }

    .count-badge {
        font-size: 0.75rem;
        padding: 2px 8px;
        margin-top: 0;
    }
}

/* Fix for Mobile Category Spacing */
@media screen and (max-width: 900px) {
    .category-mobile-fix {
        padding-top: 10px !important;
        /* Overrides inline 120px */
    }

    .category-mobile-fix .archive-header {
        margin-bottom: 1rem !important;
        /* Reduces space below title */
        padding-bottom: 0.5rem !important;
    }

    /* Fix for Standard Page Mobile Spacing */
    .page-wrapper-inner {
        padding-top: 10px !important;
        /* Overrides inline 120px */
    }

    .page-wrapper-inner .entry-header {
        margin-bottom: 1rem !important;
        padding-bottom: 0.5rem !important;
    }
}



/* 
========================================
   SINGLE GROUP PAGE REDESIGN 
========================================
*/

/* Wrapper & Background */
.single-group-page-wrapper {
    position: relative;
    padding-top: 110px;
    padding-bottom: 80px;
    overflow: hidden;
    min-height: 100vh;
}

.page-background-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-image,
.glow-default {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(100px);
    opacity: 0.2;
    transform: translateZ(0);
    /* Hardware accelerate */
}

.glow-default {
    background: radial-gradient(circle at 50% 30%, var(--primary-rest), transparent 70%);
    opacity: 0.15;
}

.glow-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* Header Navigation */
.single-header-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--neutral);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral);
    transition: color 0.3s ease;
}

.back-link:hover,
.category-link:hover {
    color: #fff;
}

.nav-separator {
    opacity: 0.5;
}

/* Hero Card */
.single-hero-card {
    margin-bottom: 3rem;
    padding: 0;
    /* Remove default padding, use inner */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    /* Lighter glass */
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
}

.hero-logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-logo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-verified-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--primary-break);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-color);
    /* Cutout effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-info {
    flex: 1;
}

.hero-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-category-tag {
    background: rgba(var(--primary-rest-rgb), 0.1);
    /* Fallback or simplified */
    background: rgba(0, 242, 195, 0.1);
    color: var(--primary-rest);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--neutral);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--neutral);
    margin-bottom: 2rem;
}

.hero-subtitle strong {
    color: #fff;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
}

.btn-share {
    padding: 1rem 1.5rem;
    border-radius: 16px;
}

/* Grid Layout */
.single-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Main Content */
.content-card {
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.entry-content {
    color: #ccc;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Related Groups (New Style) */
.related-section {
    margin-top: 3rem;
}

.section-heading-sm {
    font-size: 1.2rem;
    color: var(--neutral);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.related-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.related-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.related-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.related-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info h4 {
    font-size: 0.95rem;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.related-info span {
    font-size: 0.75rem;
    color: var(--primary-rest);
}

/* Sidebar */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    padding: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .label {
    color: var(--neutral);
}

.info-list .value {
    color: #fff;
    font-weight: 500;
}

.value.active-status {
    color: #4ade80;
    /* Green */
}

/* Highlight Widget (Security) */
.highlight-widget {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 46, 99, 0.05) 100%);
    border-color: rgba(255, 46, 99, 0.2);
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.security-item .icon {
    font-size: 1.2rem;
    line-height: 1;
}

.security-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
}

/* Mobile Responsive */
@media screen and (max-width: 900px) {

    /* 1. Page Wrapper & Header */
    .single-group-page-wrapper {
        padding-top: 80px;
        /* Increased to avoid header overlap */
    }

    .single-header-nav {
        margin-bottom: 0px !important;
        /* Minimized space below breadcrumb */
    }

    /* Transparent Header */
    body.single-telegram_group .site-header {
        position: absolute !important;
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    body.single-telegram_group .site-header .header-inner {
        padding: 0 1rem;
    }

    /* Categories Page Transparent Header on Mobile */
    body.page-template-page-all-categories .site-header {
        position: absolute !important;
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
    }

    /* Restore spacing for Categories page because of absolute header */
    body.page-template-page-all-categories .page-wrapper-inner {
        padding-top: 100px !important;
    }

    /* 2. Immersive Hero (No Card Style) */
    .single-hero-card.glass-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 1.5rem 2rem 1.5rem;
        /* Space for the sheet to slide up */
        margin-bottom: 0;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        /* Drastically reduced from 1.5rem to 0.5rem */
    }

    .hero-logo-wrapper {
        margin: 0 auto;
        transform: scale(1);
        /* Reset scale to prevent visual crowding */
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        /* Better contrast on glowing bg */
    }

    .hero-meta-top {
        justify-content: center;
        opacity: 0.9;
    }

    /* 3. Sheet-Like Content Area */
    .single-content-grid {
        display: block;
        /* Stack everything */
        background: #0a0a0e;
        /* Match body or slightly lighter */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 32px 32px 0 0;
        /* Sheet look */
        padding: 2.5rem 1.5rem 6rem 1.5rem;
        margin-top: -20px;
        /* Slight overlap with hero */
        position: relative;
        z-index: 10;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    .single-content-grid .main-column .content-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
        margin-bottom: 2rem;
    }

    /* 4. Sidebar Info as Grid */
    .sidebar-column {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }

    .sidebar-widget {
        margin-bottom: 1.5rem;
    }

    .sidebar-widget .info-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 Column Grid */
        gap: 1rem;
    }

    .sidebar-widget .info-list li {
        flex-direction: column;
        /* Stack label and value */
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.03);
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 0;
        /* Override list margin */
    }

    .sidebar-widget .info-list li .label {
        font-size: 0.75rem;
        opacity: 0.6;
        margin-bottom: 4px;
    }

    .sidebar-widget .info-list li .value {
        font-size: 1rem;
        font-weight: 600;
    }

    /* 5. Mobile Actions (Bottom Fixed or Inline) */
    .hero-actions {
        display: flex;
        /* Changed to flex for better control */
        flex-direction: row;
        gap: 10px;
        width: 100%;
        max-width: 400px;
        margin: 1rem auto 0 auto;
    }

    .btn-hero {
        flex: 1;
        /* Take up remaining space */
        width: auto;
        justify-content: center;
        padding: 0 16px;
        /* Horizontal padding only, let height be set by line-height/flex */
        height: 48px;
        /* Fixed height for consistency */
        font-size: 0.95rem;
        white-space: nowrap;
        /* Force single line */
        display: flex;
        align-items: center;
    }

    .btn-hero svg {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    .btn-share {
        width: 48px;
        /* Fixed square width */
        height: 48px;
        /* Match height of hero button */
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

    .btn-share span {
        display: none;
        /* Hide text on mobile */
    }

    .btn-share svg {
        width: 20px;
        height: 20px;
        margin: 0;
        display: block;
        /* Ensure SVG is visible */
    }
}

/* Share Modal Styles */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-container {
    background: #111;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    padding: 2rem;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.share-modal-overlay.active .share-modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--neutral);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #fff;
}

.modal-header p {
    color: var(--neutral);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.social-share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-icon-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.share-icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Brand Colors */
.share-icon-btn.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
}

.share-icon-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
}

.share-icon-btn.x-twitter:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.share-icon-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877F2;
}

.copy-link-wrapper {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.copy-link-wrapper input {
    background: transparent;
    border: none;
    color: var(--neutral);
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem;
    outline: none;
}

.copy-link-wrapper button {
    background: var(--primary-rest);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.copy-link-wrapper button:hover {
    opacity: 0.9;
}