
:root{

    --primary:#0d47a1;
    --primary-light:#1565c0;
    --secondary:#198754;

    --text-dark:#1f2937;
    --text-light:#6b7280;

    --white:#ffffff;

    --glass:rgba(255,255,255,0.72);

    --shadow-lg:
        0 20px 40px rgba(0,0,0,0.12);

    --shadow-md:
        0 10px 25px rgba(0,0,0,0.08);

    --border:
        1px solid rgba(255,255,255,0.35);

    --radius:24px;

}

body{

    min-height:100vh;
    overflow-x:hidden;

    font-family:'Poppins',sans-serif;
    color:var(--text-dark);

    

   /* background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;

    position:relative;*/
}


body::before{

    content:"";

    position:fixed;
    inset:0;

    background:
        radial-gradient(circle at top right,
        rgba(13,71,161,0.12),
        transparent 30%),

        radial-gradient(circle at bottom left,
        rgba(25,135,84,0.12),
        transparent 35%);

    z-index:-1;
}


/* =========================================================
   CONTAINER
========================================================= */

.container{

    position:relative;
    z-index:2;
}


/* =========================================================
   HEADINGS
========================================================= */

.main-heading{

    font-size:clamp(1rem,2vw,2rem);
    font-weight:800;

    color:var(--primary);

    letter-spacing:1px;

    text-shadow:
        0 4px 12px rgba(13,71,161,0.15);

    margin-bottom:15px;
}


.text-secondary{

    color:#000 !important;

    font-weight:500;
    font-size:1.2rem;
}


/* =========================================================
   PREMIUM CARD
========================================================= */

.custom-card{

    position:relative;

    border-radius:var(--radius);

    overflow:hidden;

    border:var(--border);

    background:var(--glass);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    box-shadow:var(--shadow-lg);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

    height:50%;

}


.custom-card:hover{

    transform:
        translateY(-10px)
        scale(1.01);

    box-shadow:
        0 25px 50px rgba(0,0,0,0.18);
}


/* Premium top glow */

.custom-card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:5px;

    background:
        linear-gradient(
            90deg,
            #0d47a1,
            #42a5f5,
            #198754
        );
}


/* =========================================================
   CARD HEADER
========================================================= */

.card-header{

    padding:18px 20px;

    border:none !important;

    font-size:1.35rem;
    font-weight:700;

    letter-spacing:.5px;

    text-align:center;

    color:#fff;

    position:relative;

    overflow:hidden;
}






/* Green Header */

.bg-success{

    background:
        linear-gradient(
            135deg,
            #157347,
            #198754
        ) !important;
}


/* =========================================================
   WINDOW BODY
========================================================= */

.window-body{

    min-height:280px;

    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    padding:30px;

    

    position:relative;
}


/* Decorative pattern */

.window-body::before{

    content:"";

    position:absolute;
    inset:0;

    background-image:
        radial-gradient(rgba(13,71,161,0.05) 1px, transparent 1px);

    background-size:20px 20px;

    opacity:.6;
}


/* =========================================================
   LOGO IMAGE
========================================================= */

.window-body img{

    width:210px;
    max-width:100%;

    object-fit:contain;

    position:relative;
    z-index:2;

    transition:
        transform .4s ease,
        filter .4s ease;
}


.custom-card:hover .window-body img{

    transform:scale(1.06);

    filter:
        drop-shadow(0 10px 20px rgba(0,0,0,0.12));
}


/* =========================================================
   ENTER BUTTON
========================================================= */

.enter-btn{

    display:flex;
    align-items:center;
    justify-content:center;

    gap:12px;

    width:fit-content;

    margin:
        0 auto
        28px auto;

    padding:
        14px 28px;

    border-radius:60px;

    color:#fff !important;

    text-decoration:none;

    font-size:17px;
    font-weight:600;

    letter-spacing:.5px;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        opacity .3s ease;

    position:relative;

    overflow:hidden;
}
@media(max-width:992px){
    .enter-btn{

        font-size:14px;
        padding:8px 18px;

        min-width:100px;
    }
}
@media(max-width:768px){

    .enter-btn{

        font-size:14px;
        padding:8px 18px;

        min-width:100px;
    }
}

