/*
Theme Name: DzwonkiNaTelefon.org
Template: dzwonkinatelefon
Version: 9.9
*/

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================
RESET + BASE
===================== */
body {
font-family: Arial, sans-serif;
background: #f5f5f5;
margin: 0;
line-height: 1.5;
overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 5px;
}

a {
text-decoration: none;
color: #000;
}

.fleft { float: left; }
.fright { float: right; }
.cboth { clear: both; }

/* =====================
HEADER
===================== */
.header {
background: #000;
color: #fff;
padding: 10px 0;
}

.logo img {
height: 40px;
}

.main-nav ul {
list-style: none;
margin: 0;
padding: 0;
}

.main-nav li {
display: inline-block;
margin-left: 20px;
}

.main-nav a {
color: #fff;
font-weight: bold;
}

/* =====================
SEARCH
===================== */
.search-form {
margin-top: 10px;
}

.search-input {
padding: 8px;
width: 250px;
}

.search-submit {
padding: 8px 12px;
background: #333;
color: #fff;
border: none;
}

/* =====================
LAYOUT
===================== */
.main-wrap {
margin-top: 20px;
}

.primary {
    width: 70%;
    float: left;
}

.sidebar {
    width: 28%;
    margin-left: 2%;
    float: left;
}

/* =====================
BLOCK TITLE
===================== */
.main-item {
margin-bottom: 20px;
}

