/*
Welcome to Custom CSS!

To learn how this works, see http://wp.me/PEmnE-Bt
*/

/*
Global CLS improvements for ScubaHankNYC
----------------------------------------
These rules help stabilize layout for images, videos, embeds, and fonts.
*/
img,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ... and so on ... */
/* ===================================
   NYUPS PAGE CUSTOM CSS
   Paste this into: Appearance → Customize → Additional CSS
   =================================== */

/* Container */
.nyups-page-wrapper {
    padding: 40px 20px;
    background-color: #000;
    color: #fff;
}

/* Intro Text Styling */
.nyups-intro-text {
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    padding: 30px;
    border-left: 4px solid #dc143c;
    background: #111;
}

.nyups-intro-text a {
    color: #dc143c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nyups-intro-text a:hover {
    color: #ff2f54;
}

/* Featured Post Hero Section */
.nyups-featured-query {
    margin-bottom: 80px;
}

.nyups-featured-post {
    border: 2px solid #dc143c;
    background: #111;
    overflow: hidden;
}

.nyups-featured-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0 !important;
    min-height: 500px;
    align-items: center; /* Add this line */
}

.nyups-featured-image {
    position: relative;
    overflow: hidden;
    background: #000;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.nyups-featured-image img {
    width: 100%;
    height: auto !important;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.6s ease;
}
.nyups-featured-post:hover .nyups-featured-image img {
    transform: scale(1.05);
}

.nyups-featured-content {
    padding: 60px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.nyups-featured-label {
    color: #dc143c !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px !important;
}

.nyups-featured-title {
    font-size: 2.5rem !important;
    margin-bottom: 25px !important;
    line-height: 1.2 !important;
}

.nyups-featured-title a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nyups-featured-title a:hover {
    color: #dc143c !important;
}

.nyups-featured-excerpt {
    font-size: 1.15rem !important;
    color: #bbb !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
}

/* Archive Header */
.nyups-archive-header {
    text-align: center;
    margin: 60px 0 50px !important;
    font-size: 2rem !important;
    display: inline-block;
    border-bottom: 3px solid #dc143c;
    padding-bottom: 10px;
    color: #fff !important;
}

/* Archive Grid */
.nyups-archive-query {
    margin-bottom: 60px;
}

.nyups-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

.nyups-post-card {
    background: #111 !important;
    border: 1px solid #333 !important;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.nyups-post-card:hover {
    border-color: #dc143c !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.nyups-post-thumbnail {
    position: relative;
    overflow: hidden;
    background: #000;
    margin: 0 !important;
}

.nyups-post-thumbnail img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nyups-post-card:hover .nyups-post-thumbnail img {
    transform: scale(1.1);
}

.nyups-post-content {
    padding: 25px !important;
}

.nyups-post-title {
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

.nyups-post-title a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nyups-post-title a:hover {
    color: #dc143c !important;
}

.nyups-post-excerpt {
    color: #999 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Pagination */
.nyups-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.nyups-pagination a,
.nyups-pagination .page-numbers {
    color: #fff;
    background: #111;
    border: 1px solid #333;
    padding: 10px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nyups-pagination a:hover,
.nyups-pagination .page-numbers.current {
    background: #dc143c;
    border-color: #dc143c;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nyups-featured-wrapper {
        grid-template-columns: 1fr !important;
    }

    .nyups-featured-content {
        padding: 40px !important;
    }

    .nyups-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    .nyups-intro-text {
        font-size: 1rem;
        padding: 20px;
        margin-bottom: 40px;
    }

    .nyups-featured-title {
        font-size: 1.8rem !important;
    }

    .nyups-featured-content {
        padding: 30px !important;
    }

    .nyups-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .nyups-archive-header {
        font-size: 1.5rem !important;
        margin: 40px 0 30px !important;
    }
}

@media (max-width: 480px) {
    .nyups-page-wrapper {
        padding: 20px 15px;
    }

    .nyups-intro-text {
        padding: 15px;
    }

    .nyups-featured-query {
        margin-bottom: 50px;
    }

    .nyups-featured-content {
        padding: 20px !important;
    }

    .nyups-featured-title {
        font-size: 1.5rem !important;
    }

    .nyups-featured-excerpt {
        font-size: 1rem !important;
    }
}
/* ===================================
   MARINE LIFE PAGE (ID 31946) - FINAL FIX
   =================================== */

/* 1. Hide Sidebar & Widget Areas */
.page-id-31946 #secondary,
.page-id-31946 #sidebar,
.page-id-31946 .widget-area {
    display: none !important;
}

/* 2. Force Main Content to Full Width */
@media screen and (min-width: 59em) {
    .page-id-31946 .content-area,
    .page-id-31946 #primary,
    .page-id-31946 .site-main {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        
        /* 3. KILL THE LINE (Border & Ghost Elements) */
        border: none !important;
        box-shadow: none !important;
    }

    /* 4. Target the specific 'pseudo-element' line if the theme uses one */
    .page-id-31946 .content-area::after,
    .page-id-31946 #primary::after {
        display: none !important;
        content: none !important;
        border: none !important;
    }
}
/* ===================================
   NYUPS PAGE (ID 30129) - FULL WIDTH FIX
   =================================== */

/* 1. Hide Sidebar & Widget Areas */
.page-id-30129 #secondary,
.page-id-30129 #sidebar,
.page-id-30129 .widget-area {
    display: none !important;
}

/* 2. Force Main Content to Full Width */
@media screen and (min-width: 59em) {
    .page-id-30129 .content-area,
    .page-id-30129 #primary,
    .page-id-30129 .site-main {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        
        /* 3. KILL THE LINE (Border & Ghost Elements) */
        border: none !important;
        box-shadow: none !important;
    }

    /* 4. Target the specific 'pseudo-element' line */
    .page-id-30129 .content-area::after,
    .page-id-30129 #primary::after {
        display: none !important;
        content: none !important;
        border: none !important;
    }
}
/* ===================================
   SEA TURTLE GUIDE (ID 33842) - FULL WIDTH FIX
   =================================== */

/* 1. Hide Sidebar & Widget Areas */
.page-id-33842 #secondary,
.page-id-33842 #sidebar,
.page-id-33842 .widget-area {
    display: none !important;
}

/* 2. Force Main Content to Full Width */
@media screen and (min-width: 59em) {
    .page-id-33842 .content-area,
    .page-id-33842 #primary,
    .page-id-33842 .site-main {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        
        /* 3. KILL THE LINE (Border & Ghost Elements) */
        border: none !important;
        box-shadow: none !important;
    }

    /* 4. Target the specific 'pseudo-element' line */
    .page-id-33842 .content-area::after,
    .page-id-33842 #primary::after {
        display: none !important;
        content: none !important;
        border: none !important;
    }
}