/* ========== FONT ========== */
@font-face {
    font-family: 'Inkverse-BWDRx';
    src: url('fonts/Inkverse-BWDRx.ttf') format('truetype');
}

/* ========== BODY ========== */
body {
    background-color: #75979f;
    font-family: 'Inkverse-BWDRx', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    margin: 0;
    padding-top: 72px; /* space for fixed navbar */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* ========== NAVBAR - PUSHED TO EDGES ========== */
.navbar {
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2200;
    background: #4f7b83;
    padding: 8px 0;
    box-sizing: border-box;
}

.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.nav-badge {
    width: 56px;
    height: 56px;
    background: #75979f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
    margin-left: 2px;
}

.navlogo {
    width: 40px;
    height: auto;
    display: block;
    background: #fff;
    padding: 4px;
    border-radius: 50%;
}

.nav-right {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 2px;
}

.menu-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.menu-icon {
    width: 44px;
    height: 44px;
    display: block;
}

/* ========== SIDE NAVIGATION MENU ========== */
.side-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #4f7b83;
    z-index: 3000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.side-nav.open {
    right: 0;
}

.side-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
}

.side-nav-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.side-nav-menu li:first-child {
    border-top: 1px solid rgba(255,255,255,0.2);
}

.side-nav-menu li:last-child {
    border-bottom: none;
}

.side-nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px 30px;
    font-size: 24px;
    text-align: right;
    transition: background 0.2s ease;
}

.side-nav-menu a:hover,
.side-nav-menu a.active {
    background: rgba(255,255,255,0.1);
}

.side-nav-logo {
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
}

.side-nav-logo img {
    width: 120px;
    height: auto;
    display: inline-block;
}

/* Overlay when menu is open */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== PAGE CARD & HERO ========== */
.page-card {
    max-width: 1270px;
    margin: 0 auto 40px;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: calc(100% - 20px);
}

/* scalloped corners */
.page-card .corner {
    position: absolute;
    width: 52px;
    height: 52px;
    background: #75979f;
    border-radius: 50%;
    z-index: 1;
}

.page-card .corner.top-left { 
    top: -26px; 
    left: -26px; 
}

.page-card .corner.top-right { 
    top: -26px; 
    right: -26px; 
}

.page-card .corner.bottom-left { 
    bottom: -26px; 
    left: -26px; 
}

.page-card .corner.bottom-right { 
    bottom: -26px; 
    right: -26px; 
}

