
/* =========================================
EDUSPHERE GLOBAL STYLESHEET
========================================= */

/* =========================================
ROOT COLORS
========================================= */

:root{
--edu-blue:#004080;
--edu-green:#008000;
--edu-yellow:#FFD700;
--light-bg:#f9f9f9;
--white:#ffffff;
--text:#333333;
--border:#cccccc;
}

/* =========================================
RESET
========================================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

/* =========================================
HTML & BODY
========================================= */

html,
body{
width:100%;
height:100%;
margin:0;
padding:0;
overflow-x:hidden;
}

body{
display:flex;
flex-direction:column;
min-height:100vh;
font-family:Arial, Helvetica, sans-serif;
color:var(--text);
background:var(--light-bg);
}

‎.resource-count{
‎    display:inline-block;
‎    margin-top:8px;
‎    padding:4px 10px;
‎    background:#004080;
‎    color:#fff;
‎    border-radius:20px;
‎    font-size:12px;
‎    font-weight:bold;
‎}

/* =========================================
PAGE LAYOUT
========================================= */

.page-wrapper{
flex:1;
display:flex;
flex-direction:column;
width:100%;
}

.wrapper{
width:100%;
max-width:100%;
margin:0 auto;
flex:1;
display:flex;
flex-direction:column;
}

main{
width:100%;
max-width:1200px;
margin:0 auto;
padding:20px;
}

.content{
width:100%;
max-width:1200px;
margin:0 auto;
}
/* =========================================
TYPOGRAPHY
========================================= */

h1,h2,h3,h4,h5,h6{
margin-bottom:15px;
color:var(--edu-blue);
}

p{
margin-bottom:15px;
}

a{
text-decoration:none;
}

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

header{
width:100%;
background:var(--edu-blue);
color:#fff;
padding:15px 20px;
}

.logo{
display:flex;
align-items:center;
gap:12px;
}

.logo img{
height:50px;
width:auto;
}

.logo h2{
color:var(--edu-yellow);
font-size:22px;
margin:0;
}

/* =========================================
NAVIGATION
========================================= */

nav{
width:100%;
display:flex;
justify-content:center;
align-items:center;
flex-wrap:wrap;
background:var(--edu-green);
}

nav a{
color:#fff;
padding:14px 20px;
font-weight:bold;
transition:0.3s ease;
}

nav a:hover{
background:var(--edu-yellow);
color:var(--edu-blue);
}

/* =========================================
SEARCH FORM
========================================= */

.header-search{
display:flex;
align-items:center;
gap:8px;
padding:10px;
}

.header-search input{
padding:8px 10px;
border:none;
border-radius:5px;
outline:none;
}

.header-search button{
padding:8px 14px;
border:none;
border-radius:5px;
background:var(--edu-yellow);
color:var(--edu-blue);
font-weight:bold;
cursor:pointer;
transition:0.3s ease;
}

.header-search button:hover{
background:#fff;
}

/* =========================================
BUTTONS
========================================= */

.btn{
background:var(--edu-blue);
color:#fff;
border:none;
border-radius:6px;
padding:12px 18px;
cursor:pointer;
font-weight:bold;
transition:0.3s ease;
}

.btn:hover{
background:var(--edu-yellow);
color:var(--edu-blue);
}

/* =========================================
HERO SECTION
========================================= */

.hero-section{
width:100%;
padding:90px 20px;
background:linear-gradient(
135deg,
#ffffff 0%,
#f3f8ff 50%,
#eef8ee 100%
);
text-align:center;
display:flex;
justify-content:center;
align-items:center;
}

.hero-content{
max-width:950px;
margin:auto;
}

.hero-content h2{
font-size:3rem;
font-weight:700;
color:var(--edu-blue);
margin-bottom:25px;
line-height:1.3;
}

.hero-content p{
font-size:1.2rem;
color:#444;
max-width:800px;
margin:0 auto 50px auto;
line-height:1.9;
}

/* =========================================
HERO BUTTONS
========================================= */

.hero-buttons{
display:flex;
justify-content:center;
align-items:center;
gap:30px;
flex-wrap:wrap;
margin-top:20px;
}

.hero-btn{
min-width:240px;
padding:16px 26px;
border-radius:10px;
font-size:1rem;
font-weight:700;
text-align:center;
display:inline-flex;
justify-content:center;
align-items:center;
transition:all 0.35s ease;
box-shadow:0 4px 10px rgba(0,0,0,0.12);
}

.hero-btn:hover{
transform:translateY(-4px);
box-shadow:0 8px 18px rgba(0,0,0,0.18);
}

/* =========================================
BUTTON COLORS
========================================= */

