/* =========================================================
   HOME PAGE
========================================================= */

.home-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0 40px;
}


/* =========================================================
   WELCOME SECTION
========================================================= */

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 28px 30px;

    background: #ffffff;

    border: 1px solid #e8edf2;
    border-left: 4px solid #c89b3c;

    border-radius: 12px;

    box-shadow: 0 5px 18px rgba(16,42,67,.05);
}


.welcome-main {
    max-width: 720px;
}


.welcome-main h1 {
    margin: 4px 0 9px;

    color: #102a43;

    font-size: 29px;
    font-weight: 700;
}


.welcome-main h1 strong {
    color: #c89b3c;
}


.welcome-main p {
    margin: 0;

    color: #718096;

    font-size: 12px;

    line-height: 1.8;
}


.welcome-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0 15px;

    background: #102a43;

    border-radius: 7px;

    color: #ffffff !important;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none !important;

    white-space: nowrap;

    transition: all .2s ease;
}


.welcome-button i:last-child {
    color: #e3c477;
}


.welcome-button:hover {
    background: #081c2f;

    transform: translateY(-2px);
}


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

.home-section {
    margin-top: 28px;
}


.section-heading {
    margin-bottom: 15px;
}


.section-label {
    display: block;

    margin-bottom: 4px;

    color: #c89b3c;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .7px;
}


.section-heading h2,
.news-header h2 {
    margin: 0;

    color: #102a43;

    font-size: 21px;
    font-weight: 700;
}


/* =========================================================
   STATISTICS
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}


.stat-card {
    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 82px;

    padding: 14px;

    background: #ffffff;

    border: 1px solid #e8edf2;

    border-radius: 10px;

    box-shadow: 0 4px 14px rgba(16,42,67,.04);

    transition: all .2s ease;
}


.stat-card:hover {
    transform: translateY(-2px);

    border-color: #d9c27e;

    box-shadow: 0 8px 20px rgba(16,42,67,.08);
}


.stat-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fffaf0;

    border: 1px solid #ead7a5;

    border-radius: 9px;

    color: #c89b3c;

    font-size: 15px;
}


.stat-content strong {
    display: block;

    color: #102a43;

    font-size: 18px;
    line-height: 1.2;
}


.stat-content span {
    display: block;

    margin-top: 3px;

    color: #718096;

    font-size: 10px;
}


/* =========================================================
   FAMILY TREE
========================================================= */

.family-tree-section {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 290px;

    margin-top: 30px;

    padding: 35px 40px;

    overflow: hidden;

    background: #f8fafc;

    border: 1px solid #e8edf2;

    border-radius: 14px;
}


.family-tree-content {
    width: 58%;

    position: relative;
    z-index: 2;
}


.family-tree-content h2 {
    margin: 5px 0 12px;

    color: #102a43;

    font-size: 25px;

    line-height: 1.4;
}


.family-tree-content h2 strong {
    color: #c89b3c;
}


.family-tree-content p {
    max-width: 570px;

    margin: 0;

    color: #718096;

    font-size: 12px;

    line-height: 1.8;
}


.tree-features {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    margin: 17px 0;
}


.tree-features div {
    color: #435466;

    font-size: 11px;
    font-weight: 600;
}


.tree-features i {
    margin-right: 4px;

    color: #c89b3c;
}


.tree-buttons {
    display: flex;
    gap: 8px;
}


.dark-action-btn,
.light-action-btn {
    min-height: 39px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 0 14px;

    border-radius: 7px;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none !important;

    transition: all .2s ease;
}


.dark-action-btn {
    background: #102a43;

    color: #ffffff !important;
}


.dark-action-btn i:last-child {
    color: #e3c477;
}


.dark-action-btn:hover {
    background: #081c2f;

    transform: translateY(-2px);
}


.light-action-btn {
    background: #ffffff;

    border: 1px solid #d9e2ec;

    color: #102a43 !important;
}


.light-action-btn i {
    color: #c89b3c;
}


.light-action-btn:hover {
    border-color: #c89b3c;

    transform: translateY(-2px);
}


/* =========================================================
   TREE VISUAL
========================================================= */

.family-tree-visual {
    position: absolute;

    right: 35px;

    width: 350px;
    height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.tree-visual-card {
    position: relative;

    width: 320px;
    height: 190px;
}


.tree-node {
    position: absolute;

    left: 50%;
    top: 0;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 9px 15px;

    background: #102a43;

    border-radius: 8px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 600;
}


.tree-node i {
    color: #e3c477;
}


.tree-line.vertical {
    position: absolute;

    top: 40px;
    left: 50%;

    width: 1px;
    height: 55px;

    background: #c89b3c;
}


.tree-children {
    position: absolute;

    top: 95px;
    left: 25px;
    right: 25px;

    display: flex;
    justify-content: space-between;
}


.tree-children::before {
    content: "";

    position: absolute;

    left: 50px;
    right: 50px;
    top: 0;

    height: 1px;

    background: #c89b3c;
}


.tree-child {
    position: relative;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 20px;

    background: #ffffff;

    border: 2px solid #c89b3c;

    border-radius: 50%;

    color: #102a43;

    font-size: 14px;

    box-shadow: 0 5px 15px rgba(16,42,67,.08);
}


.tree-child::before {
    content: "";

    position: absolute;

    top: -21px;
    left: 50%;

    width: 1px;
    height: 20px;

    background: #c89b3c;
}


/* =========================================================
   FEATURE CARDS
========================================================= */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}


