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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #dc2626;
}

.volunteer-desktop {
    display: none;
}

.btn-primary {
    background: #dc2626;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background: #b91c1c;
}

.mobile-menu-button {
    display: block;
}

.mobile-menu-button button {
    background: none;
    border: none;
    color: #374151;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-mobile {
    border-top: 1px solid #e5e7eb;
}

.mobile-menu-content {
    padding: 0.5rem;
    background: white;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #dc2626;
}

.mobile-volunteer {
    width: 100%;
    margin-top: 0.5rem;
    display: block;
}

/* Hero Section – Indian Tricolor */
.hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(to right, #FF9933, #FFFFFF, #138808);
    /* Saffron → White → Green */
    overflow: hidden;
    transition: all 1s ease-in-out;
    background-size: 400% 400%;
    animation: tricolorFlow 15s ease infinite;
}

/* Gradient variations (animated slides) */
.hero.gradient-1 {
    background: linear-gradient(to right, #FF9933, #FFFFFF, #138808);
    /* Standard tricolor */
}

.hero.gradient-2 {
    background: linear-gradient(to right, #138808, #FFFFFF, #FF9933);
    /* Reverse */
}

.hero.gradient-3 {
    background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
    /* Diagonal blend */
}


.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Subtle tricolor transparency overlay */
    background: linear-gradient(to right,
            rgba(255, 153, 51, 0.7),
            /* Saffron */
            rgba(255, 255, 255, 0.4),
            /* White */
            rgba(19, 136, 8, 0.7)
            /* Green */
        );
}

@keyframes tricolorFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Subtle spinning Ashoka Chakra overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/1/17/Ashoka_Chakra.svg') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    /* subtle watermark effect */
    transform: translate(-50%, -50%) rotate(0deg);
    animation: chakraSpin 30s linear infinite;
    pointer-events: none;
    /* doesn’t block clicks */
}

@keyframes chakraSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.stars-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    opacity: 0.2;
    color: white;
    font-size: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.stars-pattern span {
    animation: twinkle 2s infinite;
}

.stars-pattern span:nth-child(2n) {
    animation-delay: 0.1s;
}

.stars-pattern span:nth-child(3n) {
    animation-delay: 0.2s;
}

.stars-pattern span:nth-child(4n) {
    animation-delay: 0.3s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding: 5rem 0;
    color: white;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    color: #3B2F2F;
}

.hero-text p {
    font-size: 1.25rem;
    color: #e5e7eb;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    color: #444444;
}

