.elementor-104 .elementor-element.elementor-element-73228c4{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-theme-builder-content-area{height:400px;}.elementor-location-header:before, .elementor-location-footer:before{content:"";display:table;clear:both;}/* Start custom CSS for html, class: .elementor-element-228293d *//* Global Styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #6c757d;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: 'Arial Black', Gadget, sans-serif;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-left: 10px;
    font-size: 1.4rem;
}

.navbar {
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 600;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 2px;
}

.nav-link:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    min-height: 600px;
}

.hero-image img {
    max-height: 400px;
}

/* Generator Cards */
.generator-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.generator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(78, 115, 223, 0.1);
}

/* Feature Box */
.feature-box {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(78, 115, 223, 0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a57c9 100%);
}

/* Simplified Footer Styles */
footer {
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--bs-primary);
}

footer h5 {
    color: white;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(13, 110, 253, 0.7), 
        rgba(25, 135, 84, 0.7), 
        rgba(13, 202, 240, 0.7), 
        rgba(255, 193, 7, 0.7), 
        rgba(220, 53, 69, 0.7), 
        rgba(13, 110, 253, 0.7));
    background-size: 600% 100%;
    animation: gradientMove 10s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

.footer-dice-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
}

.footer-dice-animation i {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-dice-animation i:nth-child(1) { animation: diceBounce 2s infinite 0.1s; }
.footer-dice-animation i:nth-child(2) { animation: diceBounce 2s infinite 0.3s; }
.footer-dice-animation i:nth-child(3) { animation: diceBounce 2s infinite 0.5s; }
.footer-dice-animation i:nth-child(4) { animation: diceBounce 2s infinite 0.7s; }
.footer-dice-animation i:nth-child(5) { animation: diceBounce 2s infinite 0.9s; }
.footer-dice-animation i:nth-child(6) { animation: diceBounce 2s infinite 1.1s; }

@keyframes diceBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.footer-links a {
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--bs-primary) !important;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 100%;
}

.social-icons a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--bs-primary);
    transform: translateY(-3px);
}

/* Spinning Wheel Styles - Canvas Based */
#spin_the_wheel {
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#wheel {
    display: block;
    width: 100%;
    height: auto;
}

#spin {
    font: 1.5em/0 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    margin: -15%;
    background: #fff;
    color: #ff0000;
    box-shadow: 0 0 0 8px currentColor, 0 0px 15px 5px rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: 0.8s;
}

#spin::after {
    content: "";
    position: absolute;
    top: -17px;
    border: 10px solid transparent;
    border-bottom-color: currentColor;
    border-top: none;
}

.wheel-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1/1;
    min-height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.85; /* Slightly transparent until fully loaded */
    transition: opacity 0.3s ease;
}

.wheel-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    border-radius: 50%;
    z-index: -1;
}

.page-loaded .wheel-container {
    opacity: 1;
}

#wheel {
    transition: opacity 0.3s ease;
}

/* Ensure text container has proper spacing */
.col-lg-6:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lead.mb-4 {
    min-height: 3rem; /* Minimum height to prevent layout shift */
}

/* Improved Wheel Text Positioning */
 /* Improved Wheel Section Positioning */
.wheel-section {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    transform-origin: 0% 100%;
    background-color: var(--clr);
    user-select: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    transform: rotate(calc(360deg / var(--total) * var(--i)));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.wheel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        transparent 0deg,
        transparent calc(360deg / var(--total)),
        rgba(0,0,0,0.1) calc(360deg / var(--total)),
        rgba(0,0,0,0.1) calc(360deg / var(--total) + 2deg),
        transparent calc(360deg / var(--total) + 2deg)
    );
    transform-origin: 0% 100%;
}

.wheel-text {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40%;
    transform-origin: 0 0;
    transform: rotate(calc(90deg + 360deg / var(--total) / 2));
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-align: center;
    white-space: nowrap;
}

.wheel-section:nth-child(odd) {
    background-image: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
}

.wheel-section:nth-child(even) {
    background-image: linear-gradient(to left, rgba(255,255,255,0.1), transparent);
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.1);
    border: 5px solid #f8f9fa;
}

.spinner-inner {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
}