.green-btn{ background:var(--edu-green); color:#fff; }
.green-btn:hover{ background:#006400; }

.blue-btn{ background:var(--edu-blue); color:#fff; }
.blue-btn:hover{ background:#002f5f; }

.yellow-btn{ background:var(--edu-yellow); color:#000; }
.yellow-btn:hover{ background:var(--edu-green); color:#fff; }

/* =========================================
SUBSCRIPTION BANNER
========================================= */

.subscription-banner{
background-color:var(--edu-yellow);
color:#000;
font-weight:bold;
padding:22px;
overflow:hidden;
position:relative;
margin:30px auto;
width:70%;
border-radius:8px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.subscription-banner span{
display:inline-block;
white-space:nowrap;
position:absolute;
top:50%;
transform:translateY(-50%);
will-change:transform;
animation:scroll-text 22s linear infinite;
}

@keyframes scroll-text{
0%{ transform:translateX(100%); }
100%{ transform:translateX(-100%); }
}

/* =========================================
TABLES (FIXED RESPONSIVE SCROLL)
========================================= */

/* IMPORTANT: ONLY scoped table styles /
.resource-table{
border-collapse: collapse;
background: #fff;
min-width: 900px; / keeps horizontal scroll */
}

.resource-table th{
background: var(--edu-blue);
color: #fff;
padding: 12px;
border: 1px solid #ddd;
text-align: left;
white-space: nowrap;
}

.resource-table td{
padding: 10px;
border: 1px solid #ddd;
white-space: nowrap;
}

.resource-table tr:nth-child(even){
background: #f8f8f8;
}

/* Scroll container */
.table-wrapper{
width:100%;
overflow-x:auto;
-webkit-overflow-scrolling: touch;
display:block;
}

/* =========================================
FOOTER
========================================= */

footer{
width:100%;
background:var(--edu-blue);
color:#fff;
text-align:center;
padding:20px;
margin-top:auto;
flex-shrink:0;
}

footer a{
color:var(--edu-yellow);
}

footer a:hover{
text-decoration:underline;
}

/* =========================================
BACK TO TOP BUTTON
========================================= */

.back-to-top{
position:fixed;
bottom:90px;
right:20px;
background:var(--edu-blue);
color:#fff;
padding:12px 15px;
border-radius:30px;
cursor:pointer;
z-index:999;
transition:0.3s ease;
}

.back-to-top:hover{
background:var(--edu-yellow);
color:var(--edu-blue);
}

.hidden{ display:none; }

/* =========================================
WHATSAPP FLOAT
========================================= */

.whatsapp-float{
position:fixed;
bottom:20px;
right:20px;
background:#25D366;
color:#fff;
padding:12px 20px;
border-radius:30px;
font-size:16px;
font-weight:bold;
display:flex;
align-items:center;
gap:8px;
box-shadow:0 4px 8px rgba(0,0,0,0.2);
z-index:999;
}

.whatsapp-float:hover{
background:#128C7E;
}

/* =========================================
CATEGORY GRIDS
========================================= */

.categories-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:20px;
width:100%;
}

.category-card{
background:#fff;
padding:20px;
border-radius:10px;
box-shadow:0 2px 8px rgba(0,0,0,0.08);
transition:0.3s ease;
}

.category-card:hover{
transform:translateY(-5px);
}

/* =========================================
IMAGES
========================================= */

img{
max-width:100%;
height:auto;
}

/* =========================================
HOMEPAGE RESOURCE PANELS
========================================= */

.homepage-resources{
width:100%;
margin:40px auto;
display:grid;
grid-template-columns:1fr 1fr;
gap:25px;
}

.homepage-column{
background:#fff;
padding:25px;
border-radius:10px;
border:1px solid #e5e5e5;
box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.homepage-column h2{
margin-bottom:20px;
color:var(--edu-blue);
}

.homepage-column h2{
text-align:center;
border-bottom:2px solid #f0f0f0;
padding-bottom:10px;
margin-bottom:20px;
}

.resource-list{
list-style:none;
padding:0;
margin:0;
}

.resource-list li{
padding:10px 0;
border-bottom:1px solid #eee;
line-height:1.5;
}

.resource-list li:last-child{
border-bottom:none;
}

.resource-list a{
color:var(--edu-blue);
font-weight:600;
}

.resource-list a:hover{
color:var(--edu-green);
}

/* Move About section slightly lower */

.about-section{
margin-top:50px;
}

/* =========================================
MOBILE RESPONSIVE
========================================= */

@media(max-width:768px){

nav{  
    flex-direction:column;  
    align-items:stretch;  
}  

nav a{  
    width:100%;  
    text-align:center;  
    border-top:1px solid rgba(255,255,255,0.2);  
}  

.header-search{  
    width:100%;  
    flex-direction:column;  
    padding:15px;  
}  

.header-search input,  
.header-search button{  
    width:100%;  
}  

.logo{  
    flex-direction:column;  
    text-align:center;  
}  

.hero-section{  
    padding:70px 15px;  
}  

.hero-content h2{  
    font-size:2.1rem;  
}  

.hero-content p{  
    font-size:1rem;  
}  

.hero-buttons{  
    flex-direction:column;  
    gap:18px;  
}  

.hero-btn{  
    width:100%;  
    max-width:340px;  
}  

.subscription-banner{  
    width:95%;  
}  

.homepage-resources{  
    grid-template-columns:1fr;  
}

}

@media(max-width:480px){

.hero-content h2{  
    font-size:1.8rem;  
}  

.hero-content p{  
    font-size:0.95rem;  
}  

footer{  
    font-size:13px;  
}  

.whatsapp-float{  
    right:10px;  
    bottom:10px;  
}  

.back-to-top{  
    right:10px;  
}

}
/* =========================================
PAYKONNECT PROMO BANNER
========================================= */

.paykonnect-banner{
background:#f5f9ff;
border:2px solid #dbeafe;
border-radius:12px;
padding:25px;
margin:30px 0;
text-align:center;
}

.paykonnect-content h2{
margin:5px 0;
color:#003366;
}

.paykonnect-content p{
margin:15px 0;
font-size:16px;
}

