/*===== Times Style 2 =====*/
body{
	background: #ffffff;
	font-family: 'Rubik', sans-serif;
	color: #000000;
}

p, span, li, td, th {
	color: #000000;
}
.time-wrap2 {
	padding-left: 5rem;   
}
.time-title {
	padding: 1rem 0;
	text-align: left;
}
.time-title > h1 {
    font-family: 'Noto Sans Arabic', 'Noto Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    text-shadow: none;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.time-title > h1 + p {
	margin-top: 3px;
	color: #000;
	text-shadow: none;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  text-shadow: none;
}

.time-title > h3 {
  font-size: 1.2rem;
  color: #000;
  text-shadow: none;
}

h4 {
  font-size: 1.1rem;
  color: #000;
  text-shadow: none;
}

h5 {
  font-size: 1.1rem;
  font-weight:bold;
  color: #000;
}

h6 {
  font-size: .9rem;
  color: #000;
  text-shadow: none;
}

.time-list2 {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ddd;
    overflow: hidden;
}

.time-list2 > li {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    flex: 0 0 16.66667%;
    max-width: 16.66667%;
    padding: 2.375rem 2rem 2.375rem 3.4375rem;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin: 0;
}

.time-list2 > li:nth-child(6n) {
    border-right: none;
}

.time-list2 > li:nth-last-child(-n+6) {
    border-bottom: none;
}

.time-list2 > li:nth-child(2n) {
    background-color: #ffffff;
}

.time-list2 > li span {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

@media (max-width: 1605px) {
.time-list2 > li {padding: 2.5rem 2rem;}
}

@media (max-width: 1445px) {
.time-list2 > li {font-size: 1.125rem;}
.time-list2 > li span {font-size: .9375rem;}
}

@media (max-width: 1370px) {
.time-wrap2 {padding-left: 2rem;}
}

@media (max-width: 1290px) {
.time-list2 > li {padding: 2.9rem 1.6rem;}
}


@media (max-width: 1210px) {
.time-title > p {
  font-size: .9375rem;
  line-height: 1.5;
}
.time-list2 > li {font-size: 1.0625rem;}
}

@media (max-width: 1070px) {
.time-list2 > li {
  font-size: 1rem;
  padding: 2.5rem 1.2rem;
}
.time-list2 > li span {font-size: 14px;}
}
@media (max-width: 995px) {
.time-wrap2 {padding-left: 0;}
.time-title {
  padding: 1rem;
  text-align: center;
}
.time-title > h1 {
  margin-bottom: 0.5rem;
  text-align: center;
}
.time-title > p {
  text-align: center;
}
.time-list2 > li {
  font-size: 1.125rem;
  padding: 2.5rem;
}
.time-list2 > li span {font-size: 1rem;}
.time-title .d-flex {
    justify-content: center !important;
}
.dropdown-container {
    padding: 0.5rem !important;
    width: 100%;
    display: flex;
    justify-content: center;
}
#zoneid {
    width: 350px;
    max-width: 100%;
}
}

@media (max-width: 850px) {
.time-list2 > li {padding: 2.5rem 1.8rem;}
}

@media (max-width: 770px) {
    .time-list2 > li {
        flex: 0 0 33.33334%;
        max-width: 33.33334%;
        text-align: center;
    }
    
    /* Reset border rules untuk mobile */
    .time-list2 > li:nth-child(6n) {
        border-right: 1px solid #ddd; /* Kembalikan border kanan */
    }
    
    /* Buang border kanan untuk setiap item ketiga */
    .time-list2 > li:nth-child(3n) {
        border-right: none;
    }
    
    /* Reset border bawah rules */
    .time-list2 > li:nth-last-child(-n+6) {
        border-bottom: 1px solid #ddd;
    }
    
    /* Buang border bawah untuk 3 item terakhir */
    .time-list2 > li:nth-last-child(-n+3) {
        border-bottom: none;
    }
}

@media (max-width: 430px) {
.time-list2 > li {
  font-size: 1rem;
  padding: 2rem 1.5rem;
}
.time-list2 > li span {font-size: 14px;}
}

@media (max-width: 325px) {
.time-list2 > li {padding: 1.5rem 1rem;}
}

#clockdiv {
	font-family: 'Rubik', sans-serif;
	color: #000;
	display: inline-block;
	font-weight: 100;
	text-align: center;
	font-size: 20px;
}

#clockdiv > div {
	padding: 10px 20px 10px 20px;
	border-radius: 3px;
	background: #f8f9fa;
	display: inline-block;
	margin: 0 5px 0 5px;
}

#clockdiv div > span {
	padding: 7px;
	border-radius: 2px;
	background: #ffffff;
	display: inline-block;
	font-weight:bold;
	font-size: 25px;
}

.smalltext {
	padding-top: 2px;
	font-size: 15px;
}

tbody, th, td {
	color: #000000;
	font-weight: 500;
}

#zoneid {
    padding: 12px 25px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

#zoneid:hover, #zoneid:focus {
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    outline: none;
}

#zoneid option {
    color: #333;
    padding: 12px;
    background-color: white;
}

#zoneid option:disabled {
    background-color: #f5f5f5;
    color: #2196F3;
    font-weight: 600;
    padding: 12px;
    margin-top: 5px;
}