.hero-text button {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-image img {
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-secondary {
    background: #dc2626;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.125rem;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: #b91c1c;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 20;
}

.carousel-arrow:hover {
    color: #fca5a5;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Donation Section */
.donation-section {
    background: #f9fafb;
    padding: 3rem 0;
}

.donation-content {
    text-align: center;
}

.donation-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 2rem;
}

.donation-progress {
    margin-bottom: 2rem;
}

.donation-amounts {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.amount-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amount-box {
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.amount-bar {
    width: 4rem;
    height: 1rem;
    border-radius: 0.25rem;
}

.red {
    background: #ef4444;
}

.red-dark {
    background: #dc2626;
}

.blue {
    background: #3b82f6;
}

.blue-dark {
    background: #2563eb;
}

.red-light {
    background: #f87171;
}

.blue-light {
    background: #60a5fa;
}

.red-darker {
    background: #b91c1c;
}

.progress-line {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 9999px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    width: 65%;
    height: 100%;
    background: #dc2626;
    border-radius: 9999px;
}

.progress-text {
    color: #6b7280;
}

.progress-text strong {
    font-weight: 600;
}

.donate-button-container {
    text-align: center;
}

.btn-donate {
    background: #dc2626;
    color: white;
    padding: 0.75rem 3rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
}

.btn-donate:hover {
    background: #b91c1c;
}

/* Patriotic Section */
.patriotic-section {
    padding: 4rem 0;
    background: white;
}

.patriotic-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.eagle-container {
    position: relative;
}

.eagle-stars {
    text-align: center;
    color: #dc2626;
    font-size: 1.5rem;
    /* background-color: blue; */
    margin: auto;
}

.eagle-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 0.5rem;
    display: block;
}

.patriotic-text h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.patriotic-text p {
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.policy-boxes {
    margin: 2rem 0;
}

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.policy-icon {
    width: 2rem;
    height: 2rem;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.policy-content h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.policy-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* Events Section */
.events-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.events-header {
    text-align: center;
    margin-bottom: 3rem;
}

.events-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.events-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 768px;
    margin: 0 auto;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.event-image {
    position: relative;
}

.event-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.event-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.event-details {
    margin-bottom: 1rem;
}

.event-detail {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.btn-event {
    width: 100%;
    background: #dc2626;
    color: white;
    padding: 0.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-event:hover {
    background: #b91c1c;
}

.events-footer {
    text-align: center;
}

.btn-view-all {
    background: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.125rem;
    transition: background-color 0.3s ease;
}

.btn-view-all:hover {
    background: #1d4ed8;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0;
}

.footer .logo-text {
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-main {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-main p {
    color: #d1d5db;
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #9ca3af;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

.footer-section h4 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
}

.footer-bottom a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

/* === Single Event (scoped) === */
.single-event .event-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px;
}

.single-event .event-title {
    margin: 0 0 8px;
    line-height: 1.2;
}

.single-event .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #6b7280;
    /* subtle gray */
    margin-bottom: 20px;
}

.single-event .event-body {
    display: grid;
    grid-template-columns: 360px 1fr;
    /* image | content */
    gap: 28px;
    align-items: start;
}

.single-event .event-media {
    width: 100%;
}

.single-event .event-thumbnail {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
}

.single-event .event-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* keeps aspect nicely */
}

/* Content column */
.single-event .event-content {
    line-height: 1.8;
    color: #111827;
}

.single-event .event-content img,
.single-event .event-content figure {
    max-width: 100%;
    height: auto;
}

/* Back button – NOT the global .btn-secondary */
.single-event .btn-back {
    display: inline-block;
    margin-top: 28px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.single-event .btn-back:hover {
    background: #e5e7eb;
}

/* ==== Single Event heading fixes ==== */
.single-event .event-title {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
}

.single-event .event-meta {
    font-size: clamp(14px, 1.4vw, 16px);
}

.single-event .event-content h2 {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    margin: 1.25rem 0 .5rem;
}

.single-event .event-content h3 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    margin: 1rem 0 .5rem;
}

.single-event .event-content p {
    margin: 0 0 1rem;
}

/* optional: keep emojis aligned with text */
.single-event .event-meta img.emoji {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
}

.events-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 30px;
}

.events-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}

.events-subtitle {
    font-size: 18px;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}


/* Mobile stacking */
@media (max-width: 900px) {
    .single-event .event-body {
        grid-template-columns: 1fr;
        /* stack */
    }

 
}


/* simgle pages */
.single-post .entry-header {
    margin-bottom: 24px;
    text-align: center;
}

.single-post .entry-title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    margin-top: 30px;
}

.single-post .entry-meta {
    color: #6b7280;
    font-size: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.single-post .post-thumbnail {
    text-align: center;
    margin: 24px 0;
}

.single-post .post-thumbnail img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.single-post .entry-content {
    line-height: 1.8;
    color: #1f2937;
    max-width: 800px;
    margin: 0 auto;
}

.single-post .entry-content h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    margin-top: 1.5em;
    margin-bottom: .5em;
    font-weight: 700;
}

.single-post .entry-content p {
    margin-bottom: 1em;
}

.single-post .entry-footer {
    margin-top: 40px;
    text-align: center;
}

.single-post .post-tags a {
    background: #f3f4f6;
    color: #111827;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    margin: 0 5px;
    display: inline-block;
}

.single-post .post-tags a:hover {
    background: #e5e7eb;
}

.single-post .post-navigation {
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

/* === Header / Nav responsive fix === */

/* Default: show mobile controls, hide desktop nav */
.nav-desktop,
.volunteer-desktop {
    display: none;
}

/* Desktop ≥ 768px: show desktop nav & volunteer button, hide mobile button/menu */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
    }

    .volunteer-desktop {
        display: block;
    }

    .mobile-menu-button {
        display: none;
    }

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

/* Make desktop menu horizontal */
.menu.menu-primary {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu.menu-primary>li {
    display: inline-block;
}

.menu.menu-primary a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 0;
    transition: color .2s ease;
}

.menu.menu-primary a:hover {
    color: #2563eb;
}

/* Mobile menu list styles (works with wp_nav_menu output) */
.menu.menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu.menu-mobile a {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 6px 0;
}

.menu.menu-mobile a:hover {
    color: #dc2626;
}

/* === Smooth Mobile Menu Animation === */

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* When menu is open */
#mobile-menu.open {
    max-height: 500px;
    /* Adjust if your menu is longer */
    opacity: 1;
}


/* Responsive Design */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
    }

    .volunteer-desktop {
        display: flex;
        align-items: center;
    }

    .mobile-menu-button {
        display: none;
    }

 .hero-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 20px;
}
    .hero-text h1 {
        font-size: 3rem;
    }

    .patriotic-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr) repeat(2, 1fr);
    }

    .footer-main {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr) 1fr 1fr;
    }
}


/* For small screens (mobile view) */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr; /* single column layout */
  }

  /* Reverse the order */
  .hero-image {
    order: -1; /* Move image to the top */
  }

  .hero-text {
    order: 2; /* Move text below */
  }

  /* Optional: center align on mobile */
  .hero-text {
    text-align: center;
  }

  .hero-image img {
    width: 60%;
    height: auto;
    margin: auto;
  }
}

