* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1b6188 0%, #048040 100%);
    min-height: 100vh;
    padding-bottom: 0;
    z-index: auto;
}

.container {            
    margin: 0 auto;
    padding: 20px 20px 0;
}
        
header {
    background: rgb(255, 255, 255);
    padding: 7px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;   
    justify-content: space-between;      
    white-space: nowrap    
}      

.logo-box {
    align-items: center;
    gap: 15px;
    text-decoration: none;
    display: flex;
    color: #333;
}

.logo-box:hover,.logo-box.active {
    color: #f77f2c;
    transition: color 0.3s;
}

.logo {
    position: relative;
    top: -5px;
    left: 0px;
}

.logo img  {
    width:40px;
    max-height: 40px;
    display: block;
}

.Comp-name {
    position: relative;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    padding-right: 10px;
    text-decoration: none;  
}
.Comp-name p {
    font-size: small;
    font-family: 'Roboto', sans-serif; 
    font-weight: 100;
    height: min-content;
    margin-top: -5px;
}            
#Premium-window-Par {
    display: none;
    grid-template-columns: auto auto;
    align-self: center;
    justify-self: center;
    width: fit-content;
}
#Premium-window-Par > h3 {
    text-align: right;
    padding: 10px;
    margin: 0;            
}
#Premium-window {
    width: fit-content;
    background: #ffffff;
    border: 2px solid rgb(89, 224, 161);
    box-shadow: inset 0 0 10px rgb(118, 177, 154);
    padding: 6px 12px 6px 5px;
    border-radius: 5px;
    margin: 5px 0 0 auto;
}
#Premium-window-Par img {
    width:40px;
    max-height: 10px;
    display: block;
    position: relative;
}
#Premium-window-Par button {
    grid-column: 2;
    padding: 0;
    width: fit-content;                                 
}
#Premiums-popup {
    flex-direction: column;
    z-index: 1000;
    max-height: 170px;
    overflow-y: auto;
    width: fit-content;
    border: 2px solid rgb(206, 206, 206);
    background: white;
    position: absolute;
    top: 154px;
    left: 30%;
}
#Premium-window h2 {
    color: gold;
    text-shadow: -1px -1px 0px #333333,
    1px -1px 0px #333333,
    -1px 1px 0px #333333,
    1px 1px 0px #333333;            
}
#Premium-window h5 {
    padding: 2px ;
    padding-right: 5px;
    color: rgb(0, 0, 0);    
    font-family: 'Times New Roman', Times, serif; 
        
}
.Premium-gr-one {
    padding: 5px;
    color: goldenrod;
    text-shadow: -1px -1px 0px #333333;
    
}
.YofP-gr-one {
    margin-top: 5px;
    padding: 2px;
    color: rgb(0, 0, 0);    
    font-family: 'Times New Roman', Times, serif; 
}

#SPremium-window {
    padding: 5px;
    gap: 5px;
    border: #353535 1px solid;
    margin: 8px;
}

#SPremium-window h5 {
    margin-top: 15 px;    
}

nav {
    display: flex;
    align-items: center; 
}

nav a {
    color: #333;
    display: flex;
    gap: 30px;
    padding: 10px 10px;
    text-decoration: none;
    font-size: 500;
}

nav a:hover{
    border-radius: 5px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    color:  #667eea;            
    transition: color 0.3s;
}

    nav a.active{
    color:  #f77f2c;            
    transition: color 0.3s;
}                 

.page {
    display: none !important;
    animation: fadeIn 0.5s;
}

.page.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
#home.active {
    display: flex !important;
    flex-direction: column;
    min-height: calc(100vh - 74px); /* Subtract header height */
}
.hero {
    
    background: white;
    border-radius: 10px;
    padding: 15px 0px 15px;
    margin: 30px 0 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.btn {
    margin-top: 30px;
    background: #2e48c0;
    color: white;
    padding: 5px 8px;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}
#nextbtn {
    display: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.bold-bullets {
    font-weight: bold;
    font-size: medium;
    display: inline;
}
#Product-Details .main-body{
    background: #fffef0;
    opacity: 100% !important;
}
#Product-Details img{
    width: 100px;
    height: auto;
    border: 3px solid rgb(105, 105, 105);    
}
#Certs-sheet{
    background: #ece6dc;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 10px;  
    margin-bottom: 20px;  
}

.Cert-row{
    display: flex;
    padding: 10px;
}

.Cert-row div{
    display: block;
    margin: 0px 30px;
}

.links{
    color: #1f5d7e;
}

.page-break {
    width: 80%;
    height: 1px;
    background: rgb(78, 78, 78);
    justify-self: center;
}

.card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 32px;
}

.form-group {
    margin-bottom: 20px;  
    max-height: fit-content;          
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    border:1px solid #ec633a;
    padding: 5px;
    background: #ffe2ca;
    
}
                
#table-div {
    border-radius: 4px; 
    box-shadow: inset 3px 3px 10px rgba(0,0,0,0.1);
    padding: 8px;
    background: #e7e7e7;
    width: 100%;     
    display: flex; 
    gap: 8px;     
    overflow-x: auto;
    align-items: flex-start;
}

#table-div h3 {
    font-size: medium;
    font-family: Georgia, serif;
    text-align: center;
    padding: 4px;
    background: palevioletred;
    border-radius: 3px;
    margin: 4px;
    width: fit-content;
}

