/* ==========================================================================
   1. Base & Global Styles
   ========================================================================== */
html {
    background-color: white;
}

body {
    margin: 0;
}

body.homepage {
    background-color: #6B4AA0;
}

body.newspage,{
    min-height: 100vh;
}

body.newspage main {
    background-color: #6B4AA0;
}

a:visited {
    text-decoration: none;
}

section {
    background-color: #03C5CD;
    color: #2E0152;
    font-family: Manrope, sans-serif;
    padding: 1%;
}

/* ==========================================================================
   2. Layout & Layout Containers
   ========================================================================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-family: Montserrat, sans-serif;
    background-color: #2E0152;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header a {
    text-decoration: none;
    color: #03C5CD;
}

#navMenu {
    display: flex;
    gap: 24px;
}

#logocorner {
    display: block;
    width: 180px;
    height: auto;
}

footer {
    color: #03C5CD;
    background-color: #6B4AA0;
    font-family: Montserrat, sans-serif;
    padding: 1%;
}

footer a {
    text-decoration: none;
    color: #03C5CD;
}

/* ==========================================================================
   3. Modular Sections (Hero, Sideflex, General Flex)
   ========================================================================== */
#mainHero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background-color: #03C5CD;
    padding: 0 1% 1% 1%;
}

#textwithinHero {
    align-self: flex-start;
}

.heroImg {
    width: 40%;
    height: auto;
    display: block;
    margin-top: 2%;
}

.sideflex {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    gap: 16px;
    background-color: #2E0152;
    padding: 1%;
}

.sideflex > div,
.twoflex > div,
.careersct > div,
.videosct > div,
.plumsct > div {
    flex: 1 1 0;
    min-width: 0;
}

.twoflex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 1%;
    font-family: Inter, sans-serif;
    background-color: #03C5CD;
    color: #2E0152;
}

.twoflex h1 {
    font-family: Montserrat, sans-serif;
}

.twoflex-image {
    flex: 0 0 28%;
}

.twoflex-image .sideFlex2Img {
    margin-left: auto;
}

.sideFlex2Img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0;
    padding-right: 0;
}

.plumsct {
    display: flex;
    align-items: flex-start;
    gap: 2%;
    padding: 1%;
    background-color: #2E0152;
    color: white;
    font-family: Manrope, sans-serif;
}

.plumsct > img {
    flex: 0 0 20%;
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    padding-right: 2%;
}

.careersct {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 1%;
    font-family: Manrope, sans-serif;
}

.careersct .sideFlex2Img {
    flex: 0 0 20%;
    max-width: 40%;
    width: 100%;
    margin-left: auto;
    padding-right: 4%;
}

.videosct {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 1%;
    font-family: Manrope, sans-serif;
    background-color: rgb(168, 216, 218);
}

.videosct iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

#vidsbycarousel {
    justify-content: space-between;
}

#vidsbycarousel iframe {
    align-items: flex-end;
}

/* Parent Component Alternates (:has) */
section:has(> #abouttiles), 
section:has(> .purplebackground), 
.twoflex:has(> .purplebackground) {
    background-color: #2E0152;
    color: #03C5CD;
}

section:has(> #abouttiles) .info-card {
    background-color: #03C5CD;
    color: #2E0152;
}

/* ==========================================================================
   4. Typography & Headings
   ========================================================================== */
.titletext {
    font-family: Montserrat, sans-serif;
    color: #2E0152;
    font-size: 300%;
    font-weight: bold;
    margin-bottom: 0;
}

.titlesubtext {
    font-family: Montserrat, sans-serif;
    color: #2E0152;
    font-size: 150%;
}

.pageBanner {
    font-family: Montserrat, sans-serif;
    background: #2E0152;
    color: #03C5CD;
    padding-left: 1%;
    padding-bottom: 1%;
}

.pageBanner h1 {
    margin: 0;
}

/* ==========================================================================
   5. Components & UI Elements (Cards, Buttons, Lists, Grid Layouts)
   ========================================================================== */
section .btn, 
#textwithinHero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    background-color: #2E0152;
    color: white;
    border-radius: 4px;
    font-family: Inter, sans-serif;
    padding: 0.65em 1em;
    font-size: 110%;
    text-decoration: none;
    text-align: center;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.sideflex .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #00B6C0;
}

#cqcBadge {
    width: 18%;
    border-radius: 8%;
}

.fourtiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 1%;
}

.info-card {
    background-color: #2E0152;
    border: 1px solid #03C5CD;
    border-radius: 12px;
    padding: 3%;
    color: #03C5CD;
    font-family: Manrope, sans-serif;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(59, 13, 83, 0.06);
    border: 2px solid rgb(176, 227, 99); /* Fixed invalid 2% syntax */
}

.card-icon {
    font-size: 200%;
}

.activities-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