/* Shine effect */

.enter-btn::before{

    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:100%;
    height:100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.35),
            transparent
        );

    transition:.6s;
}


.enter-btn:hover::before{

    left:120%;
}


.enter-btn:hover{

    transform:
        translateY(-3px)
        scale(1.02);

    opacity:.96;
}


/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media(max-width:992px){

    body{

        background-size:cover;
        background-position:center;
        background-attachment:scroll;
    }

    .window-body{

        min-height:240px;
    }

}


@media(max-width:768px){

    .container{

        padding-left:18px;
        padding-right:18px;
    }

    .main-heading{

        font-size:2rem;
    }

    .text-secondary{

        font-size:1rem;
    }

    .card-header{

        font-size:1.1rem;
    }

    .window-body{

        min-height:220px;
        padding:20px;
    }

    .window-body img{

        width:170px;
    }

    .enter-btn{

        width:85%;
        padding:12px 20px;
        font-size:15px;
    }

}


@media(max-width:480px){

    .main-heading{

        font-size:1.7rem;
    }

    .window-body{

        min-height:200px;
    }

    .window-body img{

        width:145px;
    }

}
.tabs-container{

    display:flex;
    justify-content:center;
    gap:25px;

    margin-top:20px;
    flex-wrap:wrap;
}


/* TAB CARD */

.pro-tab{   

    padding:5px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    border-radius:14px;

    background:rgba(255,255,255,0.7);
    backdrop-filter:blur(10px);

    text-decoration:none;
    color:#1f2937;

    font-weight:600;

    box-shadow:0 6px 15px rgba(0,0,0,0.08);

    transition:0.3s;
}


/* Icon */

.pro-tab .icon{
    font-size:16px;
    margin-bottom:3px;
}

/* Text */

.pro-tab .label{
    font-size:10px;
    text-align:center;
}


.tabs-container{

    display:flex;

    gap:15px;

    overflow-x:auto;   
    white-space:nowrap;

    padding-bottom:10px;
}


/* Hide scrollbar (optional clean look) */

.tabs-container::-webkit-scrollbar{
    height:6px;
}

.tabs-container::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:10px;
}

/* HOVER (MATCH CARD STYLE) */

.pro-tab.active{
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
}


/* GREEN VARIANT (OPTIONAL for balance) */