/* ===== Page (Default) ===== */
.page-default .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Optional hero */
.page-default .page-hero {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 16px;
}
.page-default .page-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Header */
.page-default .page-header {
  margin-bottom: 18px;
}
.page-default .page-title {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0;
  color: #111827;
}

/* Body typography */
.page-default .page-content {
  color: #1f2937;
  line-height: 1.85;
  font-size: 1.05rem;
}
.page-default .page-content p { margin: 0 0 1rem; }
.page-default .page-content h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 1.6rem 0 .6rem;
  line-height: 1.25;
  font-weight: 700;
}
.page-default .page-content h3 {
  font-size: clamp(18px, 2vw, 24px);
  margin: 1.25rem 0 .5rem;
  font-weight: 700;
}
.page-default .page-content h4 { font-size: 1.1rem; margin: 1rem 0 .4rem; }

/* Lists */
.page-default .page-content ul,
.page-default .page-content ol { margin: 0 0 1rem 1.25rem; }
.page-default .page-content li { margin: .35rem 0; }

/* Media */
.page-default .page-content img,
.page-default .page-content video,
.page-default .page-content figure {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.page-default .page-content figure { margin: 1rem 0; }
.page-default .page-content figcaption {
  text-align: center; color: #6b7280; font-size: .95rem; margin-top: .4rem;
}

/* Tables */
.page-default .page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 12px;
}
.page-default .page-content table th,
.page-default .page-content table td {
  padding: .75rem .9rem;
  border-bottom: 1px solid #e5e7eb;
}
.page-default .page-content table thead th {
  background: #f3f4f6; font-weight: 700; text-align: left;
}

/* Blockquotes */
.page-default .page-content blockquote {
  border-left: 4px solid #2563eb;
  background: #f8fafc;
  padding: .9rem 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  color: #374151;
}

/* Code blocks */
.page-default .page-content pre,
.page-default .page-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
}
.page-default .page-content pre {
  background: #0b1220;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 10px;
  overflow: auto;
  margin: 1rem 0;
}

/* Buttons inside content (WP editor buttons etc.) */
.page-default .page-content a.wp-element-button,
.page-default .page-content .wp-block-button__link {
  background: #2563eb;
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.page-default .page-content a.wp-element-button:hover,
.page-default .page-content .wp-block-button__link:hover {
  background: #1e40af;
}

/* Small screens */
@media (max-width: 640px) {
  .page-default .page-hero-img { height: 220px; }
  .page-default .page-content { font-size: 1rem; }
}

/* ==== Blog Grid ==== */
.posts-archive .posts-archive-header {
  text-align: center;
  margin: 20px 0 30px;
}
.posts-archive .posts-archive-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  margin: 0 0 8px;
}
.posts-archive .posts-archive-intro { max-width: 720px; margin: 0 auto; color: #4b5563; }

/* Grid */
.posts-archive .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Card */
.post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease;
}
.post-card:hover { transform: translateY(-3px); }

/* Thumbnail */
.post-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: #f3f4f6; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb--placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#f3f4f6,#e5e7eb); }

/* Body */
.post-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; }

/* Meta + Title + Excerpt */
.post-meta { font-size: 14px; color: #6b7280; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-meta .dot { opacity: .6; }
.post-title { font-size: 20px; line-height: 1.3; margin: 0; }
.post-title a { color: #111827; text-decoration: none; }
.post-title a:hover { color: #2563eb; }
.post-excerpt { color: #374151; line-height: 1.6; }

/* Read more */
.post-readmore {
  margin-top: auto;
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: #2563eb;
}
.post-readmore:hover { color: #1e40af; }

/* Pagination */
.posts-archive .pagination { margin: 28px 0; display: flex; justify-content: center; }

/* ===== Contact Form 7 (Modern Form Styling) ===== */
.wpcf7 form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  font-family: inherit;
}

/* Form Labels */
.wpcf7 form label {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  font-size: 15px;
}

/* Inputs, textareas */
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="url"],
.wpcf7 form input[type="tel"],
.wpcf7 form input[type="number"],
.wpcf7 form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.2s ease;
  background-color: #f9fafb;
  color: #111827;
  font-family: inherit;
}

/* Focus effect */
.wpcf7 form input:focus,
.wpcf7 form textarea:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Spacing between fields */
.wpcf7 form p {
  margin-bottom: 18px;
}

/* Submit Button */
.wpcf7 form input[type="submit"] {
  background: #2563eb;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  display: inline-block;
}

.wpcf7 form input[type="submit"]:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

/* Spinner */
.wpcf7-spinner {
  margin-left: 10px;
  vertical-align: middle;
}

/* Success / Error messages */
.wpcf7-response-output {
  margin-top: 12px;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.wpcf7 form.invalid .wpcf7-response-output {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Textarea height */
.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 640px) {
  .wpcf7 form {
    padding: 20px;
  }
  .wpcf7 form input[type="submit"] {
    width: 100%;
  }
}