#childExpenseTable {
    width: fit-content;     
    display: flex; 
}

.table-column {
    min-width: fit-content;
    display: flex;
    flex-direction: column;  
    align-items: center;          
}

table {
    width: 100%;
    font-size: small; 
    background: white;  
    margin: 4px; 
    border-radius: 3px;
    padding: 0;      
}

tr th, tr td {
    width: fit-content;
    font-size: small;
}

table th {
    background: #f8f9fa;
    font-weight: bold;
    font-size: small;
    color: #667eea;
}

#dashResults {
    width: 100%;
    display: flex;
    align-items: stretch; 
    justify-content: center;
    overflow-x: auto;
}

#line {
    align-self: stretch;
    width: 2px;
    background: rgb(114, 114, 114);
    margin: 60px 5px;      
    z-index:10 ; 
    min-width: 2px; /* Prevent shrinking */
    flex-shrink: 0;     
}
#perYear div{
    justify-content: flex-end;
}
#perBen div{
    justify-content: flex-start; 
}
#perYear h4{
    order: 1;
    min-width: 60px;
    text-align: right;
}
#perYear h3 {
    order: 2; 
    background: rgb(54, 185, 65);
    margin: 2px 0;
}
#perBen h4 {
    order: 2; 
    min-width: 80px;
    text-align: left;
}
#perBen h3 {
    order: 1; 
    background: rgb(183, 152, 255);     
    margin: 2px 0;       
}

.tree div {
    padding: 0;
    margin: 5px;
    display: flex;
}

.tree h3 {
    border-radius: 6px;
    text-align: center;
    padding: 5px 10px;
    white-space: nowrap;                     
}

.tree h2 {
    border-bottom: 3px solid #141414;
    font-family: 'Times New Roman', Times, serif; 
    margin:auto 20px 0;
    text-align: center;
}

.grid p {
    padding: 0 5px;
    max-height: 15px;
}
.notice {
    padding: 0 5px;
    position: relative;
    margin-top: 10px;
    max-height: 15px;
}
.beneficiary-item {
    background: white;
    padding: 10px;
    border:2.5px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
}

.beneficiary-item .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    border:1px solid #44ad1a;
    padding: 5px;
    background: #daffd8;
    
}

.beneficiary-item:hover {
    border:2.5px solid #0972d4;
}
.drag-handle {
    color: #aaa;
    font-size: 20px;
    cursor: grab;
    user-select: none;
    margin: 8px;
    }

.fake-input {
    border: 2.5px solid #e0e0e0; /* Mimics input border */
    padding: 10px 12px; /* Mimics input padding */
    font-family: sans-serif; /* Standard font for inputs */
    font-size: 16px; /* Standard font size for inputs */
    border-radius: 7px;
    min-height: 48px;
    line-height: 1.5;
    background: white;
} 

.delete-btn {
    background: #6919d1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.features {
    background-color: #141414;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding: 2px 0px;
    gap: 2px;
    margin: 10px 0;
}

.features p {
    padding: 2px;
    line-height: 18px;   
    margin-bottom: 3px;                 
}
.see-details {
white-space: nowrap;            
}
.feature-card-1 {
    background: #06974c;
    padding: 40px;
    padding-bottom: 15px;
    text-align: left;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.feature-card-2 {
    background: #f77f2c;
    padding: 40px;
    text-align: left;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}
.feature-card-3 {
    background: #1781bb;
    padding: 40px;
    text-align: left;
    transition: transform 0.3s;    
    display: flex;
    flex-direction: column;                    
}

.investor-buttons {
    display: grid;
    grid-template-columns: 1fr auto;           
    
}
.investor-buttons .btn {
    white-space: nowrap;
}

.investor-buttons a {             
        padding: 6px 5px -3;
        text-align: center;
        margin: 0 5px;
}

.investor-buttons img{
    width:30px;
    max-height: 30px;
    display: block;            
    border-radius: 15px;
    margin-top: 3px;
}

.investor-buttons img:hover {
    transform: translateY(-5px);
    transition: transform 0.3s;
}
.cert-icons {
    width:50px;
    max-height: 50px;
    display: block;                  
    
}
.expense-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.year-column {
    text-align: center;
    padding: 10px;
}

.total-row {
    background: #667eea;
    color: white;
    font-weight: bold;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.main-body {
    background-color: white;
    opacity: 70%;
    padding: 10px;  
    margin-bottom: 20px;          
}

.slogan {
    background: linear-gradient(90deg,white 0%,silver 65%,#d14279 100%)
}
.math img{
    width:1000px;
    max-height: fit-content;
    display: block;        
}
.filler {
    min-height: 10px;
    flex: 1;
}
.footer {
    background-color: rgb(104, 104, 104);
    color: #141414;
    padding: 20px;
    margin-top: auto;
}
        
.ExpGrPar {
    min-width: 335px;
}
.expense-grid input {
    padding: 5px;
    font-size: small;
    width: fit-content;
    border: 1px solid #b4b4b4;
    border-radius: 2px;
    transition: border-color 0.3s;
    max-width: 100px;
}

.expense-grid input:focus {
    outline: none;
    border-color: #667eea;
    background: #e3fbff;
}
#step1 {
    padding: 10px;
    gap: 5px;
}