.pro-tab:hover{

    background:linear-gradient(135deg,#e0f2fe,#bae6fd);

    box-shadow:0 15px 35px rgba(25,135,84,0.35);
}


/* RESPONSIVE */

@media(max-width:768px){

    .pro-tab{

        width:140px;
        height:95px;
    }

    .pro-tab .icon{

        font-size:24px;
    }

    .pro-tab .label{

        font-size:12px;
    }
}

.tabs-row{

    display:flex;

    align-items:flex-end;   

    position:relative;
}


/* Tabs */

.tabs-container{

    flex:1;

    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
}


/* Dropdown right + bottom aligned */

.bottom-dropdown{

    position:absolute;
    right:0;
    bottom:0;  
}


/* Dropdown style */

.bottom-dropdown select{

    padding:6px 12px;

    border-radius:8px;

    border:1px solid #ccc;

    background:#fff;

    box-shadow:0 4px 10px rgba(0,0,0,0.1);

    cursor:pointer;
}
@media(max-width:768px){

    .tabs-row{

        flex-direction:column;
        align-items:center;
    }

    .bottom-dropdown{

        position:static;
        margin-top:10px;
    }

}
.custom-card{

    height:50%;                 /* equal height */

    display:flex;
    flex-direction:column;

    border-radius:20px;
    overflow:hidden;
     opacity:0.8;
}


/* Body */

.window-body{

    display:flex;
    flex-direction:column;

    justify-content:space-between; 

    align-items:center;

    height:300px;   /* fixed height for consistency */

    padding:25px;
}


/* Logo size fix */

.window-body img{

    width:180px;
    height:180px;

    object-fit:contain;
}


/* Button alignment */

.enter-btn{

    margin-top:auto;   

    display:inline-block;
}
/* Light - 300 */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Regular - 400 */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium - 500 */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* SemiBold - 600 */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
p,li{
text-align: justify;

}

/* Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Modal Box */
.modal-box {
  width: 700px;
  max-height: 85vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease;
}

/* Header */
.modal-header {
  background: #1f5aa6;
  color: #fff;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Close Button */
.close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Body */
.modal-body {
  padding: 25px 30px;
  overflow-y: auto;
  max-height: 75vh;
  background: #f8f9fb;
}

/* Title */
.title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

/* Date */
.date {
  text-align: center;
  font-style: italic;
  color: #777;
  margin-bottom: 20px;
}

/* Content */
.content p {
  font-size: 15px;
  line-height: 1.9;
  text-align: justify;
  color: #333;
  margin-bottom: 15px;
}

/* Animation */
@keyframes fadeIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal {
    display: none;
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    width: 80%;
    height: 80%;
    margin: 5% auto;
    background: white;
    border-radius: 10px;
}

.modal iframe {
    width:100%;
    height:100%;
}
.signature {
  margin-top: 10px;
  font-weight: bold;main-heading
  letter-spacing: 1px;
  text-align: right;
}
.custom-modal-size {
    max-width: 90%;
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}
.visitor{
    position:fixed; bottom:10px; right:10px; background:#1e3c72; color:#fff; padding:8px 15px; border-radius:20px;
}
.cj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}
.cj-card {
  width: 100%;              
  max-width: 400px;  
  height: 250px;       
  margin: auto;           

  background: #fff;
  border-radius: 15px;
  padding: 20px;

  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: 0.3s;

}

.cj-card img {
  width: 130px;
  height: 130px;
  object-fit: cover;
    
  border-radius: 50%;
  /*border: 4px solid #d4af37;  gold tone */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
object-position: 50% -2%; 

}

.cj-card:hover {
    transform: translateY(-6px);
}
.year-tabs {
  text-align: center;
  margin-bottom: 20px;
}

.year-tabs button {
  margin: 5px;
  padding: 8px 18px;
  border-radius: 25px;
  border: none;
  background: #4d3f3f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
}
.year-tabs button:hover {
  background: linear-gradient(135deg, #2a5298, #3b6ec2);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Hide all sections */
.cj-section {
  display: none;
}

/* Show active */
.cj-section.active {
  display: block;
}
/* Heading */
.page-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #1e4d92;
}
.lang-select {
    position:absolute; top:10px; right:10px;
      z-index: 9999;
}
.lang-select select {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
/* SETTINGS BUTTON */
.settings-toggle{
    position:fixed;
    top:50%;
    right:0;

    background:#7a1f1f;
    color:#fff;

    padding:10px 12px;
    cursor:pointer;

    border-radius:6px 0 0 6px;
    z-index:9999;
}

/* PANEL */
.settings-panel{
    position:fixed;
    top:0;
    right:-260px;

    width:260px;
    height:100%;

    background:#fff;
    border-left:1px solid #ccc;

    padding:15px;
    transition:0.3s;

    z-index:9998;
}

/* OPEN */
.settings-panel.open{
    right:0;
}

/* HEADER */
.settings-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

/* CLOSE */
.close-btn{
    font-size:18px;
    cursor:pointer;
    color:#7a1f1f;
}

/* THEME ITEMS */
.theme-item{
    display:flex;
    align-items:center;
    gap:10px;

    padding:10px;
    margin-bottom:8px;

    border:1px solid #ddd;
    border-radius:8px;

    background:#f8f8f8;
    cursor:pointer;
}

.theme-item:hover{
    background:#eaeaea;
}

/* ACTIVE */
.theme-item.active{
    border:2px solid #7a1f1f;
    background:#fff;
}.back-btn {
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;  
    margin-left: 10px;
    margin-top: 10px;
}

/* =========================================================
   LIGHT THEME - MERGED OVERRIDES
   light(1).css properties are applied after style.css
   ========================================================= */

/* ===== LIGHT THEME (IMAGE MATCH) ===== */

body{
    background:
        linear-gradient(rgba(255,248,235,0.2), rgba(250,240,220,0.3)),
        url("../images/ahc_animated2.gif") no-repeat center center/cover;

    background-attachment: fixed;
    color:#2c2c2c;
     background-size: 103% auto;
     background-position: right top !important;
}

/* HEADER */
header{
    background:linear-gradient(135deg,#7a1f1f,#b02a2a);
    color:#fff;
    border-bottom:3px solid #d4af37;
}

/* MAIN HEADING */
.main-heading{
    color:#7a1f1f;
}

/* CARD */
.custom-card{
    background:rgba(255,255,255,0.85);
    border:1px solid #ecdede;

    backdrop-filter:blur(16px);
}

/* GOLD LINE */
.custom-card::before{
    background:linear-gradient(90deg,#7a1f1f,#d4af37);
}

/* CARD HEADER */
.bg-primary{
    background:linear-gradient(135deg,#2a5298,#1e3c72) !important;
}

.bg-success{
    background:linear-gradient(135deg,#b02a2a,#7a1f1f) !important;
    color:#fff !important;
}

/* BUTTON */
.enter-btn{
    background:linear-gradient(135deg,#7a1f1f,#b02a2a);
    color:#fff;
}

/* TABS */
.pro-tab{
    background:#fff;
}

.pro-tab.active{
    background:linear-gradient(135deg,#7a1f1f,#b02a2a);
    color:#fff;
}

/* MODAL */
.modal-header{
    background:linear-gradient(135deg,#7a1f1f,#b02a2a);
}
.modal-footer .btn
{
background:#b02a2a;
}
.act-box,.edition-box,.traslated-box{
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: #743138;
    border: 1px solid var(--border);
    cursor: pointer;
}
.msg-item{
    border:1px solid #e5e7eb;
    border-radius:10px;
    margin-bottom:10px;
    overflow:hidden;
    background: #fff;

}

/* HEADER */
.msg-header{
    padding:12px 15px;
    cursor:pointer;

    font-weight:600;

    background:#7b1e1e;
    color:#fff;

    display:flex;
    justify-content:space-between;
}
.msg-header span {
    font-size: 13px;
    color: #fffa;
}

/* BODY */
.msg-body{
    display:none;
    padding:15px;
    background:#fafafa;
}

/* ACTIVE */
.msg-item.active .msg-body{
    display:block;
}

/* OPTIONAL ARROW */
.msg-header::after{
    content:"+";
}

.msg-item.active .msg-header::after{
    content:"-";
}
.tj,.card,.acts,.publication-card{ background: #fafafa;
}
.disclaimerbtn,.visitor,.back-btn {
    background: #743138;
}
.disclaimerbtn,.back-btn :hover{
    background: #743138!important;
}
.section-title {
    color: #b02a2a;
}
.fbj-header h3{    
    color:#7a1f1f !important;
}
.search-btn{    
    background:#7a1f1f !important;
}

.search-btn:hover{
    background:#7a1f1f !important;
}


/* =========================================================
   HOMEPAGE HERO - FINAL POSITION FIX
   ========================================================= */

/* Keep the top of the background image visible so the flag is not cut */
/*body{
    background-position: center top !important;
}*/

/* Homepage layout only */
.homepage-hero{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 25px !important;
    padding-bottom: 20px !important;
}

/* Keep the title compact */
.homepage-hero > .d-flex{
    margin-bottom: 0 !important;
}

/* Main two cards: move downward without changing card height */
.homepage-hero > .row.g-4{
    margin-top: auto !important;
    padding-top: 150px;
    /*padding-top: 150px;*/
    margin-bottom: 0 !important;
}

/* Same fixed card height */
.homepage-hero .custom-card{
    height: 250px !important;
    display: flex;
    flex-direction: column;
    opacity: 0.92;
}

/* Header fixed */
.homepage-hero .card-header{
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
}

/* Body takes available space */
.homepage-hero .window-body{
    height: auto !important;
    min-height: 0 !important;
    flex: 1;
    padding: 18px 25px;
}

/* Button stays at the bottom of the card */
.homepage-hero .enter-btn{
    margin: 0 auto 20px !important;
}

/* Navigation cards below main cards */
.homepage-hero .tabs-row{
    margin-top: 14px;
}

.homepage-hero .tabs-container{
    gap: 12px;
    padding-bottom: 0;
}



/* Desktop: keep flag/top portion visible and cards low */
@media (min-width: 993px){
    body{
         background-size: 103% auto;
    background-position: right center;
    }
}

/* Tablet */
@media (max-width: 992px){
    .homepage-hero{
        min-height: auto;
    }

    .homepage-hero > .row.g-4{
        margin-top: 80px !important;
        padding-top: 0;
    }

    .homepage-hero .custom-card{
        height: auto !important;
        min-height: 360px;
    }
}

/* Mobile */
@media (max-width: 768px){
    body{
        background-position: center top !important;
        background-attachment: scroll !important;
    }

    .homepage-hero > .row.g-4{
        margin-top: 40px !important;
    }

    .homepage-hero .custom-card{
        min-height: 330px;
    }

    .homepage-hero .tabs-container{
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .lang-select {
        top: 8px;
        right: 8px;
    }

    .lang-select select {
        min-width: 85px;
        max-width: 110px;
        padding: 6px 20px 6px 7px;
        font-size: 12px;
    }
     
}
/* =========================================
   MOBILE FINAL FIX
   ========================================= */

@media (max-width: 768px) {

    /* Main container */
    .homepage-hero {
        min-height: auto !important;
        padding: 10px 12px 25px !important;
    }

    /* Cards ke beech gap */
    .homepage-hero > .row.g-4 {
        margin-top: 20px !important;
        row-gap: 20px !important;
        padding-top: 0 !important;
    }

    /* Main custom card - height reduce */
    .homepage-hero .custom-card {
        height: 315px !important;
        min-height: 315px !important;
        width: 100% !important;
    }

    /* Card heading */
    .homepage-hero .card-header {
        flex: 0 0 70px !important;
        min-height: 70px !important;
        font-size: 18px !important;
        padding: 10px 15px !important;
    }

    /* Card body */
    .homepage-hero .window-body {
        padding: 10px !important;
    }

    /* Logo/image */
    .homepage-hero .window-body img {
        width: 125px !important;
        max-height: 125px !important;
        object-fit: contain;
    }

    /* Button */
    .homepage-hero .enter-btn {
        width: calc(100% - 40px) !important;
        margin: 0 auto 15px !important;
        padding: 11px 18px !important;
        font-size: 15px !important;
    }

    /* Bottom pro tabs */
    .homepage-hero .tabs-row {
        margin-top: 15px !important;
    }

    .homepage-hero .tabs-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .homepage-hero .pro-tab {
        width: 100% !important;
        min-width: 0 !important;
        height: 82px !important;
        min-height: 82px !important;
        padding: 8px !important;
        overflow: hidden !important;
    }

    .homepage-hero .pro-tab .label {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }
    .lang-select {
        top: 8px;
        right: 8px;
    }

    .lang-select select {
        min-width: 85px;
        max-width: 110px;
        padding: 6px 20px 6px 7px;
        font-size: 12px;
    }
}


/* Small mobile */
@media (max-width: 480px) {

    .homepage-hero .custom-card {
        height: 290px !important;
        min-height: 290px !important;
    }

    .homepage-hero .card-header {
        flex-basis: 65px !important;
        min-height: 65px !important;
        font-size: 16px !important;
    }

    .homepage-hero .window-body img {
        width: 105px !important;
        max-height: 105px !important;
    }

    .homepage-hero .enter-btn {
        padding: 9px 15px !important;
        font-size: 14px !important;
    }

    .homepage-hero .tabs-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .homepage-hero .pro-tab {
        height: 75px !important;
        min-height: 75px !important;
    }
    .lang-select {
        top: 8px;
        right: 8px;
    }

    .lang-select select {
        min-width: 85px;
        max-width: 110px;
        padding: 6px 20px 6px 7px;
        font-size: 12px;
    }
}
.glass {
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}