/* =====================================================
   Coco Ocean Theme v3 - Compact single-viewport layout
   ===================================================== */

:root {
    --ocean: #87CEEB;
    --ocean-deep: #5AACCF;
    --ocean-dark: #2B7ACD;
    --ocean-darker: #1A5BA8;
    --ocean-light: #B8D9E8;
    --ocean-pale: #E8F4F8;
    --ocean-ghost: #F0F8FB;
    --gold: #DAA520;
    --gold-light: #FFD700;
    --gold-dark: #B8860B;
    --black: #1A1A1A;
    --text: #2C3E50;
    --text-light: #5A7A8A;
    --text-muted: #8AABBA;
    --white: #FFFFFF;
    --shadow: rgba(42, 122, 205, 0.10);
    --shadow-strong: rgba(42, 122, 205, 0.20);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Tahoma, Helvetica, 'Microsoft Yahei', sans-serif;
    color: var(--text);
    background: var(--ocean-pale);
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--ocean-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ocean-darker); }
img { max-width: 100%; height: auto; }

/* --- Header Row 1: Logo + Title + Login --- */
.header-row1 {
    background: linear-gradient(180deg, rgba(240,248,251,0.95) 0%, rgba(232,244,248,0.95) 100%);
    padding: 8px 0;
}
.header-row1-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo { flex-shrink: 0; }
.logo-img { width: 340px; height: 110px; }

.site-title {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
    color: var(--ocean-dark);
    margin: 0;
    white-space: nowrap;
}
.site-title a { color: inherit; }

.header-login {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--ocean);
}
.header-login a { color: var(--ocean-dark); padding: 0 4px; }
.header-login a:hover { color: var(--ocean-darker); }
.header-login .sep { opacity: 0.4; margin: 0 1px; }

/* --- Header Row 2: Navigation --- */
.header-row2 {
    background: var(--ocean);
    padding: 0;
}
#site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-menu {
    list-style: none;
    display: flex;
}
.nav-menu li { margin: 0; }
.nav-menu a {
    display: block;
    padding: 0 20px;
    line-height: 38px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.nav-menu a:hover, .nav-menu .current-menu-item a {
    background: var(--ocean-deep);
    color: var(--white);
}

/* --- Main Content --- */
#site-content { padding: 16px 0; }
.content-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Home Hero - Compact --- */
.home-hero {
    background: linear-gradient(135deg, rgba(240,248,251,0.90) 0%, rgba(232,244,248,0.90) 50%, rgba(220,238,245,0.90) 100%);
    border: 1px solid var(--ocean-light);
    border-radius: 14px;
    padding: 20px 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.hero-text {
    text-align: center;
    margin-bottom: 12px;
}
.hero-text h2 {
    font-size: 36px;
    color: var(--ocean-dark);
    margin-bottom: 6px;
    font-weight: 700;
}
.hero-text p {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.3;
}

/* --- Carousel - Compact --- */
.carousel-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.85);
    min-height: 180px;
}

.carousel-slides { position: relative; }

.carousel-slide {
    display: none;
    padding: 20px 30px;
    animation: fadeIn 0.5s ease;
}
.carousel-slide.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.slide-title {
    font-size: 28px;
    color: var(--ocean-dark);
    margin-bottom: 10px;
    font-weight: 700;
}
.slide-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 0;
}
.slide-desc {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 8px;
    text-align: left;
}
.slide-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    margin-top: 10px;
    text-align: left;
}

/* Slide with photo layout */
.slide-with-photo {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}
.slide-text-col { flex: 1; }
.slide-photo-col { flex: 0 0 120px; }
.slide-photo {
    width: 120px;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 15px var(--shadow-strong);
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.value-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--ocean-light);
    border-radius: 10px;
    padding: 16px 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-strong);
}
.value-icon { font-size: 28px; margin-bottom: 8px; }
.value-card h3 { font-size: 17px; color: var(--ocean-dark); margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* Carousel controls */
.carousel-dots {
    text-align: center;
    padding: 10px 0;
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ocean-light);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active, .dot:hover { background: var(--ocean-dark); }

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--ocean-light);
    color: var(--ocean-dark);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-prev:hover, .carousel-next:hover { background: var(--white); }

