/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Child theme for Divi (custom CSS + PMPro tweaks).
 Author:         Your Name
 Author URI:     https://sexual4you.com
 Template:       Divi
 Version:        1.0.0
 Text Domain:    divi-child
*/

/* --- FIXED 3-2-1 Grid + Equal Height Cards --- */

/* 1. Reset the Row to prevent the "one long line" issue */
.audio-grid-row {
    display: block !important; /* Overrides the problematic flex on the row */
}

/* 2. Desktop: 3 Columns */
@media (min-width: 981px) {
    .audio-grid-row .et_pb_column {
        width: 30.6% !important;
        margin-right: 4% !important;
        float: left !important;
        display: flex !important; /* Keep flex here for height */
        min-height: 1px;
    }
    .audio-grid-row .et_pb_column:nth-child(3n) {
        margin-right: 0 !important;
    }
    .audio-grid-row .et_pb_column:nth-child(3n+1) {
        clear: left !important;
    }
}

/* 3. Tablet: 2 Columns */
@media (min-width: 768px) and (max-width: 980px) {
    .audio-grid-row .et_pb_column {
        width: 47% !important;
        margin-right: 6% !important;
        margin-bottom: 30px !important;
        float: left !important;
        display: flex !important;
        clear: none !important;
    }
    .audio-grid-row .et_pb_column:nth-child(2n) {
        margin-right: 0 !important;
    }
    .audio-grid-row .et_pb_column:nth-child(2n+1) {
        clear: left !important;
    }
}

/* 4. Mobile: 1 Column */
@media (max-width: 767px) {
    .audio-grid-row .et_pb_column {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }
}

/* 5. Force the Blurb Card to be Full Height */
.audio-card {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto; /* Forces card to stretch to column height */
}

.audio-card .et_pb_blurb_content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    flex: 1; 
}

/* Keeps the button at the bottom */
.audio-card .et_pb_button_module_wrapper {
    margin-top: auto !important;
}

/* --- Audio Card Button Styling --- */

/* Default State */
.audio-card .et_pb_button {
    background-color: #ffffff !important;
    color: #6f2232 !important;
    font-size: 18px !important;
    border: 1px solid #6f2232 !important;
    border-radius: 9px !important;
    padding: 10px 2em 10px 0.7em !important;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    transition: all 300ms ease !important;
}

/* Hover State (Color Reversal) */
.audio-card .et_pb_button:hover {
    background-color: #6f2232 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* PMPro Subscribe Button - Default */
.pms-form input[type="submit"] {
  background-color: #6f2232;
  color: #ffffff;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  font-size: 18px;
  border-radius: 9px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

/* PMPro Subscribe Button - Hover */
.pms-form input[type="submit"]:hover {
  background-color: #0f0f0f;
}

/* --- Footer Cleanup + Premium Styling (Divi) --- */

/* Remove the big widget section completely (use if you don't want footer widgets) */
#footer-widgets {
  display: none !important;
}

/* Footer background + spacing */
#main-footer {
  background: #0f0f0f !important;
  padding-top: 30px !important;
}

/* Bottom bar layout */
#footer-bottom {
  background: #0f0f0f !important;
  padding: 18px 0 !important;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Center everything */
#footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Social icons – cleaner, modern */
#footer-bottom .et-social-icons {
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#footer-bottom .et-social-icons li a {
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#footer-bottom .et-social-icons li a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Footer text */
#footer-info {
  float: none !important;
  text-align: center !important;
  color: rgba(255,255,255,0.65) !important;
  font-size: 14px !important;
  line-height: 1.4;
}

/* Footer links */
#footer-info a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.2s ease, border-color 0.2s ease;
}

#footer-info a:hover {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.35);
}