.feature-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 13px;

    min-height: 88px;

    padding: 14px 45px 14px 15px;

    background: #ffffff;

    border: 1px solid #e8edf2;

    border-radius: 10px;

    text-decoration: none !important;

    transition: all .2s ease;
}


.feature-card:hover {
    transform: translateY(-2px);

    border-color: #d9c27e;

    box-shadow: 0 8px 22px rgba(16,42,67,.07);
}


.feature-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fffaf0;

    border: 1px solid #ead7a5;

    border-radius: 9px;

    color: #c89b3c;
}


.feature-card h3 {
    margin: 0 0 4px;

    color: #102a43;

    font-size: 13px;
}


.feature-card p {
    margin: 0;

    color: #718096;

    font-size: 10px;
}


.feature-arrow {
    position: absolute;

    right: 15px;

    color: #a0acb8;

    font-size: 11px;
}


.feature-card:hover .feature-arrow {
    color: #c89b3c;

    transform: translateX(3px);
}


/* =========================================================
   SOCIETY INFO
========================================================= */

.society-info-section {
    display: flex;
    align-items: center;

    gap: 35px;

    margin-top: 30px;

    padding: 28px 30px;

    background: #ffffff;

    border: 1px solid #e8edf2;

    border-radius: 12px;
}


.society-info-content {
    flex: 1;
}


.society-info-content h2 {
    margin: 5px 0 10px;

    color: #102a43;

    font-size: 23px;

    line-height: 1.4;
}


.society-info-content h2 strong {
    color: #c89b3c;
}


.society-info-content p {
    margin: 0;

    color: #718096;

    font-size: 11px;

    line-height: 1.8;
}


.society-info-points {
    width: 42%;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


.society-info-points > div {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px;

    background: #f8fafc;

    border-radius: 8px;
}


.society-info-points i {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fffaf0;

    border: 1px solid #ead7a5;

    border-radius: 8px;

    color: #c89b3c;
}


.society-info-points span {
    color: #718096;

    font-size: 9px;
}


.society-info-points strong {
    display: block;

    margin-bottom: 2px;

    color: #102a43;

    font-size: 11px;
}


/* =========================================================
   NEWS
========================================================= */

.home-news-section {
    margin-top: 30px;
}


.news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 15px;
}


.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #102a43 !important;

    font-size: 10px;
    font-weight: 600;

    text-decoration: none !important;
}


.view-all-btn i {
    color: #c89b3c;
}


.news-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}


.news-card {
    display: flex;

    gap: 12px;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #e8edf2;

    border-radius: 10px;

    transition: all .2s ease;
}


.news-card:hover {
    border-color: #d9c27e;

    box-shadow: 0 7px 20px rgba(16,42,67,.07);
}


.news-date {
    width: 43px;
    height: 50px;

    flex: 0 0 43px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #102a43;

    border-radius: 7px;

    color: #ffffff;
}


.news-date strong {
    font-size: 15px;
}


.news-date span {
    color: #e3c477;

    font-size: 8px;
    font-weight: 700;
}


.news-category {
    color: #c89b3c;

    font-size: 9px;
    font-weight: 700;
}


.news-content h3 {
    margin: 4px 0 6px;

    color: #263746;

    font-size: 12px;
}


.news-content p {
    margin: 0 0 7px;

    color: #718096;

    font-size: 10px;

    line-height: 1.5;
}


.news-content a {
    color: #102a43 !important;

    font-size: 10px;
    font-weight: 600;

    text-decoration: none !important;
}


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

.home-cta {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-top: 30px;

    padding: 24px 28px;

    background: linear-gradient(
        135deg,
        #102a43,
        #173b5c
    );

    border-radius: 12px;

    box-shadow: 0 10px 28px rgba(16,42,67,.14);
}


.cta-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(227,196,119,.10);

    border: 1px solid rgba(227,196,119,.35);

    border-radius: 10px;

    color: #e3c477;

    font-size: 20px;
}


.cta-content {
    flex: 1;
}


.cta-content > span {
    color: #e3c477;

    font-size: 10px;
    font-weight: 700;
}


.cta-content h2 {
    margin: 4px 0;

    color: #ffffff;

    font-size: 18px;
}


.cta-content h2 strong {
    color: #e3c477;
}


.cta-content p {
    margin: 0;

    color: rgba(255,255,255,.65);

    font-size: 10px;
}


.cta-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 0 15px;

    background: #c89b3c;

    border-radius: 7px;

    color: #102a43 !important;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none !important;
}


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

@media (max-width: 900px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .family-tree-content {
        width: 100%;
    }

    .family-tree-visual {
        display: none;
    }

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

    .society-info-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .society-info-points {
        width: 100%;
    }

}


@media (max-width: 700px) {

    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .home-cta {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 500px) {

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

    .welcome-section {
        padding: 23px 20px;
    }

    .welcome-main h1 {
        font-size: 25px;
    }

    .family-tree-section {
        padding: 25px 20px;
    }

    .tree-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

}