/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress Multi Purpose + eCommerce Child Theme
Version: 1.0
Template: porto
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: woocommerce, business, corporate, e-commerce, blog, news, education, portfolio, responsive, etc.
Text Domain: porto-child
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

/* -----------------------------------------------------------
   Child theme custom CSS starts below this line
   Add your CSS here or import other .css files from functions.php
   ----------------------------------------------------------- */
   .custom-product-attributes {
      margin-top: 30px;
  }
  
  .custom-product-attributes h3 {
      margin-bottom: 15px;
      font-size: 20px;
      font-weight: 600;
  }
  
  .custom-product-attributes table {
      width: 100%;
      border-collapse: collapse;
  }
  
  .custom-product-attributes th,
  .custom-product-attributes td {
      padding: 10px;
      border-bottom: 1px solid #e5e5e5;
      text-align: left;
  }
  
  .custom-product-attributes th {
      width: 35%;
      font-weight: 600;
  }
  /* ========================================
   EVENTS GRID STYLING
   ======================================== */

/* Grid Container - All Events */
.all-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
    padding: 0;
}

/* Grid Container - Latest Events */
.latest-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
    padding: 0;
}

/* Event Card */
.event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Event Image */
.event-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.event-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-thumbnail {
    transform: scale(1.05);
}

/* Event Content */
.event-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Event Title */
.event-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #0066cc;
}

/* Event Meta */
.event-meta {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Event Excerpt */
.event-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

/* Event Button */
.event-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0066cc;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.event-btn:hover {
    background: #0052a3;
}

/* No Events Message */
.no-events {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.notify-form input {
    padding: 8px;
    width: 250px;
}
.notify-form button {
    padding: 8px 12px;
    margin-left: 5px;
}
/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .all-events-grid,
    .latest-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .all-events-grid,
    .latest-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .event-image {
        height: 200px;
    }
    
    .event-title {
        font-size: 18px;
    }
    
    .event-content {
        padding: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .event-image {
        height: 180px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-excerpt {
        font-size: 14px;
    }
}

@media (min-width: 1960px) {
    .d-3xl-show {
        display: flex !important;
    }

    .d-3xl-none {
        display: none !important;
    }
}