/*Importing other CSS files */
@import url('common-page.css');

.container {
    max-width: 1366px;
    width: 100%;
    margin: 0 auto;
}
/* Movie Grid Layout */
.movie-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }
}
/* Movie Card */
.movie-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Thumbnail Image */
.movie-card-image {
    height: 200px;
    overflow: hidden;
    display: block;
}

.movie-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content */
.movie-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.movie-card-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111;
}

.movie-card-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

.movie-card-excerpt {
    font-size: 15px;
    color: #444;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Button */
.movie-card-button {
    padding: 10px 18px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
    transition: background 0.3s ease;
}

.movie-card-button:hover {
    background-color: #005b8f;
}

.movie-card-image {
    height: 200px;
}
.movie-card-image img {
    object-fit: cover;
}


/* Filter at top right */
.movie-filter-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.movie-filter-top select {
    padding: 8px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 220px;
}

/* Responsive: filter goes full-width on mobile */
@media (max-width: 768px) {
    .movie-filter-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .movie-filter-top select {
        width: 100%;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 8px 14px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
    font-size: 14px;
}

.pagination li a:hover {
    background-color: #0073aa;
    color: #fff;
}

.pagination li .current {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}

/* Responsive tweak */
@media (max-width: 500px) {
    .pagination ul {
        justify-content: center;
    }

    .pagination li a,
    .pagination li span {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Single Movie Layout */
.single-movie-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.movie-title {
    margin-bottom: 10px;
}

.movie-publish-date {
    color: #666;
    font-size: 14px;
}

.movie-featured-image {
    margin: 20px 0;
}

.movie-content {
    line-height: 1.6;
    margin-bottom: 20px;
}

.movie-categories {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.movie-category-link {
    margin-right: 10px;
    color: #0073aa;
    text-decoration: none;
}

.movie-category-link:hover {
    text-decoration: underline;
}

/* Share Buttons */
.movie-share-buttons {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.movie-share-buttons .share-label {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

.movie-share-buttons a img {
    width: 30px;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

.movie-share-buttons a:hover img {
    transform: scale(1.1);
}

/* Back Button */
.back-to-archive {
    margin-top: 30px;
}

.back-to-archive .back-link {
    text-decoration: none;
    color: #0073aa;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.back-to-archive .back-link:hover {
    text-decoration: underline;
}

/* Container and grid layout */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* exactly 3 columns */
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 1024px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}
/* Event card */
.event-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Image styling */
.event-card-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Card body */
.event-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Title */
.event-card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

/* Event lead section */
.event-lead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.event-leadicon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Meta data */
.event-card-date {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 15px;
}

/* Excerpt */
.event-card-excerpt {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Button */
.event-card-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    align-self: flex-start;
}

.event-card-button:hover {
    background-color: #005f8d;
}

.event-grid .pagination{
    grid-column: 1 / -1;
}

/* Ensure filter dropdown doesn’t break layout */
.event-filter-top {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
}

.event-filter-top select {
    padding: 8px;
    border-radius: 6px;
    font-size: 1rem;
}

/* Pagination - full width below cards */
.event-pagination {
    margin: 40px 0 20px;
    text-align: center;
}

.event-pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 14px;
    background: #f1f1f1;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
}

.event-pagination .page-numbers:hover {
    background: #0073aa;
    color: #fff;
}

.event-pagination .current {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

/*Header css */
.twentytwentyone-header-widget-area {
    padding: 20px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.twentytwentyone-header-widget-area .header-widget {
    margin: 10px;
    flex: 1 1 200px; /* flexible grid */
}
.twentytwentyone-header-widget-area .header-widget:nth-child(2){
    flex: 0 0 460px;
}

.twentytwentyone-header-widget-area .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}


/* ========== HEADER WIDGET AREA ========== */
.twentytwentyone-header-widget-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    gap: 20px;
    flex-wrap: wrap;
}

/* Each widget */
.twentytwentyone-header-widget-area .header-widget {
    flex: 0 auto;
    margin-top: 0;
    margin-bottom: 0;
}

/* Logo Styling */
.twentytwentyone-header-widget-area .header-widget:first-child img {
    max-width: 180px;
    height: auto;
}

/* Menu Styling */
.twentytwentyone-header-widget-area .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.twentytwentyone-header-widget-area .menu li a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    padding: 8px 12px;
    transition: color 0.2s;
}

.twentytwentyone-header-widget-area .menu li a:hover {
    color: #0073aa;
}

/* ========== SEARCH FORM STYLING ========== */
.twentytwentyone-header-widget-area .search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 30px;
    overflow: hidden;
    background-color: #fff;
    padding: 2px 4px;
}

/* Hide label */
.twentytwentyone-header-widget-area .search-form label {
    display: none;
}

/* === SEARCH INPUT FIELD === */
.twentytwentyone-header-widget-area .search-field {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: transparent;
}

/* === SUBMIT BUTTON WITH IMAGE ICON === */
.twentytwentyone-header-widget-area .search-submit {
    width: 40px;
    height: 40px;
    background-color: transparent !important;
    background-image: url('../icons/searchicon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    border: none;
    text-indent: -9999px;
    cursor: pointer;
    margin: 0 !important;
}

/* === OPTIONAL: HOVER EFFECT === */
.twentytwentyone-header-widget-area .search-submit:hover {
    opacity: 0.8;
}
/* ========== STICKY HEADER ========== */
.site-header-childtheme {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff;
    box-shadow: none;
    transition: box-shadow 0.3s ease-in-out;
}

.site-header-childtheme.scrolled {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .twentytwentyone-header-widget-area {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .twentytwentyone-header-widget-area .menu {
        justify-content: center;
    }

    .twentytwentyone-header-widget-area .search-form {
        max-width: 100%;
        margin: 10px 0;
    }
}

.has-background-white .site .twentytwentyone-header-widget-area a:focus:not(.wp-block-button__link):not(.wp-block-file__button){
    background: none;
}

/* === Footer Main Wrapper === */
.twentytwentyone-footer-widget-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 20px;
    color: #333;
    background-color: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* === Footer Widget Block === */
.footer-widget {
    /*flex: 1 1 220px;
    min-width: 200px;*/
    flex: 1;
}

/* === Logo Image Cleanup === */
.footer-widget img {
    max-width: 180px;
    height: auto;
}

/* === Widget Titles === */
.footer-widget .widget-title,
.footer-widget h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
    padding-top: 15px;
}

/* === Footer Menu Styling === */
.footer-widget ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul.menu li {
    margin-bottom: 5px;
}

.footer-widget ul.menu li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.footer-widget ul.menu li a:hover {
    text-decoration: underline;
}

/* === Footer Submenu Styling === */
.footer-widget ul.sub-menu {
    margin-top: 5px;
    padding-left: 15px;
}

.footer-widget ul.sub-menu li a {
    font-size: 13px;
    color: #555;
}

/* === Contact Info === */
.footer-widget .textwidget p {
    margin: 5px 0;
    font-size: 14px;
}

/* === Social Links Area (Bottom) === */
.footer-widget:last-child ul.menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-widget:last-child ul.menu li {
    margin: 0;
}

.footer-widget:last-child ul.menu li a {
    font-size: 14px;
    padding: 5px 10px;
    background: #e9e9e9;
    border-radius: 4px;
    color: #000;
    transition: background 0.2s ease;
}

.footer-widget:last-child ul.menu li a:hover {
    background: #d4d4d4;
}

/* === Responsive Layout === */
@media (max-width: 768px) {
    .twentytwentyone-footer-widget-area {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-widget {
        width: 100%;
    }

    .footer-widget:last-child ul.menu {
        justify-content: flex-start;
    }
}

/* === Footer Center Menu Container (Card Style Layout) === */
.menu-footer-center-menu-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* === Main Menu Items as Cards === */
.menu-footer-center-menu-container ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

/* Main Menu Items */
.menu-footer-center-menu-container ul.menu > li {
    padding: 15px 20px;
    border-radius: 6px;
    flex: 1;
}

/* Main Menu Links (e.g. "Top Movies") */
.menu-footer-center-menu-container ul.menu > li > a {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    pointer-events: nones;
}

/* Hover Effect */
.menu-footer-center-menu-container ul.menu > li > a:hover {
    color: #0073aa;
}

/* === Submenu (Inside Cards) === */
.menu-footer-center-menu-container ul.sub-menu {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

/* Submenu Items */
.menu-footer-center-menu-container ul.sub-menu li {
    margin: 4px 0;
}

/* Submenu Links */
.menu-footer-center-menu-container ul.sub-menu li a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    padding-left: 5px;
}

/* Submenu Hover */
.menu-footer-center-menu-container ul.sub-menu li a:hover {
    color: #000;
    text-decoration: underline;
}

.footer-widget:last-child {flex: 1 1 100%;text-align: center;}

.footer-widget:last-child ul {
    justify-content: center;
}

/*.footer-widget img {
    width: 60% !important;
}*/

.twentytwentyone-footer-widget-area .wp-caption {
    width: 360px !important;
    max-width: 100%;
    margin: 0 auto;
}

.custom-footer-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-top: 10px;
}

.powered-by {
    text-align: center;
    font-size: 15px;
    color: #6e6c6c;
    margin: 4px 0;
    justify-content: center;
    display: flex;
    align-items: center;
}

/*Event single page css*/
/* Single Event Page Styles */
.single-event {
    margin: 0 auto;
    padding: 60px 20px;
    color: #333;
}

.single-event article {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.single-event h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #222;
    line-height: 1.3;
    text-align: center;
}

.event-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.event-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.event-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.event-content p {
    margin-bottom: 20px;
}

.event-content h2,
.event-content h3,
.event-content h4 {
    margin-top: 30px;
    color: #0073aa;
}

.event-content ul,
.event-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.event-content a {
    color: #0073aa;
    text-decoration: underline;
}

.event-content a:hover {
    color: #005f8d;
    text-decoration: none;
}

@media (max-width: 768px) {
    .single-event {
        padding: 40px 15px;
    }

    .single-event h1 {
        font-size: 1.8rem;
    }

    .event-content {
        font-size: 1rem;
    }
}

/*ACF page content */

.acf-userinfo-box {
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  border: 2px solid #e2e2e2;
  border-radius: 12px;
  background: #fdfdfd;
  font-family: Arial, sans-serif;
}

.acf-userinfo-header {
  margin-bottom: 15px;
}

.acf-userinfo-name {
  margin: 0;
  font-size: 1.6rem;
  color: #333;
}

.acf-userinfo-age {
  margin: 5px 0 0;
  color: #666;
}

.acf-hobbies-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.acf-hobbies-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  display: flex;
  justify-content: space-around;
}

.acf-hobby-item {
  margin-bottom: 6px;
}

.acf-hobbies-empty {
  color: #999;
  font-style: italic;
}


.acf-hobby-details-blocks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border: 2px solid #e2e2e2;
    border-radius: 10px;
    padding: 15px;
}

.acf-hobby-details-blocks .description-image img {
    width: 60px;
    border-radius: 111px;
    display: inline-block;
    border: 1px solid;
    height: 60px;
}

.acf-hobby-details-blocks .acf-hobby-details-block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 32%;
}

.acf-hobby-details-blocks .description-text {
    position: absolute;
    background: #0994d98a;
    width: 100%;
    display: none;
    height: 60px;
}

.acf-hobby-details-block:hover .description-text {
    display: inline-block;
}

.acf-hobby-details-blocks .description-video iframe { height: min-content !important; }
.acf-detailsblock-title {
    width: 100%;
    text-align: center;
}


/*AI COURSE Generator */
.ai-course {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

.ai-course h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.lesson-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
}

.lesson-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.lesson-card h3 {
    margin-top: 0;
    color: #2980b9;
}

.lesson-card .tagline {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.lesson-card .lesson-content {
    color: #2d3436;
    line-height: 1.6;
}

.course-image {
    text-align: center;
    margin-top: 30px;
}

.course-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.go-ahead-btn {
    background-color: #2ecc71;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.go-ahead-btn:hover {
    background-color: #27ae60;
}