.activities-list li {
    font-size: 125%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1%;
    margin: 2% 0;
    padding: 0 1%;
    font-family: Inter, sans-serif;
    color: #2E0152;
}

.news-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #03C5CD;
    padding: 2%;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.read-more-btn {
    display: inline-block;
    font-weight: 600;
    color: white;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease, font-size 0.2s ease;
}

.read-more-btn:hover {
    color: #1e3a8a;
    font-size: 120%;
}

.article-container {
    padding: 2% 1%;
    background-color: #03C5CD;
    color: #2E0152;
    font-family: Montserrat, sans-serif;
}

.article-container h1,
.article-date,
.notion-content {
    width: min(100%, 920px);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.notion-content {
    background-color: white;
    border-radius: 4px;
    font-size: 115%;
    font-family: Inter, sans-serif;
    padding: 2rem;
    box-sizing: border-box;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.notion-content > * {
    max-width: 100%;
}

.notion-content img,
.notion-image {
    display: block;
    width: 40%;
    height: auto;
    margin: 1rem 0;
}

.notion-content iframe,
.notion-content video,
.notion-content embed,
.notion-content object {
    display: block;
    max-width: 40%;
}

.social-icons-grid {
    display: flex;
    width: fit-content;
    max-width: 100%;
    height: auto;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.social-link {
    flex: 0 0 auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#diningroom{
    width: 80%;
}

.vidstack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-column {
    flex: 0 0 40%;
}

.video-column iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}


/* ==========================================================================
   6. Feedback Cards & Carousel Components
   ========================================================================== */
.feedback-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #00B6C0;
    padding: 32px;
    margin: 0 0 1% 0;
    box-shadow: 0 4px 6px rgba(59, 13, 83, 0.02);
}

.quote-mark {
    font-family: 'Georgia', serif;
    font-size: 60px;
    color: rgba(0, 182, 192, 0.15);
    line-height: 1;
    position: absolute;
    top: 10px;
    left: 20px;
}

.quote-text {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 20px;
    z-index: 1;
}

.quote-author {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    color: #3B0D53;
    margin-top: auto;
}

.carousel {
    width: 60%;
    top: 50%;
    left: 50%;
    overflow: hidden;
    border: 4px solid #2E0152;
    border-radius: 8px;
    box-shadow: 10px 25px 30px rgba(30, 30, 200, 0.3);
}

.carousel-wrapper {
    display: flex;
    animation: slide 16s infinite;
}

.carousel-wrapper img {
    width: 100%;
}

@keyframes slide {
    0%, 25%    { transform: translateX(0); }
    30%, 50%   { transform: translateX(-100%); }
    55%, 75%   { transform: translateX(-200%); }
    80%, 100%  { transform: translateX(-300%); }
}

/* ==========================================================================
   7. Media Queries (Responsive Adjustments)
   ========================================================================== */
@media (max-width: 768px) {
    .titletext, 
    .titlesubtext,
    section h2, 
    section p, 
    section li,
    #cqcBadge {
        padding-left: 1%;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    #navMenu {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    #logocorner {
        width: 140px;
    }

    #mainHero,
    .twoflex,
    .careersct,
    .plumsct,
    .videosct,
    .sideflex {
        flex-direction: column;
        gap: 16px;
    }

    .heroImg,
    .twoflex-image,
    .twoflex-copy,
    #vidstack,
    .careersct .sideFlex2Img,
    .plumsct > img,
    .sideFlex2Img {
        width: 100%;
        max-width: 100%;
    }

    .twoflex {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 2% 1%;
}

.twoflex-copy {
    flex: 8;
    min-width: 0;
}

.vidstack {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
}

.video-column {
    flex: 1 1 auto;
    width: 100%;
}

.vidstack iframe {
    flex: 1;
    min-height: 0;
    width: 100%;
}

    #vidstack iframe,
    .videosct iframe,
    .carousel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .carousel {
        padding-right: 10%;
    }

    .news-grid {
        grid-template-columns: 1fr;
        margin: 16px 0;
        gap: 16px;
        padding: 0 16px;
    }

    .article-container,
    section,
    .pageBanner,
    footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .social-icons-grid {
        width: fit-content;
        max-width: 100%;
        gap: 16px;
        height: auto;
        flex-wrap: wrap;
    }

    .social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        overflow: hidden;
    }

    .article-container h1,
    .article-date,
    .notion-content {
        width: 100%;
        max-width: 100%;
    }

    .notion-content {
        padding: 1rem;
    }

    .notion-content img,
    .notion-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .titletext {
        font-size: 220%;
    }

    .titlesubtext {
        font-size: 130%;
    }

    section .btn,
    #textwithinHero .btn,
    .sideflex .btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 0.65rem 1rem;
        font-size: 100%;
    }

    .news-card,
    .feedback-card {
        padding: 20px;
    }
}