/* --- Contact Page --- */
.contact-page { max-width: 800px; margin: 0 auto; }
.contact-hero {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.85); border-radius: 14px;
    padding: 24px; margin-bottom: 24px;
    border: 1px solid var(--ocean-light);
    text-align: center;
}
.contact-logo-img { width: 100%; max-width: 500px; height: auto; border-radius: 10px; flex-shrink: 0; }
.contact-hero-text { flex: 1; }
.contact-hero-text h2 { font-size: 28px; color: var(--ocean-dark); margin-bottom: 8px; }
.contact-hero-text p { font-size: 16px; color: var(--text-light); }
.contact-cta { font-size: 18px !important; color: var(--gold) !important; font-weight: 700; margin-top: 8px !important; }
.contact-section {
    background: rgba(255,255,255,0.85); border-radius: 12px;
    padding: 20px; margin-bottom: 16px;
    border: 1px solid var(--ocean-light);
}
.contact-section h3 { font-size: 18px; color: var(--ocean-dark); margin-bottom: 12px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-btn {
    display: inline-block; padding: 10px 20px;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--shadow-strong); }
.contact-tg { background: #0088cc; color: #fff; }
.contact-tg:hover { background: #006fa3; color: #fff; }
.contact-line { background: #06C755; color: #fff; }
.contact-line:hover { background: #05a847; color: #fff; }
.contact-gleezy { background: var(--gold-dark); color: #fff; }

@media (max-width: 768px) {
    .contact-hero { flex-direction: column; }
    .contact-logo-img { max-width: 100%; }
    .contact-links { flex-direction: column; }
}

/* --- Category Sections --- */
.home-sections { margin-bottom: 30px; }
.home-category { margin-bottom: 25px; }
.category-title { text-align: center; font-size: 20px; color: var(--ocean-dark); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ocean-light); }
.title-deco { color: var(--ocean); margin: 0 6px; font-size: 14px; }

/* --- Profile Cards --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.profile-card { background: var(--white); border: 1px solid var(--ocean-light); border-radius: 10px; padding: 16px; transition: box-shadow 0.2s, transform 0.2s; }
.profile-card:hover { box-shadow: 0 8px 25px var(--shadow-strong); transform: translateY(-2px); }
.profile-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.profile-title a { color: var(--text); }
.profile-title a:hover { color: var(--ocean-dark); }
.profile-excerpt { font-size: 13px; color: var(--text-light); margin-bottom: 8px; line-height: 1.4; }
.profile-link { font-size: 13px; color: var(--ocean-dark); font-weight: 600; }

/* --- Single Post --- */
.single-post { background: var(--white); border: 1px solid var(--ocean-light); border-radius: 12px; padding: 24px; }
.single-post h1 { font-size: 22px; color: var(--text); margin-bottom: 12px; }
.single-post .entry-content { font-size: 15px; line-height: 1.7; color: var(--text); }

/* --- Footer --- */
#site-footer { background: linear-gradient(180deg, rgba(232,244,248,0.9) 0%, rgba(220,238,245,0.9) 100%); border-top: 1px solid var(--ocean-light); padding: 20px 0; text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-brand { margin-bottom: 6px; }
.footer-logo { font-family: Georgia, serif; font-size: 24px; font-weight: bold; color: var(--gold); letter-spacing: 4px; }
.footer-tagline { display: block; font-size: 12px; color: var(--text-light); margin-top: 3px; }
.footer-copy { font-size: 11px; color: var(--text-muted); }

/* --- WordPress Alignments --- */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 15px; }
.alignright { float: right; margin-left: 15px; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-row1-inner { flex-wrap: wrap; }
    .logo-img { width: 240px; height: 78px; }
    .site-title { font-size: 16px; white-space: normal; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .home-hero { padding: 16px 16px; }
    .hero-text h2 { font-size: 24px; }
    .hero-text p { font-size: 16px; }
    .slide-title { font-size: 22px; }
    .slide-with-photo { flex-direction: column; }
    .slide-photo-col { flex: 0 0 auto; }
    .values-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
}
