/* Optimized and enhanced CSS for a modern and visually appealing website */

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Adjusted smooth scrolling to stop before headings */
html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 100px; /* Ensures headings remain visible */
}

/* Added margin to body to prevent content overlap with fixed menu */
body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden;
  margin-top: 80px; 
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* this makes the main section grow to fill available space */
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

/* Header Styling */
header {
  background: linear-gradient(90deg, #00529B, #003366);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 0; /* Ensures no extra space between menu and header */
}

.addOp{
  background: linear-gradient(90deg, #00529B, #003366);
  position:fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  color:#fff;
  padding:0 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width:100%;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2em;
}

/* Navigation Bar */
nav {
  background: #003366;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px 0; /* Increased padding for a larger menu */
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 25px 30px; /* Increased padding for larger clickable area */
  font-size: 0.9em; /* Increased font size for better readability */
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.nav-p{
	float:right;
	padding-right:10px;
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 5px;
}

.dashboard-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 20px;
            padding: 40px 20px;
        }
        .card {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
            flex: 1;
            min-width: 250px;
            max-width: 300px;
            text-align: center;
        }
        .card h5 {
            font-size: 1.2em;
            color: #003366;
        }
        .card p {
            font-size: 2em;
            font-weight: bold;
            color: #00529B;
        }

.card-c{
	background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
            flex: 1;
            min-width: 250px;
            max-width: 300px;
            height:300px;
            text-align: center;
}

.card-p{
	background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
            flex: 1;
            text-align: center;
            max-width:100%;
}

.card-c h5{
	color:black;
}
.card-c p{
	color:black;
}
.card-p p{
	color:black;
}

/* Card-style container */
.custom-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 25px;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Section Titles */
.custom-card h3,
.custom-card h4 {
  color: #004085;
  margin-bottom: 15px;
}

/* List styling for About section */
.custom-card ul {
  padding-left: 20px;
  margin-top: 10px;
}

.custom-card ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}


.action-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.9em;
        padding: 6px 10px;
        border-radius: 10px;
        text-decoration: none;
    }

    .btn-warning {
        background-color: #ffc107;
        color: #000;
    }

    .btn-danger {
        background-color: #dc3545;
        color: #fff;
    }
    
    .btn-primary{
    	background-color: #039dfc;
    	color:#fff;
    }
    
    .btn-info{
    	background-color: #003366;
    	color:#fff;
    }

    .btn-warning:hover, .btn-danger:hover , .btn-primary:hover, .btn-info:hover {
        opacity: 0.9;
    }
 .warning-box {
    background-color: white;
    color: #856404;
    border: 2px solid yellow;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 16px;
    font-size:22px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
 
.bank-section {
    margin: 30px;
    padding: 15px;
    border-top: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width:100%;
}

.banks-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.bank-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bank-header {
    padding: 10px 15px;
    background-color: #e6f0ff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #0d6efd;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotate {
    transform: rotate(180deg);
}

.branch-header {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #0d6efd;
}

.branch-list {
    display: none;
    padding-left: 20px;
    background-color: #fefefe;
}

.branch-list.open {
    display: block;
    font-weight:bold;
    font-size:17px;
    margin-right:15px;
    animation: fadeIn 0.3s ease-in-out;
}

.case-list {
    margin-left: 20px;
    padding: 10px;
    border-left: 2px solid #ccc;
    background-color: #f0f8ff;
    display: none;
}

.case-list,
.branch-list {
    margin-left: 20px;
    transition: all 0.3s ease-in-out;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

 
 
.hero-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  width: 300px;
}

.hero-content {
  font-size: 1em;
  color: black;
  flex: 1;
  text-align: justify;
  text-shadow: none;
}

.hero-content p{
  padding-bottom: 8px;
}

.name-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-title h2 {
  margin: 0;
}

.span{
  font-size: 16px;
  color: rgb(104, 103, 103);
}

.cta-button {
  display: inline-block;
  background: #FFD700;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #FFC107;
  transform: scale(1.1);
}

/* Section Styling */
section {
  padding: 50px 20px;
}


/* Footer Styling */
footer {
  background: linear-gradient(to right, #0a0a0a, #1f1f1f);
  color: #ccc;
  padding: 40px 20px 20px;
  text-align: center;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  border-top: 2px solid #333;
}

.footer-container p {
  margin: 8px 0;
  font-size: 1em;
  color: #ccc;
}

footer strong {
  color: #FFD700;
  font-weight: bold;
}

.footer-socials {
  margin: 20px 0;
}

.footer-socials a {
  margin: 0 10px;
  font-size: 1.4em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
  transform: scale(1.2);
}

/* Algoryne Credit Section */
.algoryne-footer {
  margin-top: 30px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #bbb;
  border-top: 1px solid #444;
}

.algoryne-footer a {
  color: #66cfff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.algoryne-footer a:hover {
  color: #FFD700;
  text-decoration: underline;
}

.algoryne-footer .heart {
  color: #e25555;
  font-size: 1.1em;
}



@media (max-width: 1307px) {
  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      margin-top: 15px;
      background-color: #003366;
  }
  .nav-links.active {
      display: flex;
  }
  .nav-links li {
      margin: 10px 0;
      text-align: center;
  }
  .burger {
      display: flex;
  }
}

@media (max-width: 900px) {
    table thead {
        display: none;
    }

    table, tbody, tr, td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
        background-color: #fff;
        overflow: hidden;
    }

    table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    table td:last-child {
        border-bottom: none;
        justify-content: flex-start;
        gap: 10px;
    }

    table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #003366;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    table td img {
        max-width: 70px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .action-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.9em;
        padding: 6px 10px;
        border-radius: 20px;
        text-decoration: none;
    }

    .btn-warning {
        background-color: #ffc107;
        color: #000;
    }

    .btn-danger {
        background-color: #dc3545;
        color: #fff;
    }

    .btn-warning:hover, .btn-danger:hover {
        opacity: 0.9;
    }
}

@media (max-width: 600px) {
	.card,.card-c{
		max-width:100%;
	}
}