.arrow {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid #e74a3b;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.2));
    z-index: 11;
}

.wheel.spinning {
    animation: spin 0.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Result Box Styles */
.result-box {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    transform-origin: center;
    border: 2px solid #f8f9fa !important;
}

.result-box.celebration {
    animation: celebrate 1s ease-in-out;
    border-color: #4e73df !important;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    opacity: 0;
    z-index: 100;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Wheel Options Styling */
.wheel-options .card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.wheel-options .card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.option-badge {
    font-size: 0.9rem;
    font-weight: normal;
    cursor: default;
    transition: all 0.2s ease;
}

.option-badge:hover {
    transform: translateY(-2px);
}

.remove-option {
    cursor: pointer;
    margin-left: 5px;
    opacity: 0.7;
}

.remove-option:hover {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        min-height: 500px;
    }
    
    .wheel-container {
        margin-top: 5px;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .wheel-container {
        margin-top: 5px;
        min-height: 350px;
    }
    
    .wheel-section span {
        font-size: 0.7rem;
        left: 25%;
    }
    
    /* Adjust hero section for mobile */
    .hero-content {
        display: flex;
        flex-direction: column;
    }
    
    .hero-text {
        order: 2;
        margin-top: 2rem;
    }
    
    .hero-wheel {
        order: 1;
    }
}

/* Add this to ensure flex ordering works */
.row.wheel-row {
    display: flex;
    flex-wrap: wrap;
}

.wheel-col {
    display: flex;
    flex-direction: column;
}

/* Pokemon Generator Styles */
/* Improved Type Filter Buttons */
.type-filter-btn {
    padding: 10px 15px;
    margin: 5px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: capitalize;
    border: 2px solid transparent;
    font-size: 1rem;
}

.type-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.type-filter-btn.active {
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* Improved Pokemon Card */
.pokemon-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    margin-bottom: 30px;
}

.pokemon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.pokemon-image-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    text-align: center;
}

.pokemon-image-large {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.pokemon-image-large:hover {
    transform: scale(1.05);
}

/* Evolution Chain Improvements */
.evolution-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.evolution-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(240, 240, 240, 0.7);
    border-radius: 15px;
    padding: 10px;
    transition: all 0.3s ease;
    min-width: 100px;
    max-width: 150px;
}

.evolution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.current-evolution {
    background-color: rgba(255, 230, 153, 0.7);
    border: 2px solid #ffcc00;
}

.evolution-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.evolution-image:hover {
    transform: scale(1.1);
}

.evolution-name {
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
}

.evolution-method {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.evolution-arrow {
    color: #aaa;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}


@keyframes shake {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

/* Mobile Responsiveness for Pokemon Generator */
@media (max-width: 768px) {
    .type-filter-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        margin: 3px;
    }
    
    .type-filters-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pokemon-image-large {
        max-width: 90%;
    }
    
    .evolution-container {
        flex-direction: column;
    }
    
    .evolution-item {
        min-width: 80px;
        max-width: 120px;
    }
    
    .evolution-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .form-filter-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        margin: 2px;
    }
}

/* Result Dialog Styles */
.result-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-dialog.show {
    opacity: 1;
}

.result-dialog-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.result-dialog.show .result-dialog-content {
    transform: scale(1);
}

.result-dialog-header {
    background-color: #4e73df;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.trophy-icon {
    font-size: 24px;
    margin-right: 10px;
}

.result-dialog-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.result-dialog-body {
    padding: 20px;
    text-align: center;
}

.selected-option {
    font-size: 2rem;
    font-weight: bold;
    color: #4e73df;
    margin: 15px 0;
    padding: 10px;
    border: 2px dashed #4e73df;
    border-radius: 5px;
    background-color: #f8f9fc;
}

.close-btn {
    background-color: #4e73df;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #2e59d9;
}

/* Confetti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 1001;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        top: -10px;
        transform: translateX(0) rotateZ(0deg);
    }
    100% {
        top: 100vh;
        transform: translateX(calc(20vw - 40vw * var(--random, 0.5))) rotateZ(720deg);
    }
}

/* Tools Page Styling */
.tools-hero {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.tools-hero h1 {
    color: #333;
    margin-bottom: 20px;
}

.tool-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    background-color: #f8f9fa;
}

.tool-card .card-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.tool-card .card-text {
    color: #6c757d;
    margin-bottom: 20px;
}

.tool-card .btn {
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
}

/* Professional Header Styling for Random Generator Niche */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.navbar {
    padding: 15px 0;
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-dice-overlay {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background-color: #ffc107;
    color: #212529;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: diceRoll 3s infinite;
}

@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text {
    font-family: 'Arial Black', Gadget, sans-serif;
    font-weight: 900;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.brand-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #ffc107;
    border-radius: 3px;
}

.brand-tagline {
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 300;
    margin-top: 5px;
    text-transform: uppercase;
}

.nav-item {
    margin: 0 2px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 600;
}

.nav-icon-wrapper {
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover .nav-icon-wrapper {
    transform: scale(1.2);
}

.dropdown-menu-animated {
    animation: dropdownFade 0.3s ease;
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 10px;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 15px;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 2px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.random-btn {
    background-color: #ffc107;
    color: #212529 !important;
    font-weight: 700;
    padding: 8px 15px !important;
    border-radius: 30px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
}

.random-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #ffca2c;
}

.fa-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 991.98px) {
    .nav-link {
        flex-direction: row;
        align-items: center;
    }
    
    .nav-icon-wrapper {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .random-btn {
        margin-top: 10px;
    }
}

/* Improved Compact Header Styling */
.compact-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-dice-overlay {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background-color: #ffc107;
    color: #212529;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    animation: diceRoll 3s infinite;
}

@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text {
    font-family: 'Arial Black', Gadget, sans-serif;
    font-weight: 900;
    letter-spacing: 0.5px;
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
}

.brand-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ffc107;
    border-radius: 2px;
}

.brand-tagline {
    font-size: 0.65rem;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 300;
    margin-top: 3px;
    text-transform: uppercase;
}

.nav-item {
    margin: 0 1px;
}

.nav-link {
    padding: 6px 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 5px;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 8px 0;
    }
}

/* Blog Page Styles */

/* Blog Page Styles - AdSense Optimized */

/* Blog Hero Section */
.blog-hero {
    background-color: #0d6efd;
    background-image: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.blog-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.blog-hero h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-hero p {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.blog-search {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search .form-control {
    border-radius: 30px 0 0 30px;
    padding-left: 20px;
    height: 50px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-search .btn {
    border-radius: 0 30px 30px 0;
    padding: 0 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Featured Post Section */
.featured-post-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 768px) {
    .featured-post-card {
        flex-direction: row;
    }
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.featured-post-image {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.featured-post-content {
    flex: 1;
    padding: 30px;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.featured-post-meta .category {
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 15px;
}

.featured-post-meta .date {
    display: flex;
    align-items: center;
}

.featured-post-meta .date i {
    margin-right: 5px;
}

.featured-post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #212529;
}

.featured-post-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.featured-post-link {
    display: inline-flex;
    align-items: center;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-post-link:hover {
    color: #0a58ca;
}

.featured-post-link i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.featured-post-link:hover i {
    transform: translateX(3px);
}

/* AdSense Placeholders */
.ad-placeholder {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder-text {
    color: #adb5bd;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder-large {
    min-height: 250px;
}

.sidebar-ad .ad-placeholder {
    min-height: 250px;
    margin-bottom: 30px;
}

.in-feed-ad {
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

/* Blog Categories Section */
.blog-categories {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;
}

.categories-wrapper {
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.category-label {
    font-weight: 600;
    margin-right: 15px;
    white-space: nowrap;
}

.categories-list {
    display: flex;
    gap: 10px;
}

.category-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-btn:hover, .category-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Blog Posts Grid */
.blog-post-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.blog-post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #6c757d;
}

.blog-post-meta .date {
    display: flex;
    align-items: center;
}

.blog-post-meta .date i {
    margin-right: 5px;
}

.blog-post-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
}

.blog-post-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.blog-post-link {
    display: inline-flex;
    align-items: center;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: auto;
}

.blog-post-link:hover {
    color: #0a58ca;
}

.blog-post-link i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.blog-post-link:hover i {
    transform: translateX(3px);
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
}

.pagination .page-link {
    border-radius: 5px;
    margin: 0 3px;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Blog Sidebar */
.blog-sidebar-widget {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0d6efd;
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popular-post-title a:hover {
    color: #0d6efd;
}

.popular-post-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Categories Widget */
.categories-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.categories-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-widget a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 5px 0;
}

.categories-widget a:hover {
    color: #0d6efd;
}

.category-count {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.categories-widget a:hover .category-count {
    background-color: #0d6efd;
    color: white;
}

/* Newsletter Widget */
.newsletter-form .form-control {
    border-radius: 5px 0 0 5px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    height: auto;
}

.newsletter-form .btn {
    border-radius: 0 5px 5px 0;
    padding: 10px 15px;
}

/* Tags Widget */
.tags-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 5px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-link:hover {
    background-color: #0d6efd;
    color: white;
}

/* Related Posts Section */
.related-posts-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

/* Newsletter Section */
.blog-newsletter {
    background-color: #f8f9fa;
    padding: 60px 0;
    border-top: 1px solid #e9ecef;
}

.newsletter-form-large {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form-large .form-control {
    height: 50px;
    border-radius: 30px 0 0 30px;
    padding-left: 20px;
    border: 1px solid #dee2e6;
}

.newsletter-form-large .btn {
    border-radius: 0 30px 30px 0;
    padding: 0 25px;
}

/* Loading Placeholders */
.blog-post-placeholder,
.featured-post-placeholder,
.popular-post-placeholder {
    animation: pulse 1.5s infinite;
}

.placeholder-image {
    height: 200px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
}

.placeholder-image-small {
    width: 70px;
    height: 70px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-right: 15px;
}

.placeholder-title {
    height: 24px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 80%;
}

.placeholder-title-small {
    height: 16px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 90%;
}

.placeholder-text {
    height: 16px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 10px;
}

.placeholder-text-small {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 4px;
    width: 60%;
}

.placeholder-button {
    height: 40px;
    background-color: #e9ecef;
    border-radius: 4px;
    width: 120px;
    margin-top: 15px;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* No Blogs Message */
.no-blogs-message {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.no-blogs-message i {
    color: #adb5bd;
    margin-bottom: 15px;
}

.no-blogs-message h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.error-message i {
    color: #ffc107;
    margin-bottom: 15px;
}

.error-message h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0a58ca;
    transform: translateY(-3px);
}

/* Section Titles */
.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 30px;
    color: #212529;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 3px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .featured-post-card {
        flex-direction: column;
    }
    
    .featured-post-image {
        min-height: 200px;
    }
    
    .ad-placeholder-large {
        min-height: 180px;
    }
}

@media (max-width: 767.98px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .featured-post-content {
        padding: 20px;
    }
    
    .featured-post-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .category-btn {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    .blog-post-title {
        font-size: 1.1rem;
    }
    
    .ad-placeholder {
        min-height: 60px;
    }
    
    .ad-placeholder-large {
        min-height: 120px;
    }
}

/* Add mobile-specific styles for the header */
@media (max-width: 991.98px) {
    /* Adjust brand text size for mobile */
    .brand-text {
        font-size: 1.2rem;
    }
    
    /* Reduce tagline size */
    .brand-tagline {
        font-size: 0.7rem;
    }
    
    /* Adjust logo size */
    .logo-container img {
        height: 40px;
    }
    
    /* Ensure navbar elements stay on same line */
    .navbar {
        padding: 8px 0;
    }
    
    /* Adjust spacing for better alignment */
    .navbar-brand {
        margin-right: 0;
    }
    
    /* Make hamburger button more compact */
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* Even smaller screens need more adjustments */
@media (max-width: 575.98px) {
    .brand-text {
        font-size: 1rem;
    }
    
    .brand-tagline {
        font-size: 0.6rem;
        margin-top: 2px;
    }
    
    .logo-container img {
        height: 36px;
    }
    
    /* Ensure everything stays on one line */
    .navbar-brand {
        flex: 1;
    }
    
    /* Make the logo and text more compact */
    .logo-container {
        margin-right: 8px !important;
    }
    
    /* Adjust the dice overlay */
    .logo-dice-overlay {
        font-size: 0.9rem;
    }
}/* End custom CSS */