/* --- THE LALIT INTERNATIONAL SCHOOL - MASTER UNIVERSAL FRAMEWORK --- 
   Theme: Royal Luxury (Blue & Gold)
   Fixes: Background-less Menu & ZERO TOP SPACE
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --royal-blue: #002366;
    --royal-blue-light: #003399;
    --gold: #D4AF37;
    --deep-gold: #aa8a2e;
    --light-gold: #fdfbf0;
    --success: #27ae60;
    --danger: #c0392b;
    --warning: #f39c12;
    --info: #2980b9;
    --paper-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --border-color: #e0d0b0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body { 
    background: #f4f4f2; 
    font-family: 'Poppins', sans-serif; 
    margin: 0; padding: 0; 
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- SPACE FIX: Menu & Content Gap Removal --- */
#menu-trigger-btn {
    position: fixed !important; 
    top: 15px !important; /* Thoda upar shift kiya taaki card ke top se align ho */
    left: 12px !important; 
    width: 45px; height: 45px;
    background: transparent !important; 
    border: none !important;             
    z-index: 20001; cursor: pointer; 
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 5px; 
    transition: 0.3s; outline: none;
}

#menu-trigger-btn span { 
    width: 25px; height: 3px; 
    background: var(--gold) !important; 
    border-radius: 2px; transition: 0.4s; 
}

/* CHANGE: Padding ko 0 kiya gaya hai taaki card chipak jaye */
.main-content { 
    padding: 0px !important; 
    margin-top: 0px !important;
    display: flex; flex-direction: column; align-items: center;
}

/* --- REST OF THE ROYAL THEME --- */
.school-logo { 
    width: 120px; height: 120px; object-fit: contain; display: block;
    margin: 0 auto 15px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); 
    transition: var(--transition); 
}
.school-logo:hover { transform: scale(1.05); }

.receipt-logo { width: 80px !important; height: 80px !important; object-fit: contain; margin-bottom: 10px; }

/* CHANGE: Height aur Width ko Viewport ke hisaab se set kiya gaya hai */
/* CHANGE: Height ko content ke hisaab se set kiya gaya hai */
.royal-card { 
    width: 100%; 
    max-width: 2000px;
    
    /* Bevajah screen gherne se rokne ke liye */
    height: auto; 
    min-height: fit-content; 
    
    margin: 0 auto !important; /* Center mein rahega aur gap nahi chhodega */
    padding: 40px 20px; 
    
    background: var(--paper-white);
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    
    border: 2px solid var(--border-color);
    border-radius: 0px;
    box-shadow: var(--shadow-md);
    
    position: relative; 
    
    /* Sabse important: Taki suggestions niche rasta banayein */
    overflow: visible !important; 
    display: block; 
}

/* Border jo content ke saath stretch hogi */
.royal-card::after {
    content: ""; 
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    pointer-events: none; 
    border-radius: 0px;
    z-index: 1;
}

#menu-container { position: fixed; top: 0; width: 100%; z-index: 9999; }

.header { text-align: center; margin-bottom: 40px; border-bottom: 3px double var(--gold); padding-bottom: 25px; }
h1, .brand-font { font-family: 'Cinzel', serif; color: var(--royal-blue); margin: 0; text-transform: uppercase; }
h2 { font-family: 'Cinzel', serif; color: var(--royal-blue); text-align: center; margin: 30px 0; position: relative; padding-bottom: 10px; width: 100%; }
h2::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: var(--gold); }

.royal-btn {
    background: var(--royal-blue); color: var(--gold);
    border: 1px solid var(--gold); padding: 12px 28px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    text-transform: uppercase; letter-spacing: 1.5px;
    border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none;
}

.royal-btn:hover { background: var(--gold); color: var(--royal-blue); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); }

.search-box-wrapper { position: relative; max-width: 600px; margin: 10 auto 30px; width: 100%; }
.search-input-royal {
    width: 100%; padding: 15px 25px; padding-right: 60px;
    border: 2px solid var(--gold); border-radius: 30px;
    font-size: 16px; outline: none; transition: var(--transition);
}

.form-section {
    background: rgba(253, 251, 240, 0.6);
    border-left: 6px solid var(--gold);
    padding: 25px; margin-bottom: 30px; border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }

input, select, textarea {
    width: 100%; padding: 14px 16px; border: 1px solid #d1d1d1;
    border-bottom: 3px solid var(--gold); border-radius: 6px;
    font-size: 15px; transition: var(--transition); background: white;
}

.profile-grid-custom { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; width: 100%; }
.custom-id-card {
    background: white; border: 1px solid var(--gold); border-radius: 12px;
    padding: 18px; display: flex; align-items: center; gap: 10px;
    cursor: pointer; transition: var(--transition); position: relative; overflow: hidden;
}
.custom-id-card:hover { transform: scale(1.03) translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--royal-blue); }

.id-photo { width: 60px; height: 70px; object-fit: cover; border: 2px solid var(--gold); border-radius: 6px; }

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    /* CHANGE: Mobile par bhi top padding 0 kar di */
    .main-content { padding-top: 0px !important; }
    .royal-card { padding: 15px; margin-top: 0px !important; }
    .school-logo { width: 90px; height: 90px; }
}
