:root {
    --green: hsl(163, 86%, 20%);
    --green-dark: #004937;
    --green-light: #0f803a;
    --red: #ff0000;
    --red-dark: #8a0000;
    --red-light: #ff7300;
    --gold: #D5A72C;
    --gold-light: #F3D77A;
    --dark: #14221e;
    --dark-light: #edf5f2;
    --text: #3e4946;
    --text-light: #788a99;
    --light: #F6F8F7;
    --white: #ffffff;
    --border: #c5d1da;
    --border-light: #eaf1ee;
    --radius: 18px;
}

*{
    box-sizing: border-box;
}

body {
    font-family:'Kanit',sans-serif;
    color:var(--text);
    background:#fff;
}

a {
    color: var(--green-light);
    text-decoration:none;
}
a:hover {
    color: var(--red);
    text-decoration:none;
}

/* img {
    max-width:100%;
} */

.txt-normal {
    color: var(--text);
}
.txt-dark {
    color: var(--dark);
}
.txt-light {
    color: var(--text-light);
}

@media(max-width:1199px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}
@media(max-width:767px) {
    .container{
        max-width: 100%;
        padding: 0 1rem;
    }
}

.wrapper-card{
    scroll-margin-top: 220px;
    background:#fff;
    border: 1px solid #f7faf0;
    border-radius: 10px;
    margin-bottom: 48px;
    padding: 20px;
    box-shadow:0 5px 25px rgba(0,0,0,.06);
    transition:.3s;
}

.label-title {
    color:var(--green-dark);
}
@media(max-width:575px) {
    .label-title {
        font-size: 16px;
        font-weight: normal;
    }
}

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

.hero{
    min-height:540px;

    background:
        linear-gradient(
            90deg,
            rgba(3,48,37,.95),
            rgba(3,48,37,.65),
            rgba(3,48,37,.25)
        ),
        url("../images/krabi-mosque.jpg")
        center/cover no-repeat;

    display:flex;
    align-items:center;

    position:relative;
}

.hero-content{
    color:#fff;
    max-width:720px;
    padding:70px 0;
}

.hero-badge{
    display:inline-block;
    padding:7px 16px;
    border:1px solid rgba(255,255,255,.5);
    border-radius:50px;
    font-size:13px;
    letter-spacing:.5px;
    margin-bottom:20px;
}

.hero h1{
    font-size:clamp(2.2rem,5vw,4rem);
    font-weight:600;
    line-height:1.25;
    margin-bottom:20px;
}

.hero p{
    font-size:18px;
    line-height:1.8;
    color:#e7f2ee;
}

.hero-buttons{
    margin-top:30px;
}

.btn-gold{
    background:var(--gold);
    border-color:var(--gold);
    color:#182015;
    padding:12px 25px;
    border-radius:10px;
    font-weight:500;
}

.btn-gold:hover{
    background:var(--gold-light);
    border-color:var(--gold-light);
}


/* ======================================================
   SECTION
====================================================== */
section {
    scroll-margin-top: 180px;
    background:#fff;
}
.content-section,
.statistics-section,
.download-section,
.contact-section {
    padding: 90px 0;
}

.section-scroll-top {
    scroll-margin-top: 200px;    
    transition:.3s;
    /* text-align:center;
    margin-bottom: 12px;
    border-bottom: 1px solid #dddddd; */
}

.section-heading .title {
    color: var(--green-dark);
}

.section-heading p {
    color:#7b8883;
}

.section-wrapper {
    padding: 0 0 90px;
}

.section-wrapper .shortcut {
    padding: 20px 0;
}

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

.statistics-section{
    background:#f7faf8;
}

.stat-card {
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    margin: 0;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .06);
    transition: .3s;
}

/* แสดงสถิติแนวนอน */
.stat-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* แต่ละรายการกว้างตามเนื้อหา */
.stat-head > .d-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-align: left;
}

/* Icon */
.stat-head img {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}
.stat-head.larged img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

/* ตัวเลข */
.stat-number {
    font-size: 20px;
    font-weight: 500;
    color: var(--green-dark);
    line-height: 1.3;
    white-space: nowrap;
}
.stat-head.larged .stat-number {
    font-size: 24px;
    font-weight: 500;
    color: var(--green-dark);
    line-height: 1.3;
    white-space: nowrap;
}

