/*
 Theme Name:   epodBlog
 Theme URI:    https://example.com/
 Description:  A custom child theme for Hello Elementor.
 Author:       Your Name
 Author URI:   https://example.com/
 Template:     hello-elementor
 Version:      1.0.6
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  epodBlog
*/

/* --- Original Custom Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff !important;
}
.light-text {
    color: #ffffff;
}
.dark-text {
    color: #1a1a1a;
}
.card-hover-transform {
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.card-hover-transform:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -10px rgb(0 0 0 / 0.15), 0 10px 15px -8px rgb(0 0 0 / 0.1);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.story-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    will-change: transform, opacity;
}
article:nth-child(1) { animation-delay: 0.1s; }
article:nth-child(2) { animation-delay: 0.2s; }
article:nth-child(3) { animation-delay: 0.3s; }
article:nth-child(4) { animation-delay: 0.4s; }
article:nth-child(5) { animation-delay: 0.5s; }
article:nth-child(6) { animation-delay: 0.6s; }

.image-zoom-hover img {
    transition: transform 0.4s ease-in-out;
}
.image-zoom-hover:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Elementor Overrides for Blog Page
========================================================================== */
.custom-blog-page article h2 {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}
@media (min-width: 1024px) {
    .custom-blog-page article h2 {
        font-size: 2.25rem !important;
    }
}
.custom-blog-page article.light-text h2 a {
    color: #ffffff !important;
}
.custom-blog-page article.dark-text h2 a {
    color: #1a1a1a !important;
}
.custom-blog-page article.light-text p {
    color: #e5e7eb !important;
}
.custom-blog-page article.dark-text p {
    color: #4b5563 !important;
}
.custom-blog-page article.light-text .font-medium p {
    color: #ffffff !important;
}
.custom-blog-page article.dark-text .font-medium p {
    color: #1f2937 !important;
}
.custom-blog-page article.light-text .text-sm a {
    color: #d1d5db !important;
}
.custom-blog-page article.dark-text .text-sm a {
    color: #374151 !important;
}

/* ==========================================================================
   Constraining Article Height (Corrected)
========================================================================== */
@media (min-width: 1024px) {
    .custom-blog-page article.story-section {
        min-height: 50vh;
        max-height: 550px;
    }
}
.custom-blog-page article .image-zoom-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   NEW - Make Entire Card Clickable
========================================================================== */
.custom-blog-page .story-section {
    cursor: pointer;
}


/* ==========================================================================
   NEW - Custom Pagination Design
========================================================================== */
.custom-blog-page .pagination {
    margin-top: 4rem; /* Adds space above the pagination */
    text-align: center;
}
.custom-blog-page .pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem; /* Space between the buttons */
}

/* General style for all pagination links (numbers, next, prev) */
.custom-blog-page .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    min-width: 44px; /* Makes them square-ish */
    height: 44px;
    padding: 0 0.75rem;
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #374151; /* Dark gray border */
    background-color: #1f2937; /* Dark gray background */
    color: #ffffff !important;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* Style for the current page number */
.custom-blog-page .pagination .page-numbers.current {
    background-color: #df0050; /* Main theme color */
    border-color: #df0050;
    color: #ffffff !important;
    cursor: default;
}

/* Style for other page numbers on hover (but not the current one) */
.custom-blog-page .pagination a.page-numbers:hover {
    background-color: #374151; /* A slightly lighter gray on hover */
    border-color: #4b5563;
}

/* Style for the "..." dots */
.custom-blog-page .pagination .dots {
    border: none;
    background-color: transparent;
    align-self: flex-end;
}

