/* --- Section & Header Styling --- */
.media-section {
    padding: 80px 0 120px;
    background-color: #000;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    text-align: center;
}

.main-heading-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Media Card Styling --- */
.media-card {
    background-color: #111111;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Hover Overlay Border */
.media-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 0 0 #c99f43;
    pointer-events: none;
    transition: box-shadow 0.3s ease-in-out;
    z-index: 10;
}

/* Triggering the gold border on hover */
.media-card:hover::after {
    box-shadow: inset 0 0 0 4px #c99f43;
}

.media-img-wrapper {
    width: 100%;
    height: 240px; /* Fixed height for uniformity */
    overflow: hidden;
}

.media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.media-card:hover .media-img {
    transform: scale(1.05); /* Slight zoom on image hover */
}

.media-body {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.media-title {
    color: #c99f43;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    font-family: var(--font-02);
}

.media-text {
    color: #d1d1d1;
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 35px;
    flex-grow: 1;
    font-family: var(--font-01);
}

/* --- Button Styling --- */
.btn-read-more {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    padding: 12px 40px;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto; /* Pushes button to bottom */
    font-family: var(--font-01);
}

/* Button hover state triggered when hovering the entire card (like the second image) */
.media-card:hover .btn-read-more {
    background-color: #c99f43;
    border-color: #c99f43;
    color: #fff;
}

/* Extra safety if hovering directly on button */
.btn-read-more:hover {
    background-color: #b88d36 !important;
    border-color: #b88d36 !important;
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .media-body { padding: 30px 20px; }
    .media-title { font-size: 1rem; }
}

@media (max-width: 768px) {
    .media-section { padding: 60px 0; }
    .main-heading { font-size: 2.2rem; }
}