/* ชื่อสถิติ */
.stat-title {
    font-size: 14px;
    font-weight: lighter;
    color: var(--text-light);
    white-space: nowrap;
}
.stat-head.larged .stat-title {
    font-size: 16px;
    font-weight: lighter;
    color: var(--text-light);
    white-space: nowrap;
}

/* Tablet: */
@media (max-width: 991px) {
    .stat-head img {
        width: 48px !important;
        height: 48px !important;
        flex: 0 0 48px !important;
    }

    .stat-number {
        font-size: 20px !important;
        white-space: normal;
    }

    .stat-title {
        font-size: 15px !important;
        white-space: normal;
    }
}
/* Tablet: */
@media (max-width: 767px) {
    .stat-head > .d-flex {
        min-width: 0;
        gap: 8px;
        flex: initial;
    }
    .stat-head img {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
    }
    .stat-number {
        font-size: 18px !important;
        white-space: normal;
    }
    .stat-title {
        font-size: 15px !important;
        white-space: normal;
    }
}
/* Mobile: แสดง 2 รายการต่อแถว */
@media (max-width: 575px) {
    .stat-card {
        padding: 20px 15px;
        overflow: hidden;
    }
    .stat-head {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
        justify-content: initial;
        align-items: center;
        overflow: visible;
    }
    .stat-head > .d-flex {
        min-width: 0;
        gap: 8px;
        flex: initial;
    }
    .stat-head img {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
    }
    .stat-number {
        font-size: 18px !important;
        white-space: normal;
    }
    .stat-title {
        font-size: 13px !important;
        white-space: normal;
    }
}
/* .stat-card {
    background:#fff;
    border-radius:var(--radius);
    margin: 0;
    padding: 28px 15px;
    text-align:center;
    box-shadow:0 5px 25px rgba(0,0,0,.06);
    transition:.3s;
}
.stat-head {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    justify-content: space-between;
    align-items: center;
}
.stat-head img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,.8);
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.stat-card:hover {
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
} */

.stat-icon{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 auto 18px; */
    /* font-size: 27px; */
    border: 4px solid rgba(255,255,255,.8);
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.stat-icon.green{
    background:#dff2eb;
    color:#087653;
}

.stat-icon.gold{
    background:#fff2cc;
    color:#b78800;
}

.stat-icon.blue{
    background:#e0efff;
    color:#2270b9;
}

.stat-icon.pink{
    background:#ffe4ed;
    color:#c34b73;
}

.stat-icon.dark{
    background:#dce8e4;
    color:#075E45;
}


/* ======================================================
   TABLE
====================================================== */

.mosque-table {
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 25px rgba(0,0,0,.07);
    vertical-align:middle;
}

.mosque-table thead th {
    background:var(--green);
    color:#fff;
    padding:16px;
    border:0;
    white-space:nowrap;
}

.mosque-table tbody td {
    padding:15px;
    border-color:#edf1ef;
}

.mosque-table tbody tr:hover {
    background:#f1f8f5;
}

.mosque-table tfoot th {
    background:#e7f3ee;
    color:var(--green-dark);
    padding:16px;
}


/* ======================================================
   DATE BOX
====================================================== */

    .date-box {
		width: 64px;
		min-width: 64px;
		height: 64px;
		min-height: 64px;
		border-radius: 10px;
		background: var(--gold);
		color: #fff;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.day {
        font-size: 24px;
		line-height: 1;
		font-weight: 700;
	}
	.month {
        font-size: 14px;
	}
	.file-box {
        font-size: 42px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: top;
        background: var(--dark-light);
        border: 1px solid var(--border-light);
        border-radius: 10px;
	}

/* ======================================================
   EVENT
====================================================== */

    .event-card {
		background: #fff;
		border-radius: 10px;
		overflow: hidden;
		/* border: 1px solid #eeeeee; */
		box-shadow: 0 3px 10px rgba(0,0,0,.08);
		transition: .3s;
	}
	.event-card:hover {
		transform: translateY(-3px);
		box-shadow: 0 7px 15px rgba(0,0,0,.15);
	}
	.event-image {
		height: 100%;
	}
	.event-image img {
		width: 100%;
		height: 100%;
		/* min-height: 260px; */
		object-fit: cover;
		display: block;
	}
	.event-body {
		padding: 10px;
		display: flex;
		flex-direction: column;
		height: 100%;
	}
	.event-title {
		color:var(--green);
		/* font-weight: 600; */
	}
	.event-desc {
		color: #555;
		flex:1;
	}
	.event-meta {
		/* display:flex; */
		/* flex-wrap:wrap; */
		gap: 10px;
		margin-bottom: 10px;
		padding-bottom: 5px;
		border-bottom: 1px solid #e5e5e5;
		color: var(--text);
	}
	.event-meta span {
		display: flex;
		align-items: center;
		gap: 8px;
	}
	/* .event-meta h6 {
		font-weight: lighter;
	} */

	/* Tablet */
	@media (min-width:576px){
		.event-image img{
			/* min-height: 100%; */
		}

	}
	/* Mobile */
	@media (max-width:575px){
		.event-card{
			background: #fff;
			border-radius: 7px;
			overflow: hidden;
			border: 1px solid #f9f9f9;
			border-bottom: 1px solid #eeeeee;
			box-shadow: none;
			transition: .3s;
		}
		.event-title{
			/* font-size: 1.25rem; */
		}
		.event-body{
			padding: 5px;
		}
		.event-meta{
			gap: 12px;
			font-size: .9rem;
		}
	}


/* ======================================================
   COMMITTEE
====================================================== */
.chairman-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
    border: 5px solid var(--green);;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .06);
    max-width: 250px;
    height: auto;
}
.chairman-wrapper img {
    display:flex;
    align-items:center;
    justify-content:center;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    /* margin-bottom: 15px; */
    background:#e6f1ed;
}


