@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

#header,
#header .container,
#header .navigation,
.navigation {
    height: 45px !important;
}
#header {
    position: relative !important;
}

/* Fix icon alignment globally */
.fa {
    vertical-align: middle !important;
    line-height: inherit !important;
}
.phone-email {
    display: inline-flex !important;
    align-items: center !important;
}
.phone-email .fa {
    margin-right: 5px !important;
}

/* Navbar and Footer Background Color */
#header,
#header-top,
#footer,
#footer-bottom {
    background-color: #7F1D1D !important;
}

/* Navbar and Footer Text Color */
#header *,
#header-top *,
#footer *,
#footer-bottom * {
    color: #FFF7ED !important;
}

/* Premium Golden Line Navbar Hover Effect */
#header .navigation ul li a {
    position: relative !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

#header .navigation ul li a::after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important;
    height: 3px !important;
    bottom: 2px !important;
    left: 50% !important;
    background: linear-gradient(90deg, #FFD700, #FBB034) !important;
    transition: width 0.3s ease-in-out !important;
    transform: translateX(-50%) !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 5px rgba(255, 215, 0, 0.4) !important;
}

#header .navigation ul li a:hover::after,
#header .navigation ul li.current-menu-item a::after,
#header .navigation ul li.active a::after {
    width: 80% !important;
}

#header a:hover,
#header .navigation ul li a:hover {
    color: #FFD700 !important; /* Rich gold color */
}

/* Mobile Burger Menu Styling */
.mobile-burger {
    display: none !important;
    font-size: 28px !important;
    color: #FFF7ED !important;
    cursor: pointer;
    padding: 8px 15px;
    float: right;
    line-height: 29px;
}

@media (max-width: 1199px) {
    .mobile-burger {
        display: block !important;
    }
    
    #header .navigation ul {
        display: none !important;
        flex-direction: column;
        background-color: #7F1D1D !important;
        position: absolute !important;
        top: 45px !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #header .navigation ul.mobile-menu-active {
        display: block !important;
    }
    
    #header .navigation ul li {
        display: block !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
    }
    
    #header .navigation ul li a {
        display: block !important;
        padding: 12px !important;
        line-height: normal !important;
    }
}

/* Hide old whatsapp image and remove blink effects */
img[src*="Whatsapp.png"], img[src*="whatsapp.png"] {
    display: none !important;
}
blink {
    animation: none !important;
    text-decoration: none !important;
}

/* Move WhatsApp wrapper to the bottom right */
div[style*="top: 40%;"] {
    top: auto !important;
    bottom: 30px !important;
    right: 20px !important;
}

/* New WhatsApp floating icon styling */
.fa-whatsapp.floating-wa {
    font-size: 35px !important;
    color: #fff !important;
    background-color: #25D366 !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.4) !important;
    transition: transform 0.3s ease;
}
.fa-whatsapp.floating-wa:hover {
    transform: scale(1.1);
}

/* Left Sidebar Burger Menu Styling */
.left-burger {
    display: none !important;
    font-size: 28px !important;
    color: #FFF7ED !important;
    cursor: pointer;
    padding: 8px 15px;
    position: absolute !important;
    left: 15px;
    top: 0;
    line-height: 29px;
    z-index: 10000;
}
.left-burger .left-sidebar-menu {
    display: none !important;
    position: absolute;
    top: 45px;
    left: 0;
    background-color: #7F1D1D;
    width: 260px;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.left-burger .left-sidebar-menu.active {
    display: block !important;
}
.left-burger .left-sidebar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block !important;
    margin: 0 !important;
    text-align: left !important;
}
.left-burger .left-sidebar-menu li a {
    display: block !important;
    padding: 15px !important;
    color: #FFF7ED !important;
    text-decoration: none !important;
    font-size: 16px !important;
    line-height: normal !important;
}
.left-burger .left-sidebar-menu li a i {
    margin-right: 15px !important;
    width: 25px;
    text-align: center;
    font-size: 18px !important;
}
.left-burger .left-sidebar-menu li a:hover {
    background-color: rgba(255,255,255,0.05);
    color: #FCA5A5 !important;
}

/* Hide original floating sidebar */
div[style*="top:-385px"] {
    display: none !important;
}

/* Contact Us Beautification */
.contact-us-beautiful {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 10px;
}
.contact-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 25px;
    border-top: 5px solid #7F1D1D;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.contact-card h3 {
    color: #7F1D1D;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}
.contact-card p {
    margin-bottom: 12px;
    color: #444;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}
.contact-card p i {
    color: #7F1D1D;
    font-size: 18px;
    width: 25px;
    margin-top: 4px;
}
.contact-card p.school-name {
    color: #282828;
    font-size: 16px;
}
.contact-card a {
    color: #7F1D1D;
    text-decoration: none;
    transition: color 0.3s;
}
.contact-card a:hover {
    color: #FCA5A5;
    text-decoration: underline;
}

/* Latest News and Notice Details Layout Fix */
.news-notice-flex {
    display: flex !important;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
}

.news-left-col {
    flex: 1;
    min-width: 300px;
    background: #fdfdfd;
    border: 1px solid #e9e8e8;
    border-radius: 5px;
    padding: 20px;
    height: 350px !important; /* Equal height */
    box-sizing: border-box;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
    display: block !important; /* Override <td> default */
}

.news-left-col marquee {
    height: 100% !important;
}

.notice-right-col {
    flex: 1;
    min-width: 300px;
    padding: 0 !important; /* Override inline padding */
    height: 350px !important;
}

.notice-scrollable {
    height: 100% !important;
    overflow-y: auto !important;
    padding: 0 !important;
    border: 1px solid #e9e8e8 !important;
    border-radius: 5px;
}

.notice-scrollable table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 0 !important;
}

.notice-scrollable th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #A55129 !important;
    box-shadow: 0 2px 2px -1px rgba(0,0,0,0.4);
}

/* Home Page Headings and Content Alignment Fixes */
#aboutus p {
    text-align: justify !important;
    color: #444 !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
    margin-bottom: 15px !important;
    padding: 0 20px;
}

#aboutus h3 {
    text-align: center !important;
    margin-bottom: 25px !important;
    color: #7F1D1D !important;
    font-weight: bold !important;
}

.head-title {
    text-align: center !important;
    margin-bottom: 25px !important;
    width: 100%;
}

.head-title h6 {
    display: inline-block !important;
    text-align: center !important;
    font-size: 22px !important;
    color: #7F1D1D !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 3px solid #FCA5A5 !important;
    padding-bottom: 8px !important;
    margin: 0 auto !important;
}
