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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #faf9f6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================
   ANIMATION KEYFRAMES
   ======================== */

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes floatBook {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Scroll-reveal base class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   ANNOUNCEMENT BAR
   ======================== */
.announcement-bar {
    background: linear-gradient(90deg, #0a3d62 0%, #1b6ca8 100%);
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 100;
    position: relative;
}

.btn-announcement {
    background-color: #d4af37;
    color: #1a1a1a;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.btn-announcement:hover {
    background-color: #c5a028;
    transform: scale(1.05);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(212, 175, 55, 0.7); }
    70%  { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(212, 175, 55, 0); }
}

/* ========================
   TOP NAV
   ======================== */

.top-nav {
    background-color: #f7f6f2;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    animation: fadeInDown 0.6s ease-out both;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: 10%;
}

.site-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.site-logo:hover { transform: scale(1.05); }

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #000;
}

/* ========================
   FLAGS SECTION
   ======================== */

.flags-section {
    background-color: #f7f6f2;
    padding: 2rem 0 4rem 0;
}

.flags-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: scaleIn 0.5s ease-out both;
    transition: transform 0.3s ease;
}

.flag-item:nth-child(1) { animation-delay: 0.1s; }
.flag-item:nth-child(2) { animation-delay: 0.2s; }
.flag-item:nth-child(3) { animation-delay: 0.3s; }
.flag-item:nth-child(4) { animation-delay: 0.4s; }
.flag-item:nth-child(5) { animation-delay: 0.5s; }
.flag-item:nth-child(6) { animation-delay: 0.6s; }

.flag-item:hover { transform: translateY(-4px); }

.flag-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.flag-item:hover .flag-circle {
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
    transform: scale(1.08);
}

.flag-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

/* ========================
   HERO SECTION
   ======================== */

.hero {
    display: flex;
    min-height: 80vh;
}