/* =================================== */
/* 1. GLOBAL & FONT STYLES (RENAMED)   */
/* =================================== */
:root {
    --epod-mob-primary-color: #df0050;
    --epod-mob-header-height: 60px;
    --epod-mob-hamburger-line-color: #0c174e;
    --epod-mob-hamburger-open-line-color: #ffffff;
    --epod-mob-menu-text-color: #ffffff;
    --epod-mob-menu-close-btn-color: #ffffff;
    --epod-mob-header-bg-color: #ffffff;
    --epod-mob-animation-duration: 1s;
    --epod-mob-item-animation-duration: 1.2s;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* =================================== */
/* 2. DESKTOP HEADER STYLES            */
/* =================================== */
.site-header {
    width: 100%;
    max-width: none !important;
    background-color: #ffffff6c;
    padding-block: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0 40px;
}

.header-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo img {
    height: 35px;
    display: block;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #df0050;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: #df0050;
    border-color: #df0050;
}

.btn-signup {
    background-color: #000;
    border-color: #000;
}

.btn-login:hover {
    background-color: #fff;
    color: #df0050;
    border-color: #df0050;
}

.btn-signup:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

/* =================================== */
/* 3. MOBILE MENU STYLES (RENAMED)     */
/* =================================== */
.epod-mob-header-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    background-color: var(--epod-mob-header-bg-color);
    position: relative;
    width: 100%;
    height: var(--epod-mob-header-height);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.epod-mob-logo img {
    height: 24px;
    width: auto;
    display: block;
}

#epod-mob-hamburger {
    width: 25px;
    height: 18px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
}

#epod-mob-hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--epod-mob-hamburger-line-color);
    border-radius: 5px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

#epod-mob-hamburger span:nth-child(1) { top: 0px; }
#epod-mob-hamburger span:nth-child(2) { top: 7.5px; }
#epod-mob-hamburger span:nth-child(3) { top: 15px; }

#epod-mob-hamburger.open span { background: var(--epod-mob-hamburger-open-line-color); }
#epod-mob-hamburger.open span:nth-child(1) { top: 7.5px; transform: rotate(135deg); }
#epod-mob-hamburger.open span:nth-child(2) { opacity: 0; left: -30px; }
#epod-mob-hamburger.open span:nth-child(3) { top: 7.5px; transform: rotate(-135deg); }

#epod-mob-menu-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1001;
    pointer-events: none;
}

#epod-mob-menu-panel.active {
    pointer-events: auto;
    display: block;
}

#epod-mob-bg-menu-panel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: -100%;
    background-color: var(--epod-mob-primary-color);
    will-change: transform;
    z-index: 1;
}

#epod-mob-menu-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: 400;
    color: var(--epod-mob-menu-close-btn-color);
    cursor: pointer;
    z-index: 3;
    padding: 5px;
    line-height: 1;
    transition: transform 0.2s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

#epod-mob-menu-panel.active #epod-mob-menu-close-btn {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.5s;
}

#epod-mob-menu-panel ul {
    width: 100%;
    position: absolute;
    top: var(--epod-mob-header-height);
    padding-top: 40px;
    left: 0;
    list-style: none;
    color: var(--epod-mob-menu-text-color);
    z-index: 2;
}

#epod-mob-menu-panel ul li {
    font-weight: 300;
    font-size: 28px;
    position: relative;
    margin-bottom: 25px;
    padding-left: 30px;
    left: 100%;
    cursor: pointer;
    will-change: transform;
}

#epod-mob-menu-panel ul li a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

/* =================================== */
/* 4. FOOTER STYLES                    */
/* =================================== */
.site-footer {
    width: 100%;
    max-width: none !important;
    background-color: #000;
    color: #fff;
    padding: 60px 20px;
}

.footer-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.footer-column-centered {
    max-width: 600px;
    text-align: center;
}

.footer-column-centered p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    margin-inline: auto;
}

.copyright {
    font-size: 13px !important;
    color: #fff !important;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-icons a:hover svg {
    transform: scale(1.1);
}

/* =================================== */
/* 5. RESPONSIVE MEDIA QUERY (RENAMED) */
/* =================================== */
@media (max-width: 768px) {
    /* Hide the desktop header container */
    .header-container {
        display: none !important;
    }
    /* Show the mobile header bar */
    .epod-mob-header-bar {
        display: flex;
    }
}