.hero {
    height: 280px;
    background-image: url('images/MainPage_Background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.hero-logo {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255,255,255,0.98);
    padding: 16px;
    box-sizing: content-box;
    display: block;
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
    border: 6px solid rgba(255,255,255,0.95);
}

/* ========== CONTENT BLOCKS ========== */
.section-title {
    font-size: 34px;
    margin: 0 0 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* two-column layout used in HTML */
.two-col {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 36px;
    position: relative;
    box-sizing: border-box;
}
.two-col .text-block{
    text-align: right;
}
.two-col.reverse { 
  position: relative;
    margin-left: 0;
    text-align: left;
    /* Ensure text block takes available space */
    flex: 1;
    min-width: 0; /* Prevents flex item overflow */
    flex-direction: row-reverse; 
    justify-content: flex-start;
    position: relative;
    /* Add left padding to create space for the absolutely positioned circle */
    padding-left: 340px; /* This creates space for the circle (300px) + gap (40px) */
}

.text-block {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.text-block p {
    color: #666;
    line-height: 1.5;
}

/* circular images and hover overlay */
.circle-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    position: relative;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border: 8px solid rgba(255,255,255,0.95);
    cursor: pointer;
    z-index: 2;
}

.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.circle-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #111;
    background: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.circle-img:hover .circle-overlay {
    opacity: 1;
}

.circle-cursor {
    width: 48px;
    height: 48px;
    margin-top: 12px;
    opacity: 0.85;
    pointer-events: none;
}

/* Push reverse circle image to the left edge */
.two-col.reverse .circle-img {
    position: absolute;
    left: 30px; /* Adjust this value to move the circle to the left */
    top: 50%;
    transform: translateY(-65%);
    margin-left: 0; /* Reset the margin */
}

.two-col.reverse .text-block {
    position: relative;
    margin-left: 0;
    text-align: left;
    flex: 1;
    min-width: 0;
    padding-top: 0px; /* Adjust this value to fine-tune */
    
}
.two-col.reverse .circle-overlay {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== DOT SEPARATORS ========== */
.dot-separator {
    height: 60px;
    width: 100%;
    margin: 0;
    background-image: radial-gradient(circle, #75979f 50%, transparent 50%);
    background-size: 24px 24px;
    transform: translateY(-20px);
    background-position: center 0;
    background-repeat: repeat-x;
    z-index: 0;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: 42px 36px 68px;
    text-align: center;
    box-sizing: border-box;
}

.contact-title {
    font-size: 44px;
    margin: 0 0 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-list {
    font-size: 18px;
    color: #222;
    display: inline-block;
    text-align: left;
}

.contact-item { 
    margin: 8px 0; 
}

.contact-label {
    font-weight: 900;
    margin-right: 8px;
    text-transform: uppercase;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .two-col {
        padding: 40px 30px;
        gap: 40px;
    }
    
    .circle-img {
        width: 250px;
        height: 250px;
    }
    
    .circle-overlay {
        font-size: 28px;
        padding: 15px;
    }
    
    .circle-cursor {
        width: 36px;
        height: 36px;
        margin-top: 8px;
    }
    
    .side-nav {
        max-width: 350px;
    }
    
    .page-card {
        width: calc(100% - 20px);
    }
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 15px;
    }
    
    .two-col {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .two-col.reverse {
        flex-direction: column;
        position: static;
        padding-left: 30px;
        padding-right: 30px;
        align-items: center;
    }
    
    .two-col.reverse .circle-img {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
    }
    
    .two-col.reverse .text-block {
        padding-top: 0;
        transform: none;
    }
    
    .text-block {
        padding: 0;
        text-align: center;
        width: 100%;
    }
    
    .circle-img {
        width: 220px;
        height: 220px;
        order: -1;
    }
    
    .circle-overlay {
        font-size: 24px;
        padding: 12px;
    }
    
    .circle-cursor {
        width: 32px;
        height: 32px;
        margin-top: 6px;
    }
    
    .hero {
        height: 220px;
    }
    
    .hero-logo {
        width: 140px;
        height: 140px;
        padding: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-title {
        font-size: 32px;
    }
    
    .dot-separator {
        height: 40px;
        background-size: 20px 20px;
        transform: translateY(-10px);
    }
    
    .side-nav {
        max-width: 300px;
    }
    
    .side-nav-menu a {
        font-size: 20px;
        padding: 18px 25px;
    }
    
    .page-card {
        margin: 0 auto 40px;
        width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 68px;
    }
    
    .nav-inner {
        padding: 0 10px;
    }
    
    .navlogo {
        width: 32px;
    }
    
    .nav-badge {
        width: 48px;
        height: 48px;
        margin-left: 0;
    }
    
    .menu-icon {
        width: 38px;
        height: 38px;
    }
    
    .nav-right {
        margin-right: 0;
    }
    
    .page-card {
        margin: 0 auto 30px;
        width: calc(100% - 16px);
    }
    
    .two-col {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .circle-img {
        width: 180px;
        height: 180px;
        border-width: 6px;
    }
    
    .circle-overlay {
        font-size: 20px;
        padding: 10px;
    }
    
    .circle-cursor {
        width: 28px;
        height: 28px;
        margin-top: 4px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-list {
        font-size: 16px;
    }
    
    .hero {
        height: 180px;
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
        padding: 10px;
    }
    
    .dot-separator {
        height: 30px;
        background-size: 16px 16px;
        transform: translateY(-15px);
    }
    
    .side-nav {
        max-width: 100%;
    }
    
    .side-nav-menu a {
        font-size: 18px;
        padding: 16px 20px;
    }
    
    .side-nav-logo img {
        width: 100px;
    }
    
    .contact-section {
        padding: 30px 20px 50px;
    }
}

@media (max-width: 360px) {
    .page-card {
        width: calc(100% - 12px);
        margin: 0 auto 20px;
    }
    
    .two-col {
        padding: 15px 10px;
    }
    
    .circle-img {
        width: 160px;
        height: 160px;
    }
    
    .circle-overlay {
        font-size: 18px;
        padding: 8px;
    }
    
    .circle-cursor {
        width: 24px;
        height: 24px;
        margin-top: 3px;
    }
    
    .hero {
        height: 160px;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
        padding: 8px;
    }
    
    .dot-separator {
        height: 25px;
        background-size: 14px 14px;
        transform: translateY(-12px);
    }
}