/* ======================================================
   DOWNLOAD
====================================================== */

.download-section{
    background:#f7faf8;
}

.document-card{
    background:#fff;

    border-radius:15px;

    padding:18px 20px;

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

    box-shadow:0 4px 20px rgba(0,0,0,.05);
}

.document-icon{
    width:55px;
    height:55px;

    border-radius:12px;

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

    background:#ffe5e5;
    color:#d32f2f;

    font-size:25px;
}

.document-card h5{
    color:var(--green-dark);
    font-size:17px;
    margin:0;
}

.document-card small{
    color:#8b9691;
}


/* ======================================================
   CONTACT
====================================================== */
.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}
.contact-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 15px;
    background :#e5f4ee;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.contact-item h5 {
    color: var(--green-dark);
    margin-bottom: 5px;
}
.contact-item p {
    color: var(--text);
    margin:0;
}
.map-box {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
@media(max-width:575px) {
    .contact-item {
        gap: 10px;
        margin-bottom: 20px;
    }
    .contact-item h5 {
        font-size: 17px;
    }
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    .contact-item p {
        font-size: 14px;
        font-weight: 300;
    }
}

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

.footer{
    background: #d5e4df;
    color: #00291e;
    padding: 65px 0 25px;
}

.footer-title{
    margin-bottom: 10px;
    color: #306658;
}

.footer-menu{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu a{
    color: rgb(0, 85, 35);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 12px;
    transition: .3s;
    background: rgba(139, 204, 166, 0.5);
}

.footer-menu a:hover{
    color: #ffd56b;
    padding-left: 24px;
    background: rgba(22, 99, 54, 0.9);
    box-shadow:0 10px 25px rgba(0,0,0,.5);
}

.footer-logo {
    /* display:flex; */
    /* align-items:center; */
    /* gap:12px; */
    color: rgb(0, 85, 35);
    /* font-size: 16px; */
    font-weight: var(--light) !important;
    /* margin-bottom:18px; */

    padding: 24px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    background: rgba(139, 204, 166, 0.5);
}

.footer-logo p{
	color: #4a574e;
}

.footer-logo i{
    /* color: rgb(0, 85, 35);
    width: 32px;
    background:var(--gold);
    height: 32px;
    font-size: 18px; */
    /* border-radius:50%;

    color:#123c30;

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

.footer h5{
    /* color:#fff; */
    /* margin-bottom:20px; */
}

.footer-contact{
    list-style:none;
    padding:0;
}

.footer-contact li{
    display:flex;
    gap:12px;
    margin-bottom:15px;
}

.footer-contact i{
    color:var(--gold);
}

.icon-box{
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background:rgba(255,255,255,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
	transition:all .3s ease;
}

.icon-box:hover{
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.social-icons{
    display:flex;
    gap:12px;
}

.social-icons i{
    font-size: 20px;
}
.social-icons a{
    width:45px;
    height:45px;
    border-radius:50%;
    background:rgba(255,255,255,.2);
    color:#2b862b;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 16px;
    transition:.3s;
}

.social-icons a:hover{
    /* color:#fff !important; */
    background:rgba(255,255,255,.2);
    box-shadow:0 10px 25px rgba(0,0,0,.5);
    transform:translateY(-4px);
}

.footer hr{
    border-color:rgba(255,255,255,.15);
    margin:45px 0 20px;
}


/* ======================================================
   MOBILE
====================================================== */

@media(max-width:767px){

    .hero{
        min-height:600px;
    }

    .hero-content{
        padding:50px 0;
    }

    .hero h1{
        font-size:2.2rem;
    }

    .hero p{
        font-size:16px;
    }

    .content-section,
    .statistics-section,
    .download-section,
    .contact-section{
        padding: 32px 0;
    }

    .section-heading h2{
        font-size: 27px;
    }

    .quick-card{
        padding: 18px;
    }

    .brand-name{
        font-size: 17px;
    }

    .brand-icon{
        width: 42px;
        height: 42px;
    }

    .footer{
        padding: 15px 0;
    }

}

/* .stat-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;

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

    margin: 0 auto 15px;

    font-size: 36px;

    border: 4px solid rgba(255,255,255,.8);

    box-shadow:
        0 8px 25px rgba(0,0,0,.12);

    transition: all .3s ease;
}

.stat-icon:hover {
    transform: translateY(-8px) scale(1.05);
} */

.icon-mosque {
    background: #e5f4ee;
    color: #087653;
}

.icon-male {
    background: #e5efff;
    color: #2774c7;
}

.icon-female {
    background: #ffe8f0;
    color: #d14d7a;
}

.icon-family {
    background: #fff3d6;
    color: #c18a12;
}

.icon-total {
    background: #e8e8e8;
    color: #344054;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    margin: 5px 0 0;
    font-size: 28px;
    font-weight: 600;
    color: #075e45;
}

.stat-item p {
    margin: 0;
    color: #66746f;
}

#goTop{
    position:fixed;
    right:25px;
    bottom:25px;
    width:55px;
    height:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:20px;
    background:rgba(11,93,87,.75);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    text-decoration:none;
    opacity:0;
    visibility:hidden;
    transform:translateY(20px);
    transition:.35s;
    z-index:9999;
}

#goTop.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

#goTop:hover{
    background:#198754;
    color:#fff;
    transform:translateY(-4px);
}

@media (max-width: 1199px){
    #goTop{
        left:50%;
        right:auto;
        bottom:20px;
        transform:translateX(-50%);
    }
    #goTop.show{
        opacity:1;
        visibility:visible;
        transform:translateX(-50%) translateY(0);
    }
    #goTop:hover{
        background:#198754;
        color:#fff;
        transform:translateX(-50%) translateY(-4px);
    }
}