.main-item-head {
    background: linear-gradient(135deg, #ffeef2, #e85d75); 
    color: #2b2b2b;
    font-weight: 600;
    border-left: 4px solid #e85d75;
    padding: 10px 15px;
    font-size: 20px;
    border-radius: 6px;
}

.main-item-head a {
color: #fff;
}

/* =====================
RINGTONE CARD
===================== */
.post-file-item {
    background: #fff;
    margin-bottom: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    overflow: visible; /* 🔥 sửa dòng này */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 0; 
}

.post-file-item-right {
width: 50px;
text-align: center;
}

.icon-play {
font-size: 24px;
cursor: pointer;
color: #000;
}

.icon-play:hover {
color: #d94660;
}

.post-file-item-title {
font-size: 16px;
margin: 0;
}

.post-file-item-meta {
font-size: 13px;
color: #666;
}

.post-file-item-meta span {
margin-right: 15px;
}

/* =====================
SIDEBAR
===================== */
.sidebar-item {
background: #fff;
padding: 15px;
border-radius: 6px;
margin-bottom: 20px;
}

.sidebar-item h2 {
    background: linear-gradient(135deg, #ffeef2, #e85d75);
    color: #fff;
    padding: 10px;
    margin: -15px -15px 10px -15px;
    font-size: 18px;
    font-weight: 600;
    border-left: 4px solid #e85d75;
	
}
/* icon trong title */
.sidebar-item h2 i {
    margin-right: 1px;
    color: #e85d75;
}

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

.sidebar li {
margin-bottom: 10px;
}

.sidebar a {
color: #333;
}

.sidebar a:hover {
color: #d94660;
}

/* PLAY BOX (NÂNG CẤP) */
.play-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffeef2, #e85d75);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NÚT PLAY TRÒN */
.play-btn {
    width: 45px;
    height: 45px;
    background: #ffffff; 
    color: #e85d75;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; 
    cursor: pointer;
    transition: 0.2s;
}

/* HOVER */
.play-btn:hover {
    transform: scale(1.1);
    background: #f2f2f2;
}

/* TITLE */
.title-box {
    flex: 1;
    padding: 0 6px;
    font-size: 18px;
}

/* DOWNLOAD TO */
.download-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 35px;
    color: #e85d75;
    line-height: 1;
}



/* FIX FLOAT NHẸ, KHÔNG ĐỤNG SIDEBAR */
.container::after {
    content: "";
    display: block;
    clear: both;
}

/* ===== FOOTER ===== */
.site-footer {
    width: 100%;
    background: #f1f1f1;
    border-top: 1px solid #ddd;
}

/* TITLE */
.footer-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.footer-title a {
    color: #e85d75;
    text-decoration: none;
}

/* LINKS */
.footer-links {
    font-size: 17px;
    margin-bottom: 8px;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    margin: 0 5px;
}

/* COPYRIGHT */
.footer-copy {
    font-size: 13px;
    color: #000;
	font-size: 17px;
}

.footer-copy a {
    color: #e85d75;
    text-decoration: none;
	font-size: 17px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: center;
}

.block-intro {
    text-align: center;
	max-width: 1200px;
    margin: 20px auto;
}

/* CARD */
.single-content {
	max-width: 1000px; 
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff, #f1f4f9);
    padding: 10px 10px;
    border-radius: 6px;
    text-align: center;

    /* bóng nhẹ */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* H1 */
.single-content h1 {
    font-size: 34px;
    margin-bottom: 10px;
    color: #222;
}

/* INTRO TEXT */
.single-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .single-content {
        max-width: 100%;
    }
}

/* BREADCRUMBS */
.breadcrumbs {
    background: #ffffff; /* 🔥 nền trắng */
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;

    /* bóng nhẹ giống card */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

    font-size: 14px;
    color: #666;
}

/* TITLE */
.single-title {
    background: linear-gradient(135deg, #ffeef2, #e85d75);
    color: #fff;
    font-weight: 600;
    border-left: 4px solid #e85d75;
    padding: 10px 15px;
    font-size: 22px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* PLAYER */
.audio-player {
    background: linear-gradient(135deg, #2c2f36, #3a3f46);
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 20px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.audio-player audio {
    width: 100%;
}

/* DESCRIPTION */
.single-desc {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* META */
.single-meta {
    margin-bottom: 20px;
    color: #555;
}

/* DOWNLOAD BUTTON */
.download-section {
    margin: 20px 0;
}

/* SHARE */
.share-box {
    background: #fff5f7;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
	  margin-bottom: 25px;
}

.share-icons a {
    margin-right: 10px;
    color: #e85d75;
}

.ringtone-info {
    margin: 25px 0;
}

.ringtone-info table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.ringtone-info td {
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.ringtone-info tr td:first-child {
    width: 150px; /* 🔥 chỉnh ở đây */}
.ringtone-info td {
    vertical-align: middle;
}

.ringtone-info a {
    color: #e85d75;
    text-decoration: none;
    font-weight: 500;
}

.ringtone-info a:hover {
    text-decoration: underline;
}

.sidebar-post-item {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.rank-box {
    width: 35px;
    min-height: 35px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
}

.rank-1 { color: #ff3b00; }
.rank-2 { color: #ff9800; }
.rank-3 { color: #555; }

.sidebar-content {
    flex: 1;
    padding: 8px;
}

.sidebar-content a {
    color: #000;
	font-size: 16px;
}

.meta {
    font-size: 13px;
    color: #666;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background: #e85d75;
    color: #fff;
}

.search-box {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  max-width: 500px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  outline: none;
}

.search-box button {
  padding: 12px 18px;
  border: none;
  background: #e85d75;
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.search-box button:hover {
  background: #d94660;
}

.ringtone-title {
    font-size: 16px;
    margin: 0;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
}

.ringtone-title a {
    color: #000;
    text-decoration: none;
}

.ringtone-title a:hover {
    color: #e85d75;
}

.ringtone-meta {
    font-size: 13px;
    color: #5a6b7b;
    margin-top: 5px;

    display: flex;
    justify-content: center;
    gap: 12px;
}

.ringtone-meta a {
    color: #e85d75;
    text-decoration: none;
}

.ringtone-meta a:hover {
    text-decoration: underline;
}

.view-more {
    text-align: center;
    margin: 15px 0 5px;
}

.view-more a {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffeef2, #e85d75);
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    text-decoration: none;
}

.view-more a:hover {
    background: linear-gradient(135deg, #e85d75, #d94660);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.meta-item i {
    color: #e85d75;
    font-size: 13px;
}

.ringtone-info i {
    color: #e85d75;
    margin-right: 1px;
}

.download-center {
    text-align: center;
    margin: 20px 0;
}

.download-center .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: linear-gradient(135deg, #ffeef2, #e85d75);
    color: #fff;

    border: none;
    padding: 12px 24px;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 6px 15px rgba(99,102,241,0.3);
}

/* icon trong button */
.download-center .download-btn i {
    font-size: 16px;
    color: #fff;
}

/* text */
.download-center .download-btn span {
    color: #fff;
}

/* hover */
.download-center .download-btn:hover {
    background: linear-gradient(135deg, #e85d75, #d94660);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.4);
}

/* click */
.download-center .download-btn:active {
    transform: scale(0.97);
}

.meta i.fa-eye,
.meta i.fa-download {
    color: #e85d75;
}

.sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}
.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li i.fa-music {
    color: #e85d75;
    margin-right: 5px;
}

.main-item-head i {
    margin-right: 1px;
    color: #e85d75;
}

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



/* ================= MOBILE ================= */
@media (max-width: 768px) {

    /* 1. FULL WIDTH */
    .container {
        width: 100%;
        padding: 0 5px;
    }
	
	.primary,
    .sidebar {
        width: 100%;
        margin: 0;
        float: none;
    }

    /* 2. BỎ FLOAT */
    .main-wrap {
        display: block;
    }

    /* 3. CARD RINGTONE */
    .post-file-item {
        height: auto;
        padding: 0;
    }

    /* 5. TITLE */
    .title-box {
        font-size: 14px;
        padding: 0 10px;
    }

    /* 6. DOWNLOAD */
    .download-box {
        width: 45px;
    }

    .download-box a {
        font-size: 22px;
    }

    /* 8. TEXT */
    .main-item-head {
        font-size: 18px;
    }

}

/* ================= TABLET ================= */
@media (max-width: 1024px) {

    /* 1. container không bị ép */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
    }

    /* 2. bỏ layout 2 cột */
    .primary,
    .sidebar {
        width: 100%;
        margin: 0;
        float: none;
    }

    /* 3. grid từ 3 → 2 cột */
    .main-item-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 4. fix header spacing */
    .main-nav li {
        margin-left: 10px;
    }

    /* 5. search full width */
    .search-box input {
        width: 100%;
    }

    /* 6. title không bị cắt */
    .ringtone-title,
    .ringtone-title a {
        white-space: normal;
    }

    /* 7. giảm size text nhẹ */
    .main-item-head {
        font-size: 18px;
    }

}

.post-file-item-left {
    flex: 1;
    min-width: 0; /* 🔥 bắt buộc */
}

@media (max-width: 768px) {

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

    .single-content h1 {
        text-align: left;
        font-size: 30px;
    }

    .single-content p {
        text-align: left;
        font-size: 16px;
    }

}

.player-title {
    color: #fff;
    font-size: 15px;
    margin-bottom: 10px;
}

/* Ẩn nút menu mobile mặc định của GeneratePress */
.menu-toggle {
    display: none !important;
}

/* Ẩn luôn menu mobile của nó */
.main-navigation.toggled .main-nav {
    display: none !important;
}

/* Nút menu */
.menu-toggle-custom {
    font-size: 28px;
    cursor: pointer;
    display: none;
    padding: 10px;
}

/* Overlay nền mờ */
.menu-overlay {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.4);
    display:none;
    z-index:9998;
}

.menu-overlay.active {
    display:block;
}

/* Khi mở */
.mobile-menu.active {
    right: 0;
}

/* Menu item */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
}

/* Nút đóng */
.mobile-menu .closebtn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}

/* ===== MOBILE ONLY ===== */
@media (max-width: 1024px) {

    /* Hiện nút menu */
    .menu-toggle-custom {
        display: block;
    }

    /* Sidebar menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100%;
        background: linear-gradient(135deg, #ffeef2, #e85d75); 
        z-index: 9999;
        transition: 0.3s;
        padding-top: 60px;
		overflow-y: auto;
    }

    /* Header layout */
    .inside-header {
        display: flex;
        align-items: center;
        position: relative;
    }

    .site-branding {
        flex: 1;
    }

    .menu-toggle-custom {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ===== PC ===== */
@media (min-width: 1025px) {

    .mobile-menu {
        display: none !important;
    }

    .menu-overlay {
        display: none !important;
    }

    .menu-toggle-custom {
        display: none !important;
    }
}

.main-item-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: hidden; 
}

.post-file-item {
    width: 100%;
    min-width: 0;
}

.title-box {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}



@media (max-width: 768px) {
    .main-item-content {
        grid-template-columns: 1fr;
    }
}

/* section */
.faq-section {
    margin-top: 25px;
}

/* title = giống main-item-head */
.faq-section .main-item-head {
    background: linear-gradient(135deg, #ffeef2, #e85d75);
    border-left: 4px solid #e85d75;
    padding: 10px 15px;
    border-radius: 6px;
    color: #2b2b2b;
    font-size: 20px;
    font-weight: 600;
}

/* container */
.faq-container {
    margin-top: 15px;
    background: #f1f4f9; /* giống card intro */
    border-radius: 6px;
    overflow: hidden;
}

/* item */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    transition: all .25s ease;
}

/* summary */
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 15px;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid #e5e7eb;
}

/* remove arrow */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* ===== QUESTION ===== */
.faq-item summary h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #2b2b2b;
    line-height: 1.4;
}

/* icon */
.faq-item summary::after {
    content: '+';
    font-size: 20px;
    width: 26px;
    height: 26px;
    border: 2px solid #e85d75;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e85d75;
    transition: all .25s ease;
	flex-shrink: 0;
    margin-left: 15px;
}

/* hover */
.faq-item summary:hover {
    background: #ffffff;
}

/* ===== ANSWER ===== */
.faq-answer {
    padding: 12px 15px 15px;
    border-top: 1px dashed #e5e7eb;
}

.faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
	margin-bottom: 15px;
}

/* ===== ACTIVE ===== */
.faq-item[open] {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* màu active = màu brand */
.faq-item[open] summary h3 {
    color: #e85d75;
}

/* icon active */
.faq-item[open] summary::after {
    content: '-';
    border-color: #e85d75;
    color: #e85d75;
}

/* nền khi mở */
.faq-item[open] summary {
    background: #fff5f7;
}

/* bỏ border cuối */
.faq-item:last-child {
    border-bottom: none;
}

/* BLOG CARD NHỎ GỌN HƠN */
.blog-row-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    min-height: 220px;
}

/* THUMB NHỎ HƠN */
.blog-row-thumb {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    overflow: hidden;
}

.blog-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTENT */
.blog-row-content {
    flex: 1;
    padding: 14px 18px;
}

/* TITLE NHỎ LẠI */
.blog-row-title {
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-row-title a {
    color: #222;
    text-decoration: none;
}

.blog-row-title a:hover {
    color: #e85d75;
}

/* META */
.blog-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #777;
}

/* EXCERPT NHỎ */
.blog-row-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

/* BUTTON NHỎ */
.blog-readmore a {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* MOBILE */
@media (max-width: 768px) {

    .blog-row-card {
        flex-direction: column;
        min-height: auto;
    }

    .blog-row-thumb {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 200px;
    }

    .blog-row-title {
        font-size: 22px;
    }

    .blog-row-content {
        padding: 14px;
    }
}

/* BLOG HOME SECTION */
.blog-home-section {
    margin-top: 35px;
}

/* GRID 2 CỘT */
.blog-home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
}

/* CARD */
.blog-mini-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 14px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* THUMB */
.blog-mini-thumb {
    width: 110px;
    min-width: 110px;
    margin-right: 14px;
}

.blog-mini-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* CONTENT */
.blog-mini-content {
    flex: 1;
}

/* TITLE */
.blog-mini-title {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 10px;
}

.blog-mini-title a {
    color: #222;
    text-decoration: none;
}

.blog-mini-title a:hover {
    color: #e85d75;
}

/* META */
.blog-mini-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

/* BUTTON */
.blog-mini-btn {
    display: inline-block;
    padding: 7px 16px;
    background: #f3f4f6;
    color: #e85d75;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.blog-mini-btn:hover {
    background: #e5e7eb;
}

/* MORE BUTTON */
.blog-more-btn {
    margin-top: 20px;
}

/* MOBILE */
@media (max-width: 768px) {

    .blog-home-grid {
        grid-template-columns: 1fr;
    }

    .blog-mini-card {
        align-items: flex-start;
    }

    .blog-mini-thumb {
        width: 90px;
        min-width: 90px;
    }

    .blog-mini-thumb img {
        height: 70px;
    }

    .blog-mini-title {
        font-size: 16px;
    }
}

