/* ========= Global Styles ========= */
body {
    font-family: Arial, 'Segoe UI', sans-serif;
    background: #f7f9fa;
    color: #222;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 1.1rem;
}

iframe{
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 900px;
    height: 400px;
}

/* Related Posts / Read Also Section */
<style>
/* Read Also Section */
.read-also {
    margin-top: 30px;
}
.read-also hr {
    margin-bottom: 20px;
}
.read-also h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

/* Individual post articles */
.read-also .post {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.read-also .post img.img-display {
    width: 120px;   /* smaller thumbnail size */
    height: auto;
    margin-right: 15px;
    border: 1px solid #ccc;
}

/* Post content (title, description) */
.read-also .post h2 {
    font-size: 1em;
    margin: 0 0 8px 0;
}
.read-also .post h2 a {
    text-decoration: none;
    color: #0073e6;
}
.read-also .post h2 a:hover {
    text-decoration: underline;
}
.read-also .post p {
    font-size: 0.9em;
    margin: 0 0 8px 0;
}

/* Read More link */
.read-also .post a.read-more {
    font-size: 0.85em;
    color: #0073e6;
    text-decoration: none;
}
.read-also .post a.read-more:hover {
    text-decoration: underline;
}

/* Date */
.read-also .post p.date {
    font-size: 0.8em;
    color: #666;
    text-align: right;
    margin-top: 5px;
}
</style>


.wrap-center {
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.link {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

a:focus {
    outline: 2px dashed #1a73e8;
    outline-offset: 4px;
}

/* ========= Header ========= */
/* Normal header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.5em;
    /* normal size */
    background: #1a73e8;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease;
}

/* Shrunk header on scroll */
header.shrink {
    padding: 0.1em 1em;
    /* much smaller */
    background: #1666cc;
}

/* Keep title and nav font size unchanged */
header h1,
header nav a {
    transition: none;
    /* no change on scroll */
}



/* ========= Navigation ========= */
/* Header nav alignment */
header nav {
    margin-left: auto;
    /* pushes nav items to the right */
    display: flex;
    gap: 15px;
    /* spacing between links */
}

/* Optional: keep nav links visually nice */
header nav a {
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* ========= Logo ========= */
/* Logo in header */
header .logo {
    height: 60px;
    /* normal height */
    width: auto;
    transition: height 0.3s ease;
}

/* Shrunk header logo */
header.shrink .logo {
    height: 35px;
    /* smaller logo on scroll */
}



/* ========= Headings ========= */

/* Main page title (hero/title at top of page) */
h1,
.page-title {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    color: #1a73e8;
    text-align: center;
    font-weight: 700;
}

/* Section titles */
h2 {
    font-size: 2em;
    margin: 1.5em 0 1em 0;
    color: #1a73e8;
    text-align: left;
    font-weight: 600;
}

/* Subsection titles */
h3 {
    font-size: 1.4em;
    margin: 1em 0 0.5em 0;
    color: #333;
    text-align: left;
    font-weight: 600;
}

/* Intro paragraphs (optional consistency) */
.intro {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 900px) {

    h1,
    .page-title {
        font-size: 2em;
        /* slightly smaller on mobile */
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }
}




/* ========= Layout ========= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.layout {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    min-height: 70vh;
    flex-wrap: wrap;
}

/* ========= Sidebar ========= */
.sidebar {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 28px 20px;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.sidebar h3 {
    margin: 0 0 12px 0;
    color: #1a73e8;
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #333;
    font-weight: 500;
}

.sidebar ul li a:hover {
    color: #1e90ff;
}



/* ========= Main Content ========= */
.main-content {
    flex: 1;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.post {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.post:hover {
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.15);
    transform: translateY(-3px);
}

.post h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    text-align: left;
}

.post h2 a {
    color: #1a73e8;
}

.post h2 a:hover {
    color: #1e90ff;
}

.post a.read-more {
    margin-top: auto;
    align-self: flex-start;
    border-radius: 6px;
    padding: 8px 14px;
    background: #f0f8ff;
    font-weight: 600;
    color: #1e90ff;
}

.post a.read-more:hover {
    background: #1e90ff;
    color: #fff;
}

/* ========= Cards / Managers ========= */
.managers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    margin-bottom: 2em;
}

.manager-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5em 1.2em;
    max-width: 340px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.manager-card:hover {
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.15);
    transform: translateY(-5px) scale(1.03);
}

.icon {
    width: 100px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s;
}

.icon:hover {
    transform: scale(1.08) rotate(1deg);
}

.manager-info {
    margin-top: 1em;
    width: 100%;
    text-align: center;
}

.manager-info h3 {
    margin-bottom: 0.5em;
    color: #1a73e8;
    font-size: 1.2em;
    font-weight: 600;
}

.manager-info ul {
    padding-left: 1.2em;
    margin: 0 0 0.5em;
    font-size: 0.98em;
}

.manager-note {
    background: #e3f0fd;
    color: #1a73e8;
    border-radius: 6px;
    padding: 0.5em 0.8em;
    margin: 0.7em 0;
    font-size: 0.95em;
    text-align: center;
    font-weight: 500;
}

/* ========= Buttons ========= */
.download-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.download-btn {
    background: linear-gradient(90deg, #1a73e8, #4285f4);
    color: #fff;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.download-btn:hover {
    background: linear-gradient(90deg, #0f59c7, #1a50d1);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.18);
    transform: translateY(-2px);
}

.download-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.download-badges img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-badges img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.visit-btn {
    background: #1a73e8;
    color: #fff;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
    text-align: center;
    display: inline-block;
    margin-top: 12px;

}

.visit-btn:hover {
    background: #1666cc;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.18);
    transform: translateY(-2px);
}


/* ========= Images ========= */
.img-display,
.thumbnail-display,
.img-preview {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1.5em;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-display:hover,
.thumbnail-display:hover,
.img-preview:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.2);
}

.img-credit,
.thumbnail-credit,
.figcaption-steps {
    font-size: 0.85em;
    color: #555;
    margin-top: 4px;
    font-style: italic;
    text-align: left;
}

.img-scroll {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #1a73e8 #d3cfcf;
    padding-bottom: 10px;
}

.img-scroll::-webkit-scrollbar {
    height: 8px;
}

.img-scroll::-webkit-scrollbar-track {
    background: #d3cfcf;
}

.img-scroll::-webkit-scrollbar-thumb {
    background-color: #1a73e8;
    border-radius: 4px;
}

.img-phone-screenshot {
    flex-shrink: 0;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    max-height: 700px;
    object-fit: cover;
}

.preview {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* ========= Text Content ========= */

.note {
    background: #f0f8ff;
    color: #1a73e8;
    border-left: 4px solid #1a73e8;
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 1.05em;
    line-height: 1.6;
    border-radius: 4px;
}

/* Grid for grouped images */
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.img-grid img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s;
}

.img-grid img:hover {
    transform: scale(1.05);
}

/* Conclusion Box */
.conclusion {
    background-color: #eaf4ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #1a73e8;
}

.intro {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

p {
    margin: 0 0 20px;
    line-height: 1.7;
    color: #333;
    font-size: 1.1em;
}

.page-title {
    font-size: 2.5em;
    margin: 0;
    text-align: center;
    color: #1a73e8;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 1.1em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.sources {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
}

/* ========= Footer ========= */
footer {
    text-align: center;
    padding: 20px 10px 60px;
    background: #1a73e8;
    color: #fff;
    margin-top: 30px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

footer p {
    margin: 0;
    font-size: 0.9em;
    color: #fff;
}

/* ========= Mobile Nav ========= */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 2;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #fff;
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle-label span::before {
    content: "";
    top: -10px;
}

.nav-toggle-label span::after {
    content: "";
    top: 10px;
}

.nav-toggle:checked+.nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked+.nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle:checked+.nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-links {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #1a73e8;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 220px;
    border-radius: 8px;
    list-style: none;
    transition: max-height 0.4s ease;
}

.nav-toggle:checked+.nav-toggle-label+.nav-links {
    max-height: 400px;
    padding: 12px 0;
}

.nav-links li a {
    color: white;
    font-weight: 600;
    padding: 10px 16px;
    display: block;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========= Tutorial Styles ========= */
/* Inline styling for tutorial content */
.tutorial {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px;
}

.tutorial h1,
.tutorial h2 {
    color: #1a73e8;
}

.tutorial img {
    max-width: 100%;
    margin: 10px 0;
    border-radius: 5px;
}

.tutorial ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.tutorial p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.tips {
    background-color: #f1f5f9;
    padding: 10px 15px;
    border-left: 4px solid #1a73e8;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* ========= Responsive ========= */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        min-width: 100%;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .manager-card {
        width: 95%;
        max-width: 95vw;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }
}

@media (min-width: 1024px) {
    .nav-links {
        flex-direction: row;
        position: static;
        background: none;
        width: auto;
        gap: 15px;
        max-height: none;
        display: flex;
    }

    .nav-toggle-label {
        display: none;
    }
}