.multiline-ellipsis-1 {
	margin:0;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: inherit;
}
.multiline-ellipsis-2 {
	margin:0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: inherit;
}

.input-group{
    max-width:320px;
}

.input-group .form-control{
    border-left:0;
    box-shadow:none;
}

.input-group .form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 .15rem rgba(25,135,84,.15);
}

.input-group-text{
    border-right: 0;
}

@media (max-width:575px){
    .section-heading .title {
        font-size: 24px;
        font-weight: normal;
    }
    .input-group{
        max-width: 100%;
    }
}

.stats-table {
    margin-bottom: 0;
    border: 1px solid #ffffff;
    color: var(--text);
}

.stats-table th {
    vertical-align: middle;
    padding: 10px;
    white-space: nowrap;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.stats-table thead th {
    font-weight: normal;
    font-size: 17px;	
    white-space: nowrap;
}
.stats-table tbody td {
    font-weight: normal;
    font-size: 15px;
    white-space: nowrap;
}

.stats-table .text-green-dark {
    color: #075c3a;
}

.stats-table .bg-total {
    background-color: #dff0d8;
}

.stats-table tbody td {
    padding: 10px;
    vertical-align: middle;
}

/* Mobile */
@media (max-width: 575px) {
    .stats-table thead th {
        font-size: 16px;
    }
    .stats-table tbody td {
        font-size: 15px;
    }
}
.table-responsive table th {
    font-weight: normal;
    color: var(--dark);
}
.table-responsive table td {
    font-weight: lighter;
    color: var(--text);
}
@media (max-width: 575px) {
    .table-responsive {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive table {
        min-width: auto;
        white-space: nowrap;
    }
    .table-responsive table {
        font-size: 16px;
    }
    .table-responsive table td {
        font-size: 15px;
    }
}