#zoneid option:not(:disabled):hover {
    background-color: #f5f5f5;
}

/* Container untuk title dan dropdown */
.time-title {
    padding: 1rem 0;
    text-align: left;
}

/* Flex container untuk title dan dropdown */
.time-title .d-flex {
    justify-content: flex-start !important;
    margin-top: 0.5rem;
}

/* Dropdown container */
.dropdown-container {
    position: relative;
    margin: 0;
    padding: 0 !important;
}

/* Animation untuk dropdown */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#zoneid option {
    animation: slideIn 0.2s ease;
}

.blink {
    animation-duration: 1.5s;
    animation-name: blink;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}
@keyframes blink {
    from {
        opacity: 1;
    }
    to {
        color:lightgreen;
        opacity: 0.6;
    }
}

/* Logo Text Styles */
.logo-text {
    font-family: 'Noto Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo-text:hover {
    text-decoration: none;
    color: #000; /* Sama dengan warna asal */
}

/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;700&family=Noto+Sans:wght@400;500;600;700&family=Rubik:wght@400;500;600&display=swap');

/* Styles untuk jadual waktu solat */
.table {
    border: 1px solid #ddd;
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 12px;
    vertical-align: middle;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #ddd;
    text-align: center;
}

.table tbody td {
    text-align: center;
}

/* Khusus untuk kolum pertama (nama bandar) */
.table tbody td:first-child {
    text-align: left;
    padding-left: 20px;
}

/* Pastikan header juga sejajar */
.table thead th:first-child {
    text-align: left;
    padding-left: 20px;
}

/* Kekalkan alignment tengah untuk kolum waktu */
.table tbody td:not(:first-child),
.table thead th:not(:first-child) {
    text-align: center;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.01);
}

.table-primary {
    background-color: rgba(33, 150, 243, 0.05) !important;
    border-left: 3px solid #2196F3 !important;
}

.table-primary:hover {
    background-color: rgba(33, 150, 243, 0.08) !important;
}

/* Pastikan highlight kekal dalam striped table */
.table-striped tbody tr.table-primary:nth-of-type(odd) {
    background-color: rgba(33, 150, 243, 0.05) !important;
}

.table-striped tbody tr.table-primary:nth-of-type(odd):hover {
    background-color: rgba(33, 150, 243, 0.08) !important;
}

/* Responsive table untuk mobile */
@media (max-width: 768px) {
    .table-responsive {
        border: 0;
    }
    
    .table {
        border: 1px solid #ddd;
    }
    
    /* Style untuk bandarsahaja.php dalam mobile view */
    .table tbody td:first-child h5,
    .table tbody td:first-child {
        text-align: center !important;
        padding-left: 12px;
    }
    
    /* Untuk reflow table mobile mode */
    .reflow-table.reflow-table-mobile-mode td:first-child {
        text-align: center !important;
    }
    
    /* Pastikan h5 dalam reflow table juga center */
    .reflow-table.reflow-table-mobile-mode td:first-child h5 {
        text-align: center !important;
    }
}

/* Style untuk link dalam jadual bandar utama */
.table td a {
    color: #2196F3;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.table td a:hover {
    color: #0d47a1;
}

/* Tambah underline animation pada hover */
.table td a:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0d47a1;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.table td a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Header container style */
.header-container {
    background-color: transparent;
    width: 100%;
    z-index: 1;
}

/* Adjust spacing */
.p-5 {
    padding: 2rem !important;
}

@media (max-width: 768px) {
    .header-container {
        margin-bottom: 1rem;
    }
    
    .time-title {
        padding: 0;
    }
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans', sans-serif;
}

/* Adjust mobile spacing */
@media (max-width: 768px) {
    .p-5 {
        padding: 1rem !important;
    }
    
    .header-container {
        margin-bottom: 0;
    }
    
    .time-title {
        padding: 0;
    }
    
    .time-title > h1 {
        font-size: 2rem;
        margin-top: 0;
        letter-spacing: -0.3px;
    }
    
    .dropdown-container {
        margin: 10px 0;
    }
}

/* Update existing font references */
.time-list2 > li {
    font-family: 'Noto Sans', sans-serif;
}

.logo-text {
    font-family: 'Noto Sans', sans-serif;
}

#clockdiv {
    font-family: 'Rubik', sans-serif;
}

/* Mobile view untuk logo */
@media (max-width: 768px) {
    .header-container .w3-bar {
        text-align: center;
    }

    .logo-text {
        float: none !important;
        display: inline-block;
        font-size: 1.8rem;
    }

    /* Buang padding kiri untuk mobile */
    .w3-bar-item {
        padding-left: 0 !important;
    }
}

/* FAQ Section Styling */
article a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

article a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.faq-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.faq-item h4 {
    color: #000;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Top Locations List Styling */
.list-unstyled li {
    margin-bottom: 0.75rem;
}

.list-unstyled li a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.list-unstyled li a:hover {
    color: #0d47a1;
    text-decoration: underline;
    transform: translateX(5px);
}

/* PWA Install Button Hover Effect */
#installButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 -6px 25px rgba(33,150,243,0.6) !important;
}

#installButton:active {
    transform: translateY(0);
}