.hero-left {
    flex: 1;
    background: linear-gradient(135deg, #0a3d62 0%, #1b6ca8 50%, #3dc1d3 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-left::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: floatBook 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-text-wrapper {
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-left h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInLeft 0.8s ease-out 0.3s both;
}

.author {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2.5rem;
    animation: fadeInLeft 0.8s ease-out 0.5s both;
}

.btn-explore {
    display: inline-block;
    background-color: white;
    color: #0a3d62;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero-buttons .btn-explore {
    animation: none;
    margin-bottom: 0;
}

.btn-gold {
    background: linear-gradient(135deg, #e6c875 0%, #d4af37 100%) !important;
    color: #1a1a1a !important;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%) !important;
}

.btn-blue {
    background: linear-gradient(135deg, #1b6ca8 0%, #0a3d62 100%) !important;
    color: #fff !important;
}
.btn-blue:hover {
    background: linear-gradient(135deg, #155584 0%, #072a44 100%) !important;
}

.hero-right {
    flex: 1;
    background: linear-gradient(180deg, #e8f4f8 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.hero-book {
    max-width: 90%;
    max-height: 700px;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 20px 40px rgba(10, 61, 98, 0.3));
    animation: fadeInRight 0.9s ease-out 0.4s both,
               floatBook 4s ease-in-out 1.3s infinite;
}

/* ========================
   CTA SECTION
   ======================== */

.cta-section {
    padding: 5rem 10%;
    text-align: center;
    background-color: #fff;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.cta-section p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.cta-section .btn-explore {
    background-color: #0a3d62;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    animation: none;
}

.cta-section .btn-explore:hover {
    background-color: #1b6ca8;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ========================
   CRO UPDATES
   ======================== */
.btn-primary {
    font-size: 1.15rem !important;
    padding: 1rem 3rem !important;
    box-shadow: 0 6px 20px rgba(10, 61, 98, 0.4) !important;
}

.btn-ghost {
    display: inline-block;
    background-color: transparent;
    color: #666;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    border-color: #1b6ca8;
    color: #1b6ca8;
}

.hero .btn-ghost {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #555;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.trust-center {
    justify-content: center;
    margin-top: 1rem;
}

.stars {
    color: #d4af37;
    letter-spacing: 2px;
}

/* ========================
   NEWSLETTER SECTION
   ======================== */

.newsletter-section {
    padding: 3rem 10%;
    display: flex;
    justify-content: center;
}

.newsletter-card {
    background-color: #fbf9f2;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.newsletter-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.newsletter-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.newsletter-sub {
    text-align: center;
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.newsletter-list {
    list-style: none;
    margin-bottom: 1.2rem;
}

.newsletter-list li {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #444;
    line-height: 1.3;
}

.required-note {
    text-align: right;
    font-size: 0.75rem;
    color: #e74c3c;
    margin-bottom: 0.6rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-group label span { color: #e74c3c; }

.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #1b6ca8;
    box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.1);
}

.success-message {
    color: #27ae60;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background-color: #0a3d62;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 0.6rem;
    box-shadow: 0 4px 15px rgba(10, 61, 98, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    background-color: #1b6ca8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 61, 98, 0.4);
}

.btn-submit:active { transform: translateY(0); }

.spam-note {
    text-align: center;
    font-size: 0.72rem;
    color: #888;
}

/* ========================
   NAVIGATION ADDITIONS
   ======================== */

.desktop-nav {
    margin-left: auto;
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background-color: #1b6ca8;
    transition: width 0.3s ease;
}

.desktop-nav a:hover { color: #1b6ca8; }
.desktop-nav a:hover::after { width: 100%; }

/* ========================
   GUIDES SECTION
   ======================== */

.guides-section {
    padding: 5rem 10%;
    background-color: #fff;
    text-align: center;
}

.guides-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guides-intro {
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-card {
    background-color: #faf9f6;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.guide-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }

.guide-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    font-weight: 600;
    color: #1b6ca8;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #0a3d62;
    text-decoration: underline;
}

/* ========================
   FAQ SECTION
   ======================== */

.faq-section {
    padding: 5rem 10%;
    background-color: #faf9f6;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.faq-item h3 { margin-bottom: 0.8rem; font-size: 1.2rem; }
.faq-item p  { color: #666; line-height: 1.6; }
.faq-item a  { color: #1b6ca8; text-decoration: underline; }

/* ========================
   FOOTER
   ======================== */

.site-footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 4rem 10%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #bbb;
    transition: color 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background-color: #3dc1d3;
    transition: width 0.3s ease;
}

.footer-nav a:hover { color: #fff; }
.footer-nav a:hover::after { width: 100%; }

.copyright {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ========================
   BLOG-SPECIFIC STYLES
   ======================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body { padding: 1.2rem; }

.blog-card-meta {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.blog-card-meta a {
    color: #1b6ca8;
    font-weight: 600;
}

.blog-card h3 {
    margin: 0.4rem 0 0.8rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.blog-card h3 a { color: #1a1a1a; transition: color 0.2s; }
.blog-card h3 a:hover { color: #1b6ca8; }

.blog-card-link {
    color: #1b6ca8;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.blog-card-link:hover { color: #0a3d62; text-decoration: underline; }

.blog-header {
    padding: 2rem 10%;
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    min-height: 70vh;
}

.blog-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.article-meta {
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.article-meta a { color: #1b6ca8; font-weight: 600; }

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.article-body {
    line-height: 2;
    font-size: 1.15rem;
    color: #222;
    font-weight: 300;
}

.article-body p { margin-bottom: 1.2rem; }

.article-cta {
    background: #111;
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 4rem 0;
}

.article-cta h2 {
    margin-bottom: 1rem;
    color: white;
    font-size: 2rem;
}

.article-cta p {
    margin-bottom: 2rem;
    color: #ddd;
    font-size: 1.1rem;
}

.article-cta a {
    display: inline-block;
    background: #d4af37;
    color: #111;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.article-cta a:hover {
    background: #c5a028;
    transform: translateY(-2px);
}

.related-posts {
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.related-posts h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }

.related-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.related-item {
    flex: 1;
    min-width: 250px;
}

.related-item a { display: block; color: #1a1a1a; }
.related-item a:hover h4 { color: #1b6ca8; }

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.related-item h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s;
}

/* ========================
   CATEGORY BADGE
   ======================== */

.category-badge {
    display: inline-block;
    background: #e8f4f8;
    color: #1b6ca8;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ========================
   PAGINATION
   ======================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    color: #333;
    transition: all 0.2s;
}

.pagination a:hover { background: #1b6ca8; color: white; border-color: #1b6ca8; }
.pagination .active { background: #0a3d62; color: white; border-color: #0a3d62; }

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 768px) {
    .announcement-bar {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    .hero { flex-direction: column; }
    .hero-left {
        padding: 2rem;
        justify-content: center;
        text-align: center;
    }
    .hero-left h1 { font-size: 2.5rem; }
    .hero-right {
        padding: 1.5rem;
        justify-content: center;
        text-align: center;
    }
    .hero-book { max-width: 95%; max-height: none; }
    .flags-section { padding: 1rem 0 1.5rem 0; }
    .flags-container { gap: 1.2rem; }
    .flag-circle { width: 40px; height: 40px; }
    .flag-item span { font-size: 0.6rem; }
    .cta-section { padding: 3rem 6%; }
    .cta-section h2 { font-size: 1.8rem; }
    .newsletter-section { padding: 2rem 5%; }
    .newsletter-card { padding: 1.5rem; }
    .top-nav {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }
    .desktop-nav {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .logo-container { margin-left: 0; }
    .site-footer { padding: 3rem 6%; }
    .blog-header { padding: 1.5rem 5%; }
    .article-header h1 { font-size: 1.8rem; }
    .article-cta { padding: 2rem; }
    .article-cta h2 { font-size: 1.5rem; }
}
