.container {
    width: 95%;
    max-width: 500px;
}

.card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.card h1 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.subtitle {
    color: #777;
    margin-bottom: 25px;
    font-size: 14px;
}

.filter-box {
    text-align: left;
    margin-bottom: 20px;
}

.filter-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.filter-box select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.filter-box select:focus {
    border-color: #2c3e50;
}

.dynamic-content {
    margin: 20px 0;
    font-size: 14px;
    color: #444;
    background: #f8f9fb;
    padding: 15px;
    border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.dropdown-group {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.dropdown-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dropdown-item label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.dropdown-item select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: 0.3s;
}

.dropdown-item select:focus {
    border-color: #2c3e50;
    outline: none;
}

.sgpa-table-container{
    margin-top:30px;
}

.sgpa-table-container table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
}

.sgpa-table-container thead{
    background:#2c3e50;
    color:white;
}

.sgpa-table-container th,td{
    padding:12px;
    text-align:left;
    border-bottom:1px solid #eee;
}

.sgpa-table-container select{
    width:100%;
    padding:8px;
    border-radius:6px;
    border:1px solid #ccc;
}

#calculateBtn{
    margin-top:20px;
    padding:10px 25px;
    background:#2c3e50;
    color:white;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

#calculateBtn:hover{
    background:#1a252f;
}

#result{
    margin-top:20px;
    font-size:20px;
    font-weight:bold;
}
.rtu-info{
    margin-top:40px;
    padding:25px;
    background:#ffffff;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
    line-height:1.7;
}

.rtu-info h2{
    margin-top:20px;
    color:#2c3e50;
}

.rtu-info p{
    margin-top:10px;
    color:#444;
}

.rtu-info ol{
    margin-top:10px;
    padding-left:20px;
}

.rtu-info li{
    margin-bottom:8px;
}
#pageLoader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.loader-box{
    position:relative;
    text-align:center;
}

.loader-logo{
    width:70px;
    height:70px;
    position:absolute;
    top:35%;
    left:45%;
    transform:translate(-50%,-50%);
}

.spinner{
    width:110px;
    height:110px;
    border:6px solid #e5e5e5;
    border-top:6px solid #4a90e2;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

.loader-box p{
    margin-top:25px;
    font-size:14px;
    color:#555;
}

@keyframes spin{
    0%{transform:rotate(0deg);}
    100%{transform:rotate(360deg);}
}

/* Tablet View */
@media (max-width: 768px) {
    .dropdown-group {
        flex-wrap: wrap;
    }

    .dropdown-item {
        flex: 1 1 48%;
    }
}

/* Mobile View */
@media (max-width: 480px) {
    .dropdown-group {
        flex-direction: column;
    }

    .dropdown-item {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 25px 18px;
    }

    .card h1 {
        font-size: 22px;
    }
}

.sgpa-section{
    background:#f4f6fb;
    padding:25px 10px;
}

.sgpa-container{
    max-width:1000px;
    margin:auto;
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
    font-family:Arial, sans-serif;
}

.sgpa-container h2{
    text-align:center;
    margin-bottom:15px;
    color:#2c3e50;
}

/* TABLE */
.sgpa-table{
    width:100%;
    border-collapse:collapse;
}

.sgpa-table th,
.sgpa-table td{
    padding:8px;
    border:1px solid #ddd;
    text-align:center;
}

.sgpa-table th{
    background:#2c3e50;
    color:white;
}

.sgpa-table input,
.sgpa-table select{
    width:100%;
    padding:6px;
    border:1px solid #ccc;
    border-radius:5px;
}

/* BUTTONS */
.sgpa-actions{
    margin-top:15px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:center;
}

.sgpa-btn{
    padding:10px 16px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
}

.add-btn{background:#27ae60;color:white;}
.calc-btn{background:#2c3e50;color:white;}
.reset-btn{background:#e74c3c;color:white;}

.delete-btn{
    color:red;
    font-size:18px;
    cursor:pointer;
}

.sgpa-result{
    margin-top:18px;
    font-size:20px;
    font-weight:bold;
    text-align:center;
    color:#2c3e50;
}
.pdf-section{
    width:90%;
    margin:auto;
    margin-top:20px;
    padding:25px;
    background:#ffffff;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.pdf-title{
    font-size:20px;
    font-weight:600;
    margin-bottom:20px;
}

.pdf-form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.pdf-field{
    display:flex;
    flex-direction:column;
}

.pdf-field label{
    font-size:14px;
    font-weight:500;
    margin-bottom:5px;
}

.pdf-field input,
.pdf-field textarea{
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
    outline:none;
    transition:0.2s;
}

.pdf-field input:focus,
.pdf-field textarea:focus{
    border-color:#2c3e50;
}

.pdf-btn{
    margin-top:10px;
    padding:12px;
    border:none;
    border-radius:6px;
    background:#2c3e50;
    color:white;
    font-size:15px;
    font-weight:500;
    cursor:pointer;
    transition:0.2s;
}

.pdf-btn:hover{
    background:#2c3e50;
}

/* 📱 MOBILE RESPONSIVE */
@media(max-width:700px){

.sgpa-table thead{
    display:none;
}

.sgpa-table,
.sgpa-table tbody,
.sgpa-table tr,
.sgpa-table td{
    display:block;
    width:100%;
}

.sgpa-table tr{
    background:#f9fbff;
    margin-bottom:15px;
    padding:12px;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(0,0,0,0.06);
}

.sgpa-table td{
    border:none;
    text-align:left;
    padding:6px 0;
}

.sgpa-table td:before{
    font-weight:bold;
    display:block;
    color:#2c3e50;
    margin-bottom:3px;
}

.sgpa-table td:nth-child(1):before{content:"Subject";}
.sgpa-table td:nth-child(2):before{content:"Credit";}
.sgpa-table td:nth-child(3):before{content:"Grade";}
.sgpa-table td:nth-child(4):before{content:"Grade Point";}
.sgpa-table td:nth-child(5):before{content:"Action";}

}
.seo-section{
    background:#ffffff;
    padding:60px 20px;
}

.seo-container{
    max-width:900px;
    margin:auto;
    line-height:1.8;
    font-size:16px;
    color:#333;
}

.seo-container h2{
    font-size:28px;
    margin-bottom:20px;
    color:#2c3e50;
}

.seo-container h3{
    margin-top:30px;
    font-size:22px;
    color:#34495e;
}

.seo-container p{
    margin-bottom:15px;
}

.seo-container ul{
    margin-top:10px;
    padding-left:20px;
}

.seo-container li{
    margin-bottom:8px;
}

.formula-box{
    background:#f4f6f8;
    padding:15px;
    font-weight:bold;
    border-left:4px solid #2c3e50;
    